Skip to main content
POST
/
v0
/
facts
/
bulk
Bulk create facts
curl --request POST \
  --url https://api.avidoai.com/v0/facts/bulk \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-application-id: <api-key>' \
  --data '
{
  "facts": [
    {
      "statement": "The refund policy allows returns within 30 days of purchase.",
      "scope": "TOPIC",
      "status": "ACTIVE",
      "sourceQuote": "Returns are accepted within 30 days.",
      "sourceDocumentId": "123e4567-e89b-12d3-a456-426614174000",
      "quickstartId": "123e4567-e89b-12d3-a456-426614174000",
      "generatedBy": "MANUAL",
      "topicIds": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ]
    }
  ]
}
'
{
  "count": 5
}

Authorizations

x-api-key
string
header
required

Your unique Avido API key

x-application-id
string
header
required

Your unique Avido Application ID

Body

application/json

Request body for bulk creating facts

facts
CreateFactRequest · object[]
required

Array of facts to create

Required array length: 1 - 1000 elements

Response

Successfully created facts

Response for bulk fact creation

count
integer
required

Number of facts created

Required range: 0 <= x <= 9007199254740991
Example:

5