IntegrationsNotionActions
Query Notion data source
Query pages in a Notion data source with bounded property filters.
data_sources.query · Notion · v1
Details
Scopes
read_content
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
data_source_id | string | Yes | minLength 1; maxLength 64 |
filter | object | No | additionalProperties false; oneOf branch 1: required and / branch 2: required or / branch 3: required property, title / branch 4: required property, rich_text / branch 5: required property, url / branch 6: required property, email / branch 7: required property, phone_number / branch 8: required property, number / branch 9: required property, checkbox / branch 10: required property, select / branch 11: required property, status / branch 12: required property, date |
filter.and | array<object> | No | maxItems 8 |
filter.and[] | object | Yes | additionalProperties false; oneOf branch 1: required property, title / branch 2: required property, rich_text / branch 3: required property, url / branch 4: required property, email / branch 5: required property, phone_number / branch 6: required property, number / branch 7: required property, checkbox / branch 8: required property, select / branch 9: required property, status / branch 10: required property, date |
filter.and[].property | string | Yes | minLength 1; maxLength 200 |
filter.and[].title | object | No | additionalProperties false |
filter.and[].title.equals | string | No | minLength 1; maxLength 2000 |
filter.and[].title.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.and[].title.contains | string | No | minLength 1; maxLength 2000 |
filter.and[].title.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.and[].title.starts_with | string | No | minLength 1; maxLength 2000 |
filter.and[].title.ends_with | string | No | minLength 1; maxLength 2000 |
filter.and[].title.is_empty | boolean | No | — |
filter.and[].title.is_not_empty | boolean | No | — |
filter.and[].rich_text | object | No | additionalProperties false |
filter.and[].rich_text.equals | string | No | minLength 1; maxLength 2000 |
filter.and[].rich_text.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.and[].rich_text.contains | string | No | minLength 1; maxLength 2000 |
filter.and[].rich_text.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.and[].rich_text.starts_with | string | No | minLength 1; maxLength 2000 |
filter.and[].rich_text.ends_with | string | No | minLength 1; maxLength 2000 |
filter.and[].rich_text.is_empty | boolean | No | — |
filter.and[].rich_text.is_not_empty | boolean | No | — |
filter.and[].url | object | No | additionalProperties false |
filter.and[].url.equals | string | No | minLength 1; maxLength 2000 |
filter.and[].url.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.and[].url.contains | string | No | minLength 1; maxLength 2000 |
filter.and[].url.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.and[].url.starts_with | string | No | minLength 1; maxLength 2000 |
filter.and[].url.ends_with | string | No | minLength 1; maxLength 2000 |
filter.and[].url.is_empty | boolean | No | — |
filter.and[].url.is_not_empty | boolean | No | — |
filter.and[].email | object | No | additionalProperties false |
filter.and[].email.equals | string | No | minLength 1; maxLength 2000 |
filter.and[].email.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.and[].email.contains | string | No | minLength 1; maxLength 2000 |
filter.and[].email.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.and[].email.starts_with | string | No | minLength 1; maxLength 2000 |
filter.and[].email.ends_with | string | No | minLength 1; maxLength 2000 |
filter.and[].email.is_empty | boolean | No | — |
filter.and[].email.is_not_empty | boolean | No | — |
filter.and[].phone_number | object | No | additionalProperties false |
filter.and[].phone_number.equals | string | No | minLength 1; maxLength 2000 |
filter.and[].phone_number.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.and[].phone_number.contains | string | No | minLength 1; maxLength 2000 |
filter.and[].phone_number.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.and[].phone_number.starts_with | string | No | minLength 1; maxLength 2000 |
filter.and[].phone_number.ends_with | string | No | minLength 1; maxLength 2000 |
filter.and[].phone_number.is_empty | boolean | No | — |
filter.and[].phone_number.is_not_empty | boolean | No | — |
filter.and[].number | object | No | additionalProperties false |
filter.and[].number.equals | number | No | — |
filter.and[].number.does_not_equal | number | No | — |
filter.and[].number.greater_than | number | No | — |
filter.and[].number.less_than | number | No | — |
filter.and[].number.greater_than_or_equal_to | number | No | — |
filter.and[].number.less_than_or_equal_to | number | No | — |
filter.and[].number.is_empty | boolean | No | — |
filter.and[].number.is_not_empty | boolean | No | — |
filter.and[].checkbox | object | No | additionalProperties false |
filter.and[].checkbox.equals | boolean | Yes | — |
filter.and[].select | object | No | additionalProperties false |
filter.and[].select.equals | string | No | minLength 1; maxLength 200 |
filter.and[].select.does_not_equal | string | No | minLength 1; maxLength 200 |
filter.and[].select.is_empty | boolean | No | — |
filter.and[].select.is_not_empty | boolean | No | — |
filter.and[].status | object | No | additionalProperties false |
filter.and[].status.equals | string | No | minLength 1; maxLength 200 |
filter.and[].status.does_not_equal | string | No | minLength 1; maxLength 200 |
filter.and[].status.is_empty | boolean | No | — |
filter.and[].status.is_not_empty | boolean | No | — |
filter.and[].date | object | No | additionalProperties false |
filter.and[].date.equals | string | No | minLength 1; maxLength 64 |
filter.and[].date.before | string | No | minLength 1; maxLength 64 |
filter.and[].date.after | string | No | minLength 1; maxLength 64 |
filter.and[].date.on_or_before | string | No | minLength 1; maxLength 64 |
filter.and[].date.on_or_after | string | No | minLength 1; maxLength 64 |
filter.and[].date.is_empty | boolean | No | — |
filter.and[].date.is_not_empty | boolean | No | — |
filter.or | array<object> | No | maxItems 8 |
filter.or[] | object | Yes | additionalProperties false; oneOf branch 1: required property, title / branch 2: required property, rich_text / branch 3: required property, url / branch 4: required property, email / branch 5: required property, phone_number / branch 6: required property, number / branch 7: required property, checkbox / branch 8: required property, select / branch 9: required property, status / branch 10: required property, date |
filter.or[].property | string | Yes | minLength 1; maxLength 200 |
filter.or[].title | object | No | additionalProperties false |
filter.or[].title.equals | string | No | minLength 1; maxLength 2000 |
filter.or[].title.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.or[].title.contains | string | No | minLength 1; maxLength 2000 |
filter.or[].title.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.or[].title.starts_with | string | No | minLength 1; maxLength 2000 |
filter.or[].title.ends_with | string | No | minLength 1; maxLength 2000 |
filter.or[].title.is_empty | boolean | No | — |
filter.or[].title.is_not_empty | boolean | No | — |
filter.or[].rich_text | object | No | additionalProperties false |
filter.or[].rich_text.equals | string | No | minLength 1; maxLength 2000 |
filter.or[].rich_text.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.or[].rich_text.contains | string | No | minLength 1; maxLength 2000 |
filter.or[].rich_text.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.or[].rich_text.starts_with | string | No | minLength 1; maxLength 2000 |
filter.or[].rich_text.ends_with | string | No | minLength 1; maxLength 2000 |
filter.or[].rich_text.is_empty | boolean | No | — |
filter.or[].rich_text.is_not_empty | boolean | No | — |
filter.or[].url | object | No | additionalProperties false |
filter.or[].url.equals | string | No | minLength 1; maxLength 2000 |
filter.or[].url.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.or[].url.contains | string | No | minLength 1; maxLength 2000 |
filter.or[].url.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.or[].url.starts_with | string | No | minLength 1; maxLength 2000 |
filter.or[].url.ends_with | string | No | minLength 1; maxLength 2000 |
filter.or[].url.is_empty | boolean | No | — |
filter.or[].url.is_not_empty | boolean | No | — |
filter.or[].email | object | No | additionalProperties false |
filter.or[].email.equals | string | No | minLength 1; maxLength 2000 |
filter.or[].email.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.or[].email.contains | string | No | minLength 1; maxLength 2000 |
filter.or[].email.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.or[].email.starts_with | string | No | minLength 1; maxLength 2000 |
filter.or[].email.ends_with | string | No | minLength 1; maxLength 2000 |
filter.or[].email.is_empty | boolean | No | — |
filter.or[].email.is_not_empty | boolean | No | — |
filter.or[].phone_number | object | No | additionalProperties false |
filter.or[].phone_number.equals | string | No | minLength 1; maxLength 2000 |
filter.or[].phone_number.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.or[].phone_number.contains | string | No | minLength 1; maxLength 2000 |
filter.or[].phone_number.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.or[].phone_number.starts_with | string | No | minLength 1; maxLength 2000 |
filter.or[].phone_number.ends_with | string | No | minLength 1; maxLength 2000 |
filter.or[].phone_number.is_empty | boolean | No | — |
filter.or[].phone_number.is_not_empty | boolean | No | — |
filter.or[].number | object | No | additionalProperties false |
filter.or[].number.equals | number | No | — |
filter.or[].number.does_not_equal | number | No | — |
filter.or[].number.greater_than | number | No | — |
filter.or[].number.less_than | number | No | — |
filter.or[].number.greater_than_or_equal_to | number | No | — |
filter.or[].number.less_than_or_equal_to | number | No | — |
filter.or[].number.is_empty | boolean | No | — |
filter.or[].number.is_not_empty | boolean | No | — |
filter.or[].checkbox | object | No | additionalProperties false |
filter.or[].checkbox.equals | boolean | Yes | — |
filter.or[].select | object | No | additionalProperties false |
filter.or[].select.equals | string | No | minLength 1; maxLength 200 |
filter.or[].select.does_not_equal | string | No | minLength 1; maxLength 200 |
filter.or[].select.is_empty | boolean | No | — |
filter.or[].select.is_not_empty | boolean | No | — |
filter.or[].status | object | No | additionalProperties false |
filter.or[].status.equals | string | No | minLength 1; maxLength 200 |
filter.or[].status.does_not_equal | string | No | minLength 1; maxLength 200 |
filter.or[].status.is_empty | boolean | No | — |
filter.or[].status.is_not_empty | boolean | No | — |
filter.or[].date | object | No | additionalProperties false |
filter.or[].date.equals | string | No | minLength 1; maxLength 64 |
filter.or[].date.before | string | No | minLength 1; maxLength 64 |
filter.or[].date.after | string | No | minLength 1; maxLength 64 |
filter.or[].date.on_or_before | string | No | minLength 1; maxLength 64 |
filter.or[].date.on_or_after | string | No | minLength 1; maxLength 64 |
filter.or[].date.is_empty | boolean | No | — |
filter.or[].date.is_not_empty | boolean | No | — |
filter.property | string | No | minLength 1; maxLength 200 |
filter.title | object | No | additionalProperties false |
filter.title.equals | string | No | minLength 1; maxLength 2000 |
filter.title.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.title.contains | string | No | minLength 1; maxLength 2000 |
filter.title.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.title.starts_with | string | No | minLength 1; maxLength 2000 |
filter.title.ends_with | string | No | minLength 1; maxLength 2000 |
filter.title.is_empty | boolean | No | — |
filter.title.is_not_empty | boolean | No | — |
filter.rich_text | object | No | additionalProperties false |
filter.rich_text.equals | string | No | minLength 1; maxLength 2000 |
filter.rich_text.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.rich_text.contains | string | No | minLength 1; maxLength 2000 |
filter.rich_text.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.rich_text.starts_with | string | No | minLength 1; maxLength 2000 |
filter.rich_text.ends_with | string | No | minLength 1; maxLength 2000 |
filter.rich_text.is_empty | boolean | No | — |
filter.rich_text.is_not_empty | boolean | No | — |
filter.url | object | No | additionalProperties false |
filter.url.equals | string | No | minLength 1; maxLength 2000 |
filter.url.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.url.contains | string | No | minLength 1; maxLength 2000 |
filter.url.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.url.starts_with | string | No | minLength 1; maxLength 2000 |
filter.url.ends_with | string | No | minLength 1; maxLength 2000 |
filter.url.is_empty | boolean | No | — |
filter.url.is_not_empty | boolean | No | — |
filter.email | object | No | additionalProperties false |
filter.email.equals | string | No | minLength 1; maxLength 2000 |
filter.email.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.email.contains | string | No | minLength 1; maxLength 2000 |
filter.email.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.email.starts_with | string | No | minLength 1; maxLength 2000 |
filter.email.ends_with | string | No | minLength 1; maxLength 2000 |
filter.email.is_empty | boolean | No | — |
filter.email.is_not_empty | boolean | No | — |
filter.phone_number | object | No | additionalProperties false |
filter.phone_number.equals | string | No | minLength 1; maxLength 2000 |
filter.phone_number.does_not_equal | string | No | minLength 1; maxLength 2000 |
filter.phone_number.contains | string | No | minLength 1; maxLength 2000 |
filter.phone_number.does_not_contain | string | No | minLength 1; maxLength 2000 |
filter.phone_number.starts_with | string | No | minLength 1; maxLength 2000 |
filter.phone_number.ends_with | string | No | minLength 1; maxLength 2000 |
filter.phone_number.is_empty | boolean | No | — |
filter.phone_number.is_not_empty | boolean | No | — |
filter.number | object | No | additionalProperties false |
filter.number.equals | number | No | — |
filter.number.does_not_equal | number | No | — |
filter.number.greater_than | number | No | — |
filter.number.less_than | number | No | — |
filter.number.greater_than_or_equal_to | number | No | — |
filter.number.less_than_or_equal_to | number | No | — |
filter.number.is_empty | boolean | No | — |
filter.number.is_not_empty | boolean | No | — |
filter.checkbox | object | No | additionalProperties false |
filter.checkbox.equals | boolean | Yes | — |
filter.select | object | No | additionalProperties false |
filter.select.equals | string | No | minLength 1; maxLength 200 |
filter.select.does_not_equal | string | No | minLength 1; maxLength 200 |
filter.select.is_empty | boolean | No | — |
filter.select.is_not_empty | boolean | No | — |
filter.status | object | No | additionalProperties false |
filter.status.equals | string | No | minLength 1; maxLength 200 |
filter.status.does_not_equal | string | No | minLength 1; maxLength 200 |
filter.status.is_empty | boolean | No | — |
filter.status.is_not_empty | boolean | No | — |
filter.date | object | No | additionalProperties false |
filter.date.equals | string | No | minLength 1; maxLength 64 |
filter.date.before | string | No | minLength 1; maxLength 64 |
filter.date.after | string | No | minLength 1; maxLength 64 |
filter.date.on_or_before | string | No | minLength 1; maxLength 64 |
filter.date.on_or_after | string | No | minLength 1; maxLength 64 |
filter.date.is_empty | boolean | No | — |
filter.date.is_not_empty | boolean | No | — |
start_cursor | string | No | minLength 1; maxLength 512 |
page_size | integer | No | minimum 1; maximum 100 |
is_archived | boolean | No | — |
timestamp_filter | object | No | additionalProperties false |
timestamp_filter.timestamp | string | Yes | enum created_time | last_edited_time |
timestamp_filter.on_or_after | string | No | minLength 1; maxLength 64 |
timestamp_filter.after | string | No | minLength 1; maxLength 64 |
timestamp_filter.on_or_before | string | No | minLength 1; maxLength 64 |
timestamp_filter.before | string | No | minLength 1; maxLength 64 |
sorts | array<object> | No | maxItems 3 |
sorts[] | object | Yes | additionalProperties false; oneOf branch 1: required property, direction / branch 2: required timestamp, direction |
sorts[].property | string | No | minLength 1; maxLength 200 |
sorts[].timestamp | string | No | enum created_time | last_edited_time |
sorts[].direction | string | No | enum ascending | descending |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
results | array<object> | Yes | maxItems 100 |
results[] | object | Yes | additionalProperties false |
results[].id | string | Yes | minLength 1; maxLength 64 |
results[].object | string | Yes | minLength 1; maxLength 64 |
results[].url | string | No | maxLength 2048 |
results[].in_trash | boolean | No | — |
results[].created_at | string | No | minLength 1; maxLength 64 |
results[].updated_at | string | No | minLength 1; maxLength 64 |
results[].title | string | No | maxLength 2000 |
results[].parent | object | No | additionalProperties false |
results[].parent.type | string | No | minLength 1; maxLength 64 |
results[].parent.page_id | string | No | minLength 1; maxLength 64 |
results[].parent.database_id | string | No | minLength 1; maxLength 64 |
results[].parent.data_source_id | string | No | minLength 1; maxLength 64 |
results[].parent.workspace | boolean | No | — |
results[].properties | array<object> | No | maxItems 64 |
results[].properties[] | object | Yes | additionalProperties false |
results[].properties[].name | string | Yes | minLength 1; maxLength 200 |
results[].properties[].type | string | Yes | minLength 1; maxLength 64 |
results[].properties[].id | string | No | minLength 1; maxLength 64 |
results[].properties[].has_more | boolean | No | — |
results[].properties[].value | string | No | maxLength 4096 |
next_cursor | string | No | minLength 1; maxLength 512 |
has_more | boolean | No | — |
request_status | object | No | additionalProperties false |
request_status.type | string | Yes | enum complete | incomplete |
request_status.incomplete_reason | string | No | maxLength 128 |
Raw schema
Input
{
"type": "object",
"additionalProperties": false,
"properties": {
"data_source_id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"filter": {
"type": "object",
"additionalProperties": false,
"properties": {
"and": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"property": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"title": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"rich_text": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"url": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"email": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"phone_number": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"number": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "number"
},
"does_not_equal": {
"type": "number"
},
"greater_than": {
"type": "number"
},
"less_than": {
"type": "number"
},
"greater_than_or_equal_to": {
"type": "number"
},
"less_than_or_equal_to": {
"type": "number"
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"checkbox": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "boolean"
}
},
"required": [
"equals"
]
},
"select": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"status": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"date": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"before": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"after": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"on_or_before": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"on_or_after": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
}
},
"required": [
"property"
],
"oneOf": [
{
"required": [
"property",
"title"
]
},
{
"required": [
"property",
"rich_text"
]
},
{
"required": [
"property",
"url"
]
},
{
"required": [
"property",
"email"
]
},
{
"required": [
"property",
"phone_number"
]
},
{
"required": [
"property",
"number"
]
},
{
"required": [
"property",
"checkbox"
]
},
{
"required": [
"property",
"select"
]
},
{
"required": [
"property",
"status"
]
},
{
"required": [
"property",
"date"
]
}
]
},
"maxItems": 8
},
"or": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"property": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"title": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"rich_text": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"url": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"email": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"phone_number": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"number": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "number"
},
"does_not_equal": {
"type": "number"
},
"greater_than": {
"type": "number"
},
"less_than": {
"type": "number"
},
"greater_than_or_equal_to": {
"type": "number"
},
"less_than_or_equal_to": {
"type": "number"
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"checkbox": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "boolean"
}
},
"required": [
"equals"
]
},
"select": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"status": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"date": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"before": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"after": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"on_or_before": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"on_or_after": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
}
},
"required": [
"property"
],
"oneOf": [
{
"required": [
"property",
"title"
]
},
{
"required": [
"property",
"rich_text"
]
},
{
"required": [
"property",
"url"
]
},
{
"required": [
"property",
"email"
]
},
{
"required": [
"property",
"phone_number"
]
},
{
"required": [
"property",
"number"
]
},
{
"required": [
"property",
"checkbox"
]
},
{
"required": [
"property",
"select"
]
},
{
"required": [
"property",
"status"
]
},
{
"required": [
"property",
"date"
]
}
]
},
"maxItems": 8
},
"property": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"title": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"rich_text": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"url": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"email": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"phone_number": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"contains": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"does_not_contain": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"starts_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"ends_with": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"number": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "number"
},
"does_not_equal": {
"type": "number"
},
"greater_than": {
"type": "number"
},
"less_than": {
"type": "number"
},
"greater_than_or_equal_to": {
"type": "number"
},
"less_than_or_equal_to": {
"type": "number"
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"checkbox": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "boolean"
}
},
"required": [
"equals"
]
},
"select": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"status": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"does_not_equal": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
},
"date": {
"type": "object",
"additionalProperties": false,
"properties": {
"equals": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"before": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"after": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"on_or_before": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"on_or_after": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"is_empty": {
"type": "boolean"
},
"is_not_empty": {
"type": "boolean"
}
}
}
},
"oneOf": [
{
"required": [
"and"
]
},
{
"required": [
"or"
]
},
{
"required": [
"property",
"title"
]
},
{
"required": [
"property",
"rich_text"
]
},
{
"required": [
"property",
"url"
]
},
{
"required": [
"property",
"email"
]
},
{
"required": [
"property",
"phone_number"
]
},
{
"required": [
"property",
"number"
]
},
{
"required": [
"property",
"checkbox"
]
},
{
"required": [
"property",
"select"
]
},
{
"required": [
"property",
"status"
]
},
{
"required": [
"property",
"date"
]
}
]
},
"start_cursor": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"page_size": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"is_archived": {
"type": "boolean"
},
"timestamp_filter": {
"type": "object",
"additionalProperties": false,
"properties": {
"timestamp": {
"type": "string",
"enum": [
"created_time",
"last_edited_time"
]
},
"on_or_after": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"after": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"on_or_before": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"before": {
"type": "string",
"minLength": 1,
"maxLength": 64
}
},
"required": [
"timestamp"
]
},
"sorts": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"property": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"timestamp": {
"type": "string",
"enum": [
"created_time",
"last_edited_time"
]
},
"direction": {
"type": "string",
"enum": [
"ascending",
"descending"
]
}
},
"oneOf": [
{
"required": [
"property",
"direction"
]
},
{
"required": [
"timestamp",
"direction"
]
}
]
},
"maxItems": 3
}
},
"required": [
"data_source_id"
]
}Output
{
"type": "object",
"additionalProperties": false,
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"object": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"url": {
"type": "string",
"maxLength": 2048
},
"in_trash": {
"type": "boolean"
},
"created_at": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"updated_at": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"title": {
"type": "string",
"maxLength": 2000
},
"parent": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"page_id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"database_id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"data_source_id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"workspace": {
"type": "boolean"
}
}
},
"properties": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"type": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"has_more": {
"type": "boolean"
},
"value": {
"type": "string",
"maxLength": 4096
}
},
"required": [
"name",
"type"
]
},
"maxItems": 64
}
},
"required": [
"id",
"object"
]
},
"maxItems": 100
},
"next_cursor": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"has_more": {
"type": "boolean"
},
"request_status": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"complete",
"incomplete"
]
},
"incomplete_reason": {
"type": "string",
"maxLength": 128
}
},
"required": [
"type"
]
}
},
"required": [
"results"
]
}