Skip to main content

Create API key for an organization

POST 

/api/v1/apikeys

Create an API key for an organization. The API key will be used to authenticate the requests to the Astro Platform API.

Request

Header Parameters

    X-API-KEY stringrequired

    APIKey

Responses

OK

Schema

    data

    object

    apikey string

    apiKey is the API key.

    createdAt string

    createdAt is the creation time of the APIkey.

    expiresAt string

    expiresAt is the expiration time of the API key.

    id string

    id is the unique identifier of the API key.

    isPermanent boolean

    isPermanent is a flag to make the API key permanent. If true, the API key will not expire. If false, the API key will expire after the duration. If not specified, the default value is false.

    orgId string

    orgId is the organization ID.

    orgNamespace string

    orgNamespace is the organization namespace.

    userId string

    userId is unique identifier of the user.

    id string
    message string
    status string
Loading...