/query endpoint to submit messages and retrieve responses programmatically.
Be sure to:
- Replace
{agent_id}in the url path with a validagent_id - Replace
$API_KEYwith your API key - Replace the
contentfield with a question that is relevant to the document(s) you uploaded
- The body of the response
- The sources retrieved from the datastore that are relevant to the response
- Attributions/citations of sources to specific text spans in the response
You can query your agent only after at least one document in the datastore has been fully processed. Please review the following instructions for verifying your document’s upload status.