Skip to main content
GET
/
v1
/
workspaces
/
{workspace_id}
/
api-keys
List API keys
import requests

url = "https://api.auriko.ai/v1/workspaces/{workspace_id}/api-keys"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "object": "list",
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "key_prefix": "<string>",
      "scopes": [
        "<string>"
      ],
      "is_active": true,
      "created_at": "2023-11-07T05:31:56Z",
      "rate_limit_rpm": 123,
      "expires_at": "2023-11-07T05:31:56Z",
      "last_used_at": "2023-11-07T05:31:56Z",
      "created_by_key_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "count": 123
}
Excludes system-managed playground keys. Requires keys:read scope. Naturally idempotent. All parameters, request/response schemas, and examples are auto-generated from the OpenAPI specification.

Authorizations

Authorization
string
header
required

API key authentication. Keys start with ak_ prefix. Example: Authorization: Bearer ak_live_xxxxxxxxxxxx

Path Parameters

workspace_id
string<uuid>
required

Workspace identifier

Query Parameters

include_revoked
boolean
default:false

Include revoked keys in the response

Response

OK

List of API keys for a workspace.

object
enum<string>
required

Object type identifier

Available options:
list
data
object[]
required
count
integer
required

Total number of API keys