Event API

Overview

Event also allows you to emit and transact on messages using the Event API.

Generate an Event API Key

Head over to the Secret Keysarrow-up-right section in the Settings page:

  1. Click the + Create secret key button

  2. Name your Secret Key

  3. Click Create

circle-info

Ensure you store the test and live keys somewhere safe (like a password manager).

Authentication

To authenticate and use any of the below API endpoints, you'll need to pass an Event Secret Key in the headers.

Header
Value

BUILDABLE_SECRET_KEY

API Endpoints

GET

Emit a custom event

post
Body
eventstringRequired
payloadobjectRequired
Responses
chevron-right
200

Emit Response

application/json
ResponseobjectExample: {"status":"success","key":"2b4bc1689000424287d1e68e6e8cf3d1"}
post
/emit

Query Events

post
Body
eventNamestringRequired
txKeystringRequired
sincenumberRequired
platformstringOptional
labelstringOptional
txStatestring · enumOptionalDefault: does-not-existPossible values:
pagenumberOptionalDefault: 1
pageSizenumber · max: 100OptionalDefault: 10
Responses
chevron-right
200

Query Response

application/json
post
/query

Update Event

post
Body
keystringRequired
eventNamestringRequired
txKeystringRequired
txStatestring · enumRequiredExample: processingPossible values:
Responses
chevron-right
200

Update Response

application/json
post
/update

Initiate a transaction

post
Body
keystringRequired
txKeystringRequired
Responses
chevron-right
200

Init Response

application/json
post
/init

Run a transaction

post
Body
keystringRequired
txKeystringRequired
outputstringOptional
statestring · enumRequiredExample: finishedPossible values:
Responses
chevron-right
200

Transact Response

application/json
post
/transact

Get the full event name

post
Body
eventNamestringRequired
platformstringOptional
labelstringOptional
Responses
chevron-right
200

Get Full Event Name Response

application/json
post
/get-full-event-name

Swagger

Last updated