Cisco Jabber Guest API
The Cisco Jabber Guest API provides methods to create, update, and delete links, as well as to retrieve
information about individual links. The API can return and receive data in either application/json or
application/xml. Do this by setting the Accepts
header.
The Cisco Jabber Guest API supports basic authentication.
View browser requests on the link pages of Cisco Jabber Guest Administration with a tool such as the Network tab in the Chrome developer tools for debugging information. You can also use Firebug or the IE debugger.
First Time Access
The first time that you sign in to Cisco Jabber Guest Administration, you must change your password. If you have not yet changed your password through Cisco Jabber Guest Administration, you must change your password the first time that you access the API.
To change your password, execute the following command:
curl -i -k https://localhost/cjg-api/rest/login/session -X POST -u admin:jabbercserver -H "Content-Type:
application/json" -d '{"username":"admin" "password":"jabbercserver",
"newPassword":"<new password>"}'
Session Time Out
Your session will time out after 30 minutes of inactivity.
Event Reference
Resource | Description |
---|---|
GET https://[IP address]/cjg-api/rest/links/
|
Returns a list of links and the properties for each link. Parameters:
Examples of limit and offset for paging links:
|
GET [link URL]
|
Takes a linkObjectID and returns the object properties for the specified link. For example, GET https://someserver/cjg-api/rest/links/5310fa42e4b0e941e6c99f82, where 5310fa42e4b0e941e6c99f82 is the linkObjectID. |
POST https://[IPaddress]/cjg-api/rest/links/
|
Create a new link.
The requestPath value must be unique. You also need to pass in the isEnabled flag or the link will be disabled. Resulting link: Success is indicated by a 201 code (CREATED). The URL of the created object is returned in the Location header. This URL can be used to update or delete the link later. |
PUT [link URL]
|
Update a link. For example, PUT https://someserver/cjg-api/rest/links/5310fa42e4b0e941e6c99f82, where 5310fa42e4b0e941e6c99f82 is the linkObjectID.
The requestPath value must be specified and must be unique. We recommend using a UUID/GUID if you need a random requestPath. You must pass in theisEnabled flag or the link will be disabled. Resulting link: |
https://[IPaddress]/cjg-api/rest/links?search
|
Search for a link. Parameters:
You must put If you want to include both parameters, you must put a comma between them. Examples:
|
DELETE [link URL]
|
Delete the specified link. For example, DELETE https://someserver/cjg-api/rest/links/5310fa42e4b0e941e6c99f82, where 5310fa42e4b0e941e6c99f82 is the linkObjectID. |
Links Object
The following table describes the properties of the links object.
Property | Description | Modifiable |
---|---|---|
linkObjectId | Unique identifier for a link. | No |
isEnabled | The status of the link. This flag must be passed in when creating or updating a link or the link will be disabled. | Yes |
requestPath | The part of the link after /call. For example, https://[linkPrefix][requestPath]. Must be unique. | No |
destination | DN or URI that is called when a user clicks on the link. Destination is required. |
Yes |
displayName | The name displayed on the client when placing a call using this link. Optional. |
Yes |
callerName | The name displayed on the destination endpoint in the enterprise when a call is placed using
this link. Optional. |
Yes |
callerAlias | The Caller ID displayed on the destination endpoint in the enterprise when a call is placed
using this link. Optional. |
Yes |
validAfter | The date and time when a link becomes active. Default value: If left blank, the link can be used immediately to route calls. Optional. |
Yes |
validBefore | The date and time when a link expires, and can no longer be used to route calls. If left blank, the link never expires. Optional. |
Yes |
linkPrefix | The part of the link before the request path. linkPrefix is the same for all links in a cluster. |
No |
userObjectId | The user responsible for creating the link. Default: If left blank, defaults to the logged-in user. |
No |
Example links object:
{
"@total":"47",
"Links":[
{
"linkObjectId":"5331d38ce4b0b2e2ef217487",
"isEnabled":"true",
"requestPath":"ec774eb8-06b5-4eb9-bea6-ef4a95db158a",
"destination":"5555",
"displayName":"(name not available)",
"callerName":"jsmith",
"validBefore":"2014-03-25T19:19:17.200Z",
"linkPrefix":"https://10.93.173.172/call/",
"userObjectId":"5310fa42e4b0e941e6c99f82",
"useUniqueSipAlias":"false"
},
],
"Paging":{
"next":"/cjg-api/rest/links?limit=10&offset=10"
}
}
Rate Limit for Creating, Updating, or Deleting Links
There is no rate limit for creating, updating, or deleting links; however, we recommend one API call per second. For example, we recommend creating no more than 60 links in one minute.