Skip to content

ODP Service APIInternal API Documentation

Comprehensive reference for the ODP backend API — endpoints, auth, data model, and modules.

ODP Service API

This is the internal API documentation for the ODP Service API — a headless content and data management platform built on Fastify 5, TypeScript, and Knex.

Base URL

http://localhost:8055

Configured via PUBLIC_URL environment variable.

Response Format

All endpoints return JSON. Successful responses wrap data in a data key:

json
{
  "data": { ... }
}

List responses may also include meta:

json
{
  "data": [...],
  "meta": {
    "total_count": 100,
    "filter_count": 25
  }
}

Errors return an errors array:

json
{
  "errors": [
    {
      "message": "You don't have permission to access this.",
      "extensions": {
        "code": "FORBIDDEN"
      }
    }
  ]
}

Authentication

Pass the access token in the Authorization header:

Authorization: Bearer <access_token>

See Auth Middleware & Token Strategy for full details.

ODP Internal API Documentation