Errors

HTTP status codes used by the API.

Ploi uses standard HTTP status codes to indicate the success or failure of requests.

CodeDescription
200Success - Request completed successfully
201Created - Resource was successfully created
403Forbidden - Your API key is missing the scope this endpoint requires
422Validation Error - Request parameters failed validation
429Too Many Requests - Rate limit exceeded
500Server Error - An internal error occurred
503Maintenance - We are performing maintenance

Missing scope

When your API key does not have the scope an endpoint requires, the response names the missing scope. Scopes cannot be added to an existing API key, so create a new key with that permission.

Missing Scope

{
  "error": "Your API key does not have the right permissions, this request requires the 'network-rules-delete' (Delete network rules) scope. Scopes cannot be added to an existing API key, create a new API key with this permission in your Ploi profile.",
  "missing_scopes": [
    "network-rules-delete"
  ]
}

Subscription Error

If you are not on a paid subscription, you will receive the following response:

Subscription Required

{
  "error": "You are on a free plan, therefore you cannot use this API.",
  "links": [
    "https://ploi.io/profile/subscription",
    "https://ploi.io/pricing"
  ]
}