Events

Get subscription credentials

GET
Get a token which can be used to subscribe to events for this space

Query parameters

scopestringOptional
The resource ID of the event stream (space or environment id)
spaceIdstringOptionalDeprecated
The space ID of the event stream

Response

This endpoint returns an object
data
object
Properties used to allow users to connect to the event bus

Errors

GET
$curl https://api.x.flatfile.com/v1/subscription \
> -H "Authorization: Bearer <token>"
Response
1{
2 "data": {
3 "accountId": "us_acc_YOUR_ID",
4 "subscribeKey": "sub-c-TOKEN",
5 "ttl": 15,
6 "token": "LONG-TOKEN"
7 }
8}