Skip to content
Console

The two PMS Cloud APIs, their base URLs, auth and error format.

PMS Cloud has two APIs.

API Base URL Auth Use
AI API https://api.pmservers.org/ai/v1 AI key (pms_sk_...) Call AI models. OpenAI-compatible.
Management API https://api.pmservers.org/v1 Console sign-in token, or a project token Manage projects, containers, databases and AI keys.

The console uses the management API. It sends the sign-in token of your session as Authorization: Bearer <token>.

Scripts and CI use a project token. A project token works on one project only. See API tokens.

Use the AI API with an AI key from your code.

{"error": {"code": "quota_exceeded", "message": "You can have 2 containers. Delete a container first."}}
Status code Meaning
401 unauthorized No token, or the token expired. Sign in again.
403 not_allowed You cannot do this.
403 account_terminated The PMServers team terminated this account. Contact the team.
404 not_found The resource does not exist, or it is not yours.
409 quota_exceeded You are at a limit. See Limits.
409 conflict The resource is not in the right state, for example the container is not running.
422 validation_error A field is not valid. The message tells which.
502 upstream_error The upstream host did not answer. Try again.
500 internal Something went wrong on our side.

The AI API uses the OpenAI error format. See AI errors.

The OpenAPI spec of the AI API is at /openapi.json.