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

Get List User

This API is used to get a list of previously created employees.

PreviousCreate Account UserNextCreate extension

Last updated 5 months ago

Note:

  • API used for integration case as Partner.

  • API_KEY:

  • base_url information

Request:

curl --location '$BASE_URL.Shop/GetAccountUsers' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API-KEY' \
--data '{
  "filter": {
    "extension_number": "<string>",
    "has_extension": "<boolean>",
    "name": "<string>",
    "phone": "<string>",
    "user_ids": [
      "string",
    ]
  },
  "paging": {
    "after": "<string>",
    "before": "<string>",
    "limit": "<integer>",
    "sort": "<string>"
  }
}'

Response:

{
  "account_users": [
    {
      "account_id": "string",
      "deleted": true,
      "department_id": "string",
      "email": "string",
      "full_name": "string",
      "permissions": [
        "string"
      ],
      "phone": "string",
      "position": "string",
      "roles": [
        "string"
      ],
      "short_name": "string",
      "user_id": "string"
    }
  ],
  "paging": {
    "after": "string",
    "before": "string",
    "limit": 0,
    "next": "string",
    "prev": "string",
    "sort": "string"
  }
}

Request body structure:

School name
Data type
Describe

extension_number

string

Extension number

has_extension

boolean

True

False

name

string

Employee ID assigned to extension

phone

string

Employee phone number

user_ids

array of int64

Employee ID

Return data attribute structure:

Parameters
Data type
Describe

account_id

string<int64>

Shop owner account ID

deleted

boolean

True

False

email

string

Email address

full_name

string

Employee Name

phone

string

Employee phone number

user_id

string

Employee ID

<shop_key>
Partner

GetAccountUsers

post
Body
Responses
200
A successful response
application/json
post
POST /GetAccountUsers HTTP/1.1
Host: $BASE_URL.Shop
Content-Type: application/json
Accept: */*
Content-Length: 174

{
  "filter": {
    "extension_number": "text",
    "has_extension": true,
    "name": "text",
    "phone": "text",
    "user_ids": [
      "text"
    ]
  },
  "paging": {
    "after": "text",
    "before": "text",
    "limit": 1,
    "sort": "text"
  }
}
200

A successful response

{
  "account_users": [
    {
      "account_id": "text",
      "deleted": true,
      "department_id": "text",
      "email": "text",
      "full_name": "text",
      "permissions": [
        "text"
      ],
      "phone": "text",
      "position": "text",
      "roles": [
        "text"
      ],
      "short_name": "text",
      "user_id": "text"
    }
  ],
  "paging": {
    "after": "text",
    "before": "text",
    "limit": 1,
    "next": "text",
    "prev": "text",
    "sort": "text"
  }
}