Webcamconsult API
A simple API to access users, clients and appointments for webcamconsult.
Authentication is done by a authorization token in the headers. Each organisation (instance) has it’s own token. add a Authorization key to your headers with the value: “Token token=[your api key]”
- eg. “Authorization:Token token=9f7927485a954b169ef6502fd5079e72”
Alternatively the token can be provided as by the authentication_token parameter.
Resource Group ¶
User Collection ¶
List All UsersGET/users.json
Example URI
Headers
Authorization: Token token=38826f79010b41b5aaeb4710debb09db
200
Headers
Content-Type: application/json
Body
[
{
"id": "1234567890abcdef12345678",
"titles": "Dokter",
"initials": "J",
"last_name": "Akkermans",
"full_name": "Dokter J Akkermans",
"emails": "jakkermans@example.com"
"address": "Vlietlaan 1",
"postal_code": "3011AA",
"city": "Ergens",
"roles": [
"consultant"
]
},
]
Create a New UserPOST/users.json
You may create a user using this action. It takes a JSON object containing a user
Example URI
Headers
Authorization: Token token=eb4710debb09db38826f79010b41b5aa
Headers
Content-Type: application/json
Body
{
"user": {
"titles": "Dokter",
"initials": "J",
"last_name": "Akkermans",
"email": "jakkermans@example.com",
"address": "Vlietlaan 1",
"postal_code": "3011AA",
"city": "Ergens",
}
}
200
Headers
Content-Type: application/json
Body
{
"user": {
"id": "1234567890abcdef12345678",
"titles": "Dokter",
"initials": "J",
"last_name": "Akkermans",
"full_name": "Dokter J Akkermans",
"email": "jakkermans@example.com",
"address": "Vlietlaan 1",
"postal_code": "3011AA",
"city": "Ergens",
"roles": [
"consultant"
]
}
}
422
Body
{
"errors": {
"email": [
"is al in gebruik"
]
}
}
User ¶
A user object has the following (editable) attributes
-
titles
-
initials
-
last_name
-
email
-
address
-
postal_code
-
city
These attributes are generated:
-
id
-
full_name
-
roles
View a User detailGET/users/{user_id}.json
Example URI
- user_id
string
(required)id of the user
Headers
Authorization: Token token=eb4710debb09db38826f79010b41b5aa
200
Headers
Content-Type: application/json
Body
{
"user": {
"id": "1234567890abcdef12345678",
"titles": "Dokter",
"initials": "J",
"last_name": "Akkermans",
"full_name": "Dokter J Akkermans",
"email": "jakkermans@example.com",
"address": "Vlietlaan 1",
"postal_code": "3011AA",
"city": "Ergens",
"roles": [
"consultant"
]
}
}
Update a UserPUT/users/{user_id}.json
You may update a user using this action. It takes a JSON object containing a user
Example URI
- user_id
string
(required)id of the user
Headers
Authorization: Token token=eb4710debb09db38826f79010b41b5aa
Headers
Content-Type: application/json
Body
{
"user": {
"titles": "Dokter",
"initials": "J",
"last_name": "Akkermans",
"full_name": "Dokter J Akkermans",
"email": "jakkermans@example.com",
"address": "Vlietlaan 1",
"postal_code": "3011AA",
"city": "Ergens"
}
}
200
Headers
Content-Type: application/json
Body
{
"user": {
"id": "1234567890abcdef12345678",
"titles": "Dokter",
"initials": "J",
"last_name": "Akkermans",
"full_name": "Dokter J Akkermans",
"email": "jakkermans@example.com",
"address": "Vlietlaan 1",
"postal_code": "3011AA",
"city": "Ergens",
"roles": [
"consultant"
]
}
}
Delete a UserDELETE/users/{user_id}.json
You may delete a user using this action
Example URI
- user_id
string
(required)id of the user
Headers
Authorization: Token token=eb4710debb09db38826f79010b41b5aa
Headers
Content-Type: application/json
Body
{
"user": {
"id": "1234567890abcdef12345678"
}
}
200
Headers
Content-Type: Application/json
Body
{
"status": "ok"
}
Client Collection ¶
List All ClientsGET/clients.json
Example URI
Headers
Authorization: Token token=38826f79010b41b5aaeb4710debb09db
200
Headers
Content-Type: application/json
Body
[
{
"id":"5492ba6da19ea682ea000001",
"email":"urias@sensestudios.com",
"titles":"Dr.",
"initials":"T",
"surname_prefix":"de",
"last_name":"Ester",
"client_full_name":"Dhr. Dr. T de Ester",
"external":null,
"gender":"male",
"date_of_birth":"2014-12-18T00:00:00.000+01:00",
"reference_code":"12345",
"division_ids":[ "5492ba6da19ea682ea000001", "5492ba6da19ea682ea000001" ],
"authentication_token":"M94sNGjyKEH2U3yTxRAx",
},
]
Create a New ClientPOST/clients.json
You may create a client using this action. It takes a JSON object containing a client
Example URI
Headers
Authorization: Token token=eb4710debb09db38826f79010b41b5aa
Headers
Content-Type: application/json
Body
{
"client": {
"email": "urias@sensestudios.com",
"titles": "Dr.",
"initials": "T",
"surname_prefix": "de",
"last_name": "Ester",
"gender": "male",
"date_of_birth": "2014-12-18T00:00:00.000+01:00",
"reference_code": "12345",
"division_ids": [
"5492ba6da19ea682ea000001",
"5492ba6da19ea682ea000001"
]
}
}
200
Headers
Content-Type: application/json
Body
{
"client": {
"id":"5492ba6da19ea682ea000001",
"email":"urias@sensestudios.com",
"titles":"Dr.",
"initials":"T",
"surname_prefix":"de",
"last_name":"Ester",
"client_full_name":"Dhr. Dr. T de Ester",
"external":null,
"gender":"male",
"date_of_birth":"2014-12-18T00:00:00.000+01:00",
"reference_code":"12345",
"division_ids":[ "5492ba6da19ea682ea000001", "5492ba6da19ea682ea000001" ],
}
}
422
Body
{
"errors": {}
}
}
Client ¶
A user object has the following (editable) attributes
-
email
-
titles
-
initials
-
surname_prefix
-
last_name
-
external
-
gender
-
date_of_birth
-
reference_code
-
division_ids
These attributes are generated:
-
id
-
client_full_name
View a Client detailGET/client/{client_id}.json
Example URI
- client_id
string
(required)id of the client
Headers
Authorization: Token token=eb4710debb09db38826f79010b41b5aa
200
Headers
Content-Type: application/json
Body
{
"client": {
"id":"5492ba6da19ea682ea000001",
"email":"urias@sensestudios.com",
"titles":"Dr.",
"initials":"T",
"surname_prefix":"de",
"last_name":"Ester",
"client_full_name":"Dhr. Dr. T de Ester",
"external":null,
"gender":"male",
"date_of_birth":"2014-12-18T00:00:00.000+01:00",
"reference_code":"12345",
"division_ids":[ "5492ba6da19ea682ea000001", "5492ba6da19ea682ea000001" ],
}
}
Update a ClientPUT/client/{client_id}.json
You may update a user using this action. It takes a JSON object containing a user
Example URI
- client_id
string
(required)id of the client
Headers
Authorization: Token token=eb4710debb09db38826f79010b41b5aa
Headers
Content-Type: application/json
Body
{
"client": {
"email": "urias@sensestudios.com",
"titles": "Dr.",
"initials": "T",
"surname_prefix": "de",
"last_name": "Ester",
"gender": "male",
"date_of_birth": "2014-12-18T00:00:00.000+01:00",
"reference_code": "12345",
"division_ids": [
"5492ba6da19ea682ea000001",
"5492ba6da19ea682ea000001"
]
}
}
200
Headers
Content-Type: application/json
Body
{
"client": {
"id": "5492ba6da19ea682ea000001",
"email": "urias@sensestudios.com",
"titles": "Dr.",
"initials": "T",
"surname_prefix": "de",
"last_name": "Ester",
"client_full_name": "Dhr. Dr. T de Ester",
"external": null,
"gender": "male",
"date_of_birth": "2014-12-18T00:00:00.000+01:00",
"reference_code": "12345",
"division_ids": [
"5492ba6da19ea682ea000001",
"5492ba6da19ea682ea000001"
]
}
}
Delete a ClientDELETE/client/{client_id}.json
You may delete a client using this action
Example URI
- client_id
string
(required)id of the client
Headers
Authorization: Token token=eb4710debb09db38826f79010b41b5aa
Headers
Content-Type: application/json
Body
{
"client": {
"id": "1234567890abcdef12345678"
}
}
200
Headers
Content-Type: Application/json
Body
{
"status": "ok"
}
Appointment Collection ¶
List All AppointmentsGET/appointments.json
-
Parameters (optional) start: YYYYMMDD (parsable date, string)
-
Parameters (optional) eind: YYYYMMDD (parsable date, string)
Example URI
Headers
Authorization: Token token=38826f79010b41b5aaeb4710debb09db
Headers
Content-Type: application/json
Body
{
start: "20200301",
eind: "20200331"
}
200
Headers
Content-Type: application/json
Body
[
{
"id": "1234567890abcdef12345678",
"user_id": "1234567890abcdef12345678",
"client_id": "1234567890abcdef12345678",
"created_by_user_id": "1234567890abcdef12345678",
"date":"2015-07-01T15:41:24.306+02:00",
"orig_date":"2015-07-01T15:41:24.306+02:00",
"started_at":"2015-07-01T15:41:24.306+02:00",
"created_at":"2015-07-01T15:41:24.306+02:00",
"state": "idle",
"division_id": "1234567890abcdef12345678",
"duration": 100,
"external_participant_ids":["1234567890abcdef12345678","1234567890abcdef12345678"],
"fileshare": false,
"screenshare": false,
"group": false,
"widget": false,
"inloop_json": {"email":"someemail@somedomain.com"},
"pin": 2139,
"reminder_10m_id": "2015-07-01T15:41:24.306+02:00",
"reminder_1h_id": "2015-07-01T15:41:24.306+02:00",
"stream": "172d79c0-0224-0133-121b-00163e1631b0",
"token": "4987yrtkjsdfsUDASJD",
"client_device":"windows-chrome"
},
]
Create a New AppointmentPOST/appointments.json
You may create a client using this action. It takes a JSON
object containing a client
Example URI
Headers
Authorization: Token token=eb4710debb09db38826f79010b41b5aa
Headers
Content-Type: application/json
Body
{
"client": {
"last_name": "Akkermans",
"email": "jakkermans@example.com",
}
}
200
Headers
Content-Type: application/json
Body
{
"client": {
"id": "1234567890abcdef12345678",
"last_name": "Akkermans",
"email": "jakkermans@example.com",
}
}
422
Body
{
"errors": {
"email": [
"is al in gebruik"
]
}
}
Appointment ¶
A user object has the following (editable) attributes
-
last_name
-
email
These attributes are generated:
- id
View an Appointment detailGET/appointment/{appointment_id}.json
Example URI
- appointment_id
string
(required)id of the appointment
Headers
Authorization: Token token=eb4710debb09db38826f79010b41b5aa
200
Headers
Content-Type: application/json
Body
{
"client": {
"id": "1234567890abcdef12345678",
"last_name": "Akkermans",
"email": "jakkermans@example.com",
}
}
Update an AppointmentPUT/appointment/{appointment_id}.json
You may update an appointment using this action. It takes a JSON object containing a user
Example URI
- appointment_id
string
(required)id of the appointment
Headers
Authorization: Token token=eb4710debb09db38826f79010b41b5aa
Headers
Content-Type: application/json
Body
{
"appointment": {
"date": "Akkermans",
}
}
200
Headers
Content-Type: application/json
Body
{
"appointment": {
"id": "1234567890abcdef12345678",
}
}
Delete an AppointmentDELETE/appointment/{appointment_id}.json
You may delete a appointment using this action
Example URI
- appointment_id
string
(required)id of the appointment
Headers
Authorization: Token token=eb4710debb09db38826f79010b41b5aa
Headers
Content-Type: application/json
Body
{
"appointment": {
"id": "1234567890abcdef12345678"
}
}
200
Headers
Content-Type: Application/json
Body
{
"status": "ok"
}