---
title: "Get HTTP Proxy Configuration"
url: "https://nov18-dev.movespot.fyi/apis/konnect-control-planes-configuration-dev-3/versions/76e259e8-9e78-4c0e-ab4a-3df25bddc4f1/operations/get-http-gateway-declarative-config"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-control-planes-configuration-dev-3/versions/76e259e8-9e78-4c0e-ab4a-3df25bddc4f1.md

# Get HTTP Proxy Configuration

`GET` `/control-planes/{controlPlaneId}/declarative-config/http-gateway`

Operation ID: `get-http-gateway-declarative-config`

Returns the declarative configuration formatted for an http gateway.

## Path parameters

- `controlPlaneId` (string, uuid, required) - The UUID of your control plane. This variable is available in the Konnect manager.

## Responses

- `200` - Declarative Config HTTP Gateway Response

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Konnect Control Planes Configuration
  version: 3.14.0
servers:
  - url: https://us.api.konghq.com/v2
    description: United-States Production region
  - url: https://eu.api.konghq.com/v2
    description: Europe Production region
  - url: https://au.api.konghq.com/v2
    description: Australia Production region
  - url: https://me.api.konghq.com/v2
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v2
    description: India Production region
  - url: https://sg.api.konghq.com/v2
    description: Singapore Production region
paths:
  /control-planes/{controlPlaneId}/declarative-config/http-gateway:
    parameters:
      - $ref: "#/components/parameters/controlPlaneId"
    get:
      operationId: get-http-gateway-declarative-config
      summary: Get HTTP Proxy Configuration
      description: Returns the declarative configuration formatted for an http gateway.
      responses:
        "200":
          $ref: "#/components/responses/DeclarativeConfigHTTPGatewayResponse"
      tags:
        - Declarative Configuration
security:
  - konnectAccessToken: []
  - personalAccessToken: []
components:
  parameters:
    controlPlaneId:
      name: controlPlaneId
      in: path
      required: true
      schema:
        type: string
        format: uuid
        example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
      description: The UUID of your control plane. This variable is available in the
        Konnect manager.
  responses:
    DeclarativeConfigHTTPGatewayResponse:
      description: Declarative Config HTTP Gateway Response
      content:
        application/x-yaml:
          schema:
            $ref: "#/components/schemas/DeclarativeConfigHTTPGateway"
  schemas:
    DeclarativeConfigHTTPGateway:
      type: object
      properties:
        listener:
          $ref: "#/components/schemas/DeclarativeConfigHTTPListener"
        routes:
          type: array
          items:
            $ref: "#/components/schemas/DeclarativeConfigHTTPRoute"
    DeclarativeConfigHTTPListener:
      type: object
      properties:
        port:
          description: The port number for the proxy to listen on.
          type: integer
        protocol:
          description: The protocol for the listener.
          type: string
          enum:
            - http
            - https
        script:
          description: The pd script for the listener.
          type: string
      required:
        - port
        - protocol
    DeclarativeConfigHTTPRoute:
      type: object
      properties:
        name:
          description: The name of the route.
          type: string
        match:
          description: The router match expression.
          type: string
        req_script:
          description: The pd script for the request.
          type: string
        resp_script:
          description: The pd script for the response.
          type: string
      required:
        - name
        - match
  securitySchemes:
    konnectAccessToken:
      type: http
      scheme: bearer
      description: The Konnect access token is meant to be used by the Konnect
        dashboard and the decK CLI to authenticate with.
    personalAccessToken:
      type: http
      scheme: bearer
      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 in the Konnect
        dashboard.
```
