Organizations

Creates an organization-owned API key.

The operation enforces organization ownership or platform-admin authorization and returns state suitable for membership, billing, and support workflows.

post/organizations/api-keys/{id}

Request

  • Base URL: https://api.leadping.ai
  • URL: https://api.leadping.ai/organizations/api-keys/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

The organization ID that will own the API key.

Request body

namestring nullable

Human-readable name used to identify the key.

expiresInDaysinteger nullable

Number of days before the key expires. Null means no expiration.

permissionsstring[] nullable

WorkOS permission slugs granted to the API key.

Response

The API key was created successfully.

secretstring

Secret token returned once when the Leadping API key is issued.

expiresAtstring date-time nullable

Date and time when the organization API key issue expires.

Changes

No recorded changes to this operation across all 1 revision of this API.