Submit presence events with BASIC auth
Submit presence events to Calven with BASIC authentication.
Request
Send your HTTP requests with an Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:Authorization: Basic *****************
Body Params application/json
{
"sourceId": "string",
"presenceEvents": [
{
"timestamp": "2021-09-01T12:00:00.000Z",
"locationId": "string",
"locationType": "level",
"eventId": "string",
"sourceUserId": "string",
"userId": "string",
"userEmail": "string"
}
]
}
Request Code Samples
curl --location --request POST 'https://api.calven.com/v1/presence/basic' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"sourceId": "string",
"presenceEvents": [
{
"timestamp": "2021-09-01T12:00:00.000Z",
"locationId": "string",
"locationType": "level",
"eventId": "string",
"sourceUserId": "string",
"userId": "string",
"userEmail": "string"
}
]
}'
Responses
application/json {
"sourceId": "string",
"timestamp": "2021-09-01T12:00:00.000Z",
"results": [
{
"eventId": "string",
"resultCode": 0,
"message": "string"
}
]
}
Modified at 2025-04-03 13:58:43