---
title: "List all policies for an API Gateway route"
url: "https://nov18-dev.movespot.fyi/apis/konnect-control-planes-configuration-for-api-gateways-dev-1/versions/a1769dd8-5923-4feb-8924-2e1ea4c75174/operations/list-api-gateway-route-outbound-policies"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-control-planes-configuration-for-api-gateways-dev-1/versions/a1769dd8-5923-4feb-8924-2e1ea4c75174.md

# List all policies for an API Gateway route

`GET` `/api-gateways/{gatewayId}/routes/{apiGatewayRouteId}/outbound-policies`

Operation ID: `list-api-gateway-route-outbound-policies`

List all outbound policies for an API Gateway route

## Path parameters

- `apiGatewayRouteId` (string, uuid, required) - The ID of the API Gateway Route.
- `gatewayId` (string, uuid, required) - The UUID of your Gateway.

## Query parameters

- `page[size]` (integer, optional) - The maximum number of items to include per page. The last page of a collection may include fewer items.
- `page[after]` (string, optional) - Request the next page of data, starting with the item after this parameter.
- `parent_policy_id` (string, uuid, optional) - The ID of the parent policy.

## Responses

- `200` - A paginated list response for a collection of API Gateway Outbound Policies.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Konnect Control Planes Configuration for API Gateways
  version: 1.0.0
servers:
  - url: https://us.api.konghq.com/v1
    description: United-States Production region
  - url: https://eu.api.konghq.com/v1
    description: Europe Production region
  - url: https://au.api.konghq.com/v1
    description: Australia Production region
  - url: https://me.api.konghq.com/v1
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v1
    description: India Production region
  - url: https://sg.api.konghq.com/v1
    description: Singapore Production region
paths:
  /api-gateways/{gatewayId}/routes/{apiGatewayRouteId}/outbound-policies:
    parameters:
      - $ref: "#/components/parameters/apiGatewayRouteId"
      - $ref: "#/components/parameters/gatewayId"
    get:
      operationId: list-api-gateway-route-outbound-policies
      summary: List all policies for an API Gateway route
      description: List all outbound policies for an API Gateway route
      parameters:
        - $ref: "#/components/parameters/PageSize"
        - $ref: "#/components/parameters/PageAfter"
        - $ref: "#/components/parameters/apiGatewayPolicyParentId"
      responses:
        "200":
          $ref: "#/components/responses/APIGatewayOutboundPolicyListResponse"
      tags:
        - API Gateway Route Outbound Policy
security:
  - personalAccessToken: []
  - systemAccountAccessToken: []
components:
  parameters:
    apiGatewayRouteId:
      schema:
        type: string
        format: uuid
      name: apiGatewayRouteId
      in: path
      required: true
      description: The ID of the API Gateway Route.
    gatewayId:
      name: gatewayId
      in: path
      required: true
      schema:
        type: string
        format: uuid
        example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
      description: The UUID of your Gateway.
    PageSize:
      name: page[size]
      description: The maximum number of items to include per page. The last page of a
        collection may include fewer items.
      required: false
      in: query
      allowEmptyValue: true
      schema:
        type: integer
        example: 10
    PageAfter:
      name: page[after]
      description: Request the next page of data, starting with the item after this
        parameter.
      required: false
      in: query
      allowEmptyValue: true
      schema:
        type: string
        example: ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ
    apiGatewayPolicyParentId:
      schema:
        type: string
        format: uuid
        example: d32d905a-ed33-46a3-a093-d8f536af9a8a
      name: parent_policy_id
      in: query
      description: The ID of the parent policy.
  responses:
    APIGatewayOutboundPolicyListResponse:
      description: A paginated list response for a collection of API Gateway Outbound
        Policies.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/APIGatewayPolicyList"
  schemas:
    APIGatewayPolicyList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: "#/components/schemas/APIGatewayPolicy"
        meta:
          $ref: "#/components/schemas/CursorMeta"
      required:
        - data
        - meta
    APIGatewayPolicy:
      description: A policy that can be applied to an API Gateway.
      type: object
      properties:
        id:
          description: The ID of the policy
          type: string
          format: uuid
        type:
          description: The type identifier of the policy
          type: string
        name:
          description: The name of the policy
          type: string
        config:
          description: The configuration of the policy
          type: object
        parent_policy_id:
          description: The unique identifier of the parent policy, if any.
          type: string
          format: uuid
          nullable: true
        condition:
          description: A string containing the boolean expression that determines whether
            the policy is applied.
          type: string
          example: context.introspect_token.claims.gold_tier == true
          maxLength: 1000
          minLength: 1
          x-expression:
            type: boolean
        created_at:
          $ref: "#/components/schemas/CreatedAt"
        updated_at:
          $ref: "#/components/schemas/UpdatedAt"
        labels:
          $ref: "#/components/schemas/Labels"
      additionalProperties: false
      required:
        - id
        - type
        - config
        - created_at
        - updated_at
    CursorMeta:
      description: Pagination metadata.
      type: object
      properties:
        page:
          $ref: "#/components/schemas/CursorMetaPage"
      required:
        - page
    CreatedAt:
      description: An ISO-8601 timestamp representation of entity creation date.
      type: string
      format: date-time
      example: 2022-11-04T20:10:06.927Z
      readOnly: true
    UpdatedAt:
      description: An ISO-8601 timestamp representation of entity update date.
      type: string
      format: date-time
      example: 2022-11-04T20:10:06.927Z
      readOnly: true
    Labels:
      description: >
        Labels store metadata of an entity that can be used for filtering an
        entity list or for searching across entity types. 


        Keys must be of length 1-63 characters, and cannot start with "kong",
        "konnect", "mesh", "kic", or "_".
      type: object
      example:
        env: test
      additionalProperties:
        type: string
        pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$
        minLength: 1
        maxLength: 63
      maxProperties: 50
      title: Labels
    CursorMetaPage:
      type: object
      properties:
        first:
          description: URI to the first page
          type: string
          format: path
        last:
          description: URI to the last page
          type: string
          format: path
        next:
          description: URI to the next page
          type: string
          format: path
          nullable: true
        previous:
          description: URI to the previous page
          type: string
          format: path
          nullable: true
        size:
          description: Requested page size
          type: number
          example: 10
      required:
        - size
        - next
        - previous
  securitySchemes:
    personalAccessToken:
      type: http
      scheme: bearer
      bearerFormat: Token
      description: >
        The personal access token is meant to be used as an alternative to
        basic-auth when accessing Konnect via APIs.

        You can generate a Personal Access Token (PAT) from the [personal access
        token page](https://cloud.konghq.com/global/account/tokens/) in the
        Konnect dashboard.

        The PAT token must be passed in the header of a request, for example:

        `curl -X GET 'https://global.api.konghq.com/v2/users/' --header
        'Authorization: Bearer kpat_xgfT...'`
    systemAccountAccessToken:
      type: http
      scheme: bearer
      bearerFormat: Token
      description: >
        The system account access token is meant for automations and
        integrations that are not directly associated with a human identity.

        You can generate a system account Access Token by creating a system
        account and then obtaining a system account access token for that
        account.

        The access token must be passed in the header of a request, for example:

        `curl -X GET 'https://global.api.konghq.com/v2/users/' --header
        'Authorization: Bearer spat_i2Ej...'`
```
