cURL
curl --request POST \ --url https://api.vectorify.ai/v1/query \ --header 'Api-Key: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "text": "how many invoices are in draft status?", "collections": [ "invoices" ], "tenant": 235611, "identifier": { "id": "123", "name": "John Doe", "email": "john@example.com" } }'
{ "data": { "id": "<string>", "chat_id": "<string>", "role": "<string>", "user": { "id": "<string>", "name": "<string>", "email": "<string>", "avatar": "<string>", "created_at": "<string>" }, "text": "<string>", "text_html": "<string>", "identifier": "<string>", "feedback": "<string>", "created_at": "<string>" } }
Ask questions about your data. Use the chats endpoint to start a conversation with follow-up questions.
chats
ChatMessage
The response is of type object.
object
Was this page helpful?