---
title: "Get all consumers"
method: GET
path: "/api/v2/namespaces/{namespace}/gateway/consumers"
tags: ["gateway"]
---

# Get all consumers

`GET /api/v2/namespaces/{namespace}/gateway/consumers`

## Path parameters

- `namespace` string, required

## Response `200`

Consumers for gateway in the namespace

- object
  - `data` object[]
    - `username` string — unique username
    - `password` string — password for basic authentication
    - `api_key` string — api key for the user
    - `tags` string[], nullable
    - `groups` string[], nullable

## Changes

- **2025-11-11** `5ca26983939a` — 2 breaking
  - the response property `data/items/groups` became nullable for the status `200`
  - the response property `data/items/tags` became nullable for the status `200`

[Change history](https://skmtc.dev/direktiv/apis/direktiv-apiv2-reference/changes/api/v2/namespaces/:namespace/gateway/consumers/get.md)

---

[API](https://skmtc.dev/direktiv/apis/direktiv-apiv2-reference.md) · [All operations](https://skmtc.dev/direktiv/apis/direktiv-apiv2-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/direktiv/direktiv-apiv2-reference/revisions/ad935afb0f54/schema)
