Create a team
curl --request POST \ --url "$UNEEQ_API_URL/external/v1/organization/$UNEEQ_ORG_ID/teams/create" \ --header "Authorization: Bearer $UNEEQ_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "name": "EMEA Sales", "description": "Account executives covering Europe, the Middle East and Africa"}'const url = `${process.env.UNEEQ_API_URL}/external/v1/organization/${process.env.UNEEQ_ORG_ID}/teams/create`;const response = await fetch(url, { method: 'POST', headers: { Authorization: `Bearer ${process.env.UNEEQ_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ "name": "EMEA Sales", "description": "Account executives covering Europe, the Middle East and Africa" }),});console.log(response.status, await response.text());Creates a team in the organization. Both name and description must be non-empty.
Team names are unique among the organization’s live teams (exact, case-sensitive match); a
name freed by deleting a team can be reused. Names are stored in a 100-character column, so a
longer name fails with a 500. The new team has no members and no assigned scenarios.
Returns 200 (not 201) with the created team. Unknown body fields are ignored.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ID of the organization the API key belongs to, for example org_HYPCX67vaupjhdTn.
Example
org_HYPCX67vaupjhdTnRequest Bodyrequired
Section titled “Request Bodyrequired”object
Team name, unique among the organization’s live teams (case-sensitive). Longer than 100 characters fails with a 500.
Free-text description of the team. Required and must not be empty.
Example
{ "name": "EMEA Sales", "description": "Account executives covering Europe, the Middle East and Africa"}Responses
Section titled “Responses”The team was created.
object
Team ID.
Team name.
Team description.
Deprecated. Teams no longer carry tags; always an empty array. It will be removed on 1 March 2027.
object
Tag ID.
Tag name.
Display color, for example a hex code such as #F7F9FB.
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "description": "example", "tags": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "color": "example" } ]}name or description is missing or empty (message invalid request, no error_code).
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
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.
The body of an error returned before the request reaches an endpoint (authentication and rate limiting).
object
Human-readable explanation of what went wrong.
Example generated
{ "error": "example"}A live team with this name already exists in the organization (message A team with this name already exists for your organization, no error_code).
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
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.
The body of an error returned before the request reaches an endpoint (authentication and rate limiting).
object
Human-readable explanation of what went wrong.
Example generated
{ "error": "example"}Headers
Section titled “Headers”Seconds to wait before retrying.
The body is not valid JSON or a field has the wrong type (message unable to decode request body), the name exceeds 100 characters, or the team could not be stored (message unable to create a new team). No error_code.
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}
