{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/business:notion/token-generate-access":{"post":{"operationId":"business_notion_token_generate_access","summary":"Create a token","description":"POST /v1/oauth/token","tags":["business"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:notion/block-get-children":{"get":{"operationId":"business_notion_block_get_children","summary":"Retrieve block children","description":"GET /v1/blocks/{block_id}/children","tags":["business"],"parameters":[{"name":"block_id","in":"query","required":true,"description":"Identifier for a [block](ref:block)","schema":{"type":"string","description":"Identifier for a [block](ref:block)"}},{"name":"start_cursor","in":"query","required":false,"description":"If supplied, this endpoint will return a page of results starting after the cursor provided. If not supplied, this endpoint will return…","schema":{"type":"string","description":"If supplied, this endpoint will return a page of results starting after the cursor provided. If not supplied, this endpoint will return…"}},{"name":"page_size","in":"query","required":false,"description":"The number of items from the full list desired in the response. Maximum: 100","schema":{"type":"integer","default":100,"description":"The number of items from the full list desired in the response. Maximum: 100"}},{"name":"Notion-Version","in":"query","required":true,"schema":{"type":"string","default":"2022-06-28"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:notion/block-append-children":{"post":{"operationId":"business_notion_block_append_children","summary":"Append block children","description":"PATCH /v1/blocks/{block_id}/children","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["block_id","Notion-Version"],"properties":{"block_id":{"type":"string","description":"Identifier for a [block](ref:block). Also accepts a [page](ref:page) ID."},"Notion-Version":{"type":"string","default":"2022-06-28"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:notion/block-get-details":{"get":{"operationId":"business_notion_block_get_details","summary":"Retrieve a block","description":"GET /v1/blocks/{block_id}","tags":["business"],"parameters":[{"name":"block_id","in":"query","required":true,"description":"Identifier for a Notion block","schema":{"type":"string","description":"Identifier for a Notion block"}},{"name":"Notion-Version","in":"query","required":false,"schema":{"type":"string","default":"2022-06-28"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:notion/block-update-block-by-id":{"post":{"operationId":"business_notion_block_update_block_by_id","summary":"Update a block","description":"PATCH /v1/blocks/{block_id}","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["block_id"],"properties":{"block_id":{"type":"string","description":"Identifier for a Notion block"},"Notion-Version":{"type":"string","default":"2022-06-28"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:notion/block-remove-block-by-id":{"post":{"operationId":"business_notion_block_remove_block_by_id","summary":"Delete a block","description":"DELETE /v1/blocks/{block_id}","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["block_id"],"properties":{"block_id":{"type":"string","description":"Identifier for a Notion block"},"Notion-Version":{"type":"string","default":"2022-06-28"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:notion/page-create-new-page":{"post":{"operationId":"business_notion_page_create_new_page","summary":"Create a page","description":"POST /v1/pages","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["Notion-Version"],"properties":{"Notion-Version":{"type":"string","default":"2022-06-28"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:notion/page-get-page":{"get":{"operationId":"business_notion_page_get_page","summary":"Retrieve a page","description":"GET /v1/pages/{page_id}","tags":["business"],"parameters":[{"name":"page_id","in":"query","required":true,"description":"Identifier for a Notion page","schema":{"type":"string","description":"Identifier for a Notion page"}},{"name":"filter_properties","in":"query","required":false,"description":"A list of page property value IDs associated with the page. Use this param to limit the response to a specific page property value or…","schema":{"type":"string","description":"A list of page property value IDs associated with the page. Use this param to limit the response to a specific page property value or…"}},{"name":"Notion-Version","in":"query","required":true,"schema":{"type":"string","default":"2022-06-28"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:notion/page-update-properties":{"post":{"operationId":"business_notion_page_update_properties","summary":"Update page properties","description":"PATCH /v1/pages/{page_id}","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["page_id"],"properties":{"page_id":{"type":"string","description":"The identifier for the Notion page to be updated."},"Notion-Version":{"type":"string","default":"2022-06-28"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:notion/page-get-property-item":{"get":{"operationId":"business_notion_page_get_property_item","summary":"Retrieve a page property item","description":"GET /v1/pages/{page_id}/properties/{property_id}","tags":["business"],"parameters":[{"name":"page_id","in":"query","required":true,"description":"Identifier for a Notion page","schema":{"type":"string","description":"Identifier for a Notion page"}},{"name":"property_id","in":"query","required":true,"description":"Identifier for a page [property](https://developers.notion.com/reference/page#all-property-values)","schema":{"type":"string","description":"Identifier for a page [property](https://developers.notion.com/reference/page#all-property-values)"}},{"name":"page_size","in":"query","required":false,"description":"For paginated properties. The max number of property item objects on a page. The default size is 100","schema":{"type":"integer","description":"For paginated properties. The max number of property item objects on a page. The default size is 100"}},{"name":"start_cursor","in":"query","required":false,"description":"For paginated properties.","schema":{"type":"string","description":"For paginated properties."}},{"name":"Notion-Version","in":"query","required":false,"schema":{"type":"string","default":"2022-06-28"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:notion/database-create-new-database":{"post":{"operationId":"business_notion_database_create_new_database","summary":"Create a database","description":"POST /v1/databases","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["Notion-Version"],"properties":{"Notion-Version":{"type":"string","default":"2022-06-28"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:notion/database-execute-query":{"post":{"operationId":"business_notion_database_execute_query","summary":"Query a database","description":"POST /v1/databases/{database_id}/query","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["database_id","Notion-Version"],"properties":{"database_id":{"type":"string","description":"Identifier for a Notion database."},"filter_properties":{"type":"string","description":"A list of page property value IDs associated with the database. Use this param to limit the response to a specific page property value or…"},"Notion-Version":{"type":"string","default":"2022-06-28"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:notion/database-get-database":{"get":{"operationId":"business_notion_database_get_database","summary":"Retrieve a database","description":"GET /v1/databases/{database_id}","tags":["business"],"parameters":[{"name":"database_id","in":"query","required":true,"description":"An identifier for the Notion database.","schema":{"type":"string","description":"An identifier for the Notion database."}},{"name":"Notion-Version","in":"query","required":true,"schema":{"type":"string","default":"2022-06-28"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:notion/database-update-database":{"post":{"operationId":"business_notion_database_update_database","summary":"Update a database","description":"PATCH /v1/databases/{database_id}","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["database_id"],"properties":{"database_id":{"type":"string","description":"identifier for a Notion database"},"Notion-Version":{"type":"string","default":"2022-06-28"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:notion/user-list-all-users":{"get":{"operationId":"business_notion_user_list_all_users","summary":"List all users","description":"GET /v1/users","tags":["business"],"parameters":[{"name":"start_cursor","in":"query","required":false,"description":"If supplied, this endpoint will return a page of results starting after the cursor provided. If not supplied, this endpoint will return…","schema":{"type":"string","description":"If supplied, this endpoint will return a page of results starting after the cursor provided. If not supplied, this endpoint will return…"}},{"name":"page_size","in":"query","required":false,"description":"The number of items from the full list desired in the response. Maximum: 100","schema":{"type":"integer","default":100,"description":"The number of items from the full list desired in the response. Maximum: 100"}},{"name":"Notion-Version","in":"query","required":true,"schema":{"type":"string","default":"2022-06-28"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:notion/user-get-user-by-id":{"get":{"operationId":"business_notion_user_get_user_by_id","summary":"Retrieve a user","description":"GET /v1/users/{user_id}","tags":["business"],"parameters":[{"name":"user_id","in":"query","required":true,"description":"Identifier for a Notion user","schema":{"type":"string","description":"Identifier for a Notion user"}},{"name":"Notion-Version","in":"query","required":true,"schema":{"type":"string","default":"2022-06-28"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:notion/user-get-token-bot-user":{"get":{"operationId":"business_notion_user_get_token_bot_user","summary":"Retrieve your token's bot user","description":"GET /v1/users/me","tags":["business"],"parameters":[{"name":"Notion-Version","in":"query","required":true,"schema":{"type":"string","default":"2022-06-28"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:notion/comment-get-list":{"get":{"operationId":"business_notion_comment_get_list","summary":"Retrieve comments","description":"GET /v1/comments","tags":["business"],"parameters":[{"name":"Notion-Version","in":"query","required":true,"schema":{"type":"string","default":"2022-06-28"}},{"name":"block_id","in":"query","required":true,"description":"Identifier for a Notion block or page","schema":{"type":"string","description":"Identifier for a Notion block or page"}},{"name":"start_cursor","in":"query","required":false,"description":"If supplied, this endpoint will return a page of results starting after the cursor provided. If not supplied, this endpoint will return…","schema":{"type":"string","description":"If supplied, this endpoint will return a page of results starting after the cursor provided. If not supplied, this endpoint will return…"}},{"name":"page_size","in":"query","required":false,"description":"The number of items from the full list desired in the response. Maximum: 100","schema":{"type":"integer","description":"The number of items from the full list desired in the response. Maximum: 100"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/business:notion/comment-create-new":{"post":{"operationId":"business_notion_comment_create_new","summary":"Create comment","description":"POST /v1/comments","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["Notion-Version"],"properties":{"Notion-Version":{"type":"string","default":"2022-06-28"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/business:notion/search-by-title":{"post":{"operationId":"business_notion_search_by_title","summary":"Search by title","description":"POST /v1/search","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["Notion-Version"],"properties":{"Notion-Version":{"type":"string","default":"2022-06-28"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}