Welcome to the new Golem Cloud Docs! 👋

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{"errors":["string"]}
401Unauthorized request{"error":"string"}
403Forbidden Request{"error":"string"}
404Entity not found{"error":"string"}
409{"error":"string"}
422Limits of the plan exceeded{"error":"string"}
500Internal server error{"error":"string"}