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

# Get all routes

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

## Path parameters

- `namespace` string, required

## Query parameters

- `path` string

## Response `200`

Routes for gateway in the namespace

- object
  - `data` Route[]
    - `file_path` string — path to file in file tree
    - `path` string — full pattern including path_extension
    - `spec` object — contains a pathItem object of the OpenAPI spec. There is a custom object describing the Direktiv specific configuration. Methods are added following the OpenAPI spec.
      - `x-direktiv-config` object
        - `allow_anonymous` boolean — if access is allowed if there are not authentication plugins or authentication failed
        - `path` string — path to be used in the gateway URL
        - `plugins` object
          - `outbound` object[]
            - `type` string — name of the outbound plugin
            - `configuration` object — configuration for the plugin. can be of any type.
          - `inbound` object[]
            - `type` string — name of the inbound plugin
            - `configuration` object — configuration for the plugin. can be of any type.
          - `auth` object[] — all auth plugins are getting executed. first successful authentication sets the consumer.
            - `type` string — name of the auth plugin
            - `configuration` object — configuration for the plugin. can be of any type.
          - `target` object, nullable
            - `type` string — name of the target plugin. can only be one.
            - `configuration` object — configuration for the plugin. can be of any type.
    - `errors` string[]
    - `warnings` string[]

---

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