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

# Listar organizações

> Listar as organizações no Enterprise.

## Permissões

Requer um [usuário de serviço](https://docs.devinenterprise.com/pt-BR/api-reference/v3/service-users/members-service-users.md) ou um [token de acesso pessoal](https://docs.devinenterprise.com/pt-BR/api-reference/personal-access-tokens.md) com a permissão `ViewOrganizations` no nível Enterprise. A permissão `ManageOrganizations` também concede acesso, pois inclui `ViewOrganizations`.


## OpenAPI

````yaml pt-BR/v3-openapi.json GET /v3/enterprise/organizations
openapi: 3.1.0
info:
  title: Devin API v3
  description: API Devin v3 com autenticação de usuário de serviço e RBAC
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/enterprise/organizations:
    get:
      tags:
        - organizations
      summary: Listar organizações
      description: Listar as organizações no Enterprise.
      operationId: handle_get_organizations_v3_enterprise_organizations_get
      parameters:
        - name: after
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: After
        - name: first
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            title: First
            default: 100
      responses:
        '200':
          description: Resposta bem-sucedida
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_OrganizationResponse_'
        '401':
          description: Não autorizado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
        '403':
          description: Proibido
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
        '404':
          description: Não encontrado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
        '409':
          description: Conflito
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
        '410':
          description: Removido
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
        '422':
          description: Conteúdo não processável
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
        '429':
          description: Muitas requisições
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
components:
  schemas:
    PaginatedResponse_OrganizationResponse_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/OrganizationResponse'
          type: array
          title: Items
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: End Cursor
          description: >-
            Cursor para recuperar a próxima página ou None, se esta for a última
            página.
        has_next_page:
          type: boolean
          title: Has Next Page
          description: Se há mais itens disponíveis após esta página.
          default: false
        total:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total
          description: >-
            Contagem total opcional (pode ser omitida por questões de
            desempenho).
      type: object
      required:
        - items
      title: PaginatedResponse[OrganizationResponse]
    ProblemDetail:
      properties:
        type:
          type: string
          title: Type
          description: Uma referência URI que identifica o tipo de problema.
          default: about:blank
        title:
          type: string
          title: Title
          description: Um breve resumo legível por humanos do tipo de problema.
        status:
          type: integer
          title: Status
          description: O código de status HTTP.
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
          description: Uma explicação legível por humanos específica desta ocorrência.
        instance:
          anyOf:
            - type: string
            - type: 'null'
          title: Instance
          description: Uma referência URI (o caminho da requisição) para esta ocorrência.
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Errors
          description: Erros de validação em nível de campo (apenas respostas 422).
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
          description: >-
            Código legível por máquina para recusas de ações bloqueadas (por
            exemplo, "user_frozen", "migrated_session").
      type: object
      required:
        - title
        - status
      title: ProblemDetail
      description: >-
        Corpo de erro RFC 9457 application/problem+json para a API v3.


        detail é mantido do corpo legado {"detail": ...} para compatibilidade
        com versões anteriores; os

        outros membros são aditivos. errors carrega falhas de validação em nível
        de campo

        (apenas 422).
    OrganizationResponse:
      properties:
        org_id:
          type: string
          title: Org Id
        name:
          type: string
          title: Name
        created_at:
          type: integer
          title: Created At
        updated_at:
          type: integer
          title: Updated At
        max_session_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Session Acu Limit
        max_cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Cycle Acu Limit
        budget_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Budget Id
          description: >-
            Identificador do orçamento ativo vinculado à organização, ou null se
            nenhum orçamento ativo estiver vinculado.
      type: object
      required:
        - org_id
        - name
        - created_at
        - updated_at
        - max_session_acu_limit
        - max_cycle_acu_limit
        - budget_id
      title: OrganizationResponse
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Credencial de usuário de serviço (prefixo: cog_)'

````

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