Secrets are never returned; only a short prefix is shown for display.
GET
/v1/api-keysDashboard JWT only
List your API keys (secrets are never returned).
AuthorizationstringheaderrequiredBearer token. Dashboard JWT (this endpoint is dashboard-only).
idstringAPI key id.
namestringLabel you gave the key.
key_prefixstringoptionalFirst chars of the key, for identification (the secret is shown only once at creation).
environmentstringlive or test.
const response = await fetch("https://api.dravo.dev/v1/api-keys", { method: "GET", headers: { "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);[ { "id": "key_1", "name": "Production", "key_prefix": "dra_live_8f2c", "environment": "live" }]