Interested in joining a scientific study?Learn more

Async jobs

Heavy workflows return a job id.

Decode, Decode Sensory, Decode Symptoms, Design, Draft and Get Decode Food ID can return 202 queued. Poll the returned status_url or call the same endpoint with job_id until the status is completed or failed.

Async jobs

Polling pattern

Store the returned job_id and poll the status_url until the job reaches a final state.

{
  "job_id": "8a93f4...",
  "status": "queued",
  "status_url": "https://tirqjzahcinadeulfylj.supabase.co/functions/v1/decode?job_id=8a93f4..."
}