List keys

View .md

List your API keys (secrets are never returned).


Secrets are never returned; only a short prefix is shown for display.

GET/v1/api-keys
Dashboard JWT only

List your API keys (secrets are never returned).

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"  }]