Skip to main content
GET
/
api
/
workspace
/
{workspaceId}
/
api-keys
List API keys
curl --request GET \
  --url https://app.alana.shopping/api/workspace/{workspaceId}/api-keys \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "key_1a2b3c",
      "workspace_id": "ws_1a2b3c4d",
      "name": "Production API Key",
      "key_prefix": "ak_live_abc123",
      "permissions": [
        "api:read",
        "api:write"
      ],
      "last_used_at": "2024-02-15T10:30:00Z",
      "expires_at": null,
      "created_by": "user_xyz789",
      "created_at": "2024-01-15T08:00:00Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Obtain a token via the authentication endpoint and include it in the Authorization header: Authorization: Bearer <token>

Path Parameters

workspaceId
string
required

The workspace ID

Response

API keys retrieved successfully

data
object[]