POST
/
v1
/
users

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Body

application/json
username
string
required

The unique string used to identify a user.

Minimum length: 1
email
string
required

email of the user.

userId
string

user identifier

title
string

title of the user. If sent it has to contain 1 character or more.

firstName
string

first name of the user. If sent it has to contain 1 character or more.

lastName
string

last name of the user. If sent it has to contain 1 character or more.

primaryPhone
string

primary phone of the user. If sent it has to contain 2 characters or more.

Minimum length: 2
status
enum<string>

status of the user. Default value will be PENDING.

Available options:
ACTIVE,
INACTIVE,
PENDING
role
string

role of the user

userPoolId
string

orgId from identity if present

additionalAttributes
object

Contains all additional attributes not captured in the schema.

Response

200 - application/json
_id
string
required

Fabric internal id of the record.

username
string
required

user name of the user. It must be UNIQUE.

isDeleted
boolean
required

flag that indicates if the record is deleted

createdAt
string
required

date of creation of the record

updatedAt
string
required

laste date of update of the record

userId
string

user identifier

title
string

title of the usr

firstName
string

first name of the user

lastName
string

last name of the user

email
string

email of the user

primaryPhone
string

primary phone of the usr

status
enum<string>

status of the user. Default value will be PENDING.

Available options:
ACTIVE,
INACTIVE,
PENDING
role
string

role of the user

additionalAttributes
object

Contains all additional attributes not captured in the schema.