JavaScript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.phaseo.app/v1/files/{file_id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "error": "error_type", "ok": false, "message": "Human-readable error message", "description": "Additional error details." }
File retrieval is currently a placeholder endpoint and returns 501 not_implemented.
Bearer token authentication
The ID of the file to retrieve.
Unauthorized
"error_type"
false
"Human-readable error message"
"Additional error details."
Was this page helpful?