API Keys

Create a User API Key

Create a new API key for the authenticated user.

post/api-keys

Request

  • Base URL
    https://api.xata.tech
  • Auth
    OAuth 2
    Implicit: https://auth.xata.io/realms/xata/protocol/openid-connect/auth
    Scopes: keys:write

Request body

namestring required
expirystring date-time nullable

Expiration date for the API key, null for no expiry

scopesstring[]

Optional scopes assigned to the API key

projectsstring[]

Limit access to these projects

branchesstring[]

Limit access to these branches

Response

API Key created successfully

Changes

No recorded changes to this operation across all 68 revisions of this API.