Skip to main content
POST
/
files
Upload file
const form = new FormData();
form.append('file', '<string>');
form.append('purpose', '<string>');

const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

options.body = form;

fetch('https://api.phaseo.app/v1/files', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "status_code": 501,
  "error": "not_implemented",
  "description": "Endpoint is not implemented yet."
}
This route is reserved for upcoming file upload support.

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

multipart/form-data
file
file
required
purpose
string
required

Response

501 - application/json

Files endpoint is not implemented yet

Placeholder response for endpoints that are routed but not implemented yet.

status_code
integer
Example:

501

error
string
Example:

"not_implemented"

description
string
Example:

"Endpoint is not implemented yet."

Last modified on February 25, 2026