POST

Create Submission

POST /api/v1/submissions

Submit answers for Track 1 (AgriARC Static) evaluation. Accepts a JSON payload with answers keyed by case ID. Each answer must include the response text and optional confidence score. Results are computed server-side and returned asynchronously via the submission status endpoint.

Request Body

{
  "track": 1,
  "version": "2026-Q1",
  "answers": {
    "T-001": {
      "response": "Sow soybean between June 15-20...",
      "confidence": 0.85
    },
    "T-002": {
      "response": "Fall armyworm severity: Grade 3...",
      "confidence": 0.72
    }
  }
}

Response

{
  "submission_id": "sub_a1b2c3d4",
  "status": "processing",
  "track": 1,
  "case_count": 2,
  "created_at": "2026-04-06T10:30:00Z",
  "estimated_completion": "2026-04-06T10:32:00Z"
}

Example

import requests

resp = requests.post(
    "https://api.krishiarc.org/api/v1/submissions",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "track": 1,
        "version": "2026-Q1",
        "answers": {
            "T-001": {
                "response": "Sow soybean between June 15-20...",
                "confidence": 0.85,
            }
        },
    },
)
print(resp.json())