eTelecom docs
English
English
  • INSTRUCTIONS FOR USE
    • Administration page for cs.etelecom
    • Google Chrome Extension
    • App eTelecom
  • API INTEGRATION
    • Shop
      • Account
      • Usage
    • Partner
      • Account
      • Usage
    • VPBX
      • VoIP SDK
        • Android
        • iOS
        • Web
        • Flutter
      • PBX REST APIs
        • Partner Get Tenant List
        • Partner Add Hotline
        • Partner Get Hotline List
        • Partner Activate Tenant
        • Partner Add Hotline To Tenant
        • Partner Removed Hotline From Tenant
        • Partner Remove Hotline
        • Create Tenant
        • Get Tenant information
        • Get Driver Config
        • Get hotline list
        • Create Account User
        • Get List User
        • Create extension
        • Get extension information
        • Get extension list
        • Assign extension to user
        • Change hotline for extension
        • Remove User Of Extension
        • Get call history
    • Zalo Cloud
      • Instructions for connecting Zalo Cloud
      • Zalo Cloud API
        • Create OA authorization link
        • Connect OA
        • Get refresh token
        • Get OA list
        • Get OA information
        • Update Webhook for OA
        • Get list of users
        • Send Text Consulting
        • Send Consulting message according to user information request form
        • Send advice message with sticker
        • Send message Consulting with attached photo
        • Send message Consulting attached file
        • Send transaction message
        • Upload file
        • Send request for calling permission
        • Check if the customer has granted calling permission
        • Get list of requests for calling permission
        • Create a news template
        • Get sample details
        • Get list of news samples
        • Journey Token Creation
        • Get Journey Token Details
        • Get Journey Token List
        • Get message list
        • Get message details
        • Send ZNS
        • Send ZNS with Journey Token
  • SMS BRANDNAME
    • User manual
    • SMS API
      • Send SMS
      • Get message status
      • Get sample details
Powered by GitBook
On this page
  1. API INTEGRATION
  2. VPBX
  3. PBX REST APIs

Create extension

This API is used to create extensions on the tenant.

PreviousGet List UserNextGet extension information

Last updated 5 months ago

Note:

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

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

Request:

curl --location '$BASE_URL.Etelecom/CreateExtension' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
  "extension_number": 1001,
  "hotline_id": "string",
  "user_id": "string"
}'

Response Sample:

{
  "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"
}

Request body structure:

School name
Data type
Describe

hotline_id

required

string

ID hotline

extension_number

required

int

Extension number

user_id

string

Employee ID assigned to extension

Return data attribute structure:

School name
Data type
Describe

id

string

Extension ID

user_id

string

Employee ID assigned to extension

account_id

string

Account ID

extension_number

string

Extension number

extension_password

string

Extension password

tenant_id

string

Call center ID

tenant_domain

string

Domain of the switchboard

hotline_id

string

Hotline ID

created_at

string

Extension initialization time

updated_at

string

Extension update time

expires_at

string

Extension Expiration Time

subscription_id

string<date-time>

Registration ID

state

string

Status

Z: Newly created P: Valid N: Expired

<api_key>
Shop
<shop_key>
Partner

CreateExtension

post
Body
extension_numberintegerOptional
hotline_idstring · int64Optional
user_idstring · int64Optional
Responses
200
A successful response
application/json
post
POST /CreateExtension HTTP/1.1
Host: $BASE_URL.ETelecom
Content-Type: application/json
Accept: */*
Content-Length: 59

{
  "extension_number": 1,
  "hotline_id": "text",
  "user_id": "text"
}
200

A successful response

{
  "account_id": "text",
  "created_at": "2025-06-15T03:10:29.039Z",
  "expires_at": "2025-06-15T03:10:29.039Z",
  "extension_number": "text",
  "extension_password": "text",
  "hotline_id": "text",
  "id": "text",
  "state": "Z",
  "subscription_id": "text",
  "tenant_domain": "text",
  "tenant_id": "text",
  "updated_at": "2025-06-15T03:10:29.039Z",
  "user_id": "text"
}