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

# List API clients

> Returns the active API clients for the organization. Secrets are not included.

Lists active [client apps](/authentication) for the organization. Secrets are never returned.


## OpenAPI

````yaml get /v1/core/m2m-clients/{organizationId}
openapi: 3.0.0
info:
  version: 1.0.0
  title: Swagger API
servers:
  - url: https://api.siro.ai/
    description: Siro API Gateway
security: []
externalDocs:
  description: View the raw OpenAPI Specification in JSON format
  url: /swagger.json
paths:
  /v1/core/m2m-clients/{organizationId}:
    get:
      summary: List API clients
      description: >-
        Returns the active API clients for the organization. Secrets are not
        included.
      parameters:
        - schema:
            type: string
            description: The organization this client belongs to.
          required: true
          description: The organization this client belongs to.
          name: organizationId
          in: path
      responses:
        '200':
          description: List API clients
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        clientId:
                          type: string
                          description: The id of the API client.
                        name:
                          type: string
                          description: The display name given when the client was created.
                        createdAt:
                          type: string
                          description: >-
                            When the client was created, as an ISO-8601
                            timestamp.
                        createdBySiroUserId:
                          type: string
                          description: The id of the caller who created the client.
                        role:
                          type: string
                          nullable: true
                          enum:
                            - root_superadmin
                            - root_admin
                            - org_group_superadmin
                            - org_group_admin
                            - org_superadmin
                            - org_admin
                            - coach
                            - rep
                          description: >-
                            The role the client acts as, or null if that record
                            no longer exists.
                      required:
                        - clientId
                        - name
                        - createdAt
                        - createdBySiroUserId
                        - role
                  cursor:
                    anyOf:
                      - type: string
                      - type: number
                      - nullable: true
                  pageSize:
                    type: number
                  limit:
                    type: number
                  total:
                    type: number
                    nullable: true
                  hasNextPage:
                    type: boolean
                required:
                  - data
        '400':
          description: Bad Request - Invalid parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                required:
                  - error
        '401':
          description: Unauthorized - User not authenticated
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Authentication error message
                required:
                  - error
        '403':
          description: Forbidden - User does not have access
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Authorization error message
                required:
                  - error
        '404':
          description: Not Found - Resource not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Resource not found error message
                required:
                  - error
        '422':
          description: Unprocessable Content - The request failed validation checks
          content:
            application/json:
              schema:
                type: object
                properties:
                  issues:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        expected:
                          type: string
                        received:
                          type: string
                        path:
                          type: array
                          items:
                            anyOf:
                              - type: string
                              - type: number
                        message:
                          type: string
                      required:
                        - code
                        - path
                        - message
                  name:
                    type: string
                    enum:
                      - ZodError
                required:
                  - issues
                  - name
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Internal server error message
                required:
                  - error
      security:
        - SiroAuthToken: []
components:
  securitySchemes:
    SiroAuthToken:
      type: apiKey
      in: header
      name: x-siro-auth-token
      description: >-
        Access token from POST https://auth.siro.ai/oauth2/token
        (client_credentials), or a Siro OAuth access token. Send
        `x-siro-auth-token: <access-token>`.
      x-default: <access-token>

````