Maximum number of results per page. May be used in combination with pageKey to change the number of results in between page requests.
Dixa API (beta)
Request
Lists all end users in an organization. It is possible to filter by one of the mutually exclusive parameters: email or phone number. In case both are provided, an error is returned.
Note: Custom attributes are not part of the response at this point. If you need to get custom attributes for a user use the GET /endusers/{userId} endpoint
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers
- https://dev.dixa.io/beta/endusers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers?pageLimit=0&pageKey=string&email=string&phone=string&externalId=string' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "data": [ { … }, { … }, { … }, { … } ] }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers
- https://dev.dixa.io/beta/endusers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"data": [
{
"id": "d4826125-559f-496f-ad71-a0340f0cae06",
"displayName": "Alice Brown",
"email": "alice@brown.com",
"phoneNumber": "+551155256325",
"additionalEmails": [
"alice@secondary.email"
],
"additionalPhoneNumbers": [
"+5566778899"
],
"firstName": "Alice",
"lastName": "Brown",
"middleNames": [
"J."
],
"avatarUrl": "http://avatar.url",
"externalId": "#12345678"
}
]
}'{ "data": [ { … }, { … } ] }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers
- https://dev.dixa.io/beta/endusers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"displayName": "Alice Brown",
"email": "alice@brown.com",
"phoneNumber": "+551155256325",
"additionalEmails": [
"alice@secondary.email"
],
"additionalPhoneNumbers": [
"+5566778899"
],
"firstName": "Alice",
"lastName": "Brown",
"middleNames": [],
"avatarUrl": "http://avatar.url",
"externalId": "#12345678"
}'{ "data": { "id": "434ce9f5-14c8-4be1-a0a8-f755010deb9b", "createdAt": "2020-12-16T09:41:43Z", "displayName": "Alice Brown", "email": "alice@brown.com", "phoneNumber": "+551155256325", "additionalEmails": [ … ], "additionalPhoneNumbers": [ … ], "firstName": "Alice", "lastName": "Brown", "middleNames": [], "avatarUrl": "https://files.dixa.io/public/image_id", "externalId": "#12345678", "customAttributes": [ … ] } }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers
- https://dev.dixa.io/beta/endusers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"data": [
{
"id": "43b1fe06-a7c4-4f34-8e48-b0559e6acdb9",
"displayName": "Alice Brown",
"email": "alice@brown.com",
"phoneNumber": "+551155256325",
"additionalEmails": [
"alice@secondary.email"
],
"additionalPhoneNumbers": [
"+5566778899"
],
"firstName": "Alice",
"lastName": "Brown",
"middleNames": [],
"avatarUrl": "http://avatar.url",
"externalId": "#12345678"
}
]
}'{ "data": [ { … }, { … } ] }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/bulk
- https://dev.dixa.io/beta/endusers/bulk
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/bulk \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"data": [
{
"displayName": "Alice Brown",
"email": "alice@brown.com",
"phoneNumber": "+551155256325",
"additionalEmails": [],
"additionalPhoneNumbers": [],
"firstName": "Alice",
"lastName": "Brown",
"middleNames": [],
"avatarUrl": "http://avatar.url",
"externalId": "#12345678"
}
]
}'{ "data": [ { … }, { … }, { … }, { … }, { … } ] }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/{userId}
- https://dev.dixa.io/beta/endusers/{userId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/{userId}' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "data": { "id": "434ce9f5-14c8-4be1-a0a8-f755010deb9b", "createdAt": "2020-12-16T09:41:43Z", "displayName": "Alice Brown", "email": "alice@brown.com", "phoneNumber": "+551155256325", "additionalEmails": [ … ], "additionalPhoneNumbers": [ … ], "firstName": "Alice", "lastName": "Brown", "middleNames": [], "avatarUrl": "https://files.dixa.io/public/image_id", "externalId": "#12345678", "customAttributes": [ … ] } }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/{userId}
- https://dev.dixa.io/beta/endusers/{userId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/{userId}' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"displayName": "Alice Brown",
"email": "alice@brown.com",
"phoneNumber": "+551155256325",
"additionalEmails": [
"alice@secondary.email"
],
"additionalPhoneNumbers": [
"+5566778899"
],
"firstName": "Alice",
"lastName": "Brown",
"middleNames": [
"J."
],
"avatarUrl": "http://avatar.url",
"externalId": "#12345678"
}'{ "data": { "id": "434ce9f5-14c8-4be1-a0a8-f755010deb9b", "createdAt": "2020-12-16T09:41:43Z", "displayName": "Alice Brown", "email": "alice@brown.com", "phoneNumber": "+551155256325", "additionalEmails": [ … ], "additionalPhoneNumbers": [ … ], "firstName": "Alice", "lastName": "Brown", "middleNames": [ … ], "avatarUrl": "https://files.dixa.io/public/image_id", "externalId": "#12345678", "customAttributes": [ … ] } }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/{userId}
- https://dev.dixa.io/beta/endusers/{userId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/{userId}' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"displayName": "Alice Brown",
"email": "alice@brown.com",
"phoneNumber": "+551155256325",
"additionalEmails": [
"alice@secondary.email"
],
"additionalPhoneNumbers": [
"+5566778899"
],
"firstName": "Alice",
"lastName": "Brown",
"middleNames": [],
"avatarUrl": "http://avatar.url",
"externalId": "#12345678"
}'{ "data": { "id": "434ce9f5-14c8-4be1-a0a8-f755010deb9b", "createdAt": "2020-12-16T09:41:43Z", "displayName": "Alice Brown", "email": "alice@brown.com", "phoneNumber": "+551155256325", "additionalEmails": [ … ], "additionalPhoneNumbers": [ … ], "firstName": "Alice", "lastName": "Brown", "middleNames": [], "avatarUrl": "https://files.dixa.io/public/image_id", "externalId": "#12345678", "customAttributes": [ … ] } }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/{userId}/anonymize
- https://dev.dixa.io/beta/endusers/{userId}/anonymize
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/{userId}/anonymize?force=false' \
-H 'Authorization: YOUR_API_KEY_HERE'The end user's anonymization request status
Replaced by _type field
Replaced by _type field
{ "data": { "id": "6bf55369-a670-4e6b-9f70-ecdb9913549f", "entityType": "UserAnonymizationType", "_type": "User", "initiatedAt": "2021-12-01T12:46:36.581Z[GMT]", "targetEntityId": "f28fafd6-2e42-4441-943c-388a8e0ef433", "requestedBy": "2b01e4c9-0c3a-47d4-9462-cd5a1a4687f5" } }
The custom attributes of an end user to be patched. This should map the custom attribute id to the desired attribute value. Format: Map[UUID, Option[AttributeValue].
AttributeValue values: String[] if the type of the custom attribute is Select or String if the type of the custom attribute is Text
AttributeValue values: String[] if the type of the custom attribute is Select or String if the type of the custom attribute is Text
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/{userId}/custom-attributes
- https://dev.dixa.io/beta/endusers/{userId}/custom-attributes
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/{userId}/custom-attributes' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"274e5a2c-be0d-42c0-b725-3dd533729f68": "abcdef",
"befae0d9-9679-42b9-af76-e76f64e28429": [
"example1",
"example2"
]
}'{ "data": [ { … }, { … } ] }
Request
Lists conversations requested by an end user.
Note: Custom attributes are not part of the response at this point. If you need to get custom attributes for a conversation use the GET /conversations/{conversationId} endpoint
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/{userId}/conversations
- https://dev.dixa.io/beta/endusers/{userId}/conversations
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/endusers/{userId}/conversations?pageLimit=0&pageKey=string' \
-H 'Authorization: YOUR_API_KEY_HERE'The list of conversations requested by an EndUser
{ "data": [ { … } ] }