POST
/
v1
/
platform
/
team
/
tokens
cURL
curl --request POST \
  --url https://api.comm.com/api/v1/platform/team/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "scope_all": true,
  "scopes": [
    {
      "method": "get",
      "endpoint": "<string>",
      "reason": "<string>"
    }
  ]
}'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "access_token": "<string>",
    "scopes": {
      "data": [
        {
          "method": "get",
          "endpoint": "<string>",
          "reason": "<string>"
        }
      ]
    },
    "team_id": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

TeamAccessTokenData

The response is of type object.