Skip to content
UneeqUneeqUneeq Docs

List a team's scenarios

GET
/external/v1/organization/{organizationID}/teams/{teamID}/scenarios
curl --request GET \
--url "$UNEEQ_API_URL/external/v1/organization/$UNEEQ_ORG_ID/teams/{teamID}/scenarios" \
--header "Authorization: Bearer $UNEEQ_API_KEY"

Returns every live scenario directly assigned to the team, published or not, sorted by name (case-insensitive, ascending). Practice scenarios are never included. Not paginated. A team with no scenarios returns an empty array.

organizationID
required
string

ID of the organization the API key belongs to, for example org_HYPCX67vaupjhdTn.

Example

org_HYPCX67vaupjhdTn
teamID
required
string format: uuid

ID of a live team in the organization. Must be a lowercase hyphenated UUID.

The team’s assigned scenarios.

Media typeapplication/json
object
scenarios
required

Scenarios assigned to the team, sorted by name. Always an array, empty when there are none.

Array<object>
object
id
required

Scenario ID.

string format: uuid
name
required

Scenario name.

string
is_published
required

Whether the scenario is published to learners.

boolean
scenario_type
required

Kind of scenario. Practice scenarios cannot be assigned to teams, so PRACTICE never appears here.

string
Allowed values: ROLE_PLAY TECHNICAL_ACUMEN

Example

{
"scenarios": [
{
"scenario_type": "ROLE_PLAY"
}
]
}

teamID is not a lowercase UUID (message invalid request, no error_code).

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

Example generated

{
"message": "example",
"error_code": "example"
}

The Authorization header is missing, or the API key is not valid for this organization. A key check that fails on the server is also reported as 401.

Media typeapplication/json

The body of an error returned before the request reaches an endpoint (authentication and rate limiting).

object
error
required

Human-readable explanation of what went wrong.

string

Example generated

{
"error": "example"
}

The team does not exist, was deleted, or is not in this organization (message team does not belong to the requested organization, no error_code).

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

Example generated

{
"message": "example",
"error_code": "example"
}

The API key has sent too many requests. Wait for the number of seconds in Retry-After, then retry.

Media typeapplication/json

The body of an error returned before the request reaches an endpoint (authentication and rate limiting).

object
error
required

Human-readable explanation of what went wrong.

string

Example generated

{
"error": "example"
}
Retry-After
integer
>= 1

Seconds to wait before retrying.

The scenarios could not be read (message unable to get the team's assigned scenarios, no error_code).

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

Example generated

{
"message": "example",
"error_code": "example"
}