Costfluent Public API

List events

GET
https://api.costfluent.com
/v1/events
Bearer (API token)

Returns the events of the last 30 days the token may read, newest first, each with the data its webhook deliveries carry, including events no webhook received. Each event is read as the object it reports: a workspace's events need its workspace, a connection's need the connections, billing events billing and audit events the audit log.

Needs a token with viewWorkspace; a workspace token lists its own workspace only.

List events › query Parameters

type
​string | null
workspaceId
​
from
​string | null · date-time

The first instant listed, included, as RFC 3339.

to
​string | null · date-time

The first instant not listed, as RFC 3339: an event at exactly this instant is left out, so one interval's to can be the next one's from without listing an event twice.

page
​integer · int32

The page to return, counted from 1. A page below 1 reads page 1; one past the last returns no items.

Default: 1
limit
​integer · int32

Items per page, from 1 to 100. A larger value is clamped to 100, a smaller one to 1.

Default: 20

List events › Responses

Success

​PaginationLinks · required
​EventResponse[] · required

Get event

GET
https://api.costfluent.com
/v1/events/{eventId}
Bearer (API token)

Returns one event of the last 30 days with the data its webhook deliveries carry. An event the token may not read answers 404, as one that does not exist does.

Needs a token with viewWorkspace; a workspace token lists its own workspace only.

Get event › path Parameters

eventId
​WebhookEventPublicId · pattern: ^evt_[A-Za-z0-9_-]{2… · required

Get event › Responses

Success

id
​WebhookEventPublicId · pattern: ^evt_[A-Za-z0-9_-]{2… · required
type
​string · required
occurredAt
​string · date-time · required
​
​
data
​