> ## 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.

# Get subject

> Retrieve a single subject by ID. Returns 404 if the subject does not exist
or has been soft-deleted.




## OpenAPI

````yaml /openapi.yaml get /subjects/{subject_id}
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:
  /subjects/{subject_id}:
    get:
      tags:
        - Subjects
      summary: Get subject
      description: >
        Retrieve a single subject by ID. Returns 404 if the subject does not
        exist

        or has been soft-deleted.
      operationId: getSubject
      parameters:
        - name: subject_id
          in: path
          required: true
          description: Subject ID.
          schema:
            type: string
          example: 550e8400-e29b-41d4-a716-446655440000
      responses:
        '200':
          description: Subject details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Subject'
              example:
                id: 550e8400-e29b-41d4-a716-446655440000
                email: runner@example.com
                name: Jane Smith
                height: 1.72
                weight: 62
                created_at: '2025-03-20T15:30:00Z'
        '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'
        '404':
          description: Subject not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                detail: Subject not found
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    Subject:
      type: object
      properties:
        id:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
        email:
          type: string
          example: runner@example.com
        name:
          type: string
          example: Jane Smith
        height:
          type: number
          description: Subject height in meters.
          example: 1.72
        weight:
          type: number
          description: Subject weight in kilograms.
          example: 62
        created_at:
          type: string
          format: date-time
          example: '2025-03-20T15:30:00Z'
    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
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: apiKey
      description: Your API key, passed as a query parameter on every request.

````