Skip to main content

Create a new user

If no users have been created yet, no API key is required. Otherwise, an API key must be included in the request header. Keep in mind that first user created will be the admin user.

Request Body
    email string required
    password string required
    name string required
    expiresAt string nullable

    The date and time at which the user's account will expire. If null, the account will never expire. Must be in ISO 8601 format (e.g. 2023-11-03T00:00:00.000Z).

    Not applicable if the user is an admin (first user). Admin accounts never expire.

    generateApiToken boolean nullable

    If set to true, the response will include an API token with a 24-hour validity period, applicable for both Personal and Organization API access.

Responses

User successfully created


Schema
    id string
    email string
    name string
    expiresAt string
    apiToken string
Loading...