Events

GET
/event-types

Required scope: automations:read

Self-describing: each type carries label, group and fields (the keys its data holds). ?type= returns one type; ?group= narrows.

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Query Parameters

type?string
group?string

Response Body

application/json

{}
GET
/events

Required scope: automations:read

The space keeps an event while some listener wants its type, for 14 days. Pass the answer's next_cursor as after on the next call; has_more says whether to call again at once. subscription_id narrows to one feed's types and filters.

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Query Parameters

after?string

A cursor (evt_…)

types?string

Comma-separated event types

subscription_id?string
limit?integer

Response Body

application/json

{}
GET
/event-subscriptions

Required scope: automations:read

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Query Parameters

kind?string

Response Body

application/json

{}
POST
/event-subscriptions

Required scope: automations:write

kind: "webhook" — we POST each event to your https url, signed: Wakato-Signature: t=<unix seconds>,v1=<hex>, v1 = HMAC-SHA256(secret, "."). The secret is in this response ONCE (rotate it with /rotate-secret). Failed deliveries are retried with backoff; a URL that keeps failing is switched off, saying why. kind: "feed" — the events are kept for you to pull with GET /events. kind: "agent" is only for an agent's own key (its events arrive in its chat). filters take the automation trigger's own config per event type.

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

{}
PATCH
/event-subscriptions/{id}

Required scope: automations:write

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Path Parameters

id*string

Response Body

application/json

{}
DELETE
/event-subscriptions/{id}

Required scope: automations:write

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Path Parameters

id*string

Response Body

application/json

{}
GET
/event-subscriptions/{id}/deliveries

Required scope: automations:read

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Path Parameters

id*string

Response Body

application/json

{}
POST
/event-subscriptions/{id}/deliveries/{deliveryId}/resend

Required scope: automations:write

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Path Parameters

id*string
deliveryId*integer

Response Body

application/json

{}
POST
/event-subscriptions/{id}/test

Required scope: automations:write

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Path Parameters

id*string

Response Body

application/json

{}
POST
/event-subscriptions/{id}/rotate-secret

Required scope: automations:write

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Path Parameters

id*string

Response Body

application/json

{}