User management

Create an invitation

Creates organization invitation.

post/v1/organizations/{organizationId}/invitations

Request

  • Base URL
    https://api.clickhouse.cloud
  • Auth
    HTTP basic

Path parameters

organizationId, string uuid required

ID of the organization to invite a user to.

Request body

InvitationPostRequest required
email, string email required

Email of the invited user. Only a user with this email can join using the invitation. The email is stored in a lowercase form.

role, 'admin' | 'developer'

DEPRECATED. Use assignedRoleIds instead. Role to assign to the invited user in the organization.

assignedRoleIds, string[]

List of role IDs to assign to the invited user when they accept the invitation

Example request

{
  "email": "jane.doe@example.com"
}

Response

Successful response

object required
status, number

HTTP status code.

requestId, string uuid

Unique id assigned to every request. UUIDv4

result, Invitation

Example response

{
  "status": 200,
  "result": {
    "email": "jane.doe@example.com",
    "createdAt": "2026-03-26T20:51:16Z",
    "expireAt": "2026-04-02T20:51:16Z"
  }
}

Changes

No recorded changes to this operation across all 35 revisions of this API.