Retrieve usage key
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.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
usage_key_id*stringPublic metadata.
application/json- 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*stringAlways usage_key.
usage_key_id*stringuk_ plus 32 characters.
name*|Your label.
key_prefix*stringThe first characters of the key, to tell keys apart.
status*stringactive or revoked.
"active""revoked"active_in_apollo*booleanWhether 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*booleantrue for apk_test_ keys.
date_created*stringWhen it was created.
date-timedate_revoked*|When it was revoked.
date-timecapabilities*array<>1 <= items <= 2url*stringuricurl -X GET 'https://api.comecero.com/api/v1/usage/keys/string'{ "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" ]}