Chat API
- Introduction
- Endpoints
- GETgetConversation
- DELdeleteConversation
- POSTcreateConversation
- GETlistConversations
- POSTgetOrCreateConversation
- GETlistenConversation
- GETlistMessages
- GETgetMessage
- DELdeleteMessage
- POSTcreateMessage
- POSTaddParticipant
- GETlistParticipants
- DELremoveParticipant
- GETgetParticipant
- GETgetUser
- PUTupdateUser
- DELdeleteUser
- POSTcreateUser
- POSTgetOrCreateUser
- GETgetEvent
- POSTcreateEvent
- GET
Admin API
- Getting started
- Concepts
- Endpoints
Files API
Tables API
- Getting Started
- Endpoints
Runtime API
- Getting Started
- Concepts
- Endpoints
createUser
Creates a new User. This operation can only be called when using the shared encryption key.
POST
/
users
curl --request POST \
--url https://chat.botpress.cloud/{webhookUrl}/users \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"pictureUrl": "<string>",
"profile": "<string>",
"id": "<string>"
}'
{
"user": {
"id": "<string>",
"name": "<string>",
"pictureUrl": "<string>",
"profile": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"key": "<string>"
}
Body
application/json
User data
The body is of type object
.
Response
201
application/json
Returns a [User](#schema_user)
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://chat.botpress.cloud/{webhookUrl}/users \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"pictureUrl": "<string>",
"profile": "<string>",
"id": "<string>"
}'
{
"user": {
"id": "<string>",
"name": "<string>",
"pictureUrl": "<string>",
"profile": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"key": "<string>"
}