> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runloop.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List GatewayConfigs.

> List all GatewayConfigs for the authenticated account, including system-provided configs like 'anthropic' and 'openai'.



## OpenAPI

````yaml /openapi-specs/stainless-processed-openapi.json get /v1/gateway-configs
openapi: 3.1.0
info:
  title: RunLoop API
  version: '0.1'
  description: >-
    The RunLoop API spec that allows you to host lambda functions and Devboxes
    to enable scaled long running ai workflows.
  contact:
    name: Runloop AI Support
    url: https://runloop.ai
    email: support@runloop.ai
servers:
  - url: https://api.runloop.ai
    description: Runloop API
    variables: {}
security:
  - bearerAuth: []
tags:
  - name: Benchmark
  - name: Blueprint
  - name: Blueprint-Lifecycle
  - name: Blueprint-ObservabilityTools
  - name: Devbox
  - name: Devbox-FileTools
  - name: Devbox-Lifecycle
  - name: Devbox-NetworkTools
  - name: Devbox-ObservabilityTools
  - name: Devbox-PersistenceTools
  - name: Devbox-ShellTools
  - name: Scenario
  - name: ScenarioScorer
  - name: accounts
  - name: agents
  - name: apikeys
  - name: axons
  - name: executions
  - name: gateway-configs
  - name: mcp-configs
  - name: network-policies
  - name: objects
  - name: restricted_keys
  - name: secrets
  - name: streaming
paths:
  /v1/gateway-configs:
    get:
      tags:
        - gateway-configs
      summary: List GatewayConfigs.
      description: >-
        List all GatewayConfigs for the authenticated account, including
        system-provided configs like 'anthropic' and 'openai'.
      operationId: listGatewayConfigs
      parameters:
        - name: name
          in: query
          description: Filter by name (partial match supported).
          allowEmptyValue: true
          schema:
            type: string
        - name: id
          in: query
          description: Filter by ID.
          allowEmptyValue: true
          schema:
            type: string
        - name: limit
          in: query
          description: The limit of items to return. Default is 20. Max is 5000.
          allowEmptyValue: true
          schema:
            type: integer
            format: int32
        - name: starting_after
          in: query
          description: >-
            Load the next page of data starting after the item with the given
            ID.
          allowEmptyValue: true
          schema:
            type: string
        - name: include_total_count
          in: query
          description: >-
            If true (default), includes total_count in the response. Set to
            false to skip the count query for better performance on large
            datasets.
          allowEmptyValue: true
          schema:
            type: boolean
      responses:
        '200':
          description: Successfully retrieved list of GatewayConfigs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayConfigListView'
        '401':
          description: Unauthorized. Invalid or missing authentication.
        '403':
          description: Forbidden. Account does not have devbox capability.
        '500':
          description: Internal server error.
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Runloop from '@runloop/api-client';


            const client = new Runloop({
              bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
            });


            // Automatically fetches more pages as needed.

            for await (const gatewayConfigView of client.gatewayConfigs.list())
            {
              console.log(gatewayConfigView.id);
            }
        - lang: Python
          source: |-
            import os
            from runloop_api_client import Runloop

            client = Runloop(
                bearer_token=os.environ.get("RUNLOOP_API_KEY"),  # This is the default and can be omitted
            )
            page = client.gateway_configs.list()
            page = page.gateway_configs[0]
            print(page.id)
components:
  schemas:
    GatewayConfigListView:
      type: object
      description: A paginated list of GatewayConfigs.
      properties:
        gateway_configs:
          type: array
          items:
            $ref: '#/components/schemas/GatewayConfigView'
          description: The list of GatewayConfigs.
        has_more:
          type: boolean
          description: Whether there are more results available beyond this page.
        total_count:
          format: int32
          description: Total count of GatewayConfigs that match the query.
          type:
            - integer
            - 'null'
      required:
        - gateway_configs
        - has_more
    GatewayConfigView:
      type: object
      description: >-
        A GatewayConfig defines a configuration for proxying API requests
        through the agent gateway. It specifies the target endpoint and how
        credentials should be applied.
      properties:
        id:
          type: string
          description: The unique identifier of the GatewayConfig.
        account_id:
          description: The account ID that owns this config.
          type:
            - string
            - 'null'
        name:
          type: string
          description: >-
            The human-readable name of the GatewayConfig. Unique per account (or
            globally for system configs).
        endpoint:
          type: string
          description: The target endpoint URL (e.g., 'https://api.anthropic.com').
        auth_mechanism:
          $ref: '#/components/schemas/AuthMechanismView'
          description: How credentials should be applied to proxied requests.
        description:
          description: Optional description for this gateway configuration.
          type:
            - string
            - 'null'
        create_time_ms:
          type: integer
          format: int64
          description: Creation time of the GatewayConfig (Unix timestamp in milliseconds).
      required:
        - id
        - name
        - endpoint
        - auth_mechanism
        - create_time_ms
    AuthMechanismView:
      type: object
      description: >-
        Defines how credentials are applied to HTTP requests when proxying
        through the gateway.
      properties:
        type:
          type: string
          description: 'The type of authentication mechanism: ''header'', ''bearer''.'
        key:
          description: 'For ''header'' type: the header name (e.g., ''x-api-key'').'
          type:
            - string
            - 'null'
      required:
        - type
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````