Read the text of a file source
GET
/v1/missions/{id}/sources/{sourceId}/file
const url = 'https://beta-api.plune.ai/v1/missions/example/sources/example/file';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
The mission’s id
sourceId
required
string
The source’s id
Responses
Section titled “ Responses ”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"}