# Packages, plans and rate profiles

URL: https://docs.folkways.io/docs/platform-api/catalog

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 [#packages]

```http
GET /api/v1/packages
```

The public packages, in display order. Each:

| Field | Meaning |
| --- | --- |
| `id`, `slug`, `name`, `description` | The package |
| `kind` | `FREE` or `STANDARD` |
| `connections`, `messages`, `dataTransferGb`, `topicSlots`, `maxSegments` | Its allowances: connections at once, messages and GB per month, topics at once, segments |
| `currency`, `monthlyPrice`, `annualPrice`, `annualMonthly`, `annualDiscountPercent` | Its prices |
| `monthlyPlanId`, `yearlyPlanId` | The plans behind it |
| `highlighted`, `sortOrder` | Display hints |

## Plans [#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.

| Field | Meaning |
| --- | --- |
| `id`, `name`, `description`, `price`, `currency` | The plan |
| `planCycle` | `MONTHLY` or `YEARLY`. Usage is metered monthly either way |
| `billingType` | `PREPAID` or `POSTPAID` |
| `maxConcurrentConnections`, `connectionGracePercent`, `connectionGraceDays` | The connection allowance and its grace |
| `maxMessages`, `maxDataTransferBytes` | Monthly allowances |
| `warnAtPercent`, `graceDays`, `burstMultiplier` | When you're warned, how long grace lasts, and the safety ceiling during grace |
| `topicSlots`, `topicGracePercent`, `topicGraceDays` | Topics at once, and their grace |
| `maxPayloadBytes`, `maxSegments` | Per-event and per-workspace limits |

## Rate profiles [#rate-profiles]

```http
GET /api/v1/rate-profiles
```

One profile per [rate preset](/docs/console/segments#rate-preset), in the order `GENERAL`, `AI_STREAMING`, `CHAT`,
`LIVE_DASHBOARD`, `IOT`:

| Field | Meaning |
| --- | --- |
| `preset` | The preset |
| `publishPerSec`, `topicPublishPerSec`, `maxSubscribersPerTopic`, `burstFactor` | Absolute values |
| `segmentPublishPerSec`, `inboundBytesPerSec`, `outboundBytesPerSec`, `subscribesPerMin`, `topicCreatesPerMin`, `newConnectionsPerMin` | Each `{ 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`](/docs/platform-api/segments#the-segment-object).
