---
title: "Get the service limits for a billing plan"
method: GET
path: "/_api/limits/plan/{attribution}/{name}/{service}"
tags: ["Administration"]
---

# Get the service limits for a billing plan

`GET /_api/limits/plan/{attribution}/{name}/{service}`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_api/limits/plan/:attribution/:name/:service/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch the service limits for a billing plan.

 This API supports these services: `[apiServer, cep, database, eventHub, streamsGlobal, streamsLocal, and dataMeshIntegration]`

## Path parameters

- `attribution` string, string, required
- `name` string, string, required
- `service` string, string, required

## Response `200`

Successfully fetched service.

- object
  - `code` integer: HTTP response code.
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `result` StreamsLimitsExample
    - `maxStreamsCount` integer: Max streams count.
    - `maxProducersCount` integer: Max streams producer count.
    - `maxConsumersCount` integer: Max streams consumer count.
    - `maxSubscriptionsCount` integer: Max streams subscriptions count.
    - `maxBacklogMessageTTLMin` integer: Max streams backlog messagaes TTL in minute.
    - `maxBacklogStorageSizeMB` integer: Max streams backlog storage size in MB.
    - `maxDispatchThrottlingRateInByte` integer: Max streams byte dispatch rate per minute.

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `401`: Failed because you do not have administrator permissions.
- `403`: Failed to validate because you do not have access to the server.
- `404`: Failed to find specified billing plan.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
