comecerodocs

Retrieve usage key

GET
/usage/keys/{usage_key_id}

Secret and trusted tokens with the resource read permission may retrieve metadata in their account and mode. Limited tokens are forbidden. Removed or expired overrides remain retrievable. Usage-key metadata never includes the secret or hash.

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

usage_key_id*string

Response Body

Public metadata.

application/json
  1. response

Lets your server send events to the usage meter at https://usage.comecero.com/v1/events. See https://docs.comecero.com/docs/usage-billing/usage-meter-api Default public fields are shown here. show and hide can omit default fields, except the root url. Stored recovery state is never public.

object*string

Always usage_key.

usage_key_id*string

uk_ plus 32 characters.

name*|

Your label.

key_prefix*string

The first characters of the key, to tell keys apart.

status*string

active or revoked.

Value in"active""revoked"
active_in_apollo*boolean

Whether the usage meter takes events with this key now. For a new key it is false until the key reaches the meter (a few minutes at most). For a revoked key it stays true until the revoke reaches the meter.

test*boolean

true for apk_test_ keys.

date_created*string

When it was created.

Formatdate-time
date_revoked*|

When it was revoked.

Formatdate-time
capabilities*array<>
Items1 <= items <= 2
url*string
Formaturi
Example Request
curl -X GET 'https://api.comecero.com/api/v1/usage/keys/string'
Example Response
{  "object": "usage_key",  "usage_key_id": "uk_5d1c0e7a9b2f4e6c8a0d3b5f7e9c1a2b",  "name": "Production server",  "key_prefix": "apk_live_8Hq2",  "status": "active",  "active_in_apollo": true,  "test": false,  "date_created": "2026-11-01T09:30:00Z",  "date_revoked": null,  "url": "https://api.comecero.com/api/v1/usage/keys/uk_5d1c0e7a9b2f4e6c8a0d3b5f7e9c1a2b",  "capabilities": [    "events:write"  ]}