Arbituro docs
Write endpoints
Six calls put something into a project. They propose a change, record evidence that an acceptance criterion is met, post a note, file a job, link a pull request and file a job’s result. None of them decides anything or changes a job’s title, description or acceptance criteria.
Before you write
- Writing needs the right to change work in the project. If your workspace role or your role in the project is Viewer, every write gets 403. See People and roles.
- Send the body as JSON, with
Content-Type: application/json. -
A write returns 201 Created. Its
messagesays what happened, and its other fields give what your program needs next. - Writes are made under your name. Proposals, claims, linked pull requests and filed results also show in What happened on the job, with your name and your program’s name.
Propose a change
/api/v1/projects/{project}/jobs/{job}/proposals Operation propose_job_update Proposes a new title or description for a job, or acceptance criteria to add to it. The job doesn’t change. Its owner is asked to accept, edit or dismiss the proposal.
Body
-
titlestring, optional - The title you propose, up to 300 characters. Leave it out to keep the title.
-
descriptionstring, optional - The description you propose, in Markdown, up to 8,000 characters. Leave it out to keep the description.
-
rationalestring, optional - Why you propose it. The person deciding sees it, so say what you found.
-
doneWhenarray, optional - Acceptance criteria to add, up to five, each with the fields below. Leave it out to propose none.
Send at least one of title, description and doneWhen.
Each proposed criterion
-
textstring, required - What is true when this part of the job is done, in one sentence of up to 500 characters.
-
checkstring, optional - The name of the CI check that decides it, such as
test, exactly as your CI names it. Up to 100 characters. Leave it out for a criterion a person decides.
When the owner accepts, each criterion is added beside the job’s own. A proposal never changes or removes a criterion that is already there.
When a first look is under way
A new job can get a first look. An Arbituro agent asks a person questions, then proposes the job’s title,
objective, expected result and acceptance criteria. While it is under way or waiting to start, the job’s
firstLook says so.
Your proposal stops that first look, so nobody is asked the same things twice. Anything the agent had proposed is
set aside, and the first look starts again only if a person starts it. Shaping the job is then up to you, so
propose everything it needs at once. The response’s message says when your proposal stopped a first
look.
Response
-
messagestring - What happened, in plain sentences.
-
proposalIdinteger - The proposal’s ID.
Example
curl -X POST \
"https://app.arbituro.com/api/v1/projects/WEB/jobs/WEB-12/proposals" \
-H "Authorization: Bearer $ARBITURO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "Downloading an invoice PDF on iOS Safari answers 404, because the PDF is sent with the wrong content type. Desktop browsers are fine.",
"rationale": "The cause is known now. Jo found it while fixing the download.",
"doneWhen": [
{
"text": "The end-to-end download test passes.",
"check": "e2e"
}
]
}' {
"message": "Proposed. WEB-12 is unchanged; the proposal is waiting on a person to accept, edit or dismiss it.",
"proposalId": 482
} Errors
- 400
- Nothing was proposed, more than five criteria were, or a title, description, criterion or check name is empty or too long.
- 409
- A proposal is already waiting on the job, and it has to be decided before another is made. A proposal from a first look under way doesn’t count, because yours stops it.
Claim a criterion is met
/api/v1/projects/{project}/jobs/{job}/claims Operation claim_done Records evidence that one acceptance criterion is met, and asks the person who decides it. The criterion stays undecided until they decide, with your evidence in front of them.
Only a criterion a person decides can be claimed. A CI check decides its own criterion, on a pull request linked to the job, so link the pull request instead. An approved message decides its criterion when the message is sent.
Body
-
clausestring, required - The criterion’s text, or enough of its start to pick out one criterion.
-
evidencestring, required - What you checked and what it showed. The person deciding reads it first. Up to 2,000 characters are kept.
Response
-
messagestring - What happened, in plain sentences.
-
clausestring - The criterion’s full text.
-
deciderstring - Who decides it, by name.
Example
curl -X POST \
"https://app.arbituro.com/api/v1/projects/WEB/jobs/WEB-12/claims" \
-H "Authorization: Bearer $ARBITURO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"clause": "A download completes",
"evidence": "Downloaded invoice 1042 in Safari on iOS 18.1 against staging, and the PDF opened. Run: https://ci.example.com/runs/812"
}' {
"message": "Recorded against \"A download completes on iOS Safari.\". The clause is still undecided — Jo Park ticks it.",
"clause": "A download completes on iOS Safari.",
"decider": "Jo Park"
} Errors
- 400
- No evidence, no criterion named, or text that matches more than one criterion.
- 404
- No criterion on the job starts with that text.
- 409
- The criterion is decided by a CI check, automatically, or by a message being sent. The message says what decides it instead.
Post a note
/api/v1/projects/{project}/jobs/{job}/notes Operation post_note Adds a note to the job under your name. People you @mention who can open the job are told, as they would be for a note you wrote in Arbituro. Mentioning an agent doesn’t start it.
Body
-
bodystring, required - The note, in Markdown, up to 8,000 characters.
Response
-
messagestring - What happened, in plain sentences.
-
noteIdinteger - The note’s ID.
Example
curl -X POST \
"https://app.arbituro.com/api/v1/projects/WEB/jobs/WEB-12/notes" \
-H "Authorization: Bearer $ARBITURO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": "The fix is on staging, ready to check on a phone."
}' {
"message": "Posted on WEB-12.",
"noteId": 9140
} Errors
- 400
- The note is empty, or too long.
File a job
/api/v1/projects/{project}/jobs Operation create_job Files a new job in the project’s backlog under your name. It has no owner, no agent and no acceptance criteria, and nothing starts on it until a person picks it up.
Body
-
titlestring, required - What needs doing, as a short title.
-
descriptionstring, optional - What the job is, in Markdown. Say what you found and why it matters.
Response
-
messagestring - What happened, in plain sentences.
-
keystring - The new job’s key.
-
titlestring - Its title.
The Location header gives the new job’s path, such as /api/v1/projects/WEB/jobs/WEB-31.
Example
curl -X POST \
"https://app.arbituro.com/api/v1/projects/WEB/jobs" \
-H "Authorization: Bearer $ARBITURO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Retry a failed invoice download",
"description": "A download that fails on a slow connection leaves the customer with nothing. Retry once before showing an error."
}' {
"message": "Created WEB-31: \"Retry a failed invoice download\" (in the backlog).",
"key": "WEB-31",
"title": "Retry a failed invoice download"
} Errors
- 400
- The title is missing.
Link a pull request
/api/v1/projects/{project}/jobs/{job}/pull-requests Operation link_pull_request Puts a pull request on the job, so the job shows it with its state and its CI checks. Arbituro reads the pull request from GitHub and writes nothing there.
Arbituro links a pull request by itself when its branch, its title or one of its commits names the job’s key, such as WEB-12. Use this call for a pull request that doesn’t, such as one from a fork.
Once the pull request is on the job, each criterion a CI check decides is decided by that check on this pull request. Checks that have already finished count. Nothing else about the job changes.
The pull request has to be in a GitHub repository linked to the job’s project, and Arbituro’s GitHub app has to be able to see it. See Link repositories to a project.
Body
-
urlstring, required - The pull request’s github.com address, such as
https://github.com/acme/web/pull/41.
Response
-
messagestring - What happened, in plain sentences.
-
pullRequeststring - The pull request as GitHub names it, such as
acme/web#41. -
urlstring - Its address.
Example
curl -X POST \
"https://app.arbituro.com/api/v1/projects/WEB/jobs/WEB-12/pull-requests" \
-H "Authorization: Bearer $ARBITURO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://github.com/acme/web/pull/41"
}' {
"message": "Linked acme/web#41 to WEB-12. The job shows it with its state and CI. A clause a named check decides is decided by that check on this pull request; the rest still waits on a person.",
"pullRequest": "acme/web#41",
"url": "https://github.com/acme/web/pull/41"
} Errors
- 400
- The address isn’t a github.com pull request’s, such as an issue’s address.
- 404
- Arbituro’s GitHub app can’t see the pull request.
- 409
- The pull request is already on the job, perhaps because Arbituro linked it by itself. The message then says it is already on the job. A 409 also means the project has no linked repository, the repository isn’t one the project can reach, or GitHub isn’t available.
- 503
- GitHub didn’t respond, so nothing was linked. Try again shortly.
File a job’s result
/api/v1/projects/{project}/jobs/{job}/results Operation file_result
Files the document a job asks for, written in Markdown. It works on a job whose
expectedResult is a document, a one-page memo or a slide deck.
The result is filed in that shape, under your name.
Filing decides nothing. No criterion is marked met, and the job isn’t finished. The person who judges the job is asked to finish it, and finishing it is how they accept the result.
Arbituro checks the result as it is filed. If a reader would see problems in it, nothing is filed and the message lists each problem to fix. To change a result, file the whole document again. The new version takes the place of the one filed before it, which stays on the job as history.
Body
-
markdownstring, required - The whole result, in Markdown, up to 200,000 characters. In a slide deck, a
---line with a blank line above it starts the next slide. Each slide opens with its heading. -
titlestring, optional - What to call it, up to 300 characters. Leave it out to use the job’s title.
Response
-
messagestring - What happened, in plain sentences.
-
titlestring - What the result is called.
-
versioninteger - Which version of the job’s result this is. Filing again makes the next one.
-
judgestring or null - Who is asked to finish the job, by name.
nullwhen nobody judges it, and then everyone who can change the project is asked.
Example
curl -X POST \
"https://app.arbituro.com/api/v1/projects/WEB/jobs/WEB-27/results" \
-H "Authorization: Bearer $ARBITURO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"markdown": "# Invoice downloads on iOS Safari\n\n## What happened\n\nInvoice PDFs were sent with the wrong content type, so iOS Safari could not open them.\n\n## What changed\n\nThe PDF is now sent as application/pdf, and downloads work on iOS 18.",
"title": "Invoice downloads on iOS Safari"
}' {
"message": "Filed \"Invoice downloads on iOS Safari\" as WEB-27's result, a document (version 1). Nothing is ticked and the job is not finished: Sam Reyes is asked to finish it, and finishing is the verdict. To change it, file the whole document again; the new version takes this one's place.",
"title": "Invoice downloads on iOS Safari",
"version": 1,
"judge": "Sam Reyes"
} Errors
- 400
- The result is empty or too long, the title is too long, or a reader would see problems in it.
- 409
- The job leaves something other than a document, memo or deck, or it is finished. A 409 also means the job already holds exactly this text, so nothing was filed.
Something missing or wrong? Email support@arbituro.com.