Developers
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
| Parameter | How it works |
|---|---|
page | Page number, starting at 1. |
page_size | Items per page. Default 10, maximum 100. |
sort | Field name for ascending order, or -field for descending, e.g. ?sort=-name. |
| Field filters | Use 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-LimitX-RateLimit-RemainingX-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."
}
}
| Status | Meaning |
|---|---|
401 Unauthorized | Missing or invalid API key. Send a valid key in the Authorization header. |
402 Payment required | Insufficient account balance. Recharge your wallet to continue. |
403 Forbidden | The API key does not have permission for this resource. |
404 Not found | The resource you requested does not exist. |
405 Method not allowed | Use a supported HTTP method for this endpoint. |
422 Unprocessable entity | The payload is invalid or a required field is missing. |
429 Too many requests | Rate limit exceeded. Try again after the cooldown period. |
500 Internal server error | Something went wrong on our side. |
503 Service unavailable | A 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.
- Generate a SHA-256 signature from the payload and your API key.
- 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.