Skip to main content
POST
Create a client

Authorizations

X-API-KEY
string
header
required

Query Parameters

sendInvite
boolean

Send the client an invite email on creation

Body

application/json

Client to create

email
string<email>
required

Email is the client's email address.

Example:

"jane@example.com"

familyName
string
required

FamilyName is the client's last name.

Example:

"Doe"

givenName
string
required

GivenName is the client's first name.

Example:

"Jane"

companyId
string<uuid>

CompanyID associates the client with a single company.

Example:

"550e8400-e29b-41d4-a716-446655440000"

customFields
object

CustomFields holds custom field values keyed by custom field key.

Response

OK

avatarImageUrl
string<uri>

AvatarImageUrl is the URL of the client's avatar image. Read-only.

Example:

"https://portal.example.com/avatars/alex.png"

companyId
string<uuid>

CompanyID is the ID of the company the client belongs to. In multi-company portals see companyIds.

Example:

"550e8400-e29b-41d4-a716-446655440000"

companyIds
string[]

CompanyIDs lists every company the client belongs to in multi-company portals.

createdAt
string<date-time>

Created is the RFC 3339 timestamp at which the object was created.

Example:

"2024-01-15T09:30:00Z"

creationMethod
enum<string>

CreationMethod records how the client was created. Read-only.

Available options:
client,
directSignUp,
import,
internalUser
Example:

"client"

customFields
object

CustomFields holds custom field values for the client, keyed by custom field key.

deleted
boolean

Deleted is true when the object has been deleted; present only on delete responses.

Example:

true

email
string<email>

Email is the client's email address, used as the unique login identifier within the portal.

Example:

"alex.morgan@example.com"

fallbackColor
string

FallbackColor is the hex color (e.g. "#4F46E5") used as the avatar background when no avatar image is set. The native pattern documents intent; the constraint is re-applied to the spec by the enrich-openapi post-processing step.

Pattern: ^#[0-9a-fA-F]{6}$
Example:

"#4F46E5"

familyName
string

FamilyName is the client's last (family) name.

Example:

"Morgan"

firstLoginDate
string | null

FirstLogin is the timestamp of the client's first login. Read-only.

Example:

"2024-01-15T09:30:00Z"

givenName
string

GivenName is the client's first (given) name.

Example:

"Alex"

id
string

ID is the unique identifier of the object.

Example:

"550e8400-e29b-41d4-a716-446655440000"

inviteUrl
string<uri>

InviteUrl is the one-time invite link, returned only when an invite has just been sent. Read-only.

Example:

"https://portal.example.com/invite/abc123"

invitedBy
string

InvitedBy is the ID of the internal user who invited the client, when applicable. Read-only.

Example:

"550e8400-e29b-41d4-a716-446655440001"

lastLoginDate
string | null

LastLogin is the timestamp of the client's most recent login. Read-only.

Example:

"2024-02-20T14:05:00Z"

object
enum<string>

Object is the type of the object (e.g. "client", "company").

Available options:
client,
internalUser,
company,
customField,
customFieldOption,
file,
fileChannel,
folder,
messageChannel,
message,
notification
status
enum<string>

Status is the client's lifecycle status. Server-managed (read-only).

Available options:
unknown,
deleted,
active,
notInvited,
invited
Example:

"active"

updatedAt
string<date-time>

Updated is the RFC 3339 timestamp at which the object was last updated.

Example:

"2024-02-20T14:05:00Z"