Skip to main content
A PHP 8.1+ client for the Octavia AI CMS API. Responses are returned as an Envelope object with success, statusCode, message and data — the same shape the API sends on the wire.
Every method on this page is listed with its parameters and types on the methods page.

What the SDK gives you

  • One method per operation. Every endpoint in the API reference has a method, and each method’s name, arguments and return shape come from the spec.
  • A typed response. Responses are returned as an Envelope object with success, statusCode, message and data — the same shape the API sends on the wire.
  • A result object, not an exception. By default a failed call comes back as a value with ok false, so batch work does not need a try/catch around every request. Composer’s PSR-4 autoloading, no framework required.

How it is organized

The client groups methods by resource, so a call reads the same way as the route it calls:
cms is the client you initialized, and each segment after it is a resource followed by a method. The full list of resources and every method under them is on the methods page.

Authentication

The API key is the only credential. It is sent as the x-api-key header on every request, and it is the only header the SDK sets — there is no header parameter and no hook for adding one. The gateway handles tenant routing and service status itself.
Never commit a key. Read it from the environment, and keep it on the server: a key in browser or mobile code is a key anyone can extract.

Where to go next