v12.x

Errors and retries

Use the response status to show a useful message and decide whether a request can be retried.

Common status codes

StatusMeaningNext step
201Rental createdSave the rental ID.
200Existing rental returnedThe same request was safely repeated.
401 / 403Authentication or access problemCheck the key and rental ownership.
404Project or rental not foundCheck the project slug or rental ID.
422Invalid requestCorrect the fields and send again.
429Too many requestsWait, then retry with backoff.

Safe retries

Every create request needs an Idempotency-Key. Use one unique value for each intended rental, such as your own order reference. If the request times out, repeat the same request with the same key. Unlimited Plug returns the existing result instead of creating a second rental.

Do not reuse a key: Never use an old idempotency key for a different customer or order.

Security reminders

  • Use HTTPS.
  • Keep API keys on your server.
  • Do not log complete API responses if they contain private access information.
  • Remove exposed keys immediately.