Skip to main content
GET
Fetch Records Reporting

Overview

This endpoint extracts records from record reporting structures. Records represent the underlying data used in commission calculations — CRM deals, activities, and custom metrics. Use this endpoint for:
  • Sales analytics and pipeline reports
  • Commission audit trails (what deals contributed to commissions)
  • CRM data extraction
Records = Details. This endpoint gives you the source data that flows through Qobra’s calculations, not the final commission amounts.
Data table structures are not exposed by v2. To extract a data table, use the v1 Fetch data table records endpoint, which stays on v1 and is maintained.

Pagination

This endpoint uses ID-based pagination for consistent performance with large datasets.

Basic pagination pattern

Use next_url for simplicity: The API returns a pre-constructed next_url in the response meta — just follow it instead of manually building the next request.

Filtering by modification date

Use last_modified_after for incremental sync (only fetch new/updated records).

Performance & best practices

Use ID-based pagination

Always use next_url for large datasets.

Incremental sync

Use last_modified_after for efficiency.

Use Limit 2000

Optimal balance between network overhead and response time.

Authorizations

X-API-Key
string
header
required

Your Qobra API key. Generate it from Settings > API Keys in Qobra.

Path Parameters

table_id
string<ObjectId>
required

ID of a record reporting structure (from /v2/data-structures)

Query Parameters

start_id
string<ObjectId>

Start after this record ID (for ID-based pagination, recommended)

limit
integer
default:2000

Number of records per page (1-2000)

Required range: 1 <= x <= 2000
last_modified_after
string<date-time>

ISO 8601 datetime - Only return records modified after this timestamp (for incremental sync)

last_modified_before
string<date-time>

ISO 8601 datetime - Only return records modified before this timestamp

Response

Successfully retrieved data records. Returns an array of records from a record reporting structure with pagination metadata for navigating through large datasets.

data
object[]
required

List of records

meta
object
required