PBX GUI - Core Module GraphQL APIs

PBX GUI - Core Module GraphQL APIs

Table of Contents

This wiki is to capture the Core module provided GraphQL APIs.

 

Please find below list of APIs supported by Core module.

Core module APIs are useful to create , modify , delete extensions and fetch the values of existing configured extensions. 

Create Extension

Creating an extension into Freepbx/PBXact system.

API Name  addExtension API.

API Parameters -

Name

Required

Type

Default

Description

Name

Required

Type

Default

Description

extensionId

Mandatory

ID

 

Unique string to specify the extension number.

name

Mandatory

string

 

Display name

tech

Optional

String

pjsip

SIP Technology device driver. If not specify then will use PJSIP to create the extension.

Accepted values:  "sip" or "pjsip".

channelName

Optional

String

 

Channel name in case if using DAHDI

callerID

Optional

String

 

The CallerID name for calls from this user will be set to this name. Recommended to use "name" not the number.

outboundCID

Optional

String

 

This overrides the caller id when dialling out a trunk. This setting will override the common outbound caller id set in the trunk.

emergencyCID

Optional

String

 

This caller id will always be set when dialing out an outbound route flagged as emergency. The emergency CID overrides all other caller id settings.

email

Mandatory

String

 

User Email address to use for services such as voicemail, user management and fax etc.

vmEnable

Optional

Boolean

True

Voicemail enable / disable

vmPassword

Optional

String

 

Voicemail password. If not specify then user can access the voicemails without any password/pin.

umEnable

Optional

Boolean

True

User manager enable/disable. If enabled mandatory to set umPassword

umGroups

Optional

String

1

User manager group. if not specified will use all user(1) created at the time of installation. In case of multiple add comma separated values.

umPassword

Oprional

String

 

Set passwords for user management. Its mandatory to set password if umEnable is set to true.

maxContacts

Optional

Integer

1

Set max_contacts value for chan_pjsip extension.

 

Query Parameters 

status message

 

API Request