Ashby Application Form Schema
ashby.application-form-schema
Get the sections and fields of a job's public application form.
At a glance
- Endpoint ID
ashby.application-form-schema- Price
- 1 credit per call; failed calls are free
- Runs for up to
- 30 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "ashby.application-form-schema", "input": { "board_slug": "ashby", "job_id": "0f5dbf59-687b-4d88-88a7-73ee0a66b48d" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "ashby.application-form-schema", "input": { "board_slug": "ashby", "job_id": "0f5dbf59-687b-4d88-88a7-73ee0a66b48d" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "ashby.application-form-schema", "input": { "board_slug": "ashby", "job_id": "0f5dbf59-687b-4d88-88a7-73ee0a66b48d" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
board_slug |
string | yes | The board name. | ashby |
job_id |
string | yes | The job's ID. | 0f5dbf59-687b-4d88-88a7-73ee0a66b48d |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "form_id": "55e5f91f-1bea-4d76-9af2-b539fa929b0a", "controls": [ { "title": "Submit", "identifier": "d94d2ac4-109e-4459-8ce1-a2b9c7c9c48d" } ], "sections": [ { "title": "Basic Info", "fields": [ { "title": "Name", "field": "Name", "path": "_systemfield_name", "required": true, "type": "String", "selectable_values": [] }, { "title": "Email", "field": "Email", "path": "_systemfield_email", "required": true, "type": "Email", "selectable_values": [] } ] }, { "title": "Your Experience", "description": "Some questions are not required, but we will prioritize reviewing applicants who answer them over those who don't. Be brief and direct, we …", "fields": [ { "title": "On a scale of 1 to 4, how experienced are you with application programming?", "description": "Answer across your entire professional history, not counting strictly personal projects.", "field": "On a scale of 1 to 4, how experienced are you with application programming?", "path": "71bb255b-791f-49c8-8993-a3a0a9b143ce", "required": true, "type": "ValueSelect", "selectable_values": [ { "label": "1 - Primarily a system or Linux administrator", "value": "1 - Primarily a system or Linux administrator" }, { "label": "2 - Infra as code and programming tooling, reusable scripts or CLI", "value": "2 - Infra as code and programming tooling, reusable scripts or CLI" } ] }, { "title": "Describe an interesting software abstraction you’ve built and or made major contributions to in a professional context.", "description": "The abstraction should address a real-world problem, have a non-obvious solution, and necessitate an understanding of a complex system or t…", "field": "Describe an interesting software abstraction you’ve built and or made major contributions to in a professional context.", "path": "8656671d-078b-4c4e-9177-ead75a5c911e", "required": false, "type": "LongText", "selectable_values": [] } ] } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
sections[].fields[].title |
string | The question as shown. | Name |
sections[].title |
string | The section's title. | Basic Info |
sections[].fields |
array | The questions in the section. | 3 records |
sections[].fields[].field |
string | The question's name. | Name |
sections[].fields[].path |
string | The question's name in the form. | _systemfield_name |
sections[].fields[].required |
boolean | Whether an answer is required. | true |
sections[].fields[].selectable_values |
array | The choices, when the question has them. | empty in this sample |
sections[].fields[].type |
string | The kind of answer, such as text or a file. | String |
controls |
array | The form's buttons. | 1 records |
controls[].identifier |
string | d94d2ac4-109e-4459-8ce1-a2b9c7c9c48d | |
controls[].title |
string | The button's label. | Submit |
form_id |
string | Ashby's ID for the application form. | 55e5f91f-1bea-4d76-9af2-b539fa929b0a |
sections |
array | The application form's sections. | 2 records |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Ashby Jobs endpoints
Something missing or unclear? Ask the team that builds the Ashby Jobs endpoints.