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

---

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