prefix. Each rate is scoped to a single tenant and associates a destination label with a cost_per_minute and a billing_increment (the granularity in seconds at which the call is metered). The platform evaluates CDRs against the tenant’s rate table at call completion to calculate the cost value stored on the CDR. All endpoints require an active admin session. The list endpoint supports an optional search parameter that matches against prefix, destination, and status.
GET /api/rates
Returns all rates ordered by creation date descending, with the parenttenant relation included.
Query parameters
Optional. Filters rates whose
prefix, destination, or status contains the given string (case-insensitive).Value is
"Rates fetched successfully.".Array of rate objects.
POST /api/rates
Creates a new rate and returns201 Created with the record.
ID of the tenant to assign this rate to. Must reference an existing tenant.
The dialled-number prefix that triggers this rate, e.g.
"44". Maximum 50 characters.Human-readable destination label. Maximum 255 characters.
Per-minute charge as a decimal number. Must be
0 or greater.Billing granularity in seconds. Minimum value:
1. Common values are 6, 30, or 60.Lifecycle status, e.g.
active or inactive. Maximum 50 characters.Value is
"Rate created successfully.".The newly created rate record.
GET /api/rates/
Fetches a single rate by its ID. Includes the parenttenant relation.
Path parameters
The numeric ID of the rate to retrieve.
Value is
"Rate loaded successfully.".The rate record with the
tenant relation included.PUT /api/rates/
Replaces all fields on an existing rate.PATCH /api/rates/{rate} is also accepted and uses the same handler.
Path parameters
The numeric ID of the rate to update.
Must reference an existing tenant.
Maximum 50 characters.
Maximum 255 characters.
Must be
0 or greater.Minimum value:
1.Maximum 50 characters.
Value is
"Rate updated successfully.".The updated rate record.
DELETE /api/rates/
Permanently deletes the specified rate. Path parametersThe numeric ID of the rate to delete.
Value is
"Rate deleted successfully.".