Authentication / Tokensintermediate

API Key Metadata JSON Example

An API key record focused on visibility, last use, and permission scope rather than the secret itself.

Real-world use case: Use this for settings pages, developer portals, and API key management screens.
1{
2 "keyId": "key_2981",
3 "label": "Production Checkout Integration",
4 "createdAt": "2026-01-18T10:00:00Z",
5 "lastUsedAt": "2026-03-12T08:14:00Z",
6 "scopes": [
7 "payments:write",
8 "orders:read"
9 ],
10 "revoked": false
11}

Where this shape shows up in production

Developer settings
API portals
Security review flows

Related examples