Skip to content
Get started

List

GET/projects/{projectId}/tasks

List the tasks of the project’s task source for the current user, to send one in the X-Scenario-Task-Id header. Returns 502 when the task source fails. Enterprise only.

Path ParametersExpand Collapse
projectId: string
ReturnsExpand Collapse
tasks: array of object { id, name, status }

The tasks of the task source, at most 1,000. Entries without a valid id are skipped, and a repeated id keeps its first entry.

id: string

The task id, to send in the X-Scenario-Task-Id header

name: optional string

The task name

status: optional string

The task status

List

curl https://api.cloud.scenario.com/v1/projects/$PROJECT_ID/tasks \
    -u "$SCENARIO_SDK_API_KEY:SCENARIO_SDK_API_SECRET"
{
  "tasks": [
    {
      "id": "id",
      "name": "name",
      "status": "status"
    }
  ]
}
Returns Examples
{
  "tasks": [
    {
      "id": "id",
      "name": "name",
      "status": "status"
    }
  ]
}