API reference

The PAR Infinity REST API has 26 endpoints for voice, numbers, SMS and your account. Every request uses JSON over HTTPS and an API key.

Base URL

All endpoints are relative to:

https://portal.par-infinity.com/api/v1

Authentication

Send your API key in the Authorization header of every request.

Authorization: YOUR_API_KEY
  • Your main API key is in the portal under Profile.
  • To give a third-party integration limited access, create a key with its own scope under System → API Keys.
  • Keep keys on your server. Never put them in a browser or mobile app.

Pagination, sorting and filters

ParameterHow it works
pagePage number, starting at 1.
page_sizeItems per page. Default 10, maximum 100.
sortField name for ascending order, or -field for descending, e.g. ?sort=-name.
Field filtersUse field names as query parameters, e.g. ?status=active&country;=DE.

List responses include total_count and a paging object with first, last, next and prev links.

Rate limits

Requests are rate-limited per API key and IP address. Each response includes these headers:

  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset

Going over the limit returns 429 Too Many Requests. Wait until the reset time, then retry.

Errors

Errors use standard HTTP status codes and the same JSON shape:

{
  "error": {
    "code": "422",
    "message": "Payload structure is invalid.",
    "reason": "Failed to process the provided content."
  }
}
StatusMeaning
401 UnauthorizedMissing or invalid API key. Send a valid key in the Authorization header.
402 Payment requiredInsufficient account balance. Recharge your wallet to continue.
403 ForbiddenThe API key does not have permission for this resource.
404 Not foundThe resource you requested does not exist.
405 Method not allowedUse a supported HTTP method for this endpoint.
422 Unprocessable entityThe payload is invalid or a required field is missing.
429 Too many requestsRate limit exceeded. Try again after the cooldown period.
500 Internal server errorSomething went wrong on our side.
503 Service unavailableA service the request needs is temporarily unreachable. Try again later.

Webhook signatures

We sign every payload we send you with a SHA-256 signature, in the X-Signature-SHA256 header.

  1. Generate a SHA-256 signature from the payload and your API key.
  2. Compare it with the X-Signature-SHA256 header. If they match, the payload is genuine.

Tip Make your webhook handler idempotent: the same event can arrive more than once.

Call recordings: in call_notification webhooks, the hangup event carries recording: true when the call was recorded. Download the file with GET /call/recording/{call_id} and the event's call_id. If it answers 404, retry after a few seconds: the upload takes a moment.