This month's usage and the day or month buckets

GEThttps://api.floconnector.com/v1/activity/summary
Scope
activity.read
Rate limit
the key's read budget, 120 a minute

month is this UTC calendar month: metered calls, free calls and failed calls. buckets is the trailing series for a chart, one per UTC day (days, up to 90) or month (months, up to 24), zero-filled and oldest first. month.plan is null unless the key also holds billing.read.

Query parameters

enumoptional

The bucket size: day or month. Default day.

Default day

integeroptional

Buckets when period=day (trailing, zero-filled, UTC).

Default 14Range 1 to 90

integeroptional

Buckets when period=month (trailing, zero-filled, UTC).

Default 12Range 1 to 24

Responses

200Success
periodenum

The bucket size the request asked for.

daymonth
monthobject

This UTC calendar month's usage.

ShowHide 5 fields
external_callsinteger

Metered vendor calls this month: the calls that count against the plan's included calls.

internal_callsinteger

Free calls this month: analytics queries plus calls on connectors that are not metered.

errorsinteger

Failed vendor calls this month, metered or not.

planobjectnullable

The plan's monthly allowance. Null unless the caller may see billing: an API key needs the billing.read scope as well.

ShowHide 2 fields
namestring

The plan's display name.

included_calls_per_monthinteger

Calls the plan includes each month. 0 means every call is metered from the first one.

scoped_to_youboolean

True when the counts cover only the caller's own calls and the calls made through connections they authorized. Always false for an API key.

bucketsarray of object

One per day or month of the trailing range, zero-filled, oldest first.

ShowHide 4 fields of each item
atstring

The bucket's UTC date: YYYY-MM-DD when period is day, YYYY-MM when it is month.

externalinteger

Metered vendor calls in the bucket.

internalinteger

Free calls in the bucket: analytics queries plus calls on connectors that are not metered.

errorsinteger

Failed vendor calls in the bucket.

400validation: a field failed validation; field names it.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

401unauthorized: no key, or an unknown, revoked or expired key.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

403insufficient_scope: the key lacks the route's scope, named in required. Or forbidden, or plan_limit when the plan does not include the API.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

404not_found: the thing is not in this workspace.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

429rate_limited: the key's per-minute budget is spent. Retry after Retry-After seconds.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

Errors lists every error code and what to do about it.