curl --request POST \
--url https://chat.botpress.cloud/{webhookUrl}/users/get-or-create \
--header 'Content-Type: application/json' \
--header 'x-user-key: <x-user-key>' \
--data '{
"name": "<string>",
"pictureUrl": "<string>",
"profile": "<string>"
}'
{
"user": {
"id": "<string>",
"name": "<string>",
"pictureUrl": "<string>",
"profile": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Get or create a new User
curl --request POST \
--url https://chat.botpress.cloud/{webhookUrl}/users/get-or-create \
--header 'Content-Type: application/json' \
--header 'x-user-key: <x-user-key>' \
--data '{
"name": "<string>",
"pictureUrl": "<string>",
"profile": "<string>"
}'
{
"user": {
"id": "<string>",
"name": "<string>",
"pictureUrl": "<string>",
"profile": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Authentication Key
User data
The body is of type object
.
Returns a User
The response is of type object
.
Was this page helpful?