Skip to Content
REST APIToken API

Token API

The token API allows creating custom access tokens for the Golem Cloud REST API to be used by tools and services.

Get token by id

PathMethodProtected
/v1/tokens/{token_id}GETYes

Example Response JSON

{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9", "createdAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z" }

Delete a token

PathMethodProtected
/v1/tokens/{token_id}DELETEYes

Deletes a previously created token given by its identifier.

Example Response JSON

{}

Token API Errors

Status CodeDescriptionBody
400Invalid request, returning with a list of issues detected in the request{"code":"string","errors":["string"]}
401Unauthorized request{"code":"string","error":"string"}
403Forbidden Request{"code":"string","error":"string"}
404Entity not found{"code":"string","error":"string"}
409{"code":"string","error":"string"}
422Limits of the plan exceeded{"code":"string","error":"string"}
500Internal server error{"code":"string","error":"string"}
Last updated on