Skip to main content
POST
/
batches
Create batch
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    input_file_id: '<string>',
    endpoint: '<string>',
    completion_window: '<string>',
    metadata: {},
    debug: {
      enabled: true,
      return_upstream_request: true,
      return_upstream_response: true,
      trace: true,
      trace_level: 'summary'
    },
    provider: {
      order: ['<string>'],
      only: ['<string>'],
      ignore: ['<string>'],
      include_alpha: true
    }
  })
};

fetch('https://api.phaseo.app/v1/batches', 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 batch support.

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
input_file_id
string
required
endpoint
string
required
completion_window
string
metadata
object
debug
object

Gateway debug controls. These flags are never forwarded upstream.

provider
object

Provider routing preferences for gateway selection.

Response

501 - application/json

Batch 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