POST
/
v1
/
chat
/
users
/
get-or-create
curl --request POST \
  --url https://api.botpress.cloud/v1/chat/users/get-or-create \
  --header 'Content-Type: application/json' \
  --data '{
  "tags": {},
  "integrationName": "<string>",
  "name": "<string>",
  "pictureUrl": "<string>",
  "discriminateByTags": [
    "<string>"
  ]
}'
{
  "user": {
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "tags": {},
    "name": "<string>",
    "pictureUrl": "<string>"
  }
}

Body

application/json

User data

The body is of type object.

Response

200
application/json

Returns a User object if a valid identifier was provided. Returns an Error otherwise

The response is of type object.