> For the complete documentation index, see [llms.txt](https://docs.etelecom.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.etelecom.vn/api-etelecom-english/api-integration/vpbx/pbx-rest-apis/get-extension-information.md).

# Get extension information

This API is used to get previously created extension information.

{% hint style="info" %}
**Note:**

* For APIs used for Shop, the API key is: [`<api_key>`](/api-etelecom-english/api-integration/shop/account.md). The base\_url information of the [Shop](/api-etelecom-english/api-integration/shop/account.md).
* For APIs used for Partner, the API key is: [`<shop_key>`](/api-etelecom-english/api-integration/partner/usage.md#retrieve-the-shop_key-information). The base\_url information of the [Partner](/api-etelecom-english/api-integration/partner/account.md).
  {% endhint %}

{% openapi src="/files/98tvgFAALfk6gcxXW2re" path="$BASE\_URL.ETelecom/GetExtensionInfo" method="post" %}
[Etelecom.swagger.json](https://1712041776-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzzTMjVbVjwTuSbEGC7Ya%2Fuploads%2Fgit-blob-a79f1cdcdf6c0710885851e38f1e6c641fafb69b%2FEtelecom.swagger.json?alt=media)
{% endopenapi %}

**Request:**

```
curl --location '$BASE_URL.Etelecom/GetExtensionInfo' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API-KEY' \
--data '{
  "email": "<string>",
  "extension_number": "<string>",
  "phone": "<string>"
}'
```

**Response:**

```
{
  "expires_at": "2019-08-24T14:15:22Z",
  "extension_number": "string",
  "extension_password": "string",
  "tenant_domain": "string"
}
```

**Request body structure:**

| School name                          | Data type | Describe               |
| ------------------------------------ | --------- | ---------------------- |
| <p>extension\_number<br>required</p> | string    | Extension number       |
| email                                | string    | Email                  |
| phone                                | string    | Extension phone number |

**Return data attribute structure:**

<table><thead><tr><th width="199">School name</th><th width="141">Data type</th><th>Describe</th></tr></thead><tbody><tr><td>extension_number</td><td>string</td><td>Extension number</td></tr><tr><td>extension_password</td><td>string</td><td>Extension password</td></tr><tr><td>tenant_domain</td><td>string</td><td>Switchboard domain</td></tr><tr><td>expires_at</td><td><br>string</td><td>Extension Expiration Date (eg: "2021-03-10T17:07:19+07:00")</td></tr></tbody></table>
