Gamma API
AccountAPI keys

List my API keys

GET
/api/account/api-keys

Newest first, with the catalogue of areas a key's permissions grade. Session only: an API key cannot manage keys.

Who may call it: Any signed-in user, for their own account. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Response Body

OK.

application/json
  1. response
apiKeys*array<>
areas*array<>
Example Request
curl -X GET 'http://localhost:3000/api/account/api-keys'
Example Response
{  "apiKeys": [    {      "id": "string",      "name": "string",      "start": "string",      "createdAt": "2019-08-24T14:15:22Z",      "expiresAt": "2019-08-24T14:15:22Z",      "lastRequest": "2019-08-24T14:15:22Z",      "permissions": [        "string"      ],      "organizations": [        {          "id": "string",          "name": "string",          "slug": "string",          "projects": "all"        }      ]    }  ],  "areas": [    {      "key": "model",      "actions": [        "string"      ]    }  ]}