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 '
{
  "name": "<string>",
  "permissions": [
    {
      "effect": "allow",
      "resources": [
        "<string>"
      ],
      "actions": [
        "ai:*"
      ]
    }
  ]
}
'
{
  "token": {
    "uuid": "<string>",
    "token": "<string>",
    "name": "<string>",
    "permissions": [
      {
        "effect": "allow",
        "resources": [
          "<string>"
        ],
        "actions": [
          "ai:*"
        ]
      }
    ],
    "workspaceUuid": "<string>",
    "userUuid": "<string>",
    "createdAt": "<string>",
    "deletedAt": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.getcargo.ai/llms.txt

Use this file to discover all available pages before exploring further.

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.

name
string
required
Required string length: 1 - 255
permissions
object[] | null
required

Response

Successful response

token
object
required