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

# An app's first data and first session

> What a new app has sent, for the console's waiting page (v3's V.waiting): `data_at`, the first log, span or session summary from the app, which says its key is in the build; `first_session`, the earliest session whose summary arrived, which says the SDK started; and `first_ended`, the earliest session no longer active (exited, crashed or ended abnormally), the first one to open. Each is null until it happens. Default range: the last 30 days.



## OpenAPI

````yaml /api-reference/openapi.json get /projects/{projectId}/apps/{appId}/first-session
openapi: 3.1.0
info:
  title: Apsio API
  version: 0.1.0
  description: >-
    Read API v0: your projects, release health and comparisons, missing symbols,
    issues, sessions, vitals, cohort comparisons, performance (app start,
    screens, hangs, MetricKit) and network endpoints and traces for one project.
    Authenticate with a project token as a bearer token, with an OAuth access
    token from Apsio's authorization server (MCP clients), or, from the console,
    with the session cookie of a member of the project's organization.
servers:
  - url: https://api.apsio.io/v1
security: []
paths:
  /projects/{projectId}/apps/{appId}/first-session:
    get:
      summary: An app's first data and first session
      description: >-
        What a new app has sent, for the console's waiting page (v3's
        V.waiting): `data_at`, the first log, span or session summary from the
        app, which says its key is in the build; `first_session`, the earliest
        session whose summary arrived, which says the SDK started; and
        `first_ended`, the earliest session no longer active (exited, crashed or
        ended abnormally), the first one to open. Each is null until it happens.
        Default range: the last 30 days.
      parameters:
        - schema:
            type: string
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            example: 0192f3a4-0000-7000-8000-00000000a101
          required: true
          name: projectId
          in: path
        - schema:
            type: string
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            example: 0192f3a4-0000-7000-8000-00000000a201
          required: true
          name: appId
          in: path
        - schema:
            type: string
            format: date-time
            description: >-
              Start of the time range, inclusive (RFC 3339). Defaults to the
              range end minus the default length.
            example: '2026-10-01T00:00:00Z'
          required: false
          description: >-
            Start of the time range, inclusive (RFC 3339). Defaults to the range
            end minus the default length.
          name: from
          in: query
        - schema:
            type: string
            format: date-time
            description: End of the time range, exclusive (RFC 3339). Defaults to now.
            example: '2026-10-08T00:00:00Z'
          required: false
          description: End of the time range, exclusive (RFC 3339). Defaults to now.
          name: to
          in: query
      responses:
        '200':
          description: The app's first data and sessions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FirstSession'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: No valid bearer token or console session.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The credentials cannot read this project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: >-
            The project or its organization is being deleted (`erasing`):
            nothing more to read; do not retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            Over a rate limit (the caller's, the client address's, or the
            plan's); Retry-After says when to retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
components:
  schemas:
    FirstSession:
      type: object
      properties:
        data_at:
          type:
            - string
            - 'null'
        first_session:
          $ref: '#/components/schemas/FirstSessionSeen'
        first_ended:
          $ref: '#/components/schemas/FirstSessionSeen'
      required:
        - data_at
        - first_session
        - first_ended
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: invalid_request
            message:
              type: string
            subject:
              type: string
              enum:
                - organization
                - project
              description: >-
                With `erasing` (410) only: what is being deleted, the
                organization or the project.
            queries_per_minute:
              type: integer
              description: >-
                With `rate_limited` (429) from run_query only: the project's
                queries a minute.
          required:
            - code
            - message
      required:
        - error
    FirstSessionSeen:
      type:
        - object
        - 'null'
      properties:
        session_id:
          type: string
        started_at:
          type: string
        outcome:
          type: string
          description: active, exited, crashed or abnormal_exit.
        device_model:
          type: string
        os_name:
          type: string
        os_version:
          type: string
      required:
        - session_id
        - started_at
        - outcome
        - device_model
        - os_name
        - os_version
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        A project token (apsio_pt_v0...), which reads exactly one project, or an
        OAuth access token issued for the API, which reads what its user can.
        Access tokens issued for Apsio's MCP server are accepted only from the
        MCP server itself.

````

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