Skip to main content
Pxxl SDK methods return the useful resource directly when possible. You do not need to inspect HTTP status codes for successful calls.

Single resources

Create and get methods return a resource or a small named wrapper.
When a Node.js method unwraps the resource, you receive the inner object directly. For example, customers.create() returns the customer and cdn.upload() returns the asset.

Lists

List methods return an array with count or pagination details.

Actions

Start, stop, trigger, resync, and delete calls return an action result. Delete helpers that return no useful data resolve without a value.

Files

Download methods return binary data instead of JSON.

Errors

Non-successful API responses throw an SDK error. The original API response remains available for validation errors and plan limits.
Node.js also exports isPlanGateError(error). Structured plan-gate handling works across storage, domains, deployments, databases, and cron jobs.
Response examples show the fields used most often. The API can add fields without breaking existing integrations.