Users
Creates a new conversation user using either an email or phoneNumber.
Successfully created a new conversation user.
User already exists.
Invalid API key or secret key. Ensure that you are using a valid authentication key.
Unexpected error occurred while processing the request. Please try again later.
POST /external/users HTTP/1.1
Host: api.raia2.com
Agent-Secret-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 211
{
"firstName": "John",
"lastName": "Doe",
"context": "Support",
"source": "webchat",
"fkUserId": "123456",
"customData": {
"key1": "value1",
"key2": "value2"
},
"phoneNumber": "+1234567890",
"email": "[email protected]",
"fkId": "123456"
}
{
"id": "5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b",
"firstName": "John",
"lastName": "Doe",
"context": "Support",
"source": "webchat",
"fkId": "123456",
"fkUserId": "123456",
"email": "[email protected]",
"phoneNumber": "+1234567890",
"metadata": {
"customData": {
"key1": "value1",
"key2": "value2"
}
}
}
Retrieves a user by their email, phone number or fkId, along with their conversation IDs for the current agent.
User phone number
+1234567890
User fkId
123456
Successfully retrieved the user and conversation ids
Invalid parameters provided.
Invalid API key or secret key. Ensure that you are using a valid authentication key.
User not found.
Unexpected error occurred while processing the request. Please try again later.
GET /external/users/search HTTP/1.1
Host: api.raia2.com
Agent-Secret-Key: YOUR_API_KEY
Accept: */*
{
"user": {
"id": "5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b",
"firstName": "John",
"lastName": "Doe",
"context": "Support",
"source": "webchat",
"fkId": "123456",
"fkUserId": "123456",
"email": "[email protected]",
"phoneNumber": "+1234567890",
"metadata": {
"customData": {
"key1": "value1",
"key2": "value2"
}
}
},
"conversationIds": [
"5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b",
"5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b"
]
}
Retrieves a conversation user by their unique identifier.
Unique identifier of the conversation user.
5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Successfully retrieved the conversation user.
Invalid API key or secret key. Ensure that you are using a valid authentication key.
User not found.
Unexpected error occurred while processing the request. Please try again later.
GET /external/users/{id} HTTP/1.1
Host: api.raia2.com
Agent-Secret-Key: YOUR_API_KEY
Accept: */*
{
"id": "5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b",
"firstName": "John",
"lastName": "Doe",
"context": "Support",
"source": "webchat",
"fkId": "123456",
"fkUserId": "123456",
"email": "[email protected]",
"phoneNumber": "+1234567890",
"metadata": {
"customData": {
"key1": "value1",
"key2": "value2"
}
}
}
Delete a conversation user by their unique identifier.
Unique identifier of the conversation user.
5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Successfully delete the conversation user.
No content
Invalid API key or secret key. Ensure that you are using a valid authentication key.
Conversation user not found.
Unexpected error occurred while processing the request. Please try again later.
DELETE /external/users/{id} HTTP/1.1
Host: api.raia2.com
Agent-Secret-Key: YOUR_API_KEY
Accept: */*
No content