Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated using 4PSA automated script
Excerpt

This page describes how authentication occurs in UnifiedAPI, explaining what the user must do in order to authorize apps.

Table of Contents
maxLevel2

Authentication

To make requests to UnifiedAPI, you must register an App to a User account. The User must authorize the App to make requests in their name. The process generates an access token that is sent to UnifiedAPI as detailed below.

As Query-Parameters

To use an access token in the query part of the request, you must send the parameter accessRequestToken.

Note

Please note that you need to place the word "Bearer" before the token.

The request to list phone calls becomes:

Code Block
titleHTTP Request
GET /uapi/phoneCalls/userId/extensionNumber/?accessRequestToken=<token>
HOST <hostname>
Content-Type: application/json
Content-Length: xxx

As HTTP header

To use an access token in the query part of the request, you must send the Authorization header set to the value of the token.

The request to list phone calls becomes:

Code Block
titleHTTP Request
GET /uapi/phoneCalls/userId/extensionNumber/
HOST <hostname>
Authorization: Bearer <token>
Content-Type: application/json
Content-Length: xxx

Authenticated user

Anchor
auth-user
auth-user

UnifiedAPI defines an authenticated User, the User that granted access to the App and is identified by the access token.

4psarelated
NameRelated Topics

VoipNow Apps

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.