Get an API key

GET /v1/field-requests/{request_id}

Poll a field request for its status, queue position and, once live, the fetch call that returns the new field.

GET/v1/field-requests/{request_id}

Returns the state of a request filed with POST /v1/field-requests, in the same shape. Save the request_id somewhere that outlives your session: builds take hours.

curl -s https://api.invariant-ai.com/v1/field-requests/fr_226f454ca75abe5eca5c3215f1911cb1 \
  -H "X-API-Key: $INVARIANT_API_KEY"

Once status is live, resume is ready to run:

{
  "request_id": "fr_226f454ca75abe5eca5c3215f1911cb1",
  "status": "live",
  "waiting_on": null,
  "phase": null,
  "queue_position": null,
  "estimated_ready_at": null,
  "resume": {
    "method": "POST",
    "url": "https://api.invariant-ai.com/v1/fetch",
    "body": {"lat": 31.9686, "lng": -99.9018, "fields": ["nearest_gas_compressor_distance_m"]}
  }
}
Key Meaning
request_id fr_ and 32 hex characters.
status See the lifecycle. Terminal: live, matched, blocked, rejected, expired.
waiting_on operator, requester or null.
phase Reserved; always null.
queue_position Your place among open requests while queued, else null.
estimated_ready_at The ready time promised at intake; null once the request ends.
resolved_locations Each example location as a point, with source (coordinate, address, polygon) and resolved_address for addresses.
disposition One entry per ask: ask, disposition, field_id, reason, resume.
resume The /v1/fetch call that returns the field, once live.
context_blob What you sent, unchanged.
created_at, updated_at ISO 8601, UTC.

A request belongs to the key that filed it. Another key's request_id, or one that does not exist, answers 404 field_request_not_found (never 403, which would confirm the id exists). 503 field_requests_unavailable means retry with backoff.