API keys

Create an API key

Changed on

Create an API key for the organization, with a role (member or admin) whose permissions it gets and an optional expiry. Returns the key itself (key) only this once; store it somewhere safe. Requires the apiKey: ["create"] permission (owners and admins)

post/api/v1/organizations/{organizationId}/api-keys

Request

  • Base URL
    https://app.easyscraper.com
  • URL
    https://app.easyscraper.com/api/v1/organizations/{organizationId}/api-keys
  • Auth
    API key in cookie better-auth.session_token

Path parameters

organizationIdstring uuid required

Request body

namestring required
role'member' | 'admin' required

Response

OK

keystring required

Changes