Skip to main content
POST
Run an integration's tool

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Repeat a request safely: the same key and body answer the first request's job again with Idempotent-Replayed: true; the same key with a different body answers idempotency_conflict. 1 to 200 letters, digits, _ or -, such as a UUID

Pattern: ^[A-Za-z0-9_-]{1,200}$

Path Parameters

id
string
required

an integration ID: int_ and 32 lowercase hex digits

Example:

"int_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

tool_id
string
required

A tool ID from GET /v1/tools: tool_ and 32 lowercase hex digits

Body

application/json
input
required

The tool's input, as its input_schema describes; {} when it takes none

login_id
string

The saved login to sign in with, when the site has several

Example:

"login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

login
object

A login for this call, used only when the site has no saved login: a username (or email, phone or account number) and password, or mode "code" without a password when the site sends a code. It passes through your client and model provider; without it, the run asks the person on its answer page.

save_login
boolean

Save login for later runs (requires login)

two_factor_method
enum<string>

The two-factor method to use when the site offers several; one the tool supports

Available options:
sms,
call,
email,
authenticator,
push
allow_sign_out_other_device
boolean

Lets this run confirm the site's prompt to sign out another of your devices or sessions, if that prompt appears during sign-in. Off by default, and the run then stops before the prompt and changes nothing.

allow_trust_this_device
boolean

Lets this run confirm the site's prompt to trust this browser for later sign-ins, if that prompt appears during sign-in. Off by default, and the run then stops before the prompt and changes nothing.

correct_login
enum<boolean>

Fix the rejected saved login named by login_id during this run

Available options:
true
redact_at_rest
boolean

Staging and preview only: true seals what this job stores and redacts it once it settles, false keeps it readable, overriding the environment's setting. Production refuses a request that names it with invalid_request.

shape
string

Your saved shape of this tool, to get its result in that form; the job's shape says if it applied.

Example:

"shp_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

location
enum<string>

The country websites see this run coming from: US, GB, FR, DE or SG. Without it, the run uses the tool's location, which this doesn't change. Private tools on Business accounts only.

Available options:
US,
GB,
FR,
DE,
SG
proxy
string

Your own proxy for this call, as http://username:password@host:port [blocked], in place of Pomerado's: every browser of the call goes through it, on every website, and the call ends if it can't connect through it. Leave out location when you pass it. Pomerado keeps it only until this call and any repair it starts have ended. Private tools on Business accounts only.

Required string length: 1 - 2048
payment
object

Only for a tool that pays: the payer profile and payment method to pay with, the shipping address when not the profile's default, and the most the order may total

Response

The job this Idempotency-Key already started, with Idempotent-Replayed: true

id
string
required

a job ID: job_ and 32 lowercase hex digits

Example:

"job_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

type
enum<string>
required
Available options:
run,
build
status
enum<string>
required
Available options:
queued,
running,
needs_input,
paused,
succeeded,
failed,
cancelled
tool_id
string | null
required
input_request
object | null
required
result
any
required
result_status
enum<string> | null
required
Available options:
available,
delivered,
expired
result_expires_at
string | null
required

a string to be decoded into a Date

write_status
enum<string> | null
required

Whether a write tool's run, or a write build, changed the website. Null for a read, or while a repair is still working on a run's write that may have applied: the repair may still complete it, and once it ends this says what happened. pending: the website accepted the change and was still working on it when the run ended, after Pomerado waited up to a minute. Don't run the tool again

Available options:
not_attempted,
may_have_applied,
applied,
not_applied,
pending
login_save
object | null
required
error
object | null
required
message
string | null
required
maintenance
object | null
required
build
object | null
required
watch_url
string
required
created_at
string
required

a string to be decoded into a Date

updated_at
string
required

a string to be decoded into a Date

completed_at
string | null
required

a string to be decoded into a Date

pause
object
result_file
object | null
result_preview
any
browser_time_zone
string

The IANA time zone, such as America/New_York, of the clock of the browser that read the run's result. Times the website works out from the visitor's clock, such as a delivery estimate or "today at 4:01 PM", are in this zone; times tied to a place, such as a flight's departure or a store's hours, are usually that place's local time. Present when the run knows the zone its result was read in.

write_progress
enum<string> | null
Available options:
no_change,
signed_in_only,
may_have_submitted,
submitted
stop_reason
enum<string>

Why a job told to stop stops, present while it stops (status running) and once it ended cancelled: cancel_requested when a cancel of this job arrived (from its caller, the account's owner or Pomerado support), access_revoked when the access that started it was revoked (its app's connection, API key, session or access to its saved login), account_deleted, or logins_unavailable when the account's saved logins became unavailable. Absent otherwise, and from an older backend

Available options:
cancel_requested,
access_revoked,
account_deleted,
logins_unavailable
stopped_after
string

A write that succeeded with the website's refusal after an earlier step: that step's name. The website may have kept something from it, as message says

purchase
object

A paying run's purchase, its newest when a retry made another: created, awaiting_cardholder while the cardholder's approval on the card network's page waits, ready, filled once the checkout has the payment method, then succeeded, declined (the store refused it), uncertain (the checkout had the payment method and the outcome is unknown, so it may have charged) or not_charged with its failure. No card data beyond the network token's last four

shape
object

A run that named one of your shapes: what it did. applied: the result is in the shape's form, paging fields copied on. skipped: the result is the tool's own, and reason says why. new_fields: fields the tool returns now that the shape leaves out. message says why it was skipped and how to add new fields

site_url
string | null

The website's https origin the job was asked for: a build's site_url, or the site of the tool a run runs

site_name
string | null

The site's name: its tool's integration's; null until the job has a tool, such as a build that hasn't published yet

task
string | null

A build's task, or a requested change, as it was sent; null for a run and a job accepted before Pomerado kept tasks

tool_name
string | null

The name of the tool tool_id names, as GET /v1/tools shows it

waiting_since
string | null

When the question input_request asks was asked; null when the job asks none

answered_questions
object[]

The questions the job asked and its member answered, oldest first; a secret, login or code shows only that it was answered

warnings
object[]

What to tell the person about a build or requested change, as is, or, on the answer that accepted a run, about its call. Absent when there is none

stop
string

Present once the job has ended: what the agent following it does now. Absent while the job may still change or a repair works to confirm the result a failed run kept, and from an older backend

started_by
object

Who started the job. A Business team's Owners and Admins also read their teammates' jobs

release_id
string

The Pomerado release that ran the job: its latest attempt's, or a requested change's repair's once it started. Absent before a worker takes the job, and from an older backend.

tip
string
queue
object

How long the job waited to run, apart from its running time. Absent from an older backend