Skip to main content
POST
/
me
/
tokens
cURL
curl --request POST \
  --url https://api.timbal.ai/me/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "kind": "<string>",
  "org_id": "<string>",
  "scope": "<string>"
}
'
{
  "token": {
    "createdAt": 123,
    "hint": "<string>",
    "id": "<string>",
    "kind": "<string>",
    "name": "<string>",
    "org_id": "<string>",
    "scope": "<string>",
    "secret": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Timbal API key. Obtain your API key from the Timbal platform settings. See Authentication for more information.

Body

application/json
name
string
required

Display name (max 64 characters, unique per user).

kind
string

Credential kind. Defaults to api_key.

org_id
string | null

Organization to bind the credential to. Set alone for an org-only key (full access within that org); required when scope is set. Omit with scope for a full-access key across all your orgs.

scope
string | null

IAM scope path (e.g. projects:42) restricting the credential to one resource subtree. Requires org_id. Omit for an org-only or full-access key.

Response

Credential created

token
object
required

User credential (API key or future kinds).