Users

Create a conversation user

post

Creates a new conversation user using either an email or phoneNumber.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Body
or
or
Responses
post
/external/users
get

Retrieves a user by their email, phone number or fkId, along with their conversation IDs for the current agent.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Query parameters
emailstringOptional

User email

Example: [email protected]
phoneNumberstringOptional

User phone number

Example: +1234567890
fkIdstringOptional

User fkId

Example: 123456
Responses
chevron-right
200

Successfully retrieved the user and conversation ids

application/json
conversationIdsstring[]Required

Conversation ids

Example: ["5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b","5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b"]
get
/external/users/search

Get conversation user by ID

get

Retrieves a conversation user by their unique identifier.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Path parameters
idstringRequired

Unique identifier of the conversation user.

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Responses
chevron-right
200

Successfully retrieved the conversation user.

application/json
idstringRequired

User ID

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
firstNamestringRequired

User first name

Example: John
lastNamestringRequired

User last name

Example: Doe
contextstringOptional

User context

Example: Support
sourcestringOptional

User source

Example: webchat
fkIdstringOptional

User fkId

Example: 123456
fkUserIdstringOptional

User fkUserId

Example: 123456
emailstringOptional

User email

Example: [email protected]
phoneNumberstringOptional

User phone number

Example: +1234567890
metadataobjectOptional

Conversation user metadata

Example: {"customData":{"key1":"value1","key2":"value2"}}
get
/external/users/{id}

Delete conversation user by ID

delete

Delete a conversation user by their unique identifier.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Path parameters
idstringRequired

Unique identifier of the conversation user.

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Responses
delete
/external/users/{id}

No content

Last updated