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

# Listar gateways de Devin Connect

> Los gateways de la cuenta con los destinos enrutados a través de cada uno.

Devuelve los gateways de [Devin Connect](https://docs.devin.ai/es/enterprise/deployment/devin-connect.md) de la empresa y los destinos a los que enruta cada uno. Usa el `gateway_id` de un gateway con [Agregar destinos del gateway](https://docs.devin.ai/es/api-reference/v3/devin-connect/post-enterprise-devin-connect-gateway-destinations.md), [Eliminar destinos del gateway](https://docs.devin.ai/es/api-reference/v3/devin-connect/delete-enterprise-devin-connect-gateway-destinations.md) o [Reemplazar destinos del gateway](https://docs.devin.ai/es/api-reference/v3/devin-connect/put-enterprise-devin-connect-gateway-destinations.md).

## Permisos

Requiere un [usuario de servicio](https://docs.devin.ai/es/api-reference/v3/service-users/members-service-users.md) o un [token de acceso personal](https://docs.devin.ai/es/api-reference/personal-access-tokens.md) con el permiso `ManageEnterpriseSettings` a nivel empresarial. Devin Connect debe estar habilitado para la empresa; de lo contrario, el endpoint devuelve un `403`.

## Comportamiento

* Los resultados están paginados. Indica `first` (tamaño de página) y `after` (el `end_cursor` de la página anterior) mientras `has_next_page` sea `true`.
* `kind` es `tunnel` cuando el gateway del cliente inicia la conexión, o `direct` cuando Devin se conecta al gateway (por ejemplo, a través de AWS PrivateLink). En los gateways de tipo túnel, `connected` y `last_connected_at` indican si el gateway se ha comunicado recientemente. Ambos son `null` en los gateways directos.
* Los gateways se crean, se inscriben y se eliminan en la web app. Esta API únicamente lee los gateways y modifica sus destinos.


## OpenAPI

````yaml es/v3-openapi.yaml GET /v3beta1/enterprise/devin-connect/gateways
openapi: 3.1.0
info:
  description: API de Devin v3 con autenticación mediante usuario de servicio y RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/enterprise/devin-connect/gateways:
    get:
      tags:
        - devin-connect
      summary: Listar gateways de Devin Connect
      description: >-
        Los gateways de la cuenta con los destinos enrutados a través de cada
        uno.
      operationId: >-
        handle_list_devin_connect_gateways_v3beta1_enterprise_devin_connect_gateways_get
      parameters:
        - in: query
          name: after
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: After
        - in: query
          name: first
          required: false
          schema:
            default: 100
            maximum: 200
            minimum: 1
            title: First
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_DevinConnectGateway_'
          description: Respuesta satisfactoria
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: No autorizado
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Prohibido
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: No Encontrado
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Conflicto
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Ya no disponible
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Contenido no procesable
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Demasiadas solicitudes
components:
  schemas:
    PaginatedResponse_DevinConnectGateway_:
      properties:
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Cursor para obtener la página siguiente, o None si esta es la última
            página.
          title: End Cursor
        has_next_page:
          default: false
          description: Indica si hay más elementos disponibles después de esta página.
          title: Has Next Page
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/DevinConnectGateway'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            Recuento total opcional (se puede omitir por motivos de
            rendimiento).
          title: Total
      required:
        - items
      title: PaginatedResponse[DevinConnectGateway]
      type: object
    ProblemDetail:
      description: >-
        Cuerpo de error RFC 9457 application/problem+json para la API v3.


        detail se conserva del cuerpo heredado {"detail": ...} por
        compatibilidad con versiones anteriores; los

        otros miembros son adicionales. errors contiene errores de validación

        a nivel de campo (solo 422).
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: Explicación legible para humanos específica de esta ocurrencia.
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Código legible por máquina que indica el rechazo de una acción
            bloqueada (p. ej., "user_frozen", "migrated_session").
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: Errores de validación por campo (solo en respuestas 422).
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: Una referencia URI (la ruta de la solicitud) para esta ocurrencia.
          title: Instance
        status:
          description: El código de estado HTTP.
          title: Status
          type: integer
        title:
          description: Un breve resumen del tipo de problema, legible para humanos.
          title: Title
          type: string
        type:
          default: about:blank
          description: Una referencia URI que identifica el tipo de problema.
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
    DevinConnectGateway:
      description: Un gateway de Devin Connect y los destinos enrutados a través de él.
      properties:
        connected:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            Indica si un gateway de túnel está conectado actualmente; null para
            direct
          title: Connected
        destinations:
          description: Destinos enrutados a través de este gateway
          items:
            $ref: '#/components/schemas/DevinConnectDestination'
          title: Destinations
          type: array
        gateway_id:
          description: ID del gateway
          title: Gateway Id
          type: string
        kind:
          description: >-
            tunnel: el gateway del cliente inicia la conexión; direct: Devin
            inicia la conexión con el gateway (p. ej., a través de AWS
            PrivateLink)
          enum:
            - tunnel
            - direct
          title: Kind
          type: string
        last_connected_at:
          anyOf:
            - type: integer
            - type: 'null'
          description: Última vez que se comunicó un gateway de túnel
          title: Last Connected At
        name:
          description: Nombre del gateway
          title: Name
          type: string
      required:
        - gateway_id
        - name
        - kind
        - destinations
      title: DevinConnectGateway
      type: object
    DevinConnectDestination:
      description: >-
        Un destino: se debe especificar exactamente uno de los campos
        ``hostname`` o ``ipv4``.
      properties:
        hostname:
          anyOf:
            - type: string
            - type: 'null'
          description: Nombre DNS exacto (sin comodines), p. ej., git.corp.example
          title: Hostname
        ipv4:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Dirección IPv4 o bloque CIDR, p. ej., 10.20.0.0/16; una dirección
            sin prefijo equivale a /32
          title: Ipv4
      title: DevinConnectDestination
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Credencial de usuario de servicio (prefijo: cog_)'
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.