A Singapore Government Agency Website

Webhook (1.0.0)

Download OpenAPI specification:Download

attendance Webhook

header Parameters
X-GovEntry-Signature
required
string^v1=[A-Z0-9]+$
Example: v1=2429447e98b70ef1cc714bdb706040e1409d649e51e312e2fe073dbb1fd359e9ea38ff15fbedfbc822f2a9b9bf55c4eaa55d2cf1897cedeb6373c094d384db08

The signature is prefixed by a version scheme. The only schema available now is v1. The scheme prefix is used to prevent downgrade attacks. The signature is hex encoded.

X-GovEntry-Timestamp
required
number
Example: 1715753037

Epoch time in seconds

Request Body schema: application/json
required

Information about a new attendance in the system for the subscribed campaign

id
required
string <uuid>

Unique identifier for the event

why
required
any
Value: "attendance"
required
object (who)

Who attended

what
required
string

What event has the person attended

when
required
string <date-time>

When did the person attend

required
object (where)

Where did the person attend

how
required
string
Enum: "attendance-assisted" "attendance-assisted-exit" "attendance-self" "attendance-self-exit" "attendance-self-group" "attendance-self-group-exit" "attendance-walk-in" "attendance-bulk" "api-entry" "api-exit"

How the person took attendance

metadata
required
object (metadata)

Free-form data

Responses

Request samples

Content type
application/json
Example

Decrypted json payload

{
  • "id": "683c2f06-64ad-4a81-9734-a68d47d78e57",
  • "why": "attendance",
  • "how": "attendance-self",
  • "who": {
    },
  • "what": "ACME",
  • "when": "2024-05-17T03:20:37.149811+00:00",
  • "where": {
    },
  • "metadata": {
    }
}
Chat with me!
Bot Launcher