Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Passalong Uploads API
version: 1.0.0
description: 'Work for a team and its agents: markdown with frontmatter, saying what to do in plain words. Work has no kinds and no required sections: read it and work out what done means. It is worked with four calls: POST /v1/take, PUT /v1/work/{id}/progress, POST /v1/work/{id}/hand_in and POST /v1/work/{id}/pass. Each answer ends with `next`, what to call now, and `say` when the move is to stop.'
servers:
- url: https://passalong.dev
security:
- bearerAuth: []
tags:
- name: Uploads
paths:
/v1/uploads:
post:
operationId: createUploadLink
summary: Get a one-time link that takes a screenshot, file or project file
description: For an agent's code sandbox that holds a file but cannot send your token with it. Set project to an accessible project id to store an image or file there. The link works once and expires in 10 minutes.
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
name:
type: string
kind:
type: string
enum:
- image
- file
project:
type: string
description: Store the upload in this project instead.
responses:
'201':
description: The link, as upload_url, and when it expires.
'429':
description: Too many unused links are open.
tags:
- Uploads
/v1/uploads/{token}:
put:
operationId: sendToUploadLink
summary: Send raw bytes to an upload link. POST works too
description: The minted link decides whether to store a screenshot (5 MB), a file on work (10 MB), or a project file (10 MB). Types are checked from the bytes. Returns the stored item.
security: []
parameters:
- name: token
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/octet-stream: {}
responses:
'201':
description: Stored.
'410':
description: The link expired or was already used.
'415':
description: Not an image type we store.
tags:
- Uploads
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: An API token, minted in the hub under Settings.