Skip to main content
POST
/
v1
/
chat
Answer Web
curl --request POST \
  --url https://api.example.com/v1/chat/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "<string>",
  "content": "<string>",
  "user_context": {
    "id": 123,
    "email": "<string>",
    "updated_at": "<string>",
    "is_active": true,
    "team_id": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "connectors": [
      {
        "name": "<string>",
        "id": [
          123
        ]
      }
    ],
    "vector_store": {
      "id": 123,
      "index_name": "<string>",
      "environment": "<string>",
      "namespaces": [
        "<string>"
      ],
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "provider": "<string>"
    }
  },
  "timestamp": "<string>",
  "chat_id": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Body

application/json
role
string
required
content
string
required
user_context
UserContext · object
required
timestamp
string
chat_id
string

Response

Successful Response