Skip to main content
POST
/
responses
curl -X POST https://api.hindsight.com/api/v1/responses \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {
        "role": "user",
        "content": "What security objections have we encountered with Enterprise customers?"
      }
    ],
    "org_id": "your_org_id",
    "stream": false
  }'
{
  "message": {
    "role": "assistant",
    "content": "<string>",
    "citations": [
      {
        "document_id": "<string>",
        "document_name": "<string>",
        "deal_id": "<string>",
        "deal_name": "<string>",
        "url": "<string>",
        "excerpt": "<string>"
      }
    ]
  },
  "tool_calls": [
    "search_across_deals",
    "search_deal_documents"
  ]
}
curl -X POST https://api.hindsight.com/api/v1/responses \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {
        "role": "user",
        "content": "What security objections have we encountered with Enterprise customers?"
      }
    ],
    "org_id": "your_org_id",
    "stream": false
  }'

Authorizations

Authorization
string
header
required

API key from Hindsight dashboard

Body

application/json
messages
object[]
required

The conversation messages

Minimum array length: 1
org_id
string
required

Your Hindsight organization ID

Example:

"org_123"

stream
boolean
default:false

Whether to stream the response using Server-Sent Events

Response

Successful response

message
object
tool_calls
string[]

The internal tools that were called to generate the response

Example:
[
"search_across_deals",
"search_deal_documents"
]