Organizations

Creates an organization-owned API key.

Changed on

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
  • Auth
    HTTP bearer

Path parameters

id, string required

The organization ID that will own the API key.

Request body

OrganizationApiKeyRequest required

Defines the display name and access configuration for a new Leadping organization API key.

name, string nullable

Human-readable name used to identify the key.

expiresInDays, integer nullable

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

permissions, string[] nullable

WorkOS permission slugs granted to the API key.

Response

The API key was created successfully.

OrganizationApiKeyIssueResponse required

Returns a newly issued organization API key and its identifying metadata; the secret credential is shown only in this response.

secret, string

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

expiresAt, string date-time nullable

Date and time when the organization API key issue expires.

apiKey, OrganizationApiKeyPreviewResponse

Safe identifying and usage metadata for an organization API key. This model never contains the secret credential.

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    1 more change in this revision