Skip to main content
Call the REST API from your backend with an API key. This guide runs a Google Flights search, follows its job and receives a webhook when the job finishes.

Set up

Create an API key on the Dashboard under Settings, then API keys, and load it into POMERADO_API_KEY from your secret manager.

Find the tool

Run it

For a write tool, use POST /v1/runs with an Idempotency-Key header, so a retry never acts on the site twice.

Follow the job

Read the job until it finishes or asks a question, waiting Retry-After seconds between reads:
A job with status needs_input waits on a person: send them its input_request.answer_url.

Receive a webhook

Instead of polling, create a webhook once:
Store the secret in the answer; it’s shown once. Verify each delivery with a Standard Webhooks library, answer with a 2xx within 10 seconds, then read the job, since events never carry a result:
  • A result is kept until its first read, and at most 60 minutes after the job ends, or, for a run whose repair is still confirming the result it kept, at least 60 minutes after that repair ends (never past 24 hours). Only the API key that started the job can read it; include_result=false checks the job without using up the result.
  • An event can arrive more than once. Drop repeats by its id.
  • More in webhooks, wait for a result and the API reference.