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

Body

application/json
Conversation data

The body is of type object.

Response

200
application/json
Returns a [Conversation](#schema_conversation) object if a valid identifier was provided. Returns [an error](#errors) otherwise

The response is of type object.