Webhook Request Structure
Recognition events are sent to the webhook as HTTP POST requests. Event data is sent in the request body in a JSON object. The signature and the algorithm used are sent in custom headers.
Body
Content Type: application/json
Contains a JSON object with the following properties:
detectionTimestamp(number): a millisecond-based Unix timestamp representing the time the vehicle was detected.attachments(string array): contains a single object with the following properties:mimeType(string): the MIME type of the image.data(string): the original image as a Base 64 string.
event(object): the raw JSON result returned by the cloud API. For details please refer to the Vehicle Cloud API documentation.
Headers
X-Signature-Algorithm(string, optional): contains the algorithm used to sign the request. Only present if signing is configured.- Symmetric:
HS256: HMAC using SHA-256 hash algorithmHS384: HMAC using SHA-384 hash algorithmHS512: HMAC using SHA-512 hash algorithm
- Asymmetric:
RS256: RSASSA using SHA-256 hash algorithmRS384: RSASSA using SHA-384 hash algorithmRS512: RSASSA using SHA-512 hash algorithmPS256: RSASSA-PSS using SHA-256 hash algorithmPS384: RSASSA-PSS using SHA-384 hash algorithmPS512: RSASSA-PSS using SHA-512 hash algorithmES256: ECDSA using P-256 curve and SHA-256 hash algorithmES384: ECDSA using P-384 curve and SHA-384 hash algorithmES512: ECDSA using P-521 curve and SHA-512 hash algorithm
- Symmetric:
X-Signature(string, optional): contains the signature as a base64url encoded string.