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

# Export a person's session recordings

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Returns everything the app recorded about one person (GDPR Article 15): their recordings with every event, and the share links they created or that point at those recordings. Full share tokens are never exported. Each page is written to the audit trail.

Name the person with `user_email`, `user_id` or both; at least one is required. `from_ts` and `to_ts` narrow it to recordings that started in that window. A page holds up to `limit` recordings, and a recording can hold many events, so keep `limit` small. More than 9,999 matching recordings is a 413: narrow the window.

Requires editor access to the app. This is limited to 300 requests per minute, shared with every operation that reads session recordings.



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/session-recording-user-data
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/session-recording-user-data:
    get:
      summary: Export a person's session recordings
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Returns everything the app recorded about one person (GDPR Article 15):
        their recordings with every event, and the share links they created or
        that point at those recordings. Full share tokens are never exported.
        Each page is written to the audit trail.


        Name the person with `user_email`, `user_id` or both; at least one is
        required. `from_ts` and `to_ts` narrow it to recordings that started in
        that window. A page holds up to `limit` recordings, and a recording can
        hold many events, so keep `limit` small. More than 9,999 matching
        recordings is a 413: narrow the window.


        Requires editor access to the app. This is limited to 300 requests per
        minute, shared with every operation that reads session recordings.
      operationId: >-
        export_recording_user_data_api_apps__app_id__session_recording_user_data_get
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            maxLength: 64
            pattern: ^[a-zA-Z0-9._-]+$
            description: ID of the app.
            title: App Id
          description: ID of the app.
          example: 6820f3a4e7b91d003c45a1f2
        - name: user_email
          in: query
          required: false
          schema:
            type: string
            maxLength: 256
            pattern: ^[A-Za-z0-9._%+\-@]+$
            description: The person's email, as they sign in to the app.
            title: User Email
          description: The person's email, as they sign in to the app.
          example: jane@example.com
        - name: user_id
          in: query
          required: false
          schema:
            type: string
            maxLength: 256
            pattern: ^[^$\{\}\\\s]+$
            description: >-
              The person's user ID, or the ID the app set with the recorder's
              `setUserID`.
            title: User Id
          description: >-
            The person's user ID, or the ID the app set with the recorder's
            `setUserID`.
          example: 68a0c1d2e3f4a5b6c7d8e9f0
        - name: from_ts
          in: query
          required: false
          schema:
            type: string
            format: date-time
            description: Only recordings that started at or after this ISO 8601 UTC time.
            title: From Ts
          description: Only recordings that started at or after this ISO 8601 UTC time.
          example: '2026-10-01T00:00:00Z'
        - name: to_ts
          in: query
          required: false
          schema:
            type: string
            format: date-time
            description: Only recordings that started at or before this ISO 8601 UTC time.
            title: To Ts
          description: Only recordings that started at or before this ISO 8601 UTC time.
          example: '2026-10-31T23:59:59Z'
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 10
            minimum: 1
            description: Recordings per page, 1 to 10.
            default: 5
            title: Limit
          description: Recordings per page, 1 to 10.
          example: 5
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            maxLength: 8192
            description: >-
              `next_cursor` from the previous page. It carries the rest of the
              query, so send no filters with it; `limit` is ignored.
            title: Cursor
          description: >-
            `next_cursor` from the previous page. It carries the rest of the
            query, so send no filters with it; `limit` is ignored.
          example: gAAAAABn7vJ0q2kX
      responses:
        '200':
          description: One page of the person's data.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserDataExport'
              example:
                recordings:
                  - session_id: s_1732095012_k3j9x2
                    started_at: '2026-11-18T14:02:11+00:00'
                    last_event_at: '2026-11-18T14:06:47+00:00'
                    page_url: https://shop.example.com/checkout
                    user_email: jane@example.com
                    country_code: DE
                    browser: Safari
                    os: macOS
                    device_type: desktop
                    metadata: {}
                    events:
                      - type: 4
                        data:
                          href: https://shop.example.com/checkout
                          width: 1440
                          height: 900
                        timestamp: 1732024931000
                      - type: 2
                        data:
                          node:
                            type: 0
                            childNodes: []
                            id: 1
                        timestamp: 1732024931012
                    events_complete: true
                share_links:
                  - token_prefix: 9f2c4e6a
                    session_id: s_1732095012_k3j9x2
                    created_at: '2026-11-19T09:30:00+00:00'
                    expires_at: '2026-12-19T09:30:00+00:00'
        '400':
          description: >-
            `invalid_cursor`: the cursor is malformed, expired, from another
            app, or sent with other parameters. `invalid_request`: send
            `user_email`, `user_id` or both.
          content:
            application/json:
              examples:
                invalid_cursor:
                  summary: invalid_cursor
                  value:
                    error:
                      code: invalid_cursor
                      message: This cursor is invalid or has expired.
                      details: {}
                invalid_request:
                  summary: invalid_request
                  value:
                    error:
                      code: invalid_request
                      message: user_email or user_id required
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '401':
          description: '`unauthenticated`: missing or invalid credentials.'
          content:
            application/json:
              examples:
                unauthenticated:
                  summary: unauthenticated
                  value:
                    error:
                      code: unauthenticated
                      message: Not authenticated
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '404':
          description: >-
            `not_found`: no such app, you don't have editor access to the app,
            or it's past retention.
          content:
            application/json:
              examples:
                not_found:
                  summary: not_found
                  value:
                    error:
                      code: not_found
                      message: Recording not found.
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '413':
          description: >-
            `too_many_recordings`: more than 9,999 recordings match; narrow
            `from_ts` and `to_ts`.
          content:
            application/json:
              examples:
                too_many_recordings:
                  summary: too_many_recordings
                  value:
                    error:
                      code: too_many_recordings
                      message: >-
                        Export exceeds 9999-session cap. Narrow with the
                        from_ts/to_ts time window and run multiple exports.
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '422':
          description: >-
            `invalid_request`: a parameter or the body failed validation;
            `details.errors` lists why.
          content:
            application/json:
              examples:
                invalid_request:
                  summary: invalid_request
                  value:
                    error:
                      code: invalid_request
                      message: Invalid request
                      details:
                        errors: []
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '429':
          description: '`rate_limited`: more than 300 requests per minute.'
          content:
            application/json:
              examples:
                rate_limited:
                  summary: rate_limited
                  value:
                    error:
                      code: rate_limited
                      message: Rate limit exceeded
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - read_only
        - WorkspaceApiKeyAuth:
            - read_only
        - WorkspaceApiKeyBearerAuth:
            - read_only
components:
  schemas:
    UserDataExport:
      properties:
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
          description: Send as `cursor` for the next recordings; `null` on the last page.
          example: gAAAAABn7vJ0q2kX
        recordings:
          items:
            $ref: '#/components/schemas/ExportedRecording'
          type: array
          title: Recordings
          description: One page of the person's recordings.
        share_links:
          items:
            $ref: '#/components/schemas/ExportedShareLink'
          type: array
          title: Share Links
          description: >-
            Share links the person created or that point at their recordings; on
            the first page only.
      type: object
      required:
        - recordings
        - share_links
      title: UserDataExport
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    ExportedRecording:
      properties:
        session_id:
          type: string
          title: Session Id
          description: ID of the recording.
          example: s_1732095012_k3j9x2
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
          description: When the visit started, ISO 8601 UTC.
        last_event_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Event At
          description: When the last event was recorded, ISO 8601 UTC.
        page_url:
          anyOf:
            - type: string
              x-untrusted-text: true
            - type: 'null'
          title: Page Url
          description: The page the visit started on.
        user_agent:
          anyOf:
            - type: string
              x-untrusted-text: true
            - type: 'null'
          title: User Agent
          description: The visitor's browser user agent.
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
          description: The recording's label.
        user_email:
          anyOf:
            - type: string
            - type: 'null'
          title: User Email
          description: The signed-in user's email.
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
          description: The signed-in user's ID.
        sdk_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Sdk User Id
          description: The ID the app set with `setUserID`.
        sdk_user_anonymous_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Sdk User Anonymous Id
          description: The ID the app set with `setUserAnonymousID`.
        country_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Country Code
          description: ISO 3166-1 alpha-2 country code.
        browser:
          anyOf:
            - type: string
            - type: 'null'
          title: Browser
          description: Browser name.
        os:
          anyOf:
            - type: string
            - type: 'null'
          title: Os
          description: Operating system name.
        device_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Device Type
          description: Device type.
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
              x-untrusted-text: true
            - type: 'null'
          title: Metadata
          description: Custom events and properties the app recorded.
        events:
          items:
            additionalProperties: true
            type: object
            x-untrusted-text: true
          type: array
          title: Events
          description: Every rrweb event of the recording.
        events_complete:
          type: boolean
          title: Events Complete
          description: '`false` when some stored events couldn''t be read; retry the page.'
      type: object
      required:
        - session_id
        - events
        - events_complete
      title: ExportedRecording
    ExportedShareLink:
      properties:
        token_prefix:
          type: string
          title: Token Prefix
          description: >-
            The first 8 characters of the token; the full token is never
            exported.
          example: 9f2c4e6a
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
          description: ID of the shared recording.
          example: s_1732095012_k3j9x2
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
          description: When the link was created, ISO 8601 UTC.
        expires_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Expires At
          description: When the link expires, ISO 8601 UTC.
      type: object
      required:
        - token_prefix
      title: ExportedShareLink
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

## Related topics

- [Erase a person's session recordings](https://docs.base44.com/api-reference/erase-a-persons-session-recordings.md)
- [Recording and replaying user sessions](https://docs.base44.com/documentation/performance-and-seo/session-recordings.md)
- [List session recordings](https://docs.base44.com/api-reference/list-session-recordings.md)
- [Update session recording](https://docs.base44.com/api-reference/update-session-recording.md)
- [Delete session recording](https://docs.base44.com/api-reference/delete-session-recording.md)


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