Gamma API
AccountAPI keys

List API key history

GET
/api/account/api-keys/{id}/history

Newest first; still readable once the key is revoked.

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.

Path Parameters

id*string

Response Body

OK.

application/json
  1. response
history*array<>
organizations*array<>

Names for the organization ids in changes, those still visible.

projects*array<>

Names for the project ids in changes, those still visible.

Example Request
curl -X GET 'http://localhost:3000/api/account/api-keys/string/history'
Example Response
{  "history": [    {      "id": "string",      "at": "2019-08-24T14:15:22Z",      "action": "created",      "actor": {        "id": "string",        "name": "string"      },      "ip": "string",      "changes": [        {          "field": "name",          "key": "string",          "from": null,          "to": null        }      ]    }  ],  "organizations": [    {      "id": "string",      "name": "string",      "slug": "string"    }  ],  "projects": [    {      "id": "string",      "name": "string"    }  ]}