Tokens from a project.
/v1/projects/{projectID}/tokens
Last tokens.
Name matching tokens.
curl -L \ --url 'https://cloud-api.calyptia.com/v1/projects/{projectID}/tokens' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[ { "id": "123e4567-e89b-12d3-a456-426614174000", "token": "redacted", "name": "my-token", "permissions": [ "create:*" ], "createdAt": "2025-03-12T04:24:39.894Z" } ]
Create token within a project. These tokens are to authorize other applications to access the project. For example:
new-token
curl -L \ --request POST \ --url 'https://cloud-api.calyptia.com/v1/projects/{projectID}/tokens' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "name": "new-token", "permissions": [ "create:*" ] }'
{ "id": "123e4567-e89b-12d3-a456-426614174000", "token": "redacted", "name": "my-token", "permissions": [ "create:*" ], "createdAt": "2025-03-12T04:24:39.894Z" }