Skip to Content
CosmicAC Logo
API referenceApp node API

Invitation routes

Invitations to join teams.

/v1/teams/{id}/invites

POST
/v1/teams/{id}/invites

Requires team capability users.invite. Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string

Request Body

application/json
  1. body
email*string
Formatemail
role*string
Value in"team_lead""member""viewer"

Response Body

Default Response

Example Request
curl -X POST 'https://your-app-node-url/v1/teams/string/invites' \  -H 'ttr-token: <session-token>' \  -H 'Content-Type: application/json' \  -d '{  "email": "user@example.com",  "role": "team_lead"}'
Example Response200
Empty
DELETE
/v1/teams/{id}/invites/{inviteId}

Requires team capability users.invite. Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string
inviteId*string

Response Body

Default Response

Example Request
curl -X DELETE 'https://your-app-node-url/v1/teams/string/invites/string' \  -H 'ttr-token: <session-token>'
Example Response200
Empty

/v1/invites/accept

POST
/v1/invites/accept

Authentication is optional; when a ttr-token is sent it is validated.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Request Body

application/json
  1. body
token*string
Length1 <= length
email?string
Formatemail
password?string
Length6 <= length
name?string
Length1 <= length

Response Body

Default Response

Example Request
curl -X POST 'https://your-app-node-url/v1/invites/accept' \  -H 'Content-Type: application/json' \  -d '{  "token": "string"}'
Example Response200
Empty