shadwshadw/Docs
GuidesAPIGetting Started
Dashboard
shadw REST APIOverviewErrors
  • POSTCreate an API key
  • GETList API keys
  • DELRevoke an API key
  • POSTMint a token
APIs & SDKs/shadw REST API/List API keys

List API keys

GEThttps://api.shadw.cloud/v1/apikeys

List the API keys for the active team. Only the display prefix is returned — the full token is shown once at creation and never stored.

Authentication

AuthorizationbearerToken

A platform API key (hive_…, created under Settings → API Keys) or a short-lived JWT minted with POST /v1/token. An API key scopes the request to the team it was created under.

ts
const response = await fetch('https://api.shadw.cloud/v1/apikeys', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY', // hive_… (Settings → API Keys)
  },
});

const data = await response.json();
console.log(data);
Response
json
[
  {
    "id": "key_9f2a1c7b04d14e3e",
    "name": "ci",
    "prefix": "hive_0f3a62b…",
    "team": "acme",
    "role": "member",
    "created_ms": 1781906630000,
    "last_used_ms": 1781909999000
  }
]