Gets a list of all users with whom a specific user calendar is shared.
URL : /api/v1/calendars/:user_id/shares/:calendar_id
Method : GET
Auth required : YES
Params constraints
:user_id -> "[user id as an int]",
:calendar_id -> "[numeric id of a calendar owned by the user]",
URL example
/api/v1/calendars/mdoe/shares/1Important Note : The :calendar_id must be a calendar instance owned by the user. The endpoint retrieves shares of the underlying Calendar entity, ensuring shares are found correctly regardless of the instance reference.
Code : 200 OK
Content examples
{
"status": "success",
"data": [
{
"username": "adoe",
"user_id": 5,
"principal_id": 9,
"displayname": "Aiden Doe",
"email": "adoe@example.org",
"write_access": false
},
{
"username": "jdoe",
"user_id": 4,
"principal_id": 3,
"displayname": "John Doe",
"email": "jdoe@example.org",
"write_access": true
}
]
}Condition : If 'X-Davis-API-Token' is not present or mismatched in headers.
Code : 401 UNAUTHORIZED
Content :
{
"message": "No API token provided",
"timestamp": "2026-01-23T15:01:33+01:00"
}or
{
"message": "Invalid API token",
"timestamp": "2026-01-23T15:01:33+01:00"
}Condition : If user is not found.
Code : 404 NOT FOUND
Content :
{
"status": "error",
"message": "User Not Found",
"timestamp": "2026-01-23T15:01:33+01:00"
}Condition : If ':calendar_id' and ':username' combination is invalid.
Code : 400 BAD REQUEST
Content :
{
"status": "error",
"message": "Invalid Calendar ID/Username",
"timestamp": "2026-01-23T15:01:33+01:00"
}