Get Fields Schema
Discovery
Get Fields Schema
Retrieves the complete schema (field names, types, formats) for a specific data structure. Essential for understanding what fields are available before extracting data.
GET
Get Fields Schema
Documentation Index
Fetch the complete documentation index at: https://docs.qobra.co/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This endpoint returns the complete field schema for a specific data structure. It tells you what fields are available, their types, formats, and constraints — enabling dynamic adaptation to your data structure.Schema discovery is a V2 superpower. You no longer need to guess what
fields exist — the API tells you.
Understanding API Key Prefixes
Everyapi_key starts with a prefix that indicates its origin:
| Prefix | Meaning | Description |
|---|---|---|
standard. | Standard Metric | Built-in Qobra fields (commission amounts, periods, status) |
custom. | Custom Metric | Your custom commission metrics and calculations |
datatable. | Data Table | Fields from external sources (CRM, databases) |
standard.fields are consistent across all Qobra accountscustom.anddatatable.fields are specific to your account- Always use
api_key(notname) as your code identifier
Field Types Reference
Type: number
Used for: Numeric values (integers, decimals, percentages)
Formats:
"percentage": Decimal percentage (0.85 = 85%)"float": Floating point number
Type: string
Formats:
"enum": Limited set of allowed valuesnull(no format): Free text
Type: object
Used for: Nested structures (currency amounts, user reference, record reference)
Includes: properties field describing nested structure
In extracted data:
Schema hash: Detecting changes
Theschema_hash is a cryptographic fingerprint of your schema. It changes when a field is added, removed, or modified.
Store
schema_hash after each successful sync to detect schema drift in
production.Recommended workflow: Fetch fields at the start of each extraction,
compare
schema_hash to your stored value, and only remap fields when it
changes.Best practices
Cache schema during session
Fetch schema once, reuse for the entire extraction.
Always use api_key
Never use
name for field identification — it doesn’t display when extracting
data.Monitor schema_hash
Store hash and compare on each run to detect changes.
Validate before extraction
Check for required fields before long extractions.
Authorizations
Your Qobra API key. Generate it from Settings > API Keys in Qobra.
Path Parameters
Unique identifier of the data structure (from /v2/data-structures)
Response
Successfully retrieved the fields schema for the data structure. Returns an object with the schema hash and an array of fields.