Overview
This quickstart will guide you through your first data extraction with Qobra’s V2 API. By the end, you’ll have extracted reporting data from your account. What you’ll learn:- How to discover available data structures
- How to inspect field schemas
- How to extract data with pagination
You’ll need a Qobra API key. If you don’t have one, generate it in your Qobra
settings.
The 3-Step Workflow
1
Discover Data Structures
Find which tables are available in your Qobra account (statements reporting or records reporting)
2
Inspect Field Schema
Get the structure of each table: field names, types, and metadata
3
Extract Data
Pull the actual data with efficient pagination
Step 1: Discover Your Data Structures
What’s a data structure? Think of it as a table in Qobra — it could be your statements reporting or records reporting. Endpoint:GET /v2/data-structures
Example Response
Step 2: Inspect the Field Schema
Now that you know what data structures exist, inspect their fields to understand what data you can extract. Endpoint:GET /v2/data-structures/{table_id}/fields
Example Response
Understanding API Keys:
standard.= Standard metric (built-in fields)custom.= Custom metric (your custom fields)datatable.= Data table field (from external sources)
Step 3: Extract Your Data
Now extract the actual records. The API uses ID-based pagination for optimal performance with large datasets. Endpoint:GET /v2/reporting/{table_id}/statements or GET /v2/reporting/{table_id}/records
Example Response
Troubleshooting
401 Unauthorized
401 Unauthorized
404 Not Found on table_id
404 Not Found on table_id
Problem: The data structure ID doesn’t exist.Solution:
- Call
/v2/data-structuresfirst to get valid IDs - Don’t hardcode IDs—they may change between environments
Response is empty (data: [])
Response is empty (data: [])
Problem: The table exists but has no records yet.Solution:
- Check
total_recordsin the data structure response - Ensure data has been synced into Qobra
Pagination seems stuck
Pagination seems stuck
Problem: You’re reusing the same
start_id or not following next_url.Solution:- Always update
next_urlfrommeta.next_urlafter each request
Next Steps
Explore All Endpoints
Complete endpoint reference with all parameters
You’re ready! You now know the V2 API workflow. Dive deeper into the sections above or start building your integration.