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

# List Service Accounts

> Returns a list of all service accounts in the organization.



## OpenAPI

````yaml GET /api/v1/organizations/{org_id}/service-accounts
openapi: 3.1.0
info:
  title: Organization Management API
  version: 1.0.0
servers:
  - url: https://anaconda.com
    description: Anaconda Cloud
security: []
paths:
  /api/v1/organizations/{org_id}/service-accounts:
    get:
      tags:
        - organizations
      summary: List Service Accounts
      description: Returns a list of all service accounts in the organization.
      operationId: list_service_accounts
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
          description: >-
            Your organization ID, found in your organization's URL:
            `anaconda.com/app/organizations/<ORG_ID>/`.
      responses:
        '200':
          description: List of service accounts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationServiceAccountListResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - Organization Admin: []
components:
  schemas:
    OrganizationServiceAccountListResponse:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          description: The list of service accounts in the organization.
          items:
            $ref: '#/components/schemas/OrganizationServiceAccount'
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          description: A list of validation errors.
          items:
            $ref: '#/components/schemas/ValidationError'
    OrganizationServiceAccount:
      type: object
      required:
        - name
        - client_id
        - org_id
      properties:
        name:
          type: string
          description: The name of the service account.
        client_id:
          type: string
          description: The unique client identifier for the service account.
        org_id:
          type: string
          description: The organization ID the service account belongs to.
    ValidationError:
      type: object
      required:
        - loc
        - msg
        - type
      properties:
        loc:
          type: array
          items:
            type: string
          description: >-
            The location of the validation error (for example, `["body",
            "name"]`).
        msg:
          type: string
          description: A human-readable validation error message.
        type:
          type: string
          description: The type of validation error.
  securitySchemes:
    Organization Admin:
      bearerFormat: JWT
      description: >-
        Bearer token obtained by authenticating with your organization admin's
        email and password (`grant_type=password`).


        See the [Getting
        started](/anaconda-platform/admin/org-management-api/org-management-api)
        page for the full authentication flow.
      scheme: bearer
      type: http

````