Developers

Files, artifacts and pull requests.

Send designs and logs in, and get screenshots, recordings and pull requests out.

Images and files in

Send images inline as images with a session's prompt or a message: base64 data with its mime_type, or an https url Outrunner fetches. PNG, JPEG, GIF and WebP, up to 25 MB each.

For any other file, upload it first with POST /attachments (multipart, file), then name it in attachment_ids. A message takes up to 10 files and images. They land in the session's worktree, named in the message.

Terminal
curl -X POST -H "Authorization: Bearer $OUTRUNNER_API_KEY" "$OUTRUNNER/api/v1/attachments" -F "file=@error.log"

Screenshots and recordings out

A session proves a change you can see with screenshots or a recording, uploaded from its box. GET /workspaces/{id}/artifacts lists them, each with its link and the markdown that shows it in a pull request. GET /workspaces/{id}/artifacts/{artifact_id}/download answers a link to its bytes that works for 15 minutes.

Response
{ "data": [{ "id": "…", "name": "Header on mobile, after", "content_type": "image/png", "url": "https://app.outrunner.sh/m/k3x9….png", "markdown": "![Header on mobile, after](https://app.outrunner.sh/m/k3x9….png)" }] }

Pull requests

GET /workspaces/{id}/pull-requests answers the session's pull request in each of its repositories, with its state, whether it can merge, and its checks. GET /workspaces/{id}/changes lists the files it changed; with path, that file's diff.

Something unclear? Let us know ↗