API referenceUsage
List API keys that spent credits
GET
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.
apiKeyheader
x-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.
The keys.
application/json- response
[index: integer]?An API key that has spent the workspace's credits.
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 }]