folkwaysDocs
Platform API

Packages, plans and rate profiles

The public catalogue endpoints, which need no credential, for packages, plans and the rate presets' profiles.

These endpoints are public: call them without an API key. A request carrying a key is refused (400, or 403 for /plans/{planId}).

Packages

HTTP
GET /api/v1/packages

The public packages, in display order. Each:

FieldMeaning
id, slug, name, descriptionThe package
kindFREE or STANDARD
connections, messages, dataTransferGb, topicSlots, maxSegmentsIts allowances: connections at once, messages and GB per month, topics at once, segments
currency, monthlyPrice, annualPrice, annualMonthly, annualDiscountPercentIts prices
monthlyPlanId, yearlyPlanIdThe plans behind it
highlighted, sortOrderDisplay hints

Plans

HTTP
GET /api/v1/plans
GET /api/v1/plans/{planId}

A plan is a package's billing variant: monthly or yearly, with every limit spelled out.

FieldMeaning
id, name, description, price, currencyThe plan
planCycleMONTHLY or YEARLY. Usage is metered monthly either way
billingTypePREPAID or POSTPAID
maxConcurrentConnections, connectionGracePercent, connectionGraceDaysThe connection allowance and its grace
maxMessages, maxDataTransferBytesMonthly allowances
warnAtPercent, graceDays, burstMultiplierWhen you're warned, how long grace lasts, and the safety ceiling during grace
topicSlots, topicGracePercent, topicGraceDaysTopics at once, and their grace
maxPayloadBytes, maxSegmentsPer-event and per-workspace limits

Rate profiles

HTTP
GET /api/v1/rate-profiles

One profile per rate preset, in the order GENERAL, AI_STREAMING, CHAT, LIVE_DASHBOARD, IOT:

FieldMeaning
presetThe preset
publishPerSec, topicPublishPerSec, maxSubscribersPerTopic, burstFactorAbsolute values
segmentPublishPerSec, inboundBytesPerSec, outboundBytesPerSec, subscribesPerMin, topicCreatesPerMin, newConnectionsPerMinEach { perConnection, floor }: the value per connection your package allows, never below floor

A segment's limits are its preset's profile scaled this way, lowered by any overrides. The values in force for one segment are in its effectiveRateLimits.

On this page