Skip to content
campaiDeveloper
campai.com

Misc · Assemblies

POST/{organizationId}/{mandateId}/misc/assemblies/{assemblyId}/rounds/getReads only

Get round

Returns a round of a meeting with its vote. Once it was stopped, also who was entitled and who voted, how and through whom, and its ballots in random order; a ballot names its voter only in a named round. While a round runs nobody learns who voted.

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • mandate.read
  • assembly.read
Also checked, depending on the request and the records it touches
  • user.read
  • apiKey.read
  • contact:member.read
  • contact:address.read
  • contact:customer.read
  • contact:sponsor.read
  • contact:contributor.read
  • contact:employee.read
  • contact:supplier.read
  • contact.read

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • assemblyIdidrequired

Body

Content-Type: application/json

  • roundIdidrequired
Request
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/YOUR_ASSEMBLY_ID/rounds/get' \
  --header 'X-API-Key: YOUR_API_KEY'

No request that worked has been recorded yet, so the body is not shown.

Response

200 Successful response

Content-Type: application/json

  • roundobject
    33 properties
    • _idid
    • createdAtstring · date-timenullable
    • updatedAtstring · date-timenullable
    • removedAtstring · date-timenullable
    • createdByobjectnullable
    • updatedByobjectnullable
    • removedByobjectnullable
    • __ignoreTriggersstringnullable
    • organizationid
    • assemblyid
    • voteid
    • numberinteger

      at least 1

    • titlestring

      1–120 characters

    • kindstring
      secret named paper
    • methodstring
      yesNoAbstain yesNo yes no listYesNoAbstain
    • optionsobject[]

      1–100 items

      3 properties
      • _idid
      • labelstring

        1–200 characters

      • candidateidnullable
    • marksobject
      2 properties
      • mininteger

        at least 0

      • maxinteger

        at least 1

    • generalobject
      2 properties
      • noboolean
      • abstainboolean
    • basestring
      yesNo yesNoAbstain valid cast entitled present none
    • groupsstring[]nullable

      each at most 60 characters

    • closesAtstring · date-timenullable
    • statestring
      created running stopped published annulled
    • startedAtstring · date-timenullable
    • stoppedAtstring · date-timenullable
    • publishedAtstring · date-timenullable
    • annulmentobjectnullable
      3 properties
      • atstring · date-time
      • byobject
      • reasonstring

        at most 500 characters

    • receivedobject
      2 properties
      • countinteger

        at least 0

      • weightnumber

        at least 0

    • entitledobject
      2 properties
      • countinteger

        at least 0

      • weightnumber

        at least 0

    • quorumobject
      2 properties
      • atStartobjectnullable
        3 properties
        • presentobject
          2 properties
          • countinteger

            at least 0

          • weightnumber

            at least 0

        • votersobject
          2 properties
          • countinteger

            at least 0

          • weightnumber

            at least 0

        • metbooleannullable
      • atStopobjectnullable
        3 properties
        • presentobject
          2 properties
          • countinteger

            at least 0

          • weightnumber

            at least 0

        • votersobject
          2 properties
          • countinteger

            at least 0

          • weightnumber

            at least 0

        • metbooleannullable
    • warningsobject[]
      2 properties
      • kindstring
        notInInvitation quorumMissing fewEntitled fewOnline noEntitled late
      • countintegernullable

        at least 0

    • incidentsobject
      2 properties
      • failuresinteger

        at least 0

      • disconnectsinteger

        at least 0

    • resultobjectnullable
      7 properties
      • optionsobject[]
        4 properties
        • optionid
        • yesobject
          2 properties
          • countinteger

            at least 0

          • weightnumber

            at least 0

        • noobject
          2 properties
          • countinteger

            at least 0

          • weightnumber

            at least 0

        • abstainobject
          2 properties
          • countinteger

            at least 0

          • weightnumber

            at least 0

      • generalobject
        2 properties
        • noobject
          2 properties
          • countinteger

            at least 0

          • weightnumber

            at least 0

        • abstainobject
          2 properties
          • countinteger

            at least 0

          • weightnumber

            at least 0

      • validobject
        2 properties
        • countinteger

          at least 0

        • weightnumber

          at least 0

      • invalidobject
        2 properties
        • countinteger

          at least 0

        • weightnumber

          at least 0

      • castobject
        2 properties
        • countinteger

          at least 0

        • weightnumber

          at least 0

      • entitledobject
        2 properties
        • countinteger

          at least 0

        • weightnumber

          at least 0

      • presentobject
        2 properties
        • countinteger

          at least 0

        • weightnumber

          at least 0

    • paperResultobjectnullable
      4 properties
      • optionsobject[]
        4 properties
        • optionid
        • yesinteger

          at least 0

        • nointeger

          at least 0

        • abstaininteger

          at least 0

      • generalobject
        2 properties
        • nointeger

          at least 0

        • abstaininteger

          at least 0

      • validinteger

        at least 0

      • invalidinteger

        at least 0

  • voteobject
    22 properties
    • _idid
    • createdAtstring · date-timenullable
    • updatedAtstring · date-timenullable
    • removedAtstring · date-timenullable
    • createdByobjectnullable
    • updatedByobjectnullable
    • removedByobjectnullable
    • __ignoreTriggersstringnullable
    • organizationid
    • assemblyid
    • agendaItemid
    • kindstring
      motion election
    • titlestring

      1–200 characters

    • textstring

      at most 50000 characters

    • proposerstringnullable

      at most 200 characters

    • electionobjectnullable
      3 properties
      • postsinteger

        1–100

      • numberedboolean
      • candidatesobject[]

        at most 100 items

        5 properties
        • _idid
        • personobject
          7 properties
          • namestring
          • typestring
          • nameNormalizedstring
          • nameSortstring
          • contactidnullable
          • imageobjectnullable
            4 properties
            • resourcestring

              at least 1 characters

            • fileNamestring

              at most 128 characters

            • contentTypestring

              at most 75 characters

            • fileSizeBytesinteger

              at least 0

          • userobjectnullable
            4 properties
            • namestring
            • typestring
            • userIdstring
            • imageobjectnullable
              4 properties
              • resourcestring

                at least 1 characters

              • fileNamestring

                at most 128 characters

              • contentTypestring

                at most 75 characters

              • fileSizeBytesinteger

                at least 0

        • participantidnullable
        • orderinteger

          at least 0

        • acceptedOfficebooleannullable
    • majoritystring
      simple absolute twoThirds threeQuarters allMembers relative
    • statuteClausestringnullable

      at most 500 characters

    • needsRegistrationboolean
    • excludedid[]
    • outcomeobjectnullable
      3 properties
      • resultstring
        accepted rejected elected tie pending open
      • electedid[]
      • roundid
    • orderinteger

      at least 0

  • votersobject[]nullable
    6 properties
    • participantobject
      6 properties
      • _idid
      • personobject
        7 properties
        • namestring
        • typestring
        • nameNormalizedstring
        • nameSortstring
        • contactidnullable
        • imageobjectnullable
          4 properties
          • resourcestring

            at least 1 characters

          • fileNamestring

            at most 128 characters

          • contentTypestring

            at most 75 characters

          • fileSizeBytesinteger

            at least 0

        • userobjectnullable
          4 properties
          • namestring
          • typestring
          • userIdstring
          • imageobjectnullable
            4 properties
            • resourcestring

              at least 1 characters

            • fileNamestring

              at most 128 characters

            • contentTypestring

              at most 75 characters

            • fileSizeBytesinteger

              at least 0

      • rolestring
        voter guest
      • weightnumber

        at most 100000

      • groupstringnullable

        at most 60 characters

      • presenceobject
        4 properties
        • presentboolean
        • modestringnullable
          room online
        • sincestring · date-timenullable
        • sourcestringnullable
          staff self qr desk
    • weightnumber
    • presentboolean
    • proxyHolderobjectnullable
      6 properties
      • _idid
      • personobject
        7 properties
        • namestring
        • typestring
        • nameNormalizedstring
        • nameSortstring
        • contactidnullable
        • imageobjectnullable
          4 properties
          • resourcestring

            at least 1 characters

          • fileNamestring

            at most 128 characters

          • contentTypestring

            at most 75 characters

          • fileSizeBytesinteger

            at least 0

        • userobjectnullable
          4 properties
          • namestring
          • typestring
          • userIdstring
          • imageobjectnullable
            4 properties
            • resourcestring

              at least 1 characters

            • fileNamestring

              at most 128 characters

            • contentTypestring

              at most 75 characters

            • fileSizeBytesinteger

              at least 0

      • rolestring
        voter guest
      • weightnumber

        at most 100000

      • groupstringnullable

        at most 60 characters

      • presenceobject
        4 properties
        • presentboolean
        • modestringnullable
          room online
        • sincestring · date-timenullable
        • sourcestringnullable
          staff self qr desk
    • votedboolean
    • channelstringnullable
      app link desk
  • ballotsobject[]nullable
    15 properties
    • _idid
    • createdAtstring · date-timenullable
    • updatedAtstring · date-timenullable
    • removedAtstring · date-timenullable
    • createdByobject | stringnullable
    • updatedByobject | stringnullable
    • removedByobject | stringnullable
    • __ignoreTriggersstringnullable
    • organizationid
    • assemblyid
    • roundid
    • choicesobject[]
      2 properties
      • optionid
      • valuestring
        yes no abstain
    • generalstringnullable
      no abstain
    • weightnumber
    • voteridnullable
  • snapshotAtstring · date-timenullable
Response200
{
  "round": {
    "_id": "000000000000000000000001",
    "organization": "000000000000000000000001",
    "assembly": "000000000000000000000001",
    "vote": "000000000000000000000001",
    "number": 1,
    "title": "string",
    "kind": "secret",
    "method": "yesNoAbstain",
    "options": [
      {
        "_id": "000000000000000000000001",
        "label": "string",
        "candidate": "000000000000000000000001"
      }
    ],
    "marks": {
      "min": 0,
      "max": 1
    },
    "general": {
      "no": true,
      "abstain": true
    },
    "base": "yesNo",
    "groups": [
      "string"
    ],
    "closesAt": "2026-06-15T22:30:00Z",
    "state": "created",
    "startedAt": "2026-06-15T22:30:00Z",
    "stoppedAt": "2026-06-15T22:30:00Z",
    "publishedAt": "2026-06-15T22:30:00Z",
    "annulment": {
      "at": "2026-06-15T22:30:00Z",
      "by": {
        "name": "string",
        "type": "user",
        "userId": "string",
        "image": {
          "resource": "string"
        }
      },
      "reason": "string"
    },
    "received": {
      "count": 0,
      "weight": 0
    },
    "entitled": {
      "count": 0,
      "weight": 0
    },
    "quorum": {
      "atStart": {
        "present": {
          "count": 0,
          "weight": 0
        },
        "voters": {
          "count": 0,
          "weight": 0
        },
        "met": true
      },
      "atStop": {
        "present": {
          "count": 0,
          "weight": 0
        },
        "voters": {
          "count": 0,
          "weight": 0
        },
        "met": true
      }
    },
    "warnings": [
      {
        "kind": "notInInvitation",
        "count": 0
      }
    ],
    "incidents": {
      "failures": 0,
      "disconnects": 0
    },
    "result": {
      "options": [
        {
          "option": "000000000000000000000001",
          "yes": {
            "count": 0,
            "weight": 0
          },
          "no": {
            "count": 0,
            "weight": 0
          },
          "abstain": {
            "count": 0,
            "weight": 0
          }
        }
      ],
      "general": {
        "no": {
          "count": 0,
          "weight": 0
        },
        "abstain": {
          "count": 0,
          "weight": 0
        }
      },
      "valid": {
        "count": 0,
        "weight": 0
      },
      "invalid": {
        "count": 0,
        "weight": 0
      },
      "cast": {
        "count": 0,
        "weight": 0
      },
      "entitled": {
        "count": 0,
        "weight": 0
      },
      "present": {
        "count": 0,
        "weight": 0
      }
    },
    "paperResult": {
      "options": [
        {
          "option": "000000000000000000000001",
          "yes": 0,
          "no": 0,
          "abstain": 0
        }
      ],
      "general": {
        "no": 0,
        "abstain": 0
      },
      "valid": 0,
      "invalid": 0
    }
  },
  "vote": {
    "_id": "000000000000000000000001",
    "organization": "000000000000000000000001",
    "assembly": "000000000000000000000001",
    "agendaItem": "000000000000000000000001",
    "kind": "motion",
    "title": "string",
    "text": "string",
    "proposer": "string",
    "election": {
      "posts": 1,
      "numbered": true,
      "candidates": [
        {
          "_id": "000000000000000000000001",
          "person": {
            "name": "string",
            "type": "contact",
            "nameNormalized": "string",
            "nameSort": "string",
            "contact": "000000000000000000000001",
            "image": {
              "resource": "string"
            },
            "user": {
              "name": "string",
              "type": "user",
              "userId": "string",
              "image": {
                "resource": "string"
              }
            }
          },
          "participant": "000000000000000000000001",
          "order": 0,
          "acceptedOffice": true
        }
      ]
    },
    "majority": "simple",
    "statuteClause": "string",
    "needsRegistration": true,
    "excluded": [
      "000000000000000000000001"
    ],
    "outcome": {
      "result": "accepted",
      "elected": [
        "000000000000000000000001"
      ],
      "round": "000000000000000000000001"
    },
    "order": 0
  },
  "voters": [
    {
      "participant": {
        "_id": "000000000000000000000001",
        "person": {
          "name": "string",
          "type": "contact",
          "nameNormalized": "string",
          "nameSort": "string",
          "contact": "000000000000000000000001",
          "image": {
            "resource": "string"
          },
          "user": {
            "name": "string",
            "type": "user",
            "userId": "string",
            "image": {
              "resource": "string"
            }
          }
        },
        "role": "voter",
        "weight": 1,
        "group": "string",
        "presence": {
          "present": true,
          "mode": "room",
          "since": "2026-06-15T22:30:00Z",
          "source": "staff"
        }
      },
      "weight": 1,
      "present": true,
      "proxyHolder": {
        "_id": "000000000000000000000001",
        "person": {
          "name": "string",
          "type": "contact",
          "nameNormalized": "string",
          "nameSort": "string",
          "contact": "000000000000000000000001",
          "image": {
            "resource": "string"
          },
          "user": {
            "name": "string",
            "type": "user",
            "userId": "string",
            "image": {
              "resource": "string"
            }
          }
        },
        "role": "voter",
        "weight": 1,
        "group": "string",
        "presence": {
          "present": true,
          "mode": "room",
          "since": "2026-06-15T22:30:00Z",
          "source": "staff"
        }
      },
      "voted": true,
      "channel": "app"
    }
  ],
  "ballots": [
    {
      "_id": "000000000000000000000001",
      "organization": "000000000000000000000001",
      "assembly": "000000000000000000000001",
      "round": "000000000000000000000001",
      "choices": [
        {
          "option": "000000000000000000000001",
          "value": "yes"
        }
      ],
      "general": "no",
      "weight": 1,
      "voter": "000000000000000000000001"
    }
  ],
  "snapshotAt": "2026-06-15T22:30:00Z"
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.