Skip to content

Read the text of a file source

GET
/v1/missions/{id}/sources/{sourceId}/file
curl --request GET \
--url https://beta-api.plune.ai/v1/missions/example/sources/example/file \
--header 'Authorization: Bearer <token>'

The text of a file source, as text: never a page (nosniff, a sandbox), and saved under the file’s own name. A link source has no file (404).

id
required
string

The mission’s id

sourceId
required
string

The source’s id

The file’s text

Media type text/plain
string
Example
# Checkout rules
- A coupon applies once.

No / invalid token or session

No such mission in your project, no such source on it, or a source that is a link

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}