github.com/grokify/go-ringcentral-client@v0.3.31/codegen/specs-engagedigital_v3.0.0/openapi-spec_webhooks.json (about) 1 { 2 "openapi":"3.0.0", 3 "info":{ 4 "description":"", 5 "version":"1.0", 6 "title":"Engage Digital API", 7 "termsOfService":"https://developer.ringcentral.com" 8 }, 9 "tags":[ 10 { 11 "name":"Webhooks" 12 } 13 ], 14 "paths":{ 15 "/webhooks":{ 16 "get":{ 17 "tags":[ 18 "Webhooks" 19 ], 20 "summary":"Getting all webhooks", 21 "operationId":"getAllWebhooks", 22 "description":"This method renders webhooks ordered by active and staging_use (descending).\n\nAuthorization: users having manage_api_access_tokens permission can see all webhooks / users don’t having the manage_api_access_tokens permission can see only the webhooks belonging to access token created by them.", 23 "parameters":[ 24 { 25 "name":"access_token", 26 "in":"query", 27 "description":"Access token.", 28 "required":true, 29 "schema":{ 30 "type":"string" 31 } 32 }, 33 { 34 "name":"offset", 35 "in":"query", 36 "description":"The record index to start. Default value is 0.", 37 "required":false, 38 "schema":{ 39 "type":"integer", 40 "format":"int32" 41 } 42 }, 43 { 44 "name":"limit", 45 "in":"query", 46 "description":"The max number of records to return. Default value is 30, max value is 150.", 47 "required":false, 48 "schema":{ 49 "type":"integer", 50 "format":"int32" 51 } 52 } 53 ], 54 "responses":{ 55 "200":{ 56 "description":"Success", 57 "content":{ 58 "application/json":{ 59 "schema":{ 60 "$ref":"#/components/schemas/GetAllWebhooksResponse" 61 } 62 } 63 } 64 } 65 } 66 }, 67 "post":{ 68 "tags":[ 69 "Webhooks" 70 ], 71 "summary":"Creating a webhook", 72 "operationId":"createWebhook", 73 "description":"This method creates a webhook. In case of success it renders the webhook, otherwise, it renders an error (422 HTTP code).\n\nAuthorization: All users having the manage_api_access_tokens permission or all users having an api access token.", 74 "parameters":[ 75 { 76 "name":"access_token", 77 "in":"query", 78 "description":"Access token.", 79 "required":true, 80 "schema":{ 81 "type":"string" 82 } 83 }, 84 { 85 "name":"active", 86 "in":"query", 87 "required":false, 88 "description":"true or false, this field is used to enable/disable a webhook.", 89 "schema":{ 90 "type":"boolean" 91 } 92 }, 93 { 94 "name":"label", 95 "in":"query", 96 "required":true, 97 "description":"The label of the webhook.", 98 "schema":{ 99 "type":"string" 100 } 101 }, 102 { 103 "name":"staging_use", 104 "in":"query", 105 "required":false, 106 "description":"true or false, this field is used to determine if a webhook will be run in staging", 107 "schema":{ 108 "type":"boolean" 109 } 110 }, 111 { 112 "name":"url", 113 "in":"query", 114 "required":true, 115 "description":"The url of a webhook. This is used to determine the endpoint of your webhook, where", 116 "schema":{ 117 "type":"string" 118 } 119 }, 120 { 121 "name":"verify_token", 122 "in":"query", 123 "required":false, 124 "description":"The token used in your webhook.", 125 "schema":{ 126 "type":"string" 127 } 128 }, 129 { 130 "name":"secret", 131 "in":"query", 132 "required":false, 133 "description":"The secret key that will be served as a `X-Dimelo-Secret` header in every request.", 134 "schema":{ 135 "type":"string" 136 } 137 }, 138 { 139 "name":"registered_events[]", 140 "in":"query", 141 "required":true, 142 "description":"An array containing all the events that your webhook wants to subscribe.", 143 "schema":{ 144 "type":"array", 145 "items":{ 146 "type":"string", 147 "enum":[ 148 "api_access_token.created", 149 "api_access_token.destroyed", 150 "api_access_token.updated", 151 "automatic_exports_task.created", 152 "automatic_exports_task.destroyed", 153 "automatic_exports_task.failed", 154 "automatic_exports_task.succeed", 155 "automatic_exports_task.updated", 156 "category.created", 157 "category.destroyed", 158 "category.updated", 159 "community.created", 160 "community.destroyed", 161 "community.updated", 162 "content.admin_stamped", 163 "content.approved", 164 "content.author_blocked", 165 "content.author_stamped", 166 "content.author_unblocked", 167 "content.auto_categorization_infirmed", 168 "content.auto_categorization_not_precise", 169 "content.auto_categorized", 170 "content.auto_ignored", 171 "content.categorized", 172 "content.destroyed", 173 "content.discussion_initiated", 174 "content.discussion_planned", 175 "content.ice_nth_content_ignored", 176 "content.ignored", 177 "content.imported", 178 "content.liked", 179 "content.moderated_ban", 180 "content.moderated_modif", 181 "content.moderated_nok", 182 "content.moderated_ok", 183 "content.planned_discussion_synchronized", 184 "content.published", 185 "content.recategorized", 186 "content.replied", 187 "content.reply_assistant_used", 188 "content.retried_synchronization", 189 "content.retweeted", 190 "content.source_changed", 191 "content.stared", 192 "content.thread_closed", 193 "content.thread_opened", 194 "content.unliked", 195 "content.unpublished", 196 "content.unstamped", 197 "content.unstared", 198 "content.updated", 199 "content_source.created", 200 "content_source.destroyed", 201 "content_source.updated", 202 "content_thread.categorized", 203 "content_thread.destroyed", 204 "content_thread.recategorized", 205 "custom_field.created", 206 "custom_field.destroyed", 207 "custom_field.updated", 208 "expired_data_purge.deleted", 209 "extension.created", 210 "extension.destroyed", 211 "extension.updated", 212 "folder.created", 213 "folder.destroyed", 214 "folder.updated", 215 "identity.followed", 216 "identity.unfollowed", 217 "identity.updated", 218 "intervention.assigned", 219 "intervention.canceled", 220 "intervention.closed", 221 "intervention.deferred", 222 "intervention.opened", 223 "intervention.recategorized", 224 "intervention.reopened", 225 "intervention.updated", 226 "intervention.user_updated", 227 "intervention_comment.created", 228 "intervention_comment.destroyed", 229 "reply_assistant_knowledge_base_entry.created", 230 "reply_assistant_knowledge_base_entry.destroyed", 231 "reply_assistant_knowledge_base_entry.updated", 232 "reply_assistant_knowledge_base_version.created", 233 "reply_assistant_knowledge_base_version.destroyed", 234 "reply_assistant_knowledge_base_version.updated", 235 "reply_assistant_sentence_entry.created", 236 "reply_assistant_sentence_entry.destroyed", 237 "reply_assistant_sentence_entry.updated", 238 "reply_assistant_sentence_version.created", 239 "reply_assistant_sentence_version.destroyed", 240 "reply_assistant_sentence_version.updated", 241 "reply_assistant_version_permalink.created", 242 "reply_assistant_version_permalink.destroyed", 243 "reply_assistant_version_permalink.updated", 244 "role.created", 245 "role.destroyed", 246 "role.updated", 247 "security.updated", 248 "session.created", 249 "session.destroyed", 250 "settings.updated", 251 "survey.created", 252 "survey.destroyed", 253 "survey.updated", 254 "tag.created", 255 "tag.destroyed", 256 "tag.updated", 257 "team.created", 258 "team.destroyed", 259 "team.updated", 260 "user.created", 261 "user.destroyed", 262 "user.disconnected", 263 "user.impersonated", 264 "user.invited", 265 "user.notifications_updated", 266 "user.updated" 267 ] 268 } 269 } 270 } 271 ], 272 "responses":{ 273 "200":{ 274 "description":"Success", 275 "content":{ 276 "application/json":{ 277 "schema":{ 278 "$ref":"#/components/schemas/Webhook" 279 } 280 } 281 } 282 } 283 } 284 } 285 }, 286 "/webhooks/{webhookId}":{ 287 "get":{ 288 "tags":[ 289 "Webhooks" 290 ], 291 "summary":"Getting a webhook from its id", 292 "operationId":"getWebhook", 293 "description":"This method renders a webhook from given id.\n\nAuthorization: users having manage_api_access_tokens permission can see any webhook / users don’t having the `manage_api_access_tokens` permission can see only the webhook in case the webhook is associated to an access token created by them.", 294 "parameters":[ 295 { 296 "name":"webhookId", 297 "in":"path", 298 "required":true, 299 "schema":{ 300 "type":"string" 301 } 302 }, 303 { 304 "name":"access_token", 305 "in":"query", 306 "description":"Access token.", 307 "required":true, 308 "schema":{ 309 "type":"string" 310 } 311 } 312 ], 313 "responses":{ 314 "200":{ 315 "description":"Success", 316 "content":{ 317 "application/json":{ 318 "schema":{ 319 "$ref":"#/components/schemas/Webhook" 320 } 321 } 322 } 323 } 324 } 325 }, 326 "put":{ 327 "tags":[ 328 "Webhooks" 329 ], 330 "summary":"Updating a webhook", 331 "operationId":"updateWebhook", 332 "description":"This method updates an existing webhook from given attributes and renders it in case of success.\n\nAuthorization: All users having the manage_api_access_tokens permission or all users having an api access token belonging to the webhook you’re updating.", 333 "parameters":[ 334 { 335 "name":"webhookId", 336 "in":"path", 337 "required":true, 338 "schema":{ 339 "type":"string" 340 } 341 }, 342 { 343 "name":"access_token", 344 "in":"query", 345 "description":"Access token.", 346 "required":true, 347 "schema":{ 348 "type":"string" 349 } 350 }, 351 { 352 "name":"active", 353 "in":"query", 354 "required":false, 355 "description":"true or false, this field is used to enable/disable a webhook.", 356 "schema":{ 357 "type":"boolean" 358 } 359 }, 360 { 361 "name":"label", 362 "in":"query", 363 "required":false, 364 "description":"The label of the webhook.", 365 "schema":{ 366 "type":"string" 367 } 368 }, 369 { 370 "name":"staging_use", 371 "in":"query", 372 "required":false, 373 "description":"true or false, this field is used to determine if a webhook will be run in staging", 374 "schema":{ 375 "type":"boolean" 376 } 377 }, 378 { 379 "name":"url", 380 "in":"query", 381 "required":false, 382 "description":"The url of a webhook. This is used to determine the endpoint of your webhook, where", 383 "schema":{ 384 "type":"string" 385 } 386 }, 387 { 388 "name":"verify_token", 389 "in":"query", 390 "required":false, 391 "description":"The token used in your webhook.", 392 "schema":{ 393 "type":"string" 394 } 395 }, 396 { 397 "name":"secret", 398 "in":"query", 399 "required":false, 400 "description":"The secret key that will be served as a `X-Dimelo-Secret` header in every request.", 401 "schema":{ 402 "type":"string" 403 } 404 }, 405 { 406 "name":"registered_events[]", 407 "in":"query", 408 "required":false, 409 "description":"An array containing all the events that your webhook wants to subscribe.", 410 "schema":{ 411 "type":"array", 412 "items":{ 413 "type":"string" 414 } 415 } 416 } 417 ], 418 "responses":{ 419 "200":{ 420 "description":"Success", 421 "content":{ 422 "application/json":{ 423 "schema":{ 424 "$ref":"#/components/schemas/Webhook" 425 } 426 } 427 } 428 } 429 } 430 }, 431 "delete":{ 432 "tags":[ 433 "Webhooks" 434 ], 435 "summary":"Deleting a webhook", 436 "operationId":"deleteWebhook", 437 "description":"This method destroys an existing webhook. It renders webhook itself. It renders a 404 if id is invalid.\n\nAuthorization: All users having the manage_api_access_tokens permission or all users having an api access token belonging to the webhook you’re deleting.", 438 "parameters":[ 439 { 440 "name":"webhookId", 441 "in":"path", 442 "required":true, 443 "schema":{ 444 "type":"string" 445 } 446 }, 447 { 448 "name":"access_token", 449 "in":"query", 450 "description":"Access token.", 451 "required":true, 452 "schema":{ 453 "type":"string" 454 } 455 } 456 ], 457 "responses":{ 458 "200":{ 459 "description":"Success", 460 "content":{ 461 "application/json":{ 462 "schema":{ 463 "$ref":"#/components/schemas/Webhook" 464 } 465 } 466 } 467 } 468 } 469 } 470 } 471 }, 472 "servers":[ 473 { 474 "url":"https://DOMAIN.api.engagement.dimelo.com/1.0" 475 } 476 ], 477 "components":{ 478 "schemas":{ 479 "GetAllWebhooksResponse":{ 480 "properties":{ 481 "count":{ 482 "type":"integer", 483 "format":"int32" 484 }, 485 "limit":{ 486 "type":"integer", 487 "format":"int32" 488 }, 489 "offset":{ 490 "type":"integer", 491 "format":"int32" 492 }, 493 "records":{ 494 "type":"array", 495 "items":{ 496 "$ref":"#/components/schemas/Webhook" 497 } 498 } 499 } 500 }, 501 "Webhook":{ 502 "required":[ 503 "id" 504 ], 505 "properties":{ 506 "id":{ 507 "type":"string" 508 }, 509 "active":{ 510 "type":"boolean" 511 }, 512 "staging_use":{ 513 "type":"boolean" 514 }, 515 "url":{ 516 "type":"string" 517 }, 518 "verify_token":{ 519 "type":"string" 520 }, 521 "registered_events":{ 522 "type":"array", 523 "items":{ 524 "type":"string" 525 } 526 }, 527 "api_access_token":{ 528 "$ref":"#/components/schemas/WebhookAccessToken" 529 } 530 } 531 }, 532 "WebhookAccessToken":{ 533 "required":[ 534 "id" 535 ], 536 "properties":{ 537 "id":{ 538 "type":"string" 539 }, 540 "created_at":{ 541 "type":"string", 542 "format":"date-time" 543 }, 544 "updated_at":{ 545 "type":"string", 546 "format":"date-time" 547 } 548 } 549 } 550 } 551 } 552 }