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

# Retrieve mission stats

> Daily submission counts by quality outcome, plus per-task acceptance rates.



## OpenAPI

````yaml /openapi.yaml get /missions/{mission_id}/stats
openapi: 3.1.0
info:
  title: Capibo API
  version: '1.0'
  description: |
    Plan data-collection missions, track quality review, and pull accepted
    egocentric videos into your robot-training pipeline.
  contact:
    name: Capibo support
    email: support@capibo.work
servers:
  - url: https://api.capibo.work/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Missions
    description: Create and manage data-collection missions.
  - name: Planning
    description: Price a mission before you launch it.
  - name: Datasets
    description: Accepted videos, grouped per mission.
  - name: Videos
    description: Individual submissions and their quality-review results.
  - name: Exports
    description: Package a dataset into a training format and deliver it.
  - name: Billing
    description: Prepaid credits, transactions and promo codes.
  - name: Usage
    description: Collection volume and spend over time.
  - name: Webhooks
    description: Get notified when videos are accepted, missions finish and more.
paths:
  /missions/{mission_id}/stats:
    parameters:
      - $ref: '#/components/parameters/MissionId'
    get:
      tags:
        - Missions
      summary: Retrieve mission stats
      description: >-
        Daily submission counts by quality outcome, plus per-task acceptance
        rates.
      operationId: getMissionStats
      parameters:
        - name: range
          in: query
          schema:
            type: string
            enum:
              - 7d
              - 30d
              - 90d
            default: 30d
      responses:
        '200':
          description: Mission stats for the range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MissionStats'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    MissionId:
      name: mission_id
      in: path
      required: true
      schema:
        type: string
        example: MSN-1042
  schemas:
    MissionStats:
      type: object
      properties:
        mission_id:
          type: string
          example: MSN-1042
        range:
          type: string
          example: 30d
        acceptance_rate:
          type: number
          example: 0.85
        daily:
          type: array
          items:
            type: object
            properties:
              date:
                type: string
                format: date
                example: '2026-10-23'
              accepted:
                type: integer
                example: 118
              rejected:
                type: integer
                example: 19
              processing:
                type: integer
                example: 6
        tasks:
          type: array
          items:
            type: object
            properties:
              task_id:
                type: string
                example: T-2
              name:
                type: string
                example: Fold t-shirt
              share:
                type: number
                description: Share of the mission's videos.
                example: 0.22
              acceptance_rate:
                type: number
                example: 0.75
              avg_duration:
                type: number
                description: Seconds.
                example: 34
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
          properties:
            type:
              type: string
              enum:
                - invalid_request
                - authentication_error
                - permission_denied
                - not_found
                - conflict
                - payment_required
                - rate_limited
                - api_error
            code:
              type: string
              description: Machine-readable reason.
            message:
              type: string
              description: Human-readable explanation.
            param:
              type: string
              description: The parameter that caused the error
              if any.: null
  responses:
    Unauthorized:
      description: The API key is missing, invalid or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              type: authentication_error
              code: api_key_invalid
              message: Invalid API key.
    NotFound:
      description: The resource doesn't exist or isn't visible to this key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              type: not_found
              code: resource_missing
              message: No mission with id MSN-9999.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API key from **Settings → API keys**, e.g. `cpb_live_…` or
        `cpb_test_…`.

````

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