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

# Upload jobs

> Read an upload job's status and, once it completes, its analysis.

Read an upload job by the `job_id` that [`POST /v2/upload/analyze`](https://docs.interhuman.ai/api-reference/upload-analyze) returned. The submit's `status_url` is this path, relative to `https://api.interhuman.ai`. One endpoint serves jobs for all three Inter-2 models. It needs the `interhumanai.upload` scope.

A successful read answers `200` with the job envelope. Its `status` says what else the envelope carries:

* **`queued`**: the job is accepted and has not started. There is no `result` or `error` yet.
* **`running`**: the model is reading the file. There is no `result` or `error` yet.
* **`completed`**: `result` holds the analysis: `duration_seconds`, `window_seconds`, `windows`, plus each section the submit's `include[]` asked for, such as `signals` and `conversation_quality`. An `inter-2-deep` job's windows also carry `reasoning`.
* **`failed`**: `error` holds the reason, in the standard [error shape](https://docs.interhuman.ai/api-reference/error-handling.md). A job that fails with `ih1004` was interrupted before it finished; submit the file again as a new submit, with a new `Idempotency-Key` if you send one.

Read the job every few seconds until `status` is `completed` or `failed`. If a read answers `503` (`ih1002` or `ih1003`), wait the `Retry-After` seconds plus a few random seconds, then read it again. Without the header, wait a couple of seconds.

A job stays readable until its `expires_at`: 24 hours after submission, or 72 hours for an `inter-2-deep` job. After that, and for an id that does not belong to your account, the read answers `404` (`ih4021`). Store the result on your side if you need it longer.

Quickstarts: [Video Analysis](https://docs.interhuman.ai/getting-started/video-upload-quickstart.md) · [Audio Analysis](https://docs.interhuman.ai/getting-started/audio-upload-quickstart.md)

#### Response Headers

**X-Correlation-ID** `header`

Unique identifier for the request. Include this when contacting support.

Example: `f47ac10b-58cc-4372-a567-0e02b2c3d479`


## OpenAPI

````yaml get /v2/upload/jobs/{job_id}
openapi: 3.1.0
info:
  title: interhuman-api
  version: 2.22.0
servers:
  - url: https://api.interhuman.ai
    description: Production environment
security: []
paths:
  /v2/upload/jobs/{job_id}:
    get:
      summary: Get Upload Job
      description: >-
        Read an upload job. The envelope's `status` moves through `queued`,
        `running` and then `completed` (with `result`) or `failed` (with
        `error`). Records stay readable until `expires_at`.
      operationId: get_upload_job_v2_upload_jobs__job_id__get
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            description: The `job_id` from the submit response.
            title: Job Id
          description: The `job_id` from the submit response.
        - name: X-Client-Request-Id
          in: header
          required: false
          description: >-
            Optional identifier supplied by the client to correlate this request
            with their own logs. When provided, the value is recorded alongside
            the server-assigned correlation ID in Interhuman logs to aid lookup
            and support investigations. This header is not echoed back; the
            server returns its own correlation ID instead, in the
            `X-Correlation-ID` response header on HTTP and as `correlation_id`
            on every WebSocket message.
          schema:
            type: string
            title: X-Client-Request-Id
      responses:
        '200':
          description: The job envelope in its current state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadJobResponse'
              examples:
                queued:
                  value:
                    job_id: 3f1c2b7a9d4e4c8fa1b2c3d4e5f60718
                    status: queued
                    model: inter-2
                    created_at: '2026-09-11T10:00:00Z'
                    expires_at: '2026-09-12T10:00:00Z'
                    status_url: /v2/upload/jobs/3f1c2b7a9d4e4c8fa1b2c3d4e5f60718
                completed:
                  value:
                    job_id: 3f1c2b7a9d4e4c8fa1b2c3d4e5f60718
                    status: completed
                    model: inter-2
                    created_at: '2026-09-11T10:00:00Z'
                    expires_at: '2026-09-12T10:00:00Z'
                    status_url: /v2/upload/jobs/3f1c2b7a9d4e4c8fa1b2c3d4e5f60718
                    result:
                      duration_seconds: 10
                      window_seconds: 5
                      windows:
                        - index: 0
                          start_seconds: 0
                          end_seconds: 5
                          engagement_status: engaged
                          signals:
                            - type: confidence
                              start: 0
                              end: 5
                              probability: high
                              rationale: >-
                                Steady eye contact, upright posture and a firm,
                                even tone throughout.
                        - index: 1
                          start_seconds: 5
                          end_seconds: 10
                          engagement_status: neutral
                          signals: []
                      signals:
                        - type: confidence
                          start: 0
                          end: 5
                          probability: high
                          rationale: >-
                            Steady eye contact, upright posture and a firm, even
                            tone throughout.
                      conversation_quality:
                        overall:
                          quality_index: 65.5
                          clarity: 50
                          authority: 85.7
                          energy: 91.7
                          rapport: 50
                          learning: 50
                        timeline:
                          - start: 0
                            end: 10
                            values:
                              quality_index: 65.5
                              clarity: 50
                              authority: 85.7
                              energy: 91.7
                              rapport: 50
                              learning: 50
                completed_inter_2_deep:
                  value:
                    job_id: 3f1c2b7a9d4e4c8fa1b2c3d4e5f60718
                    status: completed
                    model: inter-2-deep
                    created_at: '2026-09-11T10:00:00Z'
                    expires_at: '2026-09-14T10:00:00Z'
                    status_url: /v2/upload/jobs/3f1c2b7a9d4e4c8fa1b2c3d4e5f60718
                    result:
                      duration_seconds: 5
                      window_seconds: 5
                      windows:
                        - index: 0
                          start_seconds: 0
                          end_seconds: 5
                          engagement_status: neutral
                          signals:
                            - type: confidence
                              start: 0
                              end: 5
                              probability: high
                              rationale: >-
                                She speaks in a clear, steady voice without
                                fillers and holds an upright posture and steady
                                eye contact.
                          reasoning:
                            baseline_context: >-
                              A one-on-one video call about a project deadline.
                              Calm, attentive delivery is the baseline; marked
                              hedging or withdrawal would be a deviation.
                            observable_evidence: >-
                              Steady eye contact with the camera, an upright
                              posture, and a clear, even voice with no fillers.
                              The firm, unhedged phrasing deviates from the
                              baseline.
                            appraisal_inference: >-
                              Stable self-assurance: she treats the request as
                              settled.
                            mental_state_hypothesis: >-
                              She intends her request to be taken seriously and
                              expects agreement. Confidence: high.
                            signal_conclusion: >-
                              Confidence: assured, unhedged delivery. Interest
                              is the closest contrast, but she seeks no new
                              information.
                            trace: >-
                              1. Baseline & context: A one-on-one video call
                              about a project deadline. Calm, attentive delivery
                              is the baseline; marked hedging or withdrawal
                              would be a deviation.


                              2. Observable evidence: Steady eye contact with
                              the camera, an upright posture, and a clear, even
                              voice with no fillers. The firm, unhedged phrasing
                              deviates from the baseline.


                              3. Appraisal inference: Stable self-assurance: she
                              treats the request as settled.


                              4. Mental state hypothesis: She intends her
                              request to be taken seriously and expects
                              agreement. Confidence: high.


                              5. Signal conclusion: Confidence: assured,
                              unhedged delivery. Interest is the closest
                              contrast, but she seeks no new information.
                      transcript:
                        status: completed
                        language: en
                        language_source: requested
                        speaker_roles_status: mapped
                        word_timing: asr
                        words:
                          - text: I
                            start: 0.42
                            end: 0.55
                            speaker: 0
                            speaker_role: fg_speaker
                          - text: need
                            start: 0.55
                            end: 0.81
                            speaker: 0
                            speaker_role: fg_speaker
                          - text: this
                            start: 0.81
                            end: 1.02
                            speaker: 0
                            speaker_role: fg_speaker
                          - text: by
                            start: 1.02
                            end: 1.2
                            speaker: 0
                            speaker_role: fg_speaker
                          - text: Friday.
                            start: 1.2
                            end: 1.74
                            speaker: 0
                            speaker_role: fg_speaker
                          - text: Okay.
                            start: 2.31
                            end: 2.7
                            speaker: 1
                            speaker_role: bg_speaker
                        segments:
                          - speaker: 0
                            start: 0.38
                            end: 1.8
                            speaker_role: fg_speaker
                          - speaker: 1
                            start: 2.25
                            end: 2.76
                            speaker_role: bg_speaker
                failed:
                  value:
                    job_id: 3f1c2b7a9d4e4c8fa1b2c3d4e5f60718
                    status: failed
                    model: inter-2
                    created_at: '2026-09-11T10:00:00Z'
                    expires_at: '2026-09-12T10:00:00Z'
                    status_url: /v2/upload/jobs/3f1c2b7a9d4e4c8fa1b2c3d4e5f60718
                    error:
                      error_id: ih5002
                      correlation_id: 550e8400-e29b-41d4-a716-446655440000
                      link: >-
                        https://docs.interhuman.ai/api-reference/error-handling#ih5002-corrupted-media
                      message: >-
                        Unable to process the file: it is corrupted or cannot be
                        read.
        '401':
          description: >-
            Unauthorized. No API key or client token was sent (ih2002), the API
            key is invalid (ih2001), or the client token is expired (ih2010),
            invalid (ih2011) or revoked (ih2014).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error_id: ih2002
                correlation_id: 550e8400-e29b-41d4-a716-446655440000
                link: >-
                  https://docs.interhuman.ai/api-reference/error-handling#ih2002-missing-credentials
                message: >-
                  No authentication credentials were provided. Send your API key
                  or a client token in the 'Authorization: Bearer <credential>'
                  header (or, for WebSocket connections, as the
                  'Sec-WebSocket-Protocol: access_token, <credential>'
                  subprotocol pair).
        '403':
          description: >-
            Forbidden. The API key or client token does not carry the
            `interhumanai.upload` scope (ih2003), which authorizes reading the
            account's jobs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error_id: ih2003
                correlation_id: 550e8400-e29b-41d4-a716-446655440000
                link: >-
                  https://docs.interhuman.ai/api-reference/error-handling#ih2003-insufficient-scope
                message: >-
                  Insufficient scope. This endpoint requires the
                  'interhumanai.upload' scope.
        '404':
          description: >-
            No job with this id exists for the account, or it has expired
            (ih4021).
          content:
            application/json:
              example:
                error_id: ih4021
                correlation_id: 550e8400-e29b-41d4-a716-446655440000
                link: >-
                  https://docs.interhuman.ai/api-reference/error-handling#ih4021-job-not-found
                message: >-
                  No analysis job with id '3f1c2b7a9d4e4c8fa1b2c3d4e5f60718'
                  exists for this account, or it has expired.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: >-
            Service unavailable. The job store cannot be reached (ih1003); retry
            after a short delay.
          content:
            application/json:
              example:
                error_id: ih1003
                correlation_id: 550e8400-e29b-41d4-a716-446655440000
                link: >-
                  https://docs.interhuman.ai/api-reference/error-handling#ih1003-dependency-unavailable
                message: >-
                  A required dependency is temporarily unavailable. Please try
                  again later.
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - uploadAuth: []
components:
  schemas:
    UploadJobResponse:
      properties:
        job_id:
          type: string
          title: Job ID
          description: Identifier of the job. Use it with ``GET /v2/upload/jobs/{job_id}``.
          examples:
            - 3f1c2b7a9d4e4c8fa1b2c3d4e5f60718
        status:
          $ref: '#/components/schemas/UploadJobStatus'
          title: Status
          description: >-
            Where the job is: ``queued`` (accepted, not started), ``running``,
            ``completed`` (``result`` is set) or ``failed`` (``error`` is set).
          examples:
            - queued
        model:
          $ref: '#/components/schemas/UploadModel'
          title: Model
          description: The model the job was submitted for.
          examples:
            - inter-2
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the job was accepted (UTC).
          examples:
            - '2026-09-11T10:00:00Z'
        expires_at:
          type: string
          format: date-time
          title: Expires At
          description: >-
            When the job record, and its result, stop being readable (UTC). A
            read after this time answers ``ih4021``.
          examples:
            - '2026-09-12T10:00:00Z'
        status_url:
          type: string
          title: Status URL
          description: >-
            Path of the job's status resource, relative to the API base URL:
            ``/v2/upload/jobs/{job_id}``.
          examples:
            - /v2/upload/jobs/3f1c2b7a9d4e4c8fa1b2c3d4e5f60718
        result:
          anyOf:
            - $ref: '#/components/schemas/UploadJobResult'
            - type: 'null'
          title: Result
          description: The analysis. Present only when ``status`` is ``completed``.
        error:
          anyOf:
            - $ref: '#/components/schemas/ErrorResponse'
            - type: 'null'
          title: Error
          description: >-
            Why the job failed, as the API's standard error body. Present only
            when ``status`` is ``failed``.
      type: object
      required:
        - job_id
        - status
        - model
        - created_at
        - expires_at
        - status_url
      title: UploadJobResponse
      description: The job envelope, returned by both v2 upload routes.
    ErrorResponse:
      properties:
        error_id:
          type: string
          title: Error Id
          description: Machine-readable error code.
        correlation_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Correlation Id
          description: >-
            Unique identifier assigned to each API request or WebSocket
            connection. It allows both the client and the service to trace a
            specific interaction through logs and internal systems. If you
            contact support about a particular request or connection, providing
            the correlation_id allows the team to locate the relevant records
            quickly. Clients who may later request deletion of data for privacy
            reasons should store the correlation_id, as it can be used to
            identify and remove data associated with that specific interaction.
        link:
          anyOf:
            - type: string
            - type: 'null'
          title: Link
          description: URL to additional information about this error.
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
          description: >-
            Error explanation. Contains any additional details about the
            specific error that was encountered.
      type: object
      required:
        - error_id
      title: ErrorResponse
      description: >-
        Structured error returned by all HTTP error paths.


        Only ``error_id`` is required. The other fields are included when
        available.
    UploadJobStatus:
      type: string
      enum:
        - queued
        - running
        - completed
        - failed
      title: UploadJobStatus
      description: >-
        Lifecycle of an upload job.


        ``queued`` and ``running`` are transient; ``completed`` and ``failed``
        are

        terminal, and the record stays readable until ``expires_at``.
    UploadModel:
      type: string
      enum:
        - inter-2
        - inter-2-audio
        - inter-2-deep
      title: UploadModel
      description: >-
        The Inter-2 model a ``POST /v2/upload/analyze`` request names.


        The path version names the contract (engagement plus signals with a

        rationale, per window); ``model`` names the engine that reads the file.

        ``inter-2`` reads the video, picture and sound together, from an mp4,

        mov, avi, mkv, webm or mpeg-ts file carrying both a video and an audio

        track. ``inter-2-audio`` reads the audio alone, from a wav, flac, mp3,

        m4a or ogg file, or a webm or mp4 carrying an audio track, and reports a

        subset of the signals ``inter-2`` reports: agreement, confidence,

        frustration, hesitation, interest and uncertainty. ``inter-2-deep``
        reads

        the same video files as ``inter-2`` and reasons before it answers: each

        window carries the model's reasoning trace beside its engagement and

        signals. It accepts shorter files (two minutes by default), and is
        served

        on this route only. All three take the ``interhumanai.upload`` scope.
    UploadJobResult:
      properties:
        duration_seconds:
          type: number
          title: Duration
          description: Length of the analyzed media, in seconds.
          examples:
            - 60
        window_seconds:
          type: number
          title: Window Length
          description: Length of each analysis window, in seconds.
          examples:
            - 5
        windows:
          items:
            $ref: '#/components/schemas/UploadJobWindow'
          type: array
          title: Windows
          description: Per-window analyses, in file order.
        signals:
          anyOf:
            - items:
                $ref: '#/components/schemas/UploadJobSignal'
              type: array
            - type: 'null'
          title: Signals
          description: >-
            Every window's signals as one list over the whole file, in
            chronological order, merged by the same rules as ``POST
            /v1/upload/analyze``: signals of the same type in adjacent windows
            become one span, which keeps the highest probability and that
            signal's rationale. Like the window signals, an entry omits
            ``probability`` or ``rationale`` when it has none. Present when
            ``include[]`` named ``signals``, and then an empty list when no
            signal was detected; absent otherwise. The windows are unchanged
            either way.
        conversation_quality:
          anyOf:
            - $ref: '#/components/schemas/UploadJobConversationQuality'
            - type: 'null'
          title: Conversation Quality
          description: >-
            The Conversation Quality Index over the whole file, in the sections
            the submit's ``include[]`` flags asked for. Absent when no flag was
            sent. When requested it is present even for a file with no detected
            signals: every dimension then reads the neutral 50.
        transcript:
          anyOf:
            - $ref: '#/components/schemas/UploadJobTranscript'
            - type: 'null'
          title: Transcript
          description: >-
            A transcript of the whole file: every word with its times and
            speaker, and who spoke when. Present when ``include[]`` named
            ``transcript``, which ``inter-2-deep`` jobs accept; absent
            otherwise. A transcript that could not be produced is present with
            ``status`` ``failed`` and does not fail the job.
        visual_cues:
          anyOf:
            - $ref: '#/components/schemas/UploadJobVisualCues'
            - type: 'null'
          title: Visual Cues
          description: >-
            Timestamped behaviors of the people on camera, such as nodding or a
            gesture. Present when ``include[]`` named ``visual_cues``, which
            ``inter-2-deep`` jobs accept; absent otherwise. Cues that could not
            be produced are present with ``status`` ``failed`` and do not fail
            the job.
        lexical_cues:
          anyOf:
            - $ref: '#/components/schemas/UploadJobLexicalCues'
            - type: 'null'
          title: Lexical Cues
          description: >-
            Timestamped disfluencies in what was said, such as a repetition or a
            false start. Present when ``include[]`` named ``lexical_cues``,
            which ``inter-2-deep`` jobs accept; absent otherwise. Cues that
            could not be produced are present with ``status`` ``failed`` and do
            not fail the job.
        speech_cues:
          anyOf:
            - $ref: '#/components/schemas/UploadJobSpeechCues'
            - type: 'null'
          title: Speech Cues
          description: >-
            Timestamped changes in how a speaker sounds, such as a faster rate
            or a higher pitch than that speaker's usual, and turn-taking events.
            Present when ``include[]`` named ``speech_cues``, which
            ``inter-2-deep`` jobs accept; absent otherwise. Cues that could not
            be produced are present with ``status`` ``failed`` and do not fail
            the job.
      type: object
      required:
        - duration_seconds
        - window_seconds
      title: UploadJobResult
      description: |-
        The result of a completed upload job: one entry per analyzed window.

        ``signals`` and ``conversation_quality`` are whole-file views of those
        windows, and ``transcript`` is a second reading of the file itself; each
        is present only when the submit's ``include[]`` asked for it.
    UploadJobWindow:
      properties:
        index:
          type: integer
          title: Index
          description: Zero-based position of this window in the file.
          examples:
            - 0
        start_seconds:
          type: number
          title: Start
          description: Where the window starts, in seconds from the start of the file.
          examples:
            - 0
        end_seconds:
          type: number
          title: End
          description: Where the window ends, in seconds from the start of the file.
          examples:
            - 5
        engagement_status:
          $ref: '#/components/schemas/EngagementLevel'
          title: Engagement Status
          description: The engagement level the model read over this window.
          examples:
            - engaged
        signals:
          items:
            $ref: '#/components/schemas/UploadJobSignal'
          type: array
          title: Signals
          description: >-
            Social signals detected in this window. Each carries the window's
            span as its start and end. An ``inter-2-audio`` job reports a subset
            of the signal types: those it can hear.
        reasoning:
          anyOf:
            - $ref: '#/components/schemas/UploadJobReasoning'
            - type: 'null'
          title: Reasoning
          description: >-
            How the model reached this window's result: its reasoning trace,
            whole and split into five sections. Present on every
            ``inter-2-deep`` window whose reply carried a trace, which the model
            writes before each answer; absent on ``inter-2`` and
            ``inter-2-audio`` windows.
      type: object
      required:
        - index
        - start_seconds
        - end_seconds
        - engagement_status
      title: UploadJobWindow
      description: The analysis of one fixed-length window of the file.
    UploadJobSignal:
      properties:
        type:
          $ref: '#/components/schemas/SignalType'
          title: Signal Type
          description: >-
            The name of the detected social signal (e.g., 'agreement',
            'interest'). On an ``inter-2-audio`` job, the types are a subset of
            the ones ``inter-2`` reports: those it can hear (agreement,
            confidence, frustration, hesitation, interest and uncertainty). An
            ``inter-2-deep`` job reports the same types as ``inter-2``.
          examples:
            - agreement
        start:
          type: number
          title: Start Time
          description: Start time of the signal in seconds relative to the video start.
          examples:
            - 10
        end:
          type: number
          title: End Time
          description: End time of the signal in seconds relative to the video start.
          examples:
            - 15
        probability:
          anyOf:
            - $ref: '#/components/schemas/Probability'
            - type: 'null'
          title: Probability
          description: 'Confidence level of the detected signal: high, medium, or low.'
          examples:
            - high
        rationale:
          anyOf:
            - type: string
            - type: 'null'
          title: Rationale
          description: >-
            A concise, evidence-based explanation of why the signal was
            detected. Grounded in cues the model observed: in the picture and
            sound for ``inter-2`` and ``inter-2-deep``, and in the sound alone
            for ``inter-2-audio``.
          examples:
            - Subject nodded repeatedly while maintaining eye contact.
      type: object
      required:
        - type
        - start
        - end
      title: UploadJobSignal
      description: |-
        A social signal detected in one window of an upload job.

        Carries the window's span as its ``start`` and ``end``. Unlike the v1
        ``Signal``, it names no ``modality``: the job's ``model`` already says
        which evidence the model read.
    UploadJobConversationQuality:
      properties:
        overall:
          anyOf:
            - $ref: '#/components/schemas/ConversationQualityValues'
            - type: 'null'
          title: Overall
          description: >-
            Aggregated conversation quality scores for the whole file. Present
            when ``include[]`` named ``conversation_quality_overall``.
        timeline:
          anyOf:
            - items:
                $ref: '#/components/schemas/ConversationQualityTimelineEntry'
              type: array
            - type: 'null'
          title: Timeline
          description: >-
            Time-varying conversation quality scores in consecutive,
            non-overlapping periods across the file. Present when ``include[]``
            named ``conversation_quality_timeline``.
      type: object
      title: UploadJobConversationQuality
      description: >-
        The Conversation Quality Index of a completed job, in the sections
        requested.


        Computed once, when the job completes, from every window's signals and

        engagement status over the whole file. Each section is present only when

        the submit asked for it with the matching ``include[]`` flag, so a
        caller

        reads exactly what it requested; when neither flag was sent the block is

        absent from the result altogether.
    UploadJobTranscript:
      properties:
        status:
          $ref: '#/components/schemas/UploadJobTranscriptStatus'
          title: Status
          description: >-
            ``completed`` when the file was transcribed, even to no words;
            ``failed`` when no transcript could be produced (``error`` says
            why).
          examples:
            - completed
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
          description: >-
            The language the speech was transcribed in, as an ISO 639 code. When
            ``language_source`` is ``detected`` it is the speech recognizer's
            own guess, which is best-effort and can be wrong: name ``language``
            on the submit where you know it. Null when no language was reported.
          examples:
            - en
        language_source:
          anyOf:
            - type: string
              enum:
                - requested
                - detected
            - type: 'null'
          title: Language Source
          description: >-
            Where ``language`` came from: ``requested``, the language the submit
            named; or ``detected``, the speech recognizer's own guess, which is
            best-effort. Null when ``language`` is null, or when the speech
            service did not report it.
          examples:
            - requested
        language_probability:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Language Probability
          description: >-
            The speech recognizer's confidence, from 0 to 1, in a ``detected``
            language. Null for a requested language, and wherever the recognizer
            reports no confidence, which is the case for the one serving today.
          examples:
            - null
        speaker_roles_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Speaker Roles Status
          description: >-
            Whether the speakers could be told apart as on camera or off it:
            ``mapped`` when at least one speaker has a role; ``unmapped`` when
            none could be told; ``no_face`` when no face was found in the
            picture; ``failed`` when the step itself failed. The words and
            segments are complete in every case; only ``speaker_role`` is
            affected. Treat a value not listed here as ``unmapped``: later
            versions may add one.
          examples:
            - mapped
        word_timing:
          anyOf:
            - type: string
            - type: 'null'
          title: Word Timing
          description: >-
            How the word times were measured. ``asr`` means they are the speech
            recognizer's own estimates.
          examples:
            - asr
        words:
          items:
            $ref: '#/components/schemas/UploadJobTranscriptWord'
          type: array
          title: Words
          description: Every spoken word, in the order spoken.
        segments:
          items:
            $ref: '#/components/schemas/UploadJobTranscriptSegment'
          type: array
          title: Segments
          description: 'Who spoke when: one entry per stretch of speech, in order.'
        error:
          anyOf:
            - $ref: '#/components/schemas/ErrorResponse'
            - type: 'null'
          title: Error
          description: >-
            Why no transcript could be produced, as the API's standard error
            body. Present only when ``status`` is ``failed``.
      type: object
      required:
        - status
      title: UploadJobTranscript
      description: |-
        The transcript of a completed ``inter-2-deep`` job that asked for one.

        Read ``status`` first. ``completed`` carries the words and the speaker
        segments, both empty when nobody speaks in the file. ``failed`` carries
        ``error`` and no words: the transcript could not be produced, which is a
        different outcome from a file without speech. Either way the job itself
        completed and its windows are whole.
    UploadJobVisualCues:
      properties:
        status:
          $ref: '#/components/schemas/UploadJobCuesStatus'
          title: Status
          description: >-
            ``completed`` when the stage ran over the whole file, even to no
            cues; ``failed`` when it could not produce its cues (``error`` says
            why).
          examples:
            - completed
        cues:
          items:
            $ref: '#/components/schemas/UploadJobVisualCue'
          type: array
          title: Cues
          description: The behaviors seen, in the order they start.
        error:
          anyOf:
            - $ref: '#/components/schemas/ErrorResponse'
            - type: 'null'
          title: Error
          description: >-
            Why the cues could not be produced, as the API's standard error
            body. Present only when ``status`` is ``failed``.
      type: object
      required:
        - status
      title: UploadJobVisualCues
      description: >-
        The visual cues of a completed ``inter-2-deep`` job that asked for them.


        Read ``status`` first. ``completed`` carries ``cues``, empty when
        nothing

        was seen. ``failed`` carries ``error`` and no cues, which is a different

        outcome from a file with nothing to report. Either way the job itself

        completed.
    UploadJobLexicalCues:
      properties:
        status:
          $ref: '#/components/schemas/UploadJobCuesStatus'
          title: Status
          description: >-
            ``completed`` when the stage ran over the whole file, even to no
            cues; ``failed`` when it could not produce its cues (``error`` says
            why).
          examples:
            - completed
        cues:
          items:
            $ref: '#/components/schemas/UploadJobLexicalCue'
          type: array
          title: Cues
          description: The cues found, in the order they start.
        error:
          anyOf:
            - $ref: '#/components/schemas/ErrorResponse'
            - type: 'null'
          title: Error
          description: >-
            Why the cues could not be produced, as the API's standard error
            body. Present only when ``status`` is ``failed``.
      type: object
      required:
        - status
      title: UploadJobLexicalCues
      description: >-
        The lexical cues of a completed ``inter-2-deep`` job that asked for
        them.


        Read ``status`` first. ``completed`` carries ``cues``, empty when
        nothing

        stood out. ``failed`` carries ``error`` and no cues. Either way the job

        itself completed.


        The cues cover the speech of the person on camera. An off-camera speaker

        is not analyzed, so the absence of a cue for them says nothing about how

        they spoke. When no speaker could be identified as on camera, every

        speaker is analyzed and each cue's ``speaker_role`` is null.
    UploadJobSpeechCues:
      properties:
        status:
          $ref: '#/components/schemas/UploadJobCuesStatus'
          title: Status
          description: >-
            ``completed`` when the stage ran over the whole file, even to no
            cues; ``failed`` when it could not produce its cues (``error`` says
            why).
          examples:
            - completed
        cues:
          items:
            $ref: '#/components/schemas/UploadJobSpeechCue'
          type: array
          title: Cues
          description: The cues found, in the order they start.
        error:
          anyOf:
            - $ref: '#/components/schemas/ErrorResponse'
            - type: 'null'
          title: Error
          description: >-
            Why the cues could not be produced, as the API's standard error
            body. Present only when ``status`` is ``failed``.
      type: object
      required:
        - status
      title: UploadJobSpeechCues
      description: >-
        The speech cues of a completed ``inter-2-deep`` job that asked for them.


        Read ``status`` first. ``completed`` carries ``cues``, empty when
        nothing

        stood out or the file holds too little speech to judge a speaker against

        themselves. ``failed`` carries ``error`` and no cues. Either way the job

        itself completed.


        The cues cover the speech of the person on camera, judged against the
        rest

        of that person's speech in the file. An off-camera speaker is not

        analyzed, so the absence of a cue for them says nothing about how they

        spoke. When no speaker could be identified as on camera, every speaker
        is

        analyzed, each against the rest of the speech in the file, and each
        cue's

        ``speaker_role`` is null.
    EngagementLevel:
      type: string
      enum:
        - engaged
        - neutral
        - disengaged
      title: EngagementLevel
      description: Engagement state levels derived from model signals.
    UploadJobReasoning:
      properties:
        baseline_context:
          anyOf:
            - type: string
            - type: 'null'
          title: Baseline & Context
          description: >-
            The interaction type, topic and social role the model read, the
            baseline behavior it expects for that kind of interaction, and what
            would count as a meaningful deviation from it. Null when the trace
            could not be split into its five sections.
          examples:
            - >-
              A one-on-one video call about a project deadline. Calm, attentive
              delivery is the baseline; marked hedging or withdrawal would be a
              deviation.
        observable_evidence:
          anyOf:
            - type: string
            - type: 'null'
          title: Observable Evidence
          description: >-
            The concrete visual, verbal and vocal cues the model observed,
            without interpretation, and which of them deviate from the baseline.
            Null when the trace could not be split into its five sections.
          examples:
            - >-
              Steady eye contact with the camera, an upright posture and a
              clear, even voice with no fillers. The firm, unhedged phrasing
              deviates from the baseline.
        appraisal_inference:
          anyOf:
            - type: string
            - type: 'null'
          title: Appraisal Inference
          description: >-
            The most probable appraisal behind a deviation, such as incomplete
            understanding, a blocked goal, pressure, motivated attention or
            stable self-assurance, or a note that the behavior is within the
            baseline. Null when the trace could not be split into its five
            sections.
          examples:
            - 'Stable self-assurance: she treats the request as settled.'
        mental_state_hypothesis:
          anyOf:
            - type: string
            - type: 'null'
          title: Mental State Hypothesis
          description: >-
            What the subject most probably believes, intends, feels, attends to
            or resists given that appraisal, with the model's confidence. Null
            when the trace could not be split into its five sections.
          examples:
            - >-
              She intends her request to be taken seriously and expects
              agreement. Confidence: high.
        signal_conclusion:
          anyOf:
            - type: string
            - type: 'null'
          title: Signal Conclusion
          description: >-
            Every signal the evidence supports, with its strongest grounded
            evidence, and the closest contrasting signal it rules out; or a
            statement that no signal is supported. Null when the trace could not
            be split into its five sections.
          examples:
            - >-
              Confidence: assured, unhedged delivery. Interest is the closest
              contrast, but she seeks no new information.
        trace:
          type: string
          title: Trace
          description: The model's whole reasoning trace for this window, as it wrote it.
          examples:
            - >-
              1. Baseline & context: A one-on-one video call about a project
              deadline.


              2. Observable evidence: ...
      type: object
      required:
        - trace
      title: UploadJobReasoning
      description: >-
        The reasoning an ``inter-2-deep`` window's result was reached by.


        The model writes a trace in five numbered sections before it answers:
        the

        baseline it judged the window against, the evidence it observed, the

        appraisal it inferred from any deviation, the mental state that
        appraisal

        suggests, and the signals it concludes. ``trace`` is the whole trace as

        the model wrote it. Each section field is that section's text, and all

        five are null when the trace could not be split into exactly those five

        sections; ``trace`` still carries all of it.
    SignalType:
      type: string
      enum:
        - agreement
        - confidence
        - confusion
        - disagreement
        - frustration
        - hesitation
        - interest
        - skepticism
        - stress
        - uncertainty
      title: SignalType
      description: Enumeration of supported social signals.
    Probability:
      type: string
      enum:
        - high
        - medium
        - low
      title: Probability
      description: Signal probability levels.
    ConversationQualityValues:
      properties:
        quality_index:
          type: number
          title: Quality Index
          description: >-
            Overall conversation quality index (0-100). Mean of the five
            dimension scores.
          examples:
            - 72
        clarity:
          type: number
          title: Clarity
          description: >-
            Clarity / Structure dimension score (0-100). Returns 50 when no
            diagnostic evidence is available for this dimension.
          examples:
            - 67
        authority:
          type: number
          title: Authority
          description: >-
            Authority / Credibility dimension score (0-100). Returns 50 when no
            diagnostic evidence is available for this dimension.
          examples:
            - 68
        energy:
          type: number
          title: Energy
          description: >-
            Energy / Presence dimension score (0-100). Returns 50 when no
            diagnostic evidence is available for this dimension.
          examples:
            - 80
        rapport:
          type: number
          title: Rapport
          description: >-
            Rapport / Relational Safety dimension score (0-100). Returns 50 when
            no diagnostic evidence is available for this dimension.
          examples:
            - 75
        learning:
          type: number
          title: Learning
          description: >-
            Learning / Exploration dimension score (0-100). Returns 50 when no
            diagnostic evidence is available for this dimension.
          examples:
            - 70
      type: object
      required:
        - quality_index
        - clarity
        - authority
        - energy
        - rapport
        - learning
      title: ConversationQualityValues
      description: >-
        Aggregated conversation quality scores for the entire conversation.


        Added when `conversation_quality_overall` is included in the Include
        flags.
    ConversationQualityTimelineEntry:
      properties:
        start:
          type: number
          title: Start Time
          description: Window start time in seconds, in absolute session-cumulative time.
          examples:
            - 0
        end:
          type: number
          title: End Time
          description: Window end time in seconds, in absolute session-cumulative time.
          examples:
            - 10
        values:
          $ref: '#/components/schemas/ConversationQualityValues'
          title: Values
          description: Conversation quality dimension scores for this time window.
      type: object
      required:
        - start
        - end
        - values
      title: ConversationQualityTimelineEntry
      description: Conversation quality values for a single time window in the timeline.
    UploadJobTranscriptStatus:
      type: string
      enum:
        - completed
        - failed
      title: UploadJobTranscriptStatus
      description: >-
        How the transcript of an upload job ended.


        ``completed`` means the file was transcribed, including when nobody
        speaks

        in it and the transcript is empty. ``failed`` means no transcript could
        be

        produced; the job's windows are unaffected.
    UploadJobTranscriptWord:
      properties:
        text:
          type: string
          title: Text
          description: >-
            The word as it was spoken. The transcript is verbatim: fillers and
            repeated words are kept.
          examples:
            - website
        start:
          type: number
          title: Start
          description: Where the word starts, in seconds from the start of the file.
          examples:
            - 36.42
        end:
          type: number
          title: End
          description: Where the word ends, in seconds from the start of the file.
          examples:
            - 36.91
        speaker:
          anyOf:
            - type: integer
            - type: 'null'
          title: Speaker
          description: >-
            The speaker who said the word, as the number the transcript's
            segments use. Null when the word falls outside every speaker
            segment.
          examples:
            - 1
        speaker_role:
          anyOf:
            - type: string
              enum:
                - fg_speaker
                - bg_speaker
            - type: 'null'
          title: Speaker Role
          description: >-
            Whether the speaker is the person on camera (``fg_speaker``) or a
            voice from off camera (``bg_speaker``). Null when the speaker's role
            could not be told.
          examples:
            - fg_speaker
      type: object
      required:
        - text
        - start
        - end
      title: UploadJobTranscriptWord
      description: One spoken word of the file.
    UploadJobTranscriptSegment:
      properties:
        speaker:
          type: integer
          title: Speaker
          description: The speaker's number, unique within the file and starting at 0.
          examples:
            - 1
        start:
          type: number
          title: Start
          description: Where the segment starts, in seconds from the start of the file.
          examples:
            - 35.1
        end:
          type: number
          title: End
          description: Where the segment ends, in seconds from the start of the file.
          examples:
            - 41.8
        speaker_role:
          anyOf:
            - type: string
              enum:
                - fg_speaker
                - bg_speaker
            - type: 'null'
          title: Speaker Role
          description: >-
            Whether the speaker is the person on camera (``fg_speaker``) or a
            voice from off camera (``bg_speaker``). Null when the speaker's role
            could not be told.
          examples:
            - fg_speaker
      type: object
      required:
        - speaker
        - start
        - end
      title: UploadJobTranscriptSegment
      description: One stretch of speech by one speaker.
    UploadJobCuesStatus:
      type: string
      enum:
        - completed
        - failed
      title: UploadJobCuesStatus
      description: >-
        How one family of cues of an upload job ended.


        ``completed`` means the stage ran over the whole file, including when it

        found no cue and the list is empty. ``failed`` means the stage could not

        produce its cues; the job's windows and its other sections are
        unaffected.
    UploadJobVisualCue:
      properties:
        label:
          type: string
          title: Label
          description: >-
            A short name for the behavior, in lower case. The vocabulary is
            open: the same movement can arrive under more than one name.
          examples:
            - nodding
        start:
          type: number
          title: Start
          description: Where the behavior starts, in seconds from the start of the file.
          examples:
            - 12.4
        end:
          type: number
          title: End
          description: Where the behavior ends, in seconds from the start of the file.
          examples:
            - 15
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: One sentence describing what was seen.
          examples:
            - Three slow nods while the other person explains the pricing.
        visible_participant:
          anyOf:
            - type: string
            - type: 'null'
          title: Visible Participant
          description: >-
            Which person on camera the behavior belongs to, as ``P1``, ``P2``
            and so on. The numbering is the same throughout one file. It names a
            body in the picture, which is not the transcript's ``speaker``
            number.
          examples:
            - P1
        context_speaker:
          anyOf:
            - type: string
              enum:
                - fg_speaker
                - bg_speaker
            - type: 'null'
          title: Context Speaker
          description: >-
            Who was speaking while the behavior happened: the person on camera
            (``fg_speaker``) or a voice from off camera (``bg_speaker``). It
            tells a nod while talking from a nod while listening. Null when
            nobody was speaking or the speaker's role could not be told.
          examples:
            - bg_speaker
      type: object
      required:
        - label
        - start
        - end
      title: UploadJobVisualCue
      description: One observable behavior of a person on camera.
    UploadJobLexicalCue:
      properties:
        label:
          type: string
          title: Label
          description: >-
            A short name for what was said, in lower case, such as
            ``repetition``, ``false start``, ``hedge`` or ``filled pause``. The
            vocabulary is open: it covers disfluencies and also hedges,
            intensifiers, vague language, discourse markers, questions and
            laughter, and the same thing can arrive under more than one name.
          examples:
            - repetition
        start:
          type: number
          title: Start
          description: Where the cue starts, in seconds from the start of the file.
          examples:
            - 35.4
        end:
          type: number
          title: End
          description: Where the cue ends, in seconds from the start of the file.
          examples:
            - 37.1
        quote:
          type: string
          title: Quote
          description: The words the cue covers, as spoken.
          examples:
            - look at your at your website
        core_quote:
          anyOf:
            - type: string
            - type: 'null'
          title: Core Quote
          description: The fragment the label names, inside ``quote``.
          examples:
            - at your at your
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: One sentence describing the cue.
          examples:
            - Repeats a phrase while searching for the next word.
        speaker:
          anyOf:
            - type: integer
            - type: 'null'
          title: Speaker
          description: The speaker, as the number the transcript's segments use.
          examples:
            - 1
        speaker_role:
          anyOf:
            - type: string
              enum:
                - fg_speaker
                - bg_speaker
            - type: 'null'
          title: Speaker Role
          description: >-
            Whether the speaker is the person on camera (``fg_speaker``) or a
            voice from off camera (``bg_speaker``). Null when the role could not
            be told.
          examples:
            - fg_speaker
        word_start:
          anyOf:
            - type: integer
            - type: 'null'
          title: Word Start
          description: >-
            Position of the cue's first word in the ``transcript.words`` list of
            this same result, counting from 0. The API works it out against the
            list it returns. Null when the result carries no completed
            transcript.
          examples:
            - 84
        word_end:
          anyOf:
            - type: integer
            - type: 'null'
          title: Word End
          description: >-
            Position of the cue's last word in the ``transcript.words`` list of
            this same result, counting from 0 and inclusive. Null when the
            result carries no completed transcript.
          examples:
            - 89
      type: object
      required:
        - label
        - start
        - end
        - quote
      title: UploadJobLexicalCue
      description: One feature of how a speaker chose and built their words.
    UploadJobSpeechCue:
      properties:
        label:
          type: string
          title: Label
          description: >-
            What was heard, in lower case, such as ``higher pitch than usual``,
            ``louder than usual``, ``quieter than usual`` or ``backchannel``.
          examples:
            - higher pitch than usual
        feature:
          type: string
          title: Feature
          description: >-
            What was measured: ``speech_rate``, ``pitch_level``,
            ``pitch_range``, ``pitch_slope``, ``loudness``,
            ``response_latency``, ``reply_length``, ``disfluency_rate``,
            ``interruption`` or ``backchannel``. Treat a value not listed here
            as unknown: later versions may add one.
          examples:
            - pitch_level
        start:
          type: number
          title: Start
          description: Where the cue starts, in seconds from the start of the file.
          examples:
            - 62
        end:
          type: number
          title: End
          description: Where the cue ends, in seconds from the start of the file.
          examples:
            - 64.5
        value:
          anyOf:
            - type: number
            - type: 'null'
          title: Value
          description: >-
            The measurement, in the unit of its ``feature``: syllables per
            second for ``speech_rate``; semitones (12 times the base-2 logarithm
            of the frequency in hertz) for ``pitch_level``; semitones between
            the low and the high of the pitch for ``pitch_range``; semitones per
            second for ``pitch_slope``; decibels for ``loudness``; seconds
            before the reply for ``response_latency``; words for
            ``reply_length``; hesitations per 100 words for ``disfluency_rate``;
            seconds of overlap for ``interruption``. Null for a ``backchannel``.
          examples:
            - 83.7
        z:
          anyOf:
            - type: number
            - type: 'null'
          title: Z-Score
          description: >-
            How unusual the measurement is, in standard deviations from the rest
            of the analyzed speech in this file. Positive is above usual. For
            ``reply_length`` it is taken on a logarithmic scale, so it does not
            follow from ``value`` directly. Null for an event that is not
            compared with a baseline: a ``backchannel`` or an ``interruption``.
          examples:
            - 2.4
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: One sentence describing the cue.
          examples:
            - >-
              Raises pitch well above usual when answering the question about
              pricing.
        quote:
          anyOf:
            - type: string
            - type: 'null'
          title: Quote
          description: The words spoken during the cue, when it covers words.
          examples:
            - well it depends on the plan
        speaker:
          anyOf:
            - type: integer
            - type: 'null'
          title: Speaker
          description: The speaker, as the number the transcript's segments use.
          examples:
            - 1
        speaker_role:
          anyOf:
            - type: string
              enum:
                - fg_speaker
                - bg_speaker
            - type: 'null'
          title: Speaker Role
          description: >-
            Whether the speaker is the person on camera (``fg_speaker``) or a
            voice from off camera (``bg_speaker``). Null when the role could not
            be told.
          examples:
            - fg_speaker
        word_start:
          anyOf:
            - type: integer
            - type: 'null'
          title: Word Start
          description: >-
            Position of the cue's first word in the ``transcript.words`` list of
            this same result, counting from 0. The API works it out against the
            list it returns. Null when the cue covers no words or the result
            carries no completed transcript.
          examples:
            - 140
        word_end:
          anyOf:
            - type: integer
            - type: 'null'
          title: Word End
          description: >-
            Position of the cue's last word in the ``transcript.words`` list of
            this same result, counting from 0 and inclusive. Null under the same
            conditions as ``word_start``.
          examples:
            - 146
      type: object
      required:
        - label
        - feature
        - start
        - end
      title: UploadJobSpeechCue
      description: One change in how a speaker sounds, or one turn-taking event.
  securitySchemes:
    uploadAuth:
      type: http
      description: >-
        Send your API key, or a client token minted by `POST /v1/client_tokens`,
        in the `Authorization` header as `Bearer <credential>`. This endpoint
        requires the `interhumanai.upload` scope: an API key must hold it, and a
        client token must be minted with it (the minting key must have held it).
        A credential without it is refused with `ih2003`.
      scheme: bearer

````

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