Skip to main content
POST
Build a 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}$

Body

application/json
task
string
required

What the tool should do, in plain words

Required string length: 1 - 20000
site_url
string

The website's https origin, which every build needs; a path is dropped, so use start_url for a page

Maximum string length: 2048
start_url
string

An https page on site_url that the user gave, which the build opens unchanged as its start page, path, query and fragment kept

Maximum string length: 4096
effect
enum<string>

read if the tool only looks things up; write if it changes the website (submits, books, saves a form, uploads, updates an account); ask to have the build work it out from the task, asking first only when the task is unclear. Required for a website build.

Available options:
read,
write,
ask
example_input

The input for the one real example the build runs. A file the example needs is the ID of your own upload from POST /v1/files, or a data: URI of at most 512 KB, which the build alone then uses

other_example_inputs
(object | any[] | string | number | boolean | null)[]

Up to 9 more inputs a read build tests the tool on, beside example_input, such as another store, city or an address in another country. Pomerado treats them as your own values, and when the website refuses example_input, such as a record it doesn't have, the build proves the tool on the first of these it serves. Files as in example_input. A write build runs only example_input, so it refuses them

Maximum array length: 9
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)

force_sign_in
boolean

true: sign in before the example even if the task might work signed out, so the tool always signs in. Needs site_url. Otherwise a build tries signed out and signs in (with login_id, login or the site's saved login) only when the task needs an account, such as for a cart, or hits a sign-in wall; the tool then needs a login only if the build signed in.

test_mode

On unless false. A write build submits once, with example_input, and leaves no drafts. Before it publishes it also runs a few other inputs, such as another city, date or party size, and retries earlier form steps with other answers, each stopping before anything saves. It takes longer. These runs never pay, purchase, sign or change sign-in. Set false only when your user asks to skip it. true and "on" are the same. "extreme" runs on any site and explores the form with hundreds of answers before the tool publishes, which takes hours. It saves up to 5 practice drafts filled with made-up people and leaves them on the account, and may submit the final step for real up to 3 times, the example's submit included, only where that step buys or signs nothing, such as getting a quote. The site may rate-limit or flag the account. It never pays, purchases, signs or changes sign-in. The build first asks your user to confirm, and runs as "on" if they say no. Set "extreme" only when your user asks.

confirm_new_build
boolean

true to build even though a similar build of yours on the same website is still running, or an existing tool covers the task but your example differs from its inputs. Send it only after a similar_build_running answer or a build ending that says your example differs from an existing tool's inputs, once your user confirms they want this build too.

browser_handoff
boolean

true when your user asks for a person to review or do a step in the browser, such as checking a form before it's submitted. The tool then pauses at that step and a person finishes it on a Pomerado page. Name the step in task. Leave it out otherwise.

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.

location
enum<string>

The country websites see this tool's builds, changes and runs coming from: US, GB, FR, DE or SG. Without it, a new tool uses its website's country when Pomerado supports it, else the US, and a change keeps the tool's location. 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 to build a tool that pays at checkout: the payer profile and payment method its example pays 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