API reference
Every YourDataGarden endpoint. Data endpoints need an API key; this page and the spec do not.
Base URL
https://app.yourdatagarden.com/api/v1Auth header
Authorization: Bearer <your API key>Example request
curl -H "Authorization: Bearer $YDG_API_KEY" https://app.yourdatagarden.com/api/v1/catalogMCP endpoint
https://app.yourdatagarden.com/api/v1/mcpcatalog
entities
GET
/api/v1/entitiesEntities By Key
Returns object
| Type | Required | Description | ||
|---|---|---|---|---|
| key | query | string | Yes | |
| value | query | string | Yes |
GET
/api/v1/entities/{entity_id}Entity By Id
Returns object
| Type | Required | Description | ||
|---|---|---|---|---|
| entity_id | path | string | Yes |
fda
GET
/api/v1/fda/changesFda Changes
Returns FdaChangesPage
| Type | Required | Description | ||
|---|---|---|---|---|
| since | query | string | null | No |
GET
/api/v1/fda/recordsFda Records
Returns FdaRecordsPage
| Type | Required | Description | ||
|---|---|---|---|---|
| limit | query | integer | No | |
| offset | query | integer | No | |
| as_of | query | string | null | No |
Schemas
CatalogSlice
| Type | Required | Description | |
|---|---|---|---|
| slice_id | string | Yes | |
| canonical_fields | string[] | Yes | |
| last_refresh_at | integer | null | Yes | |
| record_count | integer | Yes |
ChangeRow
| Type | Required | Description | |
|---|---|---|---|
| change_type | string | Yes | |
| primary_key | string | Yes | |
| snapshot_id | integer | Yes | |
| row | object | Yes |
FdaChangesPage
| Type | Required | Description | |
|---|---|---|---|
| slice | string | Yes | |
| since_snapshot_id | integer | null | No | |
| count | integer | Yes | |
| changes | ChangeRow[] | Yes |
FdaRecall
Canonical shape for an openFDA drug-enforcement (recall) record. recall_number is required (the diff primary key); a record missing it fails validation, which aborts the normalize publish (no partial snapshot).
| Type | Required | Description | |
|---|---|---|---|
| recall_number | string | Yes | |
| status | string | null | No | |
| classification | string | null | No | |
| product_type | string | null | No | |
| recalling_firm | string | null | No | |
| product_description | string | null | No | |
| reason_for_recall | string | null | No | |
| distribution_pattern | string | null | No | |
| city | string | null | No | |
| state | string | null | No | |
| country | string | null | No | |
| recall_initiation_date | string | null | No | |
| report_date | string | null | No | |
| termination_date | string | null | No |
FdaRecordsPage
| Type | Required | Description | |
|---|---|---|---|
| slice | string | Yes | |
| as_of_snapshot_id | integer | null | No | |
| total | integer | Yes | |
| count | integer | Yes | |
| records | FdaRecall[] | Yes |
HTTPValidationError
| Type | Required | Description | |
|---|---|---|---|
| detail | ValidationError[] | No |
ValidationError
| Type | Required | Description | |
|---|---|---|---|
| loc | string | integer[] | Yes | |
| msg | string | Yes | |
| type | string | Yes | |
| input | No | ||
| ctx | object | No |