Download OpenAPI specification:Download
Arvia RESTful APIs
Login and get a token.
email required | string |
password required | string |
{- "email": "test@arvia.chat",
- "password": ""
}
{- "auth": true,
- "token": "string",
- "name": "string",
- "image": "string",
- "status": "away"
}
Creates a new room and returns the room details
_id required | string |
name required | string |
display | string |
date | string |
{- "_id": "5ed3ffc8bccb2989c1e08907",
- "name": "my-room-name",
- "display": "My Room Name",
- "date": "2016-08-29T09:12:33.001Z"
}
{- "_id": "5ed3ffc8bccb2989c1e08907",
- "name": "my-room-name",
- "display": "My Room Name",
- "date": "2016-08-29T09:12:33.001Z"
}
By passing project id, you can get list of the rooms in a project.
projectId required | string Pass project ID for looking for the rooms. |
skip | integer >= 0 Number of records to skip for pagination |
limit | integer [ 0 .. 50 ] Maximum number of records to return |
curl --request GET \ --url 'https://arvia.chat/api/rooms?projectId=SOME_STRING_VALUE&skip=SOME_INTEGER_VALUE&limit=SOME_INTEGER_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "_id": "5ed3ffc8bccb2989c1e08907",
- "name": "my-room-name",
- "display": "My Room Name",
- "date": "2016-08-29T09:12:33.001Z"
}
]
Gets details of the room by passing the room ID
roomId required | string The room ID. |
curl --request GET \ --url https://arvia.chat/api/rooms/%7BroomId%7D \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
{- "_id": "5ed3e53fec337e89b3e50ac3",
- "name": "my-room-name",
- "display": "My Room Name",
- "date": "2016-08-29T09:12:33.001Z",
- "locked": true,
- "maxUser": 2,
- "maxVideo": 2,
- "maxAudio": 2,
- "agents": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
], - "admins": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
], - "analysts": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
]
}
Updates room details
roomId required | string The room ID. |
_id required | string |
name required | string |
display required | string |
date | string |
locked | boolean |
maxUser | integer |
maxVideo | integer |
maxAudio | integer |
Array of objects | |
Array of objects | |
Array of objects |
{- "_id": "5ed3e53fec337e89b3e50ac3",
- "name": "my-room-name",
- "display": "My Room Name",
- "date": "2016-08-29T09:12:33.001Z",
- "locked": true,
- "maxUser": 2,
- "maxVideo": 2,
- "maxAudio": 2,
- "agents": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
], - "admins": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
], - "analysts": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
]
}
{- "_id": "5ed3e53fec337e89b3e50ac3",
- "name": "my-room-name",
- "display": "My Room Name",
- "date": "2016-08-29T09:12:33.001Z",
- "locked": true,
- "maxUser": 2,
- "maxVideo": 2,
- "maxAudio": 2,
- "agents": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
], - "admins": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
], - "analysts": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
]
}
Deletes the room on the server. This can not be undone.
roomId required | string The room ID. |
curl --request DELETE \ --url https://arvia.chat/api/rooms/%7BroomId%7D \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
Creates a new project and returns the project details
_id required | string |
name required | string |
date | string |
{- "_id": "5ed3ffc8bccb2989c1e08907",
- "name": "Telehealth",
- "date": "2016-08-29T09:12:33.001Z"
}
{- "_id": "5ed3ffc8bccb2989c1e08907",
- "name": "Telehealth",
- "date": "2016-08-29T09:12:33.001Z"
}
You can get list of your projects.
skip | integer >= 0 Number of records to skip for pagination |
limit | integer [ 0 .. 50 ] Maximum number of records to return |
curl --request GET \ --url 'https://arvia.chat/api/projects?skip=SOME_INTEGER_VALUE&limit=SOME_INTEGER_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "_id": "5ed3ffc8bccb2989c1e08907",
- "name": "Telehealth",
- "date": "2016-08-29T09:12:33.001Z"
}
]
Return online agent list.
projectId required | string The project ID. |
tag | string Returns only of online agents with specified tag. |
curl --request GET \ --url 'https://arvia.chat/api/projects/onlineAgents/%7BprojectId%7D?tag=SOME_STRING_VALUE'
{- "agents": [
- {
- "id": "string"
}
], - "image": "string",
- "status": true
}
Gets details of the project by passing the project ID
projectId required | string The project ID. |
curl --request GET \ --url https://arvia.chat/api/projects/%7BprojectId%7D \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
{- "_id": "5ed3e53fec337e89b3e50ac3",
- "name": "Telehealth",
- "date": "2016-08-29T09:12:33.001Z",
- "locked": true,
- "maxUser": 2,
- "maxVideo": 2,
- "maxAudio": 2,
- "agents": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
], - "admins": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
], - "analysts": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
]
}
Updates project details
projectId required | string The project ID. |
_id required | string |
name required | string |
date | string |
locked | boolean |
maxUser | integer |
maxVideo | integer |
maxAudio | integer |
Array of objects | |
Array of objects | |
Array of objects |
{- "_id": "5ed3e53fec337e89b3e50ac3",
- "name": "Telehealth",
- "date": "2016-08-29T09:12:33.001Z",
- "locked": true,
- "maxUser": 2,
- "maxVideo": 2,
- "maxAudio": 2,
- "agents": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
], - "admins": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
], - "analysts": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
]
}
{- "_id": "5ed3e53fec337e89b3e50ac3",
- "name": "Telehealth",
- "date": "2016-08-29T09:12:33.001Z",
- "locked": true,
- "maxUser": 2,
- "maxVideo": 2,
- "maxAudio": 2,
- "agents": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
], - "admins": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
], - "analysts": [
- {
- "id": "5ed3ffc8bccb2989c1e08907"
}
]
}
Deletes the project and its rooms on the server. This can not be undone.
projectId required | string The project ID. |
curl --request DELETE \ --url https://arvia.chat/api/projects/%7BprojectId%7D \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
Creates a new project or agent. If you are only creating an agent, you can pass projectName as null. If project already exists new agent is added as an agent on the project.
projectName | string |
agentName required | string |
agentEmail required | string |
{- "projectName": "string",
- "agentName": "string",
- "agentEmail": "string"
}
{- "id": "5ed3ffc8bccb2989c1e08907",
- "email": "string",
- "password": "string",
- "project": "5ed3e53fec337e89b3e50ac3"
}
You can get detailed reports for your meetings.
filter | string Example: filter=Meeting,t1|2021-01-01,t2|2021-02-15 Type of the logs you want to get. Can be one of these: Session, Meeting, User_Joined, User_Left, User_Asked_For_Permission, t1 (Date), t2 (Date) |
skip | integer >= 0 Number of records to skip for pagination |
limit | integer [ 0 .. 50 ] Maximum number of records to return |
search | string Example: project=12345&room=dasdsa&meeting=12345 Search parameter. Can be one or many of these; project, room, meeting (Meeting Id), agent (Agent User Id) |
curl --request GET \ --url 'https://arvia.chat/api/analytics?filter=SOME_STRING_VALUE&skip=SOME_INTEGER_VALUE&limit=SOME_INTEGER_VALUE&search=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "_id": "5d34e84bf0cca80f0ecc5597",
- "type": "Meeting",
- "date": "2016-08-29T09:12:33.001Z",
- "userName": "John Doe",
- "agent": {
- "id": "5ed3ffc8bccb2989c1e08907"
}, - "room": {
- "_id": "5c50b9be999e98111207a466",
- "name": "My Room Name"
}, - "project": {
- "_id": "5b5c555ad7cf93ca47ea0119",
- "name": "Telehealth"
}
}
]
One record is returned for each sessionId. It is especially used by customers using widgets.
projectId required | integer Example: projectId=5ed3ffc8bccb2989c1e08907 Project id |
startDate required | string Example: startDate=2020-01-01 Starting date. |
endDate required | string Example: endDate=2020-01-31 End date. |
page | integer Default: 0 Requested page number. Every page return 25 records. |
curl --request GET \ --url 'https://arvia.chat/api/callStats?projectId=SOME_INTEGER_VALUE&startDate=SOME_STRING_VALUE&endDate=SOME_STRING_VALUE&page=SOME_INTEGER_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "count": 0,
- "callStats": [
- {
- "sessionId": "160342342123",
- "roomName": "string",
- "callDate": "2021-02-15 01:00:00",
- "callStatus": "not answered",
- "answerDate": "2021-02-15 01:01:00",
- "endDate": "2021-02-15 01:02:00",
- "answeredAgent": "string",
- "duration": "00:05:00",
- "missedCallDuration": "00:01:00",
- "refererPath": "string",
- "tag": "string"
}
]
}
]
projectId required | integer Example: projectId=5ed3ffc8bccb2989c1e08907 Project id |
startDate required | string Example: startDate=2020-01-01 Starting date. |
endDate required | string Example: endDate=2020-01-31 End date. |
agentId | string Example: agentId=50e34a3412fb Agent user id. You can use it to filter by agent. |
curl --request GET \ --url 'https://arvia.chat/api/agentStats?projectId=SOME_INTEGER_VALUE&startDate=SOME_STRING_VALUE&endDate=SOME_STRING_VALUE&agentId=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "agentName": "John DOE",
- "date": "2021-02-15",
- "called": 20,
- "tags": "IT",
- "answered": 15
}
]
projectId required | integer Example: projectId=5ed3ffc8bccb2989c1e08907 Project id |
startDate required | string Example: startDate=2020-01-01 Starting date. |
endDate required | string Example: endDate=2020-01-31 End date. |
curl --request GET \ --url 'https://arvia.chat/api/callStatsByTags?projectId=SOME_INTEGER_VALUE&startDate=SOME_STRING_VALUE&endDate=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "date": "2021-02-15",
- "tags": "IT",
- "total": 20,
- "answered": 15
}
]
projectId required | integer Example: projectId=5ed3ffc8bccb2989c1e08907 Project id |
curl --request GET \ --url 'https://arvia.chat/api/getAgentStatuses?projectId=SOME_INTEGER_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "_id": "50e3432a35f",
- "name": "John DOE",
- "status": "online"
}
]
projectId required | integer Example: projectId=5ed3ffc8bccb2989c1e08907 Project id |
startDate required | string Example: startDate=2020-01-01 Starting date. |
endDate required | string Example: endDate=2020-01-31 End date. |
agentId | string Example: agentId=50e34a3412fb Agent user id. You can use it to filter by agent. |
showPing | boolean Default: false Example: showPing=false When send value is true report is return with ping logs. |
curl --request GET \ --url 'https://arvia.chat/api/userLogs?projectId=SOME_INTEGER_VALUE&startDate=SOME_STRING_VALUE&endDate=SOME_STRING_VALUE&agentId=SOME_STRING_VALUE&showPing=SOME_BOOLEAN_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "_id": "50e3432a35f",
- "date": "2021-02-15 01:00:00",
- "type": "online",
- "user": "John DOE"
}
]
projectId required | integer Example: projectId=5ed3ffc8bccb2989c1e08907 Project id |
startDate required | string Example: startDate=2020-01-01 Starting date. |
endDate required | string Example: endDate=2020-01-31 End date. |
curl --request GET \ --url 'https://arvia.chat/api/surveyAnswers?projectId=SOME_INTEGER_VALUE&startDate=SOME_STRING_VALUE&endDate=SOME_STRING_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "count": 0,
- "surveyAnswers": [
- {
- "comment": "string",
- "date": "2021-02-15 01:00:00",
- "project": "5f16c19a3e5e98308",
- "score": 1,
- "type": "widget",
- "_id": "string"
}
]
}
]
It is triggered when participant into the room of the project.
roomName | string Room name |
projectId | string Project Id |
date | string Hook create datetime |
type | string Default: "Session_Started" |
{- "roomName": "test",
- "projectId": "53ae43f674fe",
- "date": "2021-02-15 01:00:00",
- "type": "Session_Started"
}
It is triggered when an unauthorized participant enter a locked room.
roomName | string Room name |
projectId | string Project Id |
date | string Hook create datetime |
type | string Default: "User_Asked_For_Permission" |
object (HookUser) |
{- "roomName": "test",
- "projectId": "53ae43f674fe",
- "date": "2021-02-15 01:00:00",
- "type": "User_Asked_For_Permission",
- "user": {
- "_id": "string",
- "name": "string"
}
}
It is triggered when a participant enter the room.
roomName | string Room name |
projectId | string |
date | string Hook create datetime |
type | string Default: "User_Joined" |
object (HookUser) |
{- "roomName": "test",
- "projectId": "53ae43f674fe",
- "date": "2021-02-15 01:00:00",
- "type": "User_Joined",
- "user": {
- "_id": "string",
- "name": "string"
}
}
It is triggered when at least two participant enter the room.
roomName | string Room name |
projectId | string Project Id |
date | string Hook create datetime |
type | string Default: "Meeting_Started" |
object (HookUser) |
{- "roomName": "test",
- "projectId": "53ae43f674fe",
- "date": "2021-02-15 01:00:00",
- "type": "Meeting_Started",
- "user": {
- "_id": "string",
- "name": "string"
}
}
It is triggered when the participant leaves the room.
roomName | string Room name |
projectId | string Project Id |
date | string Hook create datetime |
type | string Default: "User_Left" |
object (HookUser) |
{- "roomName": "test",
- "projectId": "53ae43f674fe",
- "date": "2021-02-15 01:00:00",
- "type": "User_Left",
- "user": {
- "_id": "string",
- "name": "string"
}
}
It is triggered when less than two participants remain in the room.
roomName | string Room name |
projectId | string Project Id |
date | string Hook create datetime |
type | string Default: "Meeting_Ended" |
object (HookUser) |
{- "roomName": "test",
- "projectId": "53ae43f674fe",
- "date": "2021-02-15 01:00:00",
- "type": "Meeting_Ended",
- "user": {
- "_id": "string",
- "name": "string"
}
}
Its triggered when all participants left in the room.
roomName | string Room name |
projectId | string Project Id |
date | string Hook create datetime |
type | string Default: "Session_Ended" |
object (HookUser) |
{- "roomName": "test",
- "projectId": "53ae43f674fe",
- "date": "2021-02-15 01:00:00",
- "type": "Session_Ended",
- "user": {
- "_id": "string",
- "name": "string"
}
}
Its triggered when recording file ready for download.
roomName | string Room name |
projectId | string Project Id |
date | string Hook create datetime |
type | string Default: "Meeting_Recording_Ready" |
playUrl | string Play URL for recording file. |
downloadUrl | string Download URL for recording file. |
{- "roomName": "test",
- "projectId": "53ae43f674fe",
- "date": "2021-02-15 01:00:00",
- "type": "Meeting_Recording_Ready",
- "playUrl": "string",
- "downloadUrl": "string"
}
Gets recording reports.
project | string Project Id |
room | string Room Id |
startDate | string Example: startDate=2021-01-01 Start date |
endDate | string Example: endDate=2021-01-01 End date |
skip | integer >= 0 Number of records to skip for pagination |
limit | integer [ 0 .. 50 ] Maximum number of records to return |
curl --request GET \ --url 'https://arvia.chat/api/recordings?project=SOME_STRING_VALUE&room=SOME_STRING_VALUE&startDate=SOME_STRING_VALUE&endDate=SOME_STRING_VALUE&skip=SOME_INTEGER_VALUE&limit=SOME_INTEGER_VALUE' \ --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[- {
- "_id": "5d34e84bf0cca80f0ecc5597",
- "meetingId": "string",
- "fileName": "string",
- "hash": "string",
- "details": {
- "sessionId": "string",
- "date": "string",
- "end": "string",
- "agent": {
- "name": "string"
}, - "room": {
- "name": "string"
}
}
}
]
Play or download recording file.
recordingId required | string This id is available in recordings list. |
save | string If you want to download file, please set the value is 1 |
hash | string If you do not have token information, you can send a request using this parameter. |
curl --request GET \ --url 'https://arvia.chat/api/recordings/play/%7BrecordingId%7D?save=SOME_STRING_VALUE&hash=SOME_STRING_VALUE'