The REST API provide programmatic access to read and write Qareo data. The REST API identifies Qareo applications and users using an api key; request body and responses are available in JSON. Access to the API requires a premium account.
Callers must add to each call a custom header named x-api-key, along with the value of the API key. For example, if the API key value is bkayZOMvuy8aZOhIgxq94K9Oe7Y70Hw55, the custom header would be as follows:
Parameter name |
Value |
Required |
Description |
---|---|---|---|
firstName |
string |
false |
The user first name |
lastName |
string |
false |
The user last name |
fiscalCode |
string |
false |
The user fiscal code |
{
“id”: “234”,
“firstName”: “Mario”,
“lastName”: “Rossi”,
“email”: “mario.rossi@email.com”,
“phone”: “+393471234353”,
“sex”: “male”,
“avatar”: “https://”,
“active”: false
},
{
“id”: “154”,
“firstName”: “Giuseppe”,
“lastName”: “Verdi”,
“email”: “giuseppe.verdi@email.com”,
“phone”: “+393481275355”,
“sex”: “male”,
“fiscalCode”: “SMRGTN98E28E239T”,
“avatar”: “https://”,
“active”: true
},
{
“id”: “567”,
“firstName”: “Anna”,
“lastName”: “Bianchi”,
“email”: “anna.bianchi@email.com”,
“phone”: “+393494443563”,
“sex”: “female”,
“avatar”: “https://”,
“active”: false
}
]
Property name |
Value |
Description |
---|---|---|
id |
string |
The id of the person |
firstName |
string |
The first name of the person |
lastName |
string |
The last name of the person |
|
string |
The email address of the person |
phone |
string |
The phone number of the person (international format) |
sex |
string |
The sex of the person (“male”, “female” or empty) |
avatar |
string |
The avatar url of the person |
active |
boolean |
The flag indicating if the person is a contact (false) or a member (true) |
Code |
Description |
---|---|
200 |
Success |
404 |
Resource not found |
Creates a contact on Qareo.
Request body
In the request body, supply a Person resource with the following properties.
Property name |
Value |
Description |
---|---|---|
firstName |
string |
The first name of the person |
lastName |
string |
The last name of the person |
|
string |
The email address of the person |
phone |
string |
The phone number of the person (international format) |
sex |
string |
The sex of the person (“male”, “female” or empty) |
avatar |
string |
The avatar url of the person |
Code |
Description |
---|---|
201 |
Created |
404 |
Resource not found |
Property name |
Value |
Description |
---|---|---|
personId |
string |
The id of the person |
“id”: “234”,
“firstName”: “Mario”,
“lastName”: “Rossi”,
“email”: “mario.rossi@email.com”,
“phone”: “+393471234353”,
“sex”: “male”,
“avatar”: “https://”,
“active”: false
}
Property name |
Value |
Description |
---|---|---|
id |
string |
The id of the person |
firstName |
string |
The first name of the person |
lastName |
string |
The last name of the person |
|
string |
The email address of the person |
phone |
string |
The phone number of the person (international format) |
sex |
string |
The sex of the person (“male”, “female” or empty) |
avatar |
string |
The avatar url of the person |
active |
boolean |
The flag indicating if the person is a contact (false) or a member (true) |
Code |
Description |
---|---|
200 |
Success |
404 |
Resource not found |
Property name |
Value |
Description |
---|---|---|
personId |
string |
The id of the person |
{
“id”: “546”,
“name”: “Pluto”,
“avatar”: “https://”,
“microchip”: “4343241564”,
“species”: “dog”,
“breed”: “”,
“sex”: “female”,
“weight”: 13.5,
“activity”: 7,
“birthday”: “23/12/2009”
},
{
“id”: “372”,
“name”: “Micio”,
“avatar”: “https://”,
“microchip”: “65547664”,
“species”: “cat”,
“breed”: “”,
“sex”: “male”,
“weight”: 7,
“activity”: 5,
“birthday”: “13/03/2015”
}
]
Property name |
Value |
Description |
---|---|---|
id |
string |
The id of the animal |
name |
string |
The name of the animal |
avatar |
string |
The avatar url of the animal |
microchip |
string |
The microchip identifier of the animal |
species |
string |
The species of the animal (“cat”, “dog” or “other”) |
breed |
string |
The breed of the animal |
sex |
string |
The sex of the animal (“male”, “female” or empty) |
weight |
double |
The weight of the animal |
activity |
integer |
The activity level of the animal (between 1 and 10) |
birthday |
string |
The birthdate of the animal (yyyy-MM-dd) |
Code |
Description |
---|---|
200 |
Success |
404 |
Resource not found |
Property name |
Value |
Description |
---|---|---|
personId |
string |
The id of the person |
In the request body, supply an Animal resource with the following properties.
Property name |
Value |
Description |
---|---|---|
name |
string |
The name of the animal |
avatar |
string |
The avatar url of the animal |
microchip |
string |
The microchip identifier of the animal |
species |
string |
The species of the animal (“cat”, “dog” or “other”) |
breed |
string |
The breed of the animal |
sex |
string |
The sex of the animal (“male”, “female” or empty) |
weight |
double |
The weight of the animal |
activity |
integer |
The activity level of the animal (between 1 and 10) |
birthday |
string |
The birthdate of the animal (yyyy-MM-dd) |
Code |
Description |
---|---|
201 |
Created |
404 |
Resource not found |
Parameter name |
Value |
Description |
---|---|---|
animalId |
string |
The id of the animal |
“id”: “546”,
“name”: “Pluto”,
“avatar”: “https://”,
“microchip”: “4343241564”,
“species”: “dog”,
“breed”: “”,
“sex”: “female”,
“weight”: 13.5,
“activity”: 7,
“birthday”: “23/12/2009”
}
Property name |
Value |
Description |
---|---|---|
id |
string |
The id of the animal |
name |
string |
The name of the animal |
avatar |
string |
The avatar url of the animal |
microchip |
string |
The microchip identifier of the animal |
species |
string |
The species of the animal (“cat”, “dog” or “other”) |
breed |
string |
The breed of the animal |
sex |
string |
The sex of the animal (“male”, “female” or empty) |
weight |
double |
The weight of the animal |
activity |
integer |
The activity level of the animal (between 1 and 10) |
birthday |
string |
The birthdate of the animal (yyyy-MM-dd) |
Code |
Description |
---|---|
200 |
Success |
404 |
Resource not found |
Property name |
Value |
Description |
---|---|---|
animalId |
string |
The id of the animal |
{
“id”: “546”,
“date”: “23/09/2016”,
“type”: “service”,
“category”: “visit”,
“content”: “Cardiologia”
},
{
“id”: “456”,
“date”: “13/08/2016”,
“type”: “service”,
“category”: “vaccination”,
“content”: “Leishmaniosi”
},
{
“id”: “343”,
“date”: “28/07/2016”,
“type”: “booking”,
“category”: “analysis”,
“content”: “Biochimico”
}
]
Property name |
Value |
Description |
---|---|---|
id |
string |
The id of the event |
date |
string |
The date of the event (yyyy-MM-dd) |
type |
string |
The type of the event (“booking”, “service”) |
category |
string |
The category of the event (“visit”, “vaccination”, “analysis”, “activity”) |
content |
string |
The content description of the event |
Code |
Description |
---|---|
200 |
Success |
404 |
Resource not found |
POST /animals/{animalId}/events
Property name |
Value |
Description |
---|---|---|
animalId |
string |
The id of the animal |
Property name |
Value |
Description |
---|---|---|
date |
string |
The date of the event (yyyy-MM-dd) |
type |
string |
The type of the event (“booking”, “service”) |
category |
string |
The category of the event (“visit”, “vaccination”, “analysis”, “activity”) |
content |
string |
The content description of the event |
Code |
Description |
---|---|
201 |
Created |
404 |
Resource not found |
This resource represents an animal event on Qareo.
Parameter name |
Value |
Description |
---|---|---|
eventId |
string |
The id of the animal event |
“id”: “456”,
“date”: “13/08/2016”,
“type”: “booking”,
“category”: “vaccination”,
“content”: “Leishmaniosi”
}
Property name |
Value |
Description |
---|---|---|
id |
string |
The id of the event |
date |
string |
The date of the event (yyyy-MM-dd) |
type |
string |
The type of the event (“booking”, “service”) |
category |
string |
The category of the event (“visit”, “vaccination”, “analysis”, “activity”) |
content |
string |
The content description of the event |
Code |
Description |
---|---|
200 |
Success |
404 |
Resource not found |
Parameter name |
Value |
Description |
---|---|---|
eventId |
string |
The id of the animal event |
Code |
Description |
---|---|
201 |
Created |
404 |
Resource not found |
500 |
Internal server error |
Sei un veterinario?