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

# List analyses

> Retrieve all analyses belonging to the authenticated user, including their IDs, types,
and current status.

This is the primary endpoint. `GET /analysis/user` is a legacy alias that returns the same data.




## OpenAPI

````yaml /openapi.yaml get /analysis
openapi: 3.0.1
info:
  title: Ochy Partner API
  version: 1.0.0
  description: >
    The Ochy Partner API lets you integrate running biomechanical analysis into
    your application.

    Upload a video of a runner, receive detailed biomechanical metrics, joint
    angles, running style

    classification, and frame-by-frame position data.
servers:
  - url: https://partner-api.ochy-prod.com
    description: Production
security:
  - apiKey: []
paths:
  /analysis:
    get:
      tags:
        - Analysis
      summary: List analyses
      description: >
        Retrieve all analyses belonging to the authenticated user, including
        their IDs, types,

        and current status.


        This is the primary endpoint. `GET /analysis/user` is a legacy alias
        that returns the same data.
      operationId: listAnalyses
      responses:
        '200':
          description: List of analyses.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserAnalysesResponse'
              example:
                analyses:
                  - id: 3dde3402-94d7-462e-a784-9306207108dd
                    analysis_type: side_view
                    status: success
                    subject_id: 550e8400-e29b-41d4-a716-446655440000
                  - id: 3ea20fb3-e918-4d98-94ca-7477cedae9ed
                    analysis_type: side_view
                    status: success
                  - id: 5c482a11-4f50-471f-91f2-af9acb14182f
                    analysis_type: back_view
                    status: success
                    subject_id: 550e8400-e29b-41d4-a716-446655440000
                  - id: 6af9c095-01c6-45d0-a290-26d9080df622
                    analysis_type: side_view
                    status: analyzing
                count: 4
        '401':
          description: Missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthErrorResponse'
        '403':
          description: Invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    UserAnalysesResponse:
      type: object
      properties:
        analyses:
          type: array
          items:
            $ref: '#/components/schemas/AnalysisItem'
        count:
          type: integer
          description: Total number of analyses.
          example: 5
    AuthErrorResponse:
      type: object
      properties:
        detail:
          type: string
          example: API Key is missing
    ErrorResponse:
      type: object
      properties:
        detail:
          type: string
          example: Internal server error
        code:
          type: string
          description: Machine-readable error code (present on some errors).
          example: insufficient_credits
    AnalysisItem:
      type: object
      properties:
        id:
          type: string
          example: 3dde3402-94d7-462e-a784-9306207108dd
        analysis_type:
          type: string
          enum:
            - side_view
            - back_view
          example: side_view
        status:
          type: string
          enum:
            - pending
            - analyzing
            - success
            - failed
          example: success
        subject_id:
          type: string
          nullable: true
          description: Subject ID linked to this analysis, if any.
          example: 550e8400-e29b-41d4-a716-446655440000
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: apiKey
      description: Your API key, passed as a query parameter on every request.

````