Get extension list

This API is used to get the list of extensions created on the tenant.

Note:

  • For APIs used for Shop, the API key is: <api_key>. The base_url information of the Shop.

  • For APIs used for Partner, the API key is: <shop_key>. The base_url information of the Partner.

Request:

curl --location '$BASE_URL.Etelecom/GetExtensions' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API-KEY' \
--data '{
  "paging": {
    "after": "<string>",
    "before": "<string>",
    "limit": "<integer>",
    "sort": "<string>"
  }
}'

Response:

{
  "extensions": [
    {
      "account_id": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "expires_at": "2019-08-24T14:15:22Z",
      "extension_number": "string",
      "extension_password": "string",
      "hotline_id": "string",
      "id": "string",
      "state": "Z",
      "subscription_id": "string",
      "tenant_domain": "string",
      "tenant_id": "string",
      "updated_at": "2019-08-24T14:15:22Z",
      "user_id": "string"
    }
  ],
  "paging": {
    "after": "string",
    "before": "string",
    "limit": 0,
    "next": "string",
    "prev": "string",
    "sort": "string"
  }
}

Return data attribute structure:

School name
Data type
Describe

id

string

Extension ID

extension_number

string

Extension number

extension_password

string

Extension password

tenant_domain

string

Switchboard domain

hotline_id

string

Hotline ID assigned to extension

created_at

string

Extension creation date

expires_at

string

Extension Expiration Date (eg: "2021-03-10T17:07:19+07:00")

Last updated