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
}Creates multiple facts in a single request.
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
}Your unique Avido API key
Your unique Avido Application ID
Request body for bulk creating facts
Array of facts to create
1 - 1000 elementsShow child attributes
Successfully created facts
Response for bulk fact creation
Number of facts created
0 <= x <= 90071992547409915