Api keys

Generated from Depllo's own code: every route in this area, what it takes and how to call it.

Method Path What it does
GET /api/v1/api-keys List the workspace's active API keys (newest first).
POST /api/v1/api-keys Create an API key.
DELETE /api/v1/api-keys/{id} Revoke an API key: requests with it get 401 from now on.

List the workspace's active API keys (newest first).

GET /api/v1/api-keys

Example

curl -X GET "https://depllo.forjio.com/api/v1/api-keys" \
  -H "Authorization: Bearer sk_live_<your API key>"

Create an API key.

POST /api/v1/api-keys

Create an API key. The full key is in this response only — store it.

Body

Field Type Required Notes
name string yes min length 1; max length 120

Example

curl -X POST "https://depllo.forjio.com/api/v1/api-keys" \
  -H "Authorization: Bearer sk_live_<your API key>" \
  -H "Content-Type: application/json" \
  -d '{"name":"…"}'

Revoke an API key: requests with it get 401 from now on.

DELETE /api/v1/api-keys/{id}

Path parameters

Name Type Required Notes
id string yes

Example

curl -X DELETE "https://depllo.forjio.com/api/v1/api-keys/:id" \
  -H "Authorization: Bearer sk_live_<your API key>"