Skip to main content
POST
/
api
/
v1
/
ask
Ask
curl --request POST \
  --url https://gateway.sanfoundation.com/api/v1/ask \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "question": "What is the current state of US-China trade negotiations?"
}
'
{
  "answer": "<string>",
  "basis": [
    {
      "field": "<string>",
      "reasoning": "<string>",
      "citations": [
        {
          "url": "<string>",
          "title": "<string>",
          "excerpts": [
            "<string>"
          ]
        }
      ],
      "confidence": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

SAN-issued API key (sk_…) issued from the SAN Agents Dashboard (Settings → API Keys). Used by every /api/v1/* endpoint; usage is billed in credits against the owning account's active Stripe subscription.

Body

application/json
question
string
required

The free-form question to answer.

Required string length: 1 - 4000

Response

OK — synthesized answer with field-level basis and citations.

answer
string
required

Synthesized factual answer to the submitted question.

basis
object[]
required

Field-level reasoning and citations supporting the answer.