Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 06:00 UTC
| 1 | { |
| 2 | "slug": "NOTION_ARCHIVE_NOTION_PAGE", |
| 3 | "name": "Archive Notion Page", |
| 4 | "description": "Archives (moves to trash) or unarchives (restores from trash) a specified Notion page.", |
| 5 | "available_versions": ["20260113_00"], |
| 6 | "version": "20260113_00", |
| 7 | "toolkit": { |
| 8 | "slug": "notion", |
| 9 | "name": "notion", |
| 10 | "logo": "https://logos.composio.dev/api/notion" |
| 11 | }, |
| 12 | "input_parameters": { |
| 13 | "properties": { |
| 14 | "archive": { |
| 15 | "default": true, |
| 16 | "description": "Set to `true` to move the page to trash (archive), or `false` to restore it from trash (unarchive). Defaults to `true`.", |
| 17 | "title": "Archive", |
| 18 | "type": "boolean" |
| 19 | }, |
| 20 | "page_id": { |
| 21 | "description": "The unique identifier (UUID) of the Notion page to be archived or unarchived. This must be a page ID, not a database ID. Database IDs cannot be used with this action - databases must be archived using the archive database action instead. Page IDs can be obtained using NOTION_SEARCH_NOTION_PAGE with filter_value='page' or from the 'id' field of page objects returned by other Notion actions.", |
| 22 | "examples": ["a1b2c3d4-e5f6-7890-1234-567890abcdef"], |
| 23 | "title": "Page Id", |
| 24 | "type": "string" |
| 25 | } |
| 26 | }, |
| 27 | "required": ["page_id"], |
| 28 | "title": "ArchiveNotionPageRequest", |
| 29 | "type": "object" |
| 30 | }, |
| 31 | "output_parameters": { |
| 32 | "properties": { |
| 33 | "data": { |
| 34 | "additionalProperties": false, |
| 35 | "description": "Data from the action execution", |
| 36 | "properties": { |
| 37 | "archived": { |
| 38 | "anyOf": [ |
| 39 | { |
| 40 | "type": "boolean" |
| 41 | }, |
| 42 | { |
| 43 | "type": "null" |
| 44 | } |
| 45 | ], |
| 46 | "default": null, |
| 47 | "description": "Indicates whether the page is archived. Set to true when the page is archived.", |
| 48 | "title": "Archived" |
| 49 | }, |
| 50 | "cover": { |
| 51 | "anyOf": [ |
| 52 | { |
| 53 | "properties": { |
| 54 | "external": { |
| 55 | "description": "External file configuration.", |
| 56 | "properties": { |
| 57 | "url": { |
| 58 | "description": "Publicly accessible HTTPS link to remote content.", |
| 59 | "title": "Url", |
| 60 | "type": "string" |
| 61 | } |
| 62 | }, |
| 63 | "required": ["url"], |
| 64 | "title": "ExternalFile", |
| 65 | "type": "object" |
| 66 | }, |
| 67 | "type": { |
| 68 | "const": "external", |
| 69 | "description": "The constant string 'external'.", |
| 70 | "title": "Type", |
| 71 | "type": "string" |
| 72 | } |
| 73 | }, |
| 74 | "required": ["type", "external"], |
| 75 | "title": "ExternalCover", |
| 76 | "type": "object" |
| 77 | }, |
| 78 | { |
| 79 | "properties": { |
| 80 | "file": { |
| 81 | "description": "Notion-hosted file configuration.", |
| 82 | "properties": { |
| 83 | "expiry_time": { |
| 84 | "description": "Timestamp in ISO 8601 format indicating when access expires.", |
| 85 | "title": "Expiry Time", |
| 86 | "type": "string" |
| 87 | }, |
| 88 | "url": { |
| 89 | "description": "An authenticated HTTP GET URL to the file. The URL is valid for one hour.", |
| 90 | "title": "Url", |
| 91 | "type": "string" |
| 92 | } |
| 93 | }, |
| 94 | "required": ["url", "expiry_time"], |
| 95 | "title": "NotionHostedFile", |
| 96 | "type": "object" |
| 97 | }, |
| 98 | "type": { |
| 99 | "const": "file", |
| 100 | "description": "The constant string 'file'.", |
| 101 | "title": "Type", |
| 102 | "type": "string" |
| 103 | } |
| 104 | }, |
| 105 | "required": ["type", "file"], |
| 106 | "title": "FileCover", |
| 107 | "type": "object" |
| 108 | }, |
| 109 | { |
| 110 | "type": "null" |
| 111 | } |
| 112 | ], |
| 113 | "default": null, |
| 114 | "description": "Page cover image as a file object (external or Notion-hosted).", |
| 115 | "title": "Cover" |
| 116 | }, |
| 117 | "created_by": { |
| 118 | "anyOf": [ |
| 119 | { |
| 120 | "properties": { |
| 121 | "id": { |
| 122 | "description": "UUID string identifying the user uniquely.", |
| 123 | "title": "Id", |
| 124 | "type": "string" |
| 125 | }, |
| 126 | "object": { |
| 127 | "const": "user", |
| 128 | "description": "Always \"user\".", |
| 129 | "title": "Object", |
| 130 | "type": "string" |
| 131 | } |
| 132 | }, |
| 133 | "required": ["object", "id"], |
| 134 | "title": "UserPartial", |
| 135 | "type": "object" |
| 136 | }, |
| 137 | { |
| 138 | "type": "null" |
| 139 | } |
| 140 | ], |
| 141 | "default": null, |
| 142 | "description": "Partial user object representing the user who created the page.", |
| 143 | "title": "Created By" |
| 144 | }, |
| 145 | "created_time": { |
| 146 | "anyOf": [ |
| 147 | { |
| 148 | "type": "string" |
| 149 | }, |
| 150 | { |
| 151 | "type": "null" |
| 152 | } |
| 153 | ], |
| 154 | "default": null, |
| 155 | "description": "Creation timestamp in ISO 8601 format.", |
| 156 | "title": "Created Time" |
| 157 | }, |
| 158 | "icon": { |
| 159 | "anyOf": [ |
| 160 | { |
| 161 | "properties": { |
| 162 | "emoji": { |
| 163 | "description": "The emoji character itself.", |
| 164 | "title": "Emoji", |
| 165 | "type": "string" |
| 166 | }, |
| 167 | "type": { |
| 168 | "const": "emoji", |
| 169 | "description": "The constant string 'emoji'.", |
| 170 | "title": "Type", |
| 171 | "type": "string" |
| 172 | } |
| 173 | }, |
| 174 | "required": ["type", "emoji"], |
| 175 | "title": "EmojiIcon", |
| 176 | "type": "object" |
| 177 | }, |
| 178 | { |
| 179 | "properties": { |
| 180 | "custom_emoji": { |
| 181 | "description": "Container object for custom emoji data.", |
| 182 | "properties": { |
| 183 | "id": { |
| 184 | "description": "Unique identifier for the custom emoji.", |
| 185 | "title": "Id", |
| 186 | "type": "string" |
| 187 | }, |
| 188 | "name": { |
| 189 | "description": "Display name of the custom emoji.", |
| 190 | "title": "Name", |
| 191 | "type": "string" |
| 192 | }, |
| 193 | "url": { |
| 194 | "description": "HTTPS URL pointing to the emoji image.", |
| 195 | "title": "Url", |
| 196 | "type": "string" |
| 197 | } |
| 198 | }, |
| 199 | "required": ["id", "name", "url"], |
| 200 | "title": "CustomEmojiData", |
| 201 | "type": "object" |
| 202 | }, |
| 203 | "type": { |
| 204 | "const": "custom_emoji", |
| 205 | "description": "The constant value 'custom_emoji'.", |
| 206 | "title": "Type", |
| 207 | "type": "string" |
| 208 | } |
| 209 | }, |
| 210 | "required": ["type", "custom_emoji"], |
| 211 | "title": "CustomEmojiIcon", |
| 212 | "type": "object" |
| 213 | }, |
| 214 | { |
| 215 | "properties": { |
| 216 | "external": { |
| 217 | "description": "External file configuration.", |
| 218 | "properties": { |
| 219 | "url": { |
| 220 | "description": "Publicly accessible HTTPS link to remote content.", |
| 221 | "title": "Url", |
| 222 | "type": "string" |
| 223 | } |
| 224 | }, |
| 225 | "required": ["url"], |
| 226 | "title": "ExternalFile", |
| 227 | "type": "object" |
| 228 | }, |
| 229 | "type": { |
| 230 | "const": "external", |
| 231 | "description": "The constant string 'external'.", |
| 232 | "title": "Type", |
| 233 | "type": "string" |
| 234 | } |
| 235 | }, |
| 236 | "required": ["type", "external"], |
| 237 | "title": "ExternalIcon", |
| 238 | "type": "object" |
| 239 | }, |
| 240 | { |
| 241 | "properties": { |
| 242 | "file": { |
| 243 | "description": "Notion-hosted file configuration.", |
| 244 | "properties": { |
| 245 | "expiry_time": { |
| 246 | "description": "Timestamp in ISO 8601 format indicating when access expires.", |
| 247 | "title": "Expiry Time", |
| 248 | "type": "string" |
| 249 | }, |
| 250 | "url": { |
| 251 | "description": "An authenticated HTTP GET URL to the file. The URL is valid for one hour.", |
| 252 | "title": "Url", |
| 253 | "type": "string" |
| 254 | } |
| 255 | }, |
| 256 | "required": ["url", "expiry_time"], |
| 257 | "title": "NotionHostedFile", |
| 258 | "type": "object" |
| 259 | }, |
| 260 | "type": { |
| 261 | "const": "file", |
| 262 | "description": "The constant string 'file'.", |
| 263 | "title": "Type", |
| 264 | "type": "string" |
| 265 | } |
| 266 | }, |
| 267 | "required": ["type", "file"], |
| 268 | "title": "FileIcon", |
| 269 | "type": "object" |
| 270 | }, |
| 271 | { |
| 272 | "type": "null" |
| 273 | } |
| 274 | ], |
| 275 | "default": null, |
| 276 | "description": "Page icon, which can be an emoji or file object (external or uploaded).", |
| 277 | "title": "Icon" |
| 278 | }, |
| 279 | "id": { |
| 280 | "description": "Unique page identifier in UUIDv4 format.", |
| 281 | "title": "Id", |
| 282 | "type": "string" |
| 283 | }, |
| 284 | "in_trash": { |
| 285 | "anyOf": [ |
| 286 | { |
| 287 | "type": "boolean" |
| 288 | }, |
| 289 | { |
| 290 | "type": "null" |
| 291 | } |
| 292 | ], |
| 293 | "default": null, |
| 294 | "description": "Indicates whether the page is in trash. Set to true when the page is archived.", |
| 295 | "title": "In Trash" |
| 296 | }, |
| 297 | "last_edited_by": { |
| 298 | "anyOf": [ |
| 299 | { |
| 300 | "properties": { |
| 301 | "id": { |
| 302 | "description": "UUID string identifying the user uniquely.", |
| 303 | "title": "Id", |
| 304 | "type": "string" |
| 305 | }, |
| 306 | "object": { |
| 307 | "const": "user", |
| 308 | "description": "Always \"user\".", |
| 309 | "title": "Object", |
| 310 | "type": "string" |
| 311 | } |
| 312 | }, |
| 313 | "required": ["object", "id"], |
| 314 | "title": "UserPartial", |
| 315 | "type": "object" |
| 316 | }, |
| 317 | { |
| 318 | "type": "null" |
| 319 | } |
| 320 | ], |
| 321 | "default": null, |
| 322 | "description": "Partial user object representing the user who last edited the page.", |
| 323 | "title": "Last Edited By" |
| 324 | }, |
| 325 | "last_edited_time": { |
| 326 | "anyOf": [ |
| 327 | { |
| 328 | "type": "string" |
| 329 | }, |
| 330 | { |
| 331 | "type": "null" |
| 332 | } |
| 333 | ], |
| 334 | "default": null, |
| 335 | "description": "Most recent modification timestamp in ISO 8601 format.", |
| 336 | "title": "Last Edited Time" |
| 337 | }, |
| 338 | "object": { |
| 339 | "const": "page", |
| 340 | "description": "Always the literal value 'page'.", |
| 341 | "title": "Object", |
| 342 | "type": "string" |
| 343 | }, |
| 344 | "parent": { |
| 345 | "anyOf": [ |
| 346 | { |
| 347 | "properties": { |
| 348 | "database_id": { |
| 349 | "description": "UUIDv4 string identifying the parent database.", |
| 350 | "title": "Database Id", |
| 351 | "type": "string" |
| 352 | }, |
| 353 | "type": { |
| 354 | "const": "database_id", |
| 355 | "description": "The constant string 'database_id'.", |
| 356 | "title": "Type", |
| 357 | "type": "string" |
| 358 | } |
| 359 | }, |
| 360 | "required": ["type", "database_id"], |
| 361 | "title": "DatabaseParent", |
| 362 | "type": "object" |
| 363 | }, |
| 364 | { |
| 365 | "properties": { |
| 366 | "data_source_id": { |
| 367 | "description": "UUIDv4 string identifying the parent data source.", |
| 368 | "title": "Data Source Id", |
| 369 | "type": "string" |
| 370 | }, |
| 371 | "database_id": { |
| 372 | "anyOf": [ |
| 373 | { |
| 374 | "type": "string" |
| 375 | }, |
| 376 | { |
| 377 | "type": "null" |
| 378 | } |
| 379 | ], |
| 380 | "default": null, |
| 381 | "description": "UUIDv4 string for the grandparent database (convenience field).", |
| 382 | "title": "Database Id" |
| 383 | }, |
| 384 | "type": { |
| 385 | "const": "data_source_id", |
| 386 | "description": "The constant string 'data_source_id'.", |
| 387 | "title": "Type", |
| 388 | "type": "string" |
| 389 | } |
| 390 | }, |
| 391 | "required": ["type", "data_source_id"], |
| 392 | "title": "DataSourceParent", |
| 393 | "type": "object" |
| 394 | }, |
| 395 | { |
| 396 | "properties": { |
| 397 | "page_id": { |
| 398 | "description": "UUIDv4 string identifying the parent page.", |
| 399 | "title": "Page Id", |
| 400 | "type": "string" |
| 401 | }, |
| 402 | "type": { |
| 403 | "const": "page_id", |
| 404 | "description": "The constant string 'page_id'.", |
| 405 | "title": "Type", |
| 406 | "type": "string" |
| 407 | } |
| 408 | }, |
| 409 | "required": ["type", "page_id"], |
| 410 | "title": "PageParent", |
| 411 | "type": "object" |
| 412 | }, |
| 413 | { |
| 414 | "properties": { |
| 415 | "type": { |
| 416 | "const": "workspace", |
| 417 | "description": "The constant string 'workspace'.", |
| 418 | "title": "Type", |
| 419 | "type": "string" |
| 420 | }, |
| 421 | "workspace": { |
| 422 | "const": true, |
| 423 | "description": "Always true, indicating the page is at workspace level.", |
| 424 | "title": "Workspace", |
| 425 | "type": "boolean" |
| 426 | } |
| 427 | }, |
| 428 | "required": ["type", "workspace"], |
| 429 | "title": "WorkspaceParent", |
| 430 | "type": "object" |
| 431 | }, |
| 432 | { |
| 433 | "properties": { |
| 434 | "block_id": { |
| 435 | "description": "UUIDv4 string identifying the parent block.", |
| 436 | "title": "Block Id", |
| 437 | "type": "string" |
| 438 | }, |
| 439 | "type": { |
| 440 | "const": "block_id", |
| 441 | "description": "The constant string 'block_id'.", |
| 442 | "title": "Type", |
| 443 | "type": "string" |
| 444 | } |
| 445 | }, |
| 446 | "required": ["type", "block_id"], |
| 447 | "title": "BlockParent", |
| 448 | "type": "object" |
| 449 | }, |
| 450 | { |
| 451 | "type": "null" |
| 452 | } |
| 453 | ], |
| 454 | "default": null, |
| 455 | "description": "Parent container information specifying where the page is located.", |
| 456 | "title": "Parent" |
| 457 | }, |
| 458 | "properties": { |
| 459 | "anyOf": [ |
| 460 | { |
| 461 | "additionalProperties": true, |
| 462 | "type": "object" |
| 463 | }, |
| 464 | { |
| 465 | "type": "null" |
| 466 | } |
| 467 | ], |
| 468 | "default": null, |
| 469 | "description": "Key-value pairs of page property data. The structure depends on the parent type and specific properties defined for the page.", |
| 470 | "title": "Properties" |
| 471 | }, |
| 472 | "public_url": { |
| 473 | "anyOf": [ |
| 474 | { |
| 475 | "type": "string" |
| 476 | }, |
| 477 | { |
| 478 | "type": "null" |
| 479 | } |
| 480 | ], |
| 481 | "default": null, |
| 482 | "description": "Public web URL if the page is published; otherwise null.", |
| 483 | "title": "Public Url" |
| 484 | }, |
| 485 | "url": { |
| 486 | "anyOf": [ |
| 487 | { |
| 488 | "type": "string" |
| 489 | }, |
| 490 | { |
| 491 | "type": "null" |
| 492 | } |
| 493 | ], |
| 494 | "default": null, |
| 495 | "description": "Standard Notion page URL.", |
| 496 | "title": "Url" |
| 497 | } |
| 498 | }, |
| 499 | "required": ["object", "id"], |
| 500 | "title": "Data", |
| 501 | "type": "object" |
| 502 | }, |
| 503 | "error": { |
| 504 | "anyOf": [ |
| 505 | { |
| 506 | "type": "string" |
| 507 | }, |
| 508 | { |
| 509 | "type": "null" |
| 510 | } |
| 511 | ], |
| 512 | "default": null, |
| 513 | "description": "Error if any occurred during the execution of the action", |
| 514 | "title": "Error" |
| 515 | }, |
| 516 | "successful": { |
| 517 | "description": "Whether or not the action execution was successful or not", |
| 518 | "title": "Successful", |
| 519 | "type": "boolean" |
| 520 | } |
| 521 | }, |
| 522 | "required": ["data", "successful"], |
| 523 | "title": "ArchiveNotionPageResponseWrapper", |
| 524 | "type": "object" |
| 525 | }, |
| 526 | "scopes": ["Read content"], |
| 527 | "tags": ["destructiveHint", "openWorldHint"], |
| 528 | "no_auth": false, |
| 529 | "status": "active", |
| 530 | "is_deprecated": false, |
| 531 | "deprecated": { |
| 532 | "displayName": "Archive Notion Page", |
| 533 | "version": "20260113_00", |
| 534 | "available_versions": ["20260113_00"], |
| 535 | "is_deprecated": false, |
| 536 | "toolkit": { |
| 537 | "logo": "https://logos.composio.dev/api/notion" |
| 538 | } |
| 539 | } |
| 540 | } |