Misc · Assemblies
List meetings
Returns the meetings and written resolutions of a mandate with their time, place, status and counts, and for a meeting that books its room the series id of that reservation. A view narrows them to upcoming or running ones, past ones, drafts or canceled ones, and a period to the meetings held in it, without written resolutions.
Permissions
Send an API key of the organization in the path, using the X-API-Key header.
Permission checks in detail
Required permissions
mandate.readassembly.read
Also checked, depending on the request and the records it touches
user.readapiKey.readcontact:member.readcontact:address.readcontact:customer.readcontact:sponsor.readcontact:contributor.readcontact:employee.readcontact:supplier.readcontact.read
Request
Path parameters
-
organizationIdidrequired -
mandateIdidrequired
Body
Content-Type: application/json
-
sortobject of stringThe keys to sort by, each with its direction. Sorting lists every key.
ascdesc -
limitinteger0–500 · default
50 -
offsetintegerat least 0 · default
0 -
returnCountbooleandefault
false -
viewstringdefault
"all"upcomingpastdraftcanceledall -
kindsstring[]generaldelegatesboardwritten -
periodobject2 properties
-
fromstring · date-timerequired -
tostring · date-timerequired
-
-
searchTermstring
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
--request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/misc/assemblies/list' \
--header 'X-API-Key: YOUR_API_KEY'const response = await fetch("https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/misc/assemblies/list", {
method: "POST",
headers: {
"X-API-Key": "YOUR_API_KEY"
},
redirect: 'error',
signal: AbortSignal.timeout(30_000),
});
if (!response.ok) throw new Error(`campai HTTP ${response.status}`);
const text = await response.text();
const result = text ? JSON.parse(text) : null;
console.log(JSON.stringify(result, null, 2));<?php
$context = stream_context_create(['http' => [
'method' => 'POST',
'header' => [
'X-API-Key: YOUR_API_KEY',
],
'timeout' => 30,
'follow_location' => 0,
'ignore_errors' => true,
]]);
$text = @file_get_contents('https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/misc/assemblies/list', false, $context);
preg_match('/^HTTP\/\S+ (\d{3})/', $http_response_header[0] ?? '', $match);
$status = (int) ($match[1] ?? 0);
if ($text === false || $status < 200 || $status >= 300) {
throw new RuntimeException("campai HTTP $status (0 means no response)");
}
$result = $text === '' ? null : json_decode($text, true, 512, JSON_THROW_ON_ERROR);
echo json_encode($result, JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR), PHP_EOL;
No request that worked has been recorded yet, so the body is not shown.
Sorting
sort takes the keys to sort by, each with asc or desc.
57 sort keys
| Key |
|---|
_id |
mandate |
shortId |
title |
kind |
format |
timezone |
period.start |
period.end |
votingPeriod.opensAt |
votingPeriod.closesAt |
place.type |
place.resource.site |
place.resource.siteName |
place.resource.siteAddress.country |
place.resource.siteAddress.state |
place.resource.siteAddress.zip |
place.resource.siteAddress.city |
place.resource.siteAddress.addressLine |
place.resource.siteAddress.details1 |
place.resource.siteAddress.details2 |
place.resource.resource |
place.resource.resourceName |
place.resource.quantity |
place.address.country |
place.address.state |
place.address.zip |
place.address.city |
place.address.addressLine |
place.address.details1 |
place.address.details2 |
place.location.latitude |
place.location.longitude |
place.online.url |
place.online.instructions |
status |
statistics.voters.count |
statistics.voters.weight |
statistics.guests |
statistics.externals |
statistics.present.count |
statistics.present.weight |
statistics.votes |
statistics.decided |
cancelation.canceledAt |
cancelation.canceledBy.name |
cancelation.canceledBy.type |
cancelation.canceledBy.userId |
cancelation.canceledBy.image.resource |
cancelation.canceledBy.image.fileName |
cancelation.canceledBy.image.contentType |
cancelation.canceledBy.image.fileSizeBytes |
cancelation.canceledBy.key |
cancelation.reason |
closedAt |
invitation.sentAt |
roomReservationSeriesId |
Response
200 Successful response
Content-Type: application/json
-
countintegerat least 0
-
assembliesobject[]16 properties
-
_idid -
mandateid -
shortIdstringexactly 6 characters
-
titlestring1–120 characters
-
kindstringgeneraldelegatesboardwritten -
formatstringinPersonhybridonlinewritten -
timezonestringat least 1 characters
-
periodobjectnullable2 properties
-
startstring · date-time -
endstring · date-timenullable
-
-
votingPeriodobjectnullable2 properties
-
opensAtstring · date-time -
closesAtstring · date-time
-
-
placeobjectnullable5 properties
-
typestringresourceaddressonline -
resourceobject6 properties
-
siteid -
siteNamestringat least 1 characters
-
siteAddressobject7 properties
-
countrystring -
statestring -
zipstringat most 10 characters
-
citystringat most 45 characters
-
addressLinestringat most 45 characters
-
details1stringat most 45 characters
-
details2stringat most 45 characters
-
-
resourceid -
resourceNamestring -
quantityinteger
-
-
addressobject7 properties
-
countrystring -
statestring -
zipstringat most 10 characters
-
citystringat most 45 characters
-
addressLinestringat most 45 characters
-
details1stringat most 45 characters
-
details2stringat most 45 characters
-
-
locationobjectnullable2 properties
-
latitudenumber-90–90
-
longitudenumber-180–180
-
-
onlineobject2 properties
-
urlstring · uriat most 300 characters
-
instructionsstringat most 400 characters
-
-
-
statusstringdraftinvitedrunningclosedcanceled -
statisticsobject6 properties
-
votersobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
guestsintegerat least 0
-
externalsintegerat least 0
-
presentobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
votesintegerat least 0
-
decidedintegerat least 0
-
-
cancelationobjectnullable3 properties
-
canceledAtstring · date-time -
canceledByobject -
reasonstringat most 500 characters
-
-
closedAtstring · date-timenullable -
invitationobject1 property
-
sentAtstring · date-timenullable
-
-
roomReservationSeriesIdstringnullable
-
-
searchLimitedboolean -
searchTotalnumbernullable
{
"count": 0,
"assemblies": [
{
"_id": "000000000000000000000001",
"mandate": "000000000000000000000001",
"shortId": "string",
"title": "string",
"kind": "general",
"format": "inPerson",
"timezone": "string",
"period": {
"start": "2026-06-15T22:30:00Z",
"end": "2026-06-15T22:30:00Z"
},
"votingPeriod": {
"opensAt": "2026-06-15T22:30:00Z",
"closesAt": "2026-06-15T22:30:00Z"
},
"place": {
"type": "resource"
},
"status": "draft",
"statistics": {
"voters": {
"count": 0,
"weight": 0
},
"guests": 0,
"externals": 0,
"present": {
"count": 0,
"weight": 0
},
"votes": 0,
"decided": 0
},
"cancelation": {
"canceledAt": "2026-06-15T22:30:00Z",
"canceledBy": {
"name": "string",
"type": "user",
"userId": "string",
"image": {
"resource": "string"
}
},
"reason": "string"
},
"closedAt": "2026-06-15T22:30:00Z",
"invitation": {
"sentAt": "2026-06-15T22:30:00Z"
},
"roomReservationSeriesId": "string"
}
],
"searchLimited": true,
"searchTotal": 1
}
Errors
No errors of its own are known for this endpoint.
Errors nearly every request can meet are listed under Errors.