cURL
curl --request POST \ --url https://{deployment}.convex.site/v1/projects/{projectId}/tokens \ --header 'Content-Type: application/json' \ --data ' { "label": "CI Pipeline", "permissions": "read" } '
{ "tokenId": "tok_abc", "label": "CI Pipeline", "permissions": "read", "lastUsedAt": 1739712000000, "createdAt": 1739712000000, "token": "ll_xxxxxxxx" }
Create a new API token. The token value is returned once and cannot be retrieved again.
1
"proj_abc123"
"CI Pipeline"
read
read_write
Token created successfully. The token value is shown only once.
"tok_abc"
1739712000000
"ll_xxxxxxxx"