Skip to main content
POST
Answer a job's question
Secrets and website logins sent here pass through your client. To keep them private, give the person the input request’s answer_url instead. A browser_handoff question can’t be answered here: a person finishes it in the job’s live browser at answer_url. Sending the same answers again counts as one answer.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

a job ID: job_ and 32 lowercase hex digits

Example:

"job_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

Query Parameters

include_result
enum<string>

false to read the job without its result, which stays for a later read; result_status says whether one waits. Default true.

Available options:
true,
false

Body

application/json
input_request_id
string
required

The input_request.id you are answering

Pattern: ^req_[0-9a-f]{32}$
Example:

"req_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

answers
object
required

Answers keyed by question ID. choice: an option ID, {"other": text} (allow_other) or {"option": id, "note": text} (allow_note). multi_choice: option IDs, or {"options": [ids]} with "other" (allow_other) and "note" (allow_note). text and secret: a string; a secret with allow_not_received also takes {"not_received": true} when the person didn't get the code: a run then ends without signing in, and any other job has the website send a new code once and asks again. confirm: {"confirmed": true|false}. login: {"username", "identifier_kind", "password", "save_login"}, where username is an identifier its fields name (username, email, phone or account_number), left out when they name none, and password is sent only when fields lists it. When fields names several identifiers, send whichever one you have and name it in identifier_kind; left out, it counts as email when it holds "@", else as the first other one listed. browser_handoff: not answered here; send the person answer_url, where they answer it when done (handoff_answered_on_page).

Response

The job, continuing

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