Skip to main content
PUT
Set API key collection scoping
Restrict an API key to only access specific collections. This is useful for creating scoped keys for third-party integrations or limiting access in multi-tenant setups.
  • This is a Pro-only feature
  • Pass an empty collection_ids array to remove all collection restrictions
  • The scoped key will only be able to access the specified collections

Create API Key

Generate a new API key

List API Keys

View all API keys

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Body

application/json
api_key
string
required
Example:

"sk-xxx"

collection_ids
string[]
required
Example:

Response

API key collections updated

success
boolean
Example:

true

message
string
Example:

"Operation successful"