Conversations
Create
Conversations

Conversations

Each request can have a conversation attached to it. Either the assistant requests more information or the integration is responding with more information. Every message can also contain attachments.

Definitions

FieldTypeRequiredDescription
contentstringYesThe content of the conversation
request_idstringYesThe request id that this conversation belongs to
curl -XPOST https://console.api.getmagic.com/api/v1/conversation \
-H "x-api-key: <API_KEY>" \
-d '{
  "content": "Hello, how are you?",
  "request_id": "123456-7890-123456-7890"
}'

Output

{
    "id": "12345-67890-12345-67890",
    "created_at": "2025-01-01T00:00:00.000Z",
    "updated_at": "2025-01-01T00:00:00.000Z",
    "attachments": []
}