Skip to content

Low-level client

OkatanaClient::request() is provided for future v1 routes or deployment-specific extensions.

$response = $client->request(
    method: 'GET',
    path: '/projects/' . rawurlencode($projectId) . '/future-route',
    query: ['limit' => 20],
    headers: ['X-Correlation-Id' => $correlationId],
);

Security constraints

The path must start with / and cannot be an absolute URL. Custom Authorization headers are rejected. Requests execute under the configured /api/v1 base using the configured credential.

Body

$response = $client->request(
    method: 'POST',
    path: '/future-route',
    json: ['example' => true],
);

The JSON body must be an associative PHP array compatible with json_encode.

When not to use it

Service classes provide path encoding, request DTOs, documented naming, and endpoint coverage tests. Use request() only when the typed SDK cannot express the required route or field.