Skip to main content
POST
/
workspaceManagement
/
tokens
Create token
curl --request POST \
  --url https://api.getcargo.io/v1/workspaceManagement/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fromUser": true
}
'
{
  "token": {
    "uuid": "<string>",
    "token": "<string>",
    "workspaceUuid": "<string>",
    "userUuid": "<string>",
    "createdAt": "<string>",
    "deletedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body schema.

fromUser
boolean
required

Response

Successful response

token
object
required