---
title: "List call rates"
method: GET
path: "/call_rates"
tags: ["Billing"]
---

# List call rates

`GET /call_rates`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/call_rates`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/call_rates/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve a collection of call rates

## Query parameters

- `filter` string
- `search` string
- `orderby` string
- `skip` integer
- `top` integer

## Response `200`

OK

- object
  - `count` integer: Total number of resource.
  - `items` object[]
    - `id` string: The unique ID of the resource.
    - `prefix` string: The call prefix of the rating.
    - `type` 'LOCAL' | 'NATIONAL' | 'INTERNATIONAL' | 'MOBILE': The type of the rating: Can be either: - `LOCAL`: - `NATIONAL`: - `INTERNATIONAL`: - `MOBILE`:
    - `free_seconds` integer: Free seconds of the rating.
    - `grace_period` integer: Grace period of the rating.
    - `interval_1` integer: The first interval of the rating.
    - `interval_n` integer: The subsequent interval of the rating after the first one.
    - `postcall_surcharge` number, double: Postcall surcharge of the rating. Precision is five digits.
    - `price_1` number, double: The price of the first interval. Precision is five digits.
    - `price_n` number, double: The price of the subsequent interval after the first one. Precision is five digits.
    - `description` string: The description text for this rule.

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
