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

# Get the limits for a tenant service

`GET /_api/limits/tenant/{tenant}/{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/tenant/:tenant/:service/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch the limit for a tenant.

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

## Path parameters

- `tenant` string, string, required
- `service` string, string, required

## Response `200`

Successfully fetched tenant service limits.

- 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 tenant.

---

[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)
