Skip to main content

Resources

Most single-resource endpoints return the resource under a named field.
Some routes return the resource directly. Cron job create, get, and update work this way.
Older domain and billing routes add "error": false on success and "error": true on failure instead of success.

Collections

The collection key names the resource. Counts and pagination fields sit beside the array, and their names vary by module.

Actions

Start, stop, restart, trigger, and delete endpoints return a short result. Some also return the updated resource.
Queued work returns 201 or 202. Deploys, redeploys, rollbacks, and rebuilds return a deploymentId. Cron triggers return a runId. Server actions return an action you can poll.

Idempotent creation

Database, storage bucket, storage access key, and cron job creation accept an Idempotency-Key header of 8 to 180 characters. Retrying with the same key and body does not create a duplicate. Reusing a key with a different body returns 409 with code idempotency_key_reused.

Downloads

Download endpoints return binary content. Read the Content-Type and Content-Disposition response headers instead of parsing JSON.

Errors

Errors use the HTTP status code and a JSON body with a message. Some add a code, reason, or plan details.
Examples show stable fields used by clients. Pxxl can add response fields without breaking existing integrations.