Add a source to a mission
const url = 'https://beta-api.plune.ai/v1/missions/example/sources';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"kind":"openapi","ref":"https://shop.example.com/openapi.json","title":"Shop API","version":"2026-11-01"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://beta-api.plune.ai/v1/missions/example/sources \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "kind": "openapi", "ref": "https://shop.example.com/openapi.json", "title": "Shop API", "version": "2026-11-01" }'A link the testing reads: a page (url), an API description (openapi), a repository (repo) or a ticket (ticket), with a title and the version read. At most 100 sources a mission (409).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The mission’s id
Request Body required
Section titled “Request Body required ”object
The link; http or https only
What the source is, as a person names it
The version read
Example
{ "kind": "openapi", "ref": "https://shop.example.com/openapi.json", "title": "Shop API", "version": "2026-11-01"}Responses
Section titled “ Responses ”The source
object
A link of four kinds, added by POST /v1/missions/{id}/sources; or file, uploaded by POST /v1/missions/{id}/files
The link; a file source’s file name
The source’s version as its owner names it: a commit, a tag, a document’s revision, an ETag
The user who added it: the person, or the person whose token the agent used
A file source only: its size in UTF-8 bytes
A file source only: its type, read off its name
Example
{ "id": "6f1c2b3a-0000-4000-8000-000000002189", "kind": "openapi", "ref": "https://shop.example.com/openapi.json", "title": "Shop API", "version": "2026-11-01", "addedBy": "6f1c2b3a-0000-4000-8000-0000000000a2", "createdAt": "2026-11-04T09:05:00.000Z"}Invalid JSON or body
object
Example generated
{ "error": "example"}No / invalid token or session
You are in the project as a reader, or the token is read-only
No such mission in your project
object
Example generated
{ "error": "example"}The mission holds the most sources it can
object
Example
{ "error": "a mission holds at most 100 sources: take one off first"}Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over