Events
Event: chips.low
We POST this payload to your endpoint. Verify the Diced-Signature header (t=,v1=<hex HMAC-SHA256 of 't.body'>) with your endpoint's secret. Answer with any 2xx status within 10 seconds, or we retry.
application/json- body
Sent when the chip balance drops below 10% of the last grant, or below 50 chips.
id*stringUnique event id. Starts with evt_. Use it to ignore duplicate deliveries.
Match
^evt_type*stringEvent type.
created*stringWhen the event happened, as an ISO 8601 timestamp.
Match
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Format
date-timeworkspace_id*stringWorkspace the event belongs to.
data*Current balance and the threshold that fired.
Return any 2xx status to acknowledge the event.
Example Requests
POST/chips.low
Sent when the chip balance drops below 10% of the last grant, or below 50 chips.
application/json
{ "id": "string", "type": "chips.low", "created": "2019-08-24T14:15:22Z", "workspace_id": "string", "data": { "balance": -9007199254740991, "threshold": -9007199254740991, "last_grant": -9007199254740991 }}