Skip to content
Get started

API Keys

Create
client.projects.apiKeys.create(stringprojectID, APIKeyCreateParams { maxConsumption, name, role } body, RequestOptionsoptions?): APIKeyCreateResponse { id, authorId, createdAt, 5 more }
POST/projects/{projectId}/api-keys
Delete
client.projects.apiKeys.delete(stringkeyID, APIKeyDeleteParams { projectId } params, RequestOptionsoptions?): APIKeyDeleteResponse
DELETE/projects/{projectId}/api-keys/{keyId}
ModelsExpand Collapse
APIKeyCreateResponse { id, authorId, createdAt, 5 more }
id: string
authorId: string
createdAt: string
ownerType: "project" | "team"
One of the following:
"project"
"team"
secret: string
userId: string

The key’s member id (apiu_...), taken by the member routes; the api-keys routes take id.

ownerId?: string
teamId?: string
APIKeyDeleteResponse = unknown