$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "answers": [
< {
< "id": "sample-a",
< "query": "Analytics for small shops",
< "provider": "Sample engine A",
< "answer": "Acme Analytics is one option. See [Acme guide](https://docs.acme.example/guide?utm_source=demo). Northstar is also mentioned.",
< "citations": [
< {
< "url": "https://docs.acme.example/guide?utm_source=demo#top"
< }
< ]
< },
< {
< "id": "sample-b",
< "query": "Analytics for small shops",
< "provider": "Sample engine B",
< "answer": "Northstar is an option. [Independent comparison](https://review.example/compare) mentions Acme without linking its site."
< }
< ],
< "brands": [
< {
< "name": "Acme",
< "aliases": [
< "Acme Analytics"
< ],
< "domains": [
< "acme.example"
< ]
< },
< {
< "name": "Northstar",
< "domains": [
< "northstar.example"
< ]
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/danielmichalek~ai-answer-citation-auditor/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'