Retrieves the complete schema (field names, types, formats) for a specific data structure. Essential for understanding what fields are available before extracting data.
api_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. and datatable. fields are specific to your accountapi_key (not name) as your code identifiernumber"percentage": Decimal percentage (0.85 = 85%)"float": Floating point numberstring"enum": Limited set of allowed valuesnull (no format): Free textobjectproperties field describing nested structure
In extracted data:
schema_hash is a cryptographic fingerprint of your schema. It changes when a field is added, removed, or modified.
schema_hash after each successful sync to detect schema drift in
production.schema_hash to your stored value, and only remap fields when it
changes.name for field identification — it doesn’t display when extracting
data.Your Qobra API key. Generate it from Settings > API Keys in Qobra.
Unique identifier of the data structure (from /v2/data-structures)
Successfully retrieved the fields schema for the data structure. Returns an object with the schema hash and an array of fields.