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

# List raw test data for a test snapshot

> Lists raw test data captured in a test snapshot, in capture order.
Structured entries contain the primary resource ID, type, and captured
JSON. Unstructured entries contain one captured JSON record, with null
resource ID and type.

Pass `results.pageInfo.endCursor` as `pageCursor` to continue until
`results.pageInfo.hasNextPage` is false.

Deleted evidence returns 404.

Rate limit: 50 requests / minute.



## OpenAPI

````yaml https://spec.speakeasy.com/vanta/vanta/conduct-an-audit-with-code-samples get /audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data
openapi: 3.0.0
info:
  title: Conduct an audit
  version: 1.0.0
  description: >-
    The Auditor API lets audit firms conduct audits from a tool outside of
    Vanta. Unlock data syncing with Vanta through this API.


    **Note for Vanta Gov (FedRAMP) customers:** Select `Vanta Gov (FedRAMP)`
    from the server dropdown to issue requests against
    `https://api.vanta-gov.com`. The OAuth token URL shown below defaults to the
    commercial host — replace it with `https://api.vanta-gov.com/oauth/token`.
  termsOfService: https://www.vanta.com/terms
  license:
    name: UNLICENSED
  contact:
    name: API Support
    url: https://help.vanta.com/
    email: support@vanta.com
servers:
  - url: https://api.vanta.com/v1
    description: US Region API
  - url: https://api.vanta-gov.com/v1
    description: Vanta Gov (FedRAMP)
security: []
paths:
  /audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot/raw-data:
    get:
      tags:
        - Audits
      summary: List raw test data for a test snapshot
      description: |-
        Lists raw test data captured in a test snapshot, in capture order.
        Structured entries contain the primary resource ID, type, and captured
        JSON. Unstructured entries contain one captured JSON record, with null
        resource ID and type.

        Pass `results.pageInfo.endCursor` as `pageCursor` to continue until
        `results.pageInfo.hasNextPage` is false.

        Deleted evidence returns 404.

        Rate limit: 50 requests / minute.
      operationId: ListInformationRequestTestSnapshotRawData
      parameters:
        - in: path
          name: auditId
          required: true
          schema:
            type: string
        - in: path
          name: requestId
          required: true
          schema:
            type: string
        - in: path
          name: evidenceId
          required: true
          schema:
            type: string
        - in: query
          name: pageSize
          required: false
          schema:
            $ref: '#/components/schemas/PageSize'
        - in: query
          name: pageCursor
          required: false
          schema:
            $ref: '#/components/schemas/PageCursor'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedResponse_VantaTestSnapshotRawTestDataPageRow_
              examples:
                Example 1:
                  value:
                    results:
                      data:
                        - resourceId: 6890e473dce1da5d8406f700
                          resourceType: OktaUser
                          rawJson:
                            id: 6890e473dce1da5d8406f700
                            status: ACTIVE
                          dataTooLarge: false
                      pageInfo:
                        startCursor: >-
                          eyJzbmFwc2hvdElkIjoiNjg5MGU0NzNkY2UxZGE1ZDg0MDZmNzAzIiwiaW5kZXgiOjB9
                        endCursor: >-
                          eyJzbmFwc2hvdElkIjoiNjg5MGU0NzNkY2UxZGE1ZDg0MDZmNzAzIiwiaW5kZXgiOjB9
                        hasNextPage: true
                        hasPreviousPage: false
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: typescript
          label: ListInformationRequestTestSnapshotRawData
          source: |-
            import { Vanta } from "vanta-auditor-api-sdk";

            const vanta = new Vanta({
              bearerAuth: process.env["VANTA_BEARER_AUTH"] ?? "",
            });

            async function run() {
              const result = await vanta.audits.listInformationRequestTestSnapshotRawData({
                auditId: "<id>",
                requestId: "<id>",
                evidenceId: "<id>",
              });

              console.log(result);
            }

            run();
        - lang: java
          label: ListInformationRequestTestSnapshotRawData
          source: >-
            package hello.world;


            import com.vanta.vanta_auditor_api.Vanta;

            import
            com.vanta.vanta_auditor_api.models.operations.ListInformationRequestTestSnapshotRawDataRequest;

            import
            com.vanta.vanta_auditor_api.models.operations.ListInformationRequestTestSnapshotRawDataResponse;

            import java.lang.Exception;


            public class Application {

                public static void main(String[] args) throws Exception {

                    Vanta sdk = Vanta.builder()
                            .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
                        .build();

                    ListInformationRequestTestSnapshotRawDataRequest req = ListInformationRequestTestSnapshotRawDataRequest.builder()
                            .auditId("<id>")
                            .requestId("<id>")
                            .evidenceId("<id>")
                            .build();

                    ListInformationRequestTestSnapshotRawDataResponse res = sdk.audits().listInformationRequestTestSnapshotRawData()
                            .request(req)
                            .call();

                    if (res.paginatedResponseVantaTestSnapshotRawTestDataPageRow().isPresent()) {
                        System.out.println(res.paginatedResponseVantaTestSnapshotRawTestDataPageRow().get());
                    }
                }
            }
components:
  schemas:
    PageSize:
      type: integer
      format: int32
      default: 10
      description: >-
        Controls the maximum number of items returned in one response from the
        API.
      minimum: 1
      maximum: 100
    PageCursor:
      type: string
      description: >-
        A marker or pointer, telling the API where to start fetching items for
        the subsequent page in a paginated dataset.

        Note that the requested page will not include the item that corresponds
        to this cursor but will start from the one immediately

        after this cursor.
    PaginatedResponse_VantaTestSnapshotRawTestDataPageRow_:
      properties:
        results:
          properties:
            data:
              items:
                $ref: '#/components/schemas/VantaTestSnapshotRawTestDataPageRow'
              type: array
            pageInfo:
              $ref: '#/components/schemas/PageInfo'
          required:
            - data
            - pageInfo
          type: object
      required:
        - results
      type: object
      additionalProperties: false
    VantaTestSnapshotRawTestDataPageRow:
      properties:
        resourceId:
          type: string
          nullable: true
          description: >-
            Identifier of the underlying resource the row was captured from.
            Null for

            unstructured snapshots, which do not partition by resource.
        resourceType:
          type: string
          nullable: true
          description: |-
            Specific resource kind for the row (e.g. `AwsIamUser`). Null for
            unstructured snapshots.
        rawJson:
          description: |-
            Raw JSON payload as emitted by the test runner and captured at
            snapshot time. For structured snapshots, the shape varies by
            `resourceType`. For unstructured snapshots, this contains one
            captured record; `resourceId` and `resourceType` are both `null`.

            Null when `dataTooLarge` is true because the source data was too
            large to capture. The row remains in the page as a placeholder,
            with no JSON payload available.
        dataTooLarge:
          type: boolean
          description: >-
            True when the record was too large to capture and has no stored
            JSON.
      required:
        - resourceId
        - resourceType
        - rawJson
        - dataTooLarge
      type: object
      additionalProperties: false
    PageInfo:
      description: Provides information about the pagination of a dataset.
      properties:
        endCursor:
          type: string
          nullable: true
          description: >-
            The cursor that points to the end of the current page, or null if
            there is no such cursor.
        hasNextPage:
          type: boolean
          description: Indicates if there is another page after the current page.
        hasPreviousPage:
          type: boolean
          description: Indicates if there is a page before the current page.
        startCursor:
          type: string
          nullable: true
          description: >-
            The cursor that points to the start of the current page, or null if
            there is no such cursor.
      required:
        - endCursor
        - hasNextPage
        - hasPreviousPage
        - startCursor
      type: object
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

## Related topics

- [Get test snapshot detail for an evidence row](https://developer.vanta.com/api-reference/audits/get-test-snapshot-detail-for-an-evidence-row.md)
- [List tests](https://developer.vanta.com/api-reference/tests/list-tests.md)
- [Vanta API changelog](https://developer.vanta.com/docs/changelog.md)
- [List a control's tests](https://developer.vanta.com/api-reference/controls/list-a-controls-tests.md)
- [List evidence for an information request](https://developer.vanta.com/api-reference/audits/list-evidence-for-an-information-request.md)
