3rd-party software integration

Apizee video capabilities can be integrated into any business platform.

The use of these APIs requires a subscription to Apizee services. Please contact us to get more details on the available offers.

In this page, you will find several ways of integrating the Apizee solution into 3rd-party software:


Send invitations from a new tab

In a new tab, the user signs on to the Apizee platform (if not already identified) and then uses the form to send invitations to participants.

Insert a link or a button in the 3rd-party application that redirects the user to a new tab opening the Apizee invitation form.

URL format: https://cloud.apizee.com/quick-invitation

This integration doesn't require backend service to authenticate against Apizee services. only the user would need to sign-in.

Available parameters

Add the following parameter in the query parameters in the URL to pass information or configure behavior of the invitation form:

Parameter
Description
Format
Behavior

reference

Displays a non-editable label with a client reference.

String (max 50 characters)

If provided, displays the reference as a label. Strings longer than 50 characters are truncated. Not displayed if no service is preselected.

service_key

Preselects a service in the invitation dropdown.

Alphanumeric (32 characters)

If valid, the corresponding service is preselected. If invalid, no preselection occurs, and a warning is logged. Overrides previously used services.

phone_numbers

Prepopulates the "Invited Guests" field with phone numbers.

Comma-separated phone numbers

Valid numbers are added to the field. Invalid numbers are flagged with an error.

email_addresses

Prepopulates the "Invited Guests" field with email addresses.

Comma-separated email addresses

Valid emails are added to the field. Invalid emails are flagged with an error.

read_only.service

Makes the service dropdown field read-only.

Boolean (true or false)

If true, the service dropdown cannot be edited.

read_only.recipients

Makes the recipients field read-only.

Boolean (true or false)

If true, the recipient field cannot be edited.

reference

  • Displays as a non-editable label if provided in the URL.

  • Truncated to 50 characters if the string exceeds the limit.

  • Only displayed and used for services of type video-assistance.

Example
Output

/quick-invitation?reference=ABC123

Displays "Reference: ABC123" as a non-editable label.

/quick-invitation?reference=LongStringExceeding50Chars

Displays the first 50 characters of the reference string.

service_key

  • Preselects the specified service in the dropdown if valid.

  • Overrides previously used services.

Example
Output

/quick-invitation?service_key=9447243e889a783488c4369ccfdc0f4

Preselects the service corresponding to the key.

/quick-invitation?service_key=invalidkey

No service preselected.

phone_numbers

Prepopulates the "Guests" field with valid numbers.

Example
Output

/quick-invitation?phone_numbers=0612345678

Adds 0612345678 to the "Invited Guests" field.

/quick-invitation?phone_numbers=0612,+33612345678

Adds 0612 (flagged as invalid), adds +33612345678.

email_addresses

Prepopulates the "Guests" field with valid email addresses.

Example
Output

/quick-invitation?email_addresses=user@example.com

Adds user@example.com to the "Guests" field.

/quick-invitation?email_addresses=user@,valid@email.com

Adds user@ (flagged as invalid), adds valid@email.com

read_only.service

When true, the service dropdown becomes uneditable.

Example
Output

/quick-invitation?read_only.service=true

The service dropdown is disabled and cannot be changed.


read_only.recipients

When true, the "Guest" field becomes uneditable.

Example
Output

/quick-invitation?read_only.recipients=true

The "Guest" field is disabled and cannot be changed.

Send invitations from an iframe

The sample integration code is shown below:

Add parameters to the URL to configure the form (see 3rd-party software integration for a complete list of available parameters)

Open the video assistance room in a new tab

Simply retrieve the URL through the REST API (see the page dedicated to REST API description for the detailed steps) and insert it into an anchor link tag in your HTML page.

loaderAgent module in 3rd-party applications

Your page should include the loaderAgent.js library:

This script file provides the loadAgent function with the following prototype:

With:

  • serverDomainRoot: Apizee platform url, for example "https://cloud.apizee.com/

  • apiCCkey: The apiRTC or Apizee key to be found in your console (https://cloud.apirtc.com/enterprise/api)

  • userInfos: javascript structure containing user-related information

  • agentAppCallback: [optional] a function called when an event is raised (callback)

  • useFrame: [optional] to allow the use of iframe during the call

  • agentParams: [optional] a structure containing additional parameters

Before being able to call the loadAgent function, you must go through 2 steps:

  1. Retrieve a token for the agent with the endpoint /token (see authentication)

  2. Use the endpoint /v2/users/me to retrieve the user info.

Example:

Response:

The fields userId, apiKey, nickname and token will be necessary to call LoadAgent.

Agent Event Callback

This callback function allows executing actions following events raised by the Agent video module.

Define this function before calling it in LoadAgent:

Event List

Event type
Description
Params

init

Agent is loaded and ready to work.

--

createNewIMDiv

Fired when a new box container has been created.

{ destId:Integer, nickname:String }

openComBox

Fired when a box is opened.

jQuery object of the box container

minimize

Fired when a box is minimized.

destId:Integer

maximize

Fired when a box is maximized.

destId:Integer

close

Fired when a box is closed.

destId:Integer

putInFrame

Fired when the page has been reloaded into navIframe.

--

showNewMessage

Fired when a new message is shown.

{ nickname:String, destId:Integer, message:String, html:String }

sendMessage

Fired when a message is sent

{ destId:Integer, message:String }

updatePresence

Fired when the presence information of other users changes : online / offline

{ eventType:String, time:String, connectedUsersList:Array, state:String }

Code example

Example of use with the previously retrieved parameters:

Last updated