remagicaDocs home
API referenceUsage

List API keys that spent credits

GET
/credits/api-keys

Needs a key withusage:read

Every API key that has spent the workspace's credits, by name, including keys deleted since (by the name they last spent under): what apiKeyId on the history and usage filters by.

Requires scope usage:read.

Authorization

apiKey
headerx-api-key<token>

An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.

Response Body

The keys.

application/json
  1. response
[index: integer]?

An API key that has spent the workspace's credits.

Example Request
curl -X GET 'https://api.remagica.com/api/v1/credits/api-keys'
Example Response
[  {    "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05",    "name": "Autumn campaign",    "deleted": true  }]