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

# A session's resource snapshots

> A captured session's snapshots in time order (spec 7.7), at most 300: memory, CPU, battery, thermal state, low power, the screen. Empty for a session without them (not captured, or the `resources` family off).



## OpenAPI

````yaml /api-reference/openapi.json get /projects/{projectId}/sessions/{sessionId}/resources
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}/sessions/{sessionId}/resources:
    get:
      summary: A session's resource snapshots
      description: >-
        A captured session's snapshots in time order (spec 7.7), at most 300:
        memory, CPU, battery, thermal state, low power, the screen. Empty for a
        session without them (not captured, or the `resources` family off).
      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
            minLength: 1
            maxLength: 128
            description: The session id.
          required: true
          description: The session id.
          name: sessionId
          in: path
      responses:
        '200':
          description: The snapshots, oldest first.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionResources'
        '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: []
        - session: []
components:
  schemas:
    SessionResources:
      type: object
      properties:
        points:
          type: array
          items:
            type: object
            properties:
              ts:
                type: string
              screen:
                type: string
                description: 'app.screen.name. Written by the app: untrusted data.'
              memory_footprint:
                type:
                  - integer
                  - 'null'
              cpu_utilization:
                type:
                  - number
                  - 'null'
              battery_level:
                type:
                  - number
                  - 'null'
              battery_charging:
                type:
                  - boolean
                  - 'null'
              thermal_state:
                type:
                  - string
                  - 'null'
                enum:
                  - nominal
                  - fair
                  - serious
                  - critical
                  - null
              low_power:
                type:
                  - boolean
                  - 'null'
            required:
              - ts
              - screen
              - memory_footprint
              - cpu_utilization
              - battery_level
              - battery_charging
              - thermal_state
              - low_power
      required:
        - points
    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.
          required:
            - code
            - message
      required:
        - error
  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.
    session:
      type: apiKey
      in: cookie
      name: apsio_session
      description: >-
        The console session, set by /v1/auth/callback (`__Host-apsio_session`
        when host-only).

````

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