{"componentChunkName":"component---src-templates-redoc-operation-js","path":"/process-intelligence-apis/subscription-api/outbound-api-reference/openapi/reference/operation/consumEvents/","result":{"data":{"contentItem":{"type":"redoc-operation","link":"/process-intelligence-apis/subscription-api/outbound-api-reference/openapi/reference/operation/consumEvents/","data":{"redocStoreStr":"{\"menu\":{\"activeItemIdx\":-1},\"definition\":{\"data\":{\"openapi\":\"3.0.0\",\"info\":{\"title\":\"Event OpenAPI Specification\",\"description\":\"Subscription API to send events to a webhook configured when creating a subscription. Our API can send automatically events to a deffined webhook.\",\"x-audience\":\"EX\",\"version\":\"1.0.0\"},\"security\":[{\"BearerAuth\":[]},{\"ApiKeyAuth\":[]}],\"servers\":[{\"url\":\"https://webhook/service\"}],\"tags\":[{\"name\":\"Webhook\",\"description\":\"Webhook used to receive asynchronous events from Subscription API\"}],\"paths\":{\"/api/events\":{\"post\":{\"operationId\":\"consumEvents\",\"summary\":\"Receive asynchronous events from Subscription API\",\"tags\":[\"Webhook\"],\"description\":\"Receive asynchronous events\",\"requestBody\":{\"description\":\"Event from a Record or Data Model\",\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/eventDTO\"}}}},\"responses\":{\"400\":{\"$ref\":\"#/components/responses/BadRequest\"},\"401\":{\"$ref\":\"#/components/responses/Unauthorized\"},\"403\":{\"$ref\":\"#/components/responses/Forbidden\"},\"429\":{\"$ref\":\"#/components/responses/TooManyRequests\"},\"500\":{\"$ref\":\"#/components/responses/InternalError\"},\"503\":{\"$ref\":\"#/components/responses/ServiceUnavailable\"},\"2XX\":{\"description\":\"Event received\"}}}}},\"components\":{\"securitySchemes\":{\"BearerAuth\":{\"type\":\"http\",\"scheme\":\"bearer\",\"bearerFormat\":\"JWT\"},\"ApiKeyAuth\":{\"type\":\"apiKey\",\"in\":\"header\",\"name\":\"AppKey\"}},\"schemas\":{\"errorDTO\":{\"title\":\"Error\",\"type\":\"object\",\"description\":\"This [RFC7807] specification is to define common error formats for those applications that need one, so that they aren't required to define their own, or worse, tempted to redefine the semantics of existing HTTP status codes. This definition was copied from https://datatracker.ietf.org/doc/html/rfc7807\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"A short, human-readable summary of the problem type.  It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4). This definition was copied from https://datatracker.ietf.org/doc/html/rfc7807\"},\"status\":{\"type\":\"integer\",\"description\":\"The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. This definition was copied from https://datatracker.ietf.org/doc/html/rfc7807\"},\"detail\":{\"type\":\"string\",\"description\":\"The details of the Error\"},\"errorCode\":{\"type\":\"string\",\"description\":\"Unique Identifier of the Error\"},\"type\":{\"type\":\"string\",\"description\":\"A URI reference [RFC3986] that identifies the problem type. This definition was copied from https://datatracker.ietf.org/doc/html/rfc7807\"}}},\"eventDTO\":{\"title\":\"Asynchronous event\",\"description\":\"Asynchronous event triggered by Subscription\",\"type\":\"object\",\"properties\":{\"subscriberId\":{\"type\":\"string\",\"description\":\"Subscriber's Unique identifier as a SUID\",\"example\":\"abc-123-bad-123\"},\"triggerId\":{\"type\":\"string\",\"description\":\"Trigger's Unique identifier as a SUID\",\"example\":\"abc-123-bad-123\"},\"offset\":{\"type\":\"number\",\"description\":\"Position of the event in the subscription Queue source\",\"example\":1234},\"creationDate\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"Date of the event creation\",\"example\":\"2023-07-21T17:32:28Z\"},\"event\":{\"$ref\":\"#/components/schemas/signalEventDTO\"}}},\"signalEventDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Event's Unique identifier as a SUID\",\"example\":\"abc-123-bad-123\"},\"identifier\":{\"type\":\"string\",\"description\":\"Third party Identifier as a string\",\"example\":1},\"typedIdentifier\":{\"type\":\"object\",\"description\":\"Type of the Identifier for the event\",\"example\":2},\"fields\":{\"type\":\"array\",\"description\":\"Fields for the Event\",\"items\":{\"$ref\":\"#/components/schemas/eventFieldDTO\"}}}},\"eventFieldDTO\":{\"title\":\"Fields Metadata for the event\",\"description\":\"Fields Metadata for the event\",\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Id for the field as a String\",\"example\":\"CASE_NUMBER\"},\"value\":{\"type\":\"object\",\"description\":\"Value for the field, it could be any type of (date, string, float, int)\",\"example\":\"my_value\"},\"type\":{\"type\":\"string\",\"description\":\"The type that applies to the value (DATE, STRING, FLOAT, INT)\",\"example\":\"STRING\"},\"isIdentifier\":{\"type\":\"boolean\",\"description\":\"If the field is used as an identifier\",\"example\":true}}},\"authErrorDTO\":{\"title\":\"Authentication Error\",\"type\":\"object\",\"properties\":{\"error\":{\"type\":\"string\"}}}},\"responses\":{\"BadRequest\":{\"description\":\"Bad Request.\",\"content\":{\"application/problem+json\":{\"schema\":{\"$ref\":\"#/components/schemas/errorDTO\"}}}},\"Unauthorized\":{\"description\":\"Unauthorized access.\",\"content\":{\"application/problem+json\":{\"schema\":{\"$ref\":\"#/components/schemas/authErrorDTO\"}}}},\"Forbidden\":{\"description\":\"Forbidden.\",\"content\":{\"application/problem+json\":{\"schema\":{\"$ref\":\"#/components/schemas/errorDTO\"}}}},\"NotFound\":{\"description\":\"The specified resource was not found\",\"content\":{\"application/problem+json\":{\"schema\":{\"$ref\":\"#/components/schemas/errorDTO\"}}}},\"NotSupportedFormat\":{\"description\":\"Unsupported media type requested.\",\"content\":{\"application/problem+json\":{\"schema\":{\"$ref\":\"#/components/schemas/errorDTO\"}}}},\"TooManyRequests\":{\"description\":\"Too Many Requests.\",\"content\":{\"application/problem+json\":{\"schema\":{\"$ref\":\"#/components/schemas/errorDTO\"}}}},\"InternalError\":{\"description\":\"Internal Server Error.\",\"content\":{\"application/problem+json\":{\"schema\":{\"$ref\":\"#/components/schemas/errorDTO\"}}}},\"ServiceUnavailable\":{\"description\":\"Service Unavailable.\",\"content\":{\"application/problem+json\":{\"schema\":{\"$ref\":\"#/components/schemas/errorDTO\"}}}}}}}},\"options\":{\"hideTryItPanel\":false,\"pagination\":\"item\",\"corsProxyUrl\":\"https://cors.redoc.ly\",\"generateCodeSamples\":{\"languages\":[{\"lang\":\"curl\"},{\"lang\":\"JavaScript\"},{\"lang\":\"Java\"},{\"lang\":\"Python\"},{\"lang\":\"PHP\"}]},\"disableSearch\":true,\"ctrlFHijack\":false,\"disableSidebar\":true,\"theme\":{\"overrides\":{\"DownloadButton\":{\"custom\":\"\"},\"NextSectionButton\":{\"custom\":\"\"}},\"codeBlock\":{\"tokens\":{}},\"schema\":{\"constraints\":{},\"examples\":{}},\"rightPanel\":{\"textColor\":\"#eeeeee\"},\"typography\":{\"heading1\":{},\"heading2\":{},\"heading3\":{},\"rightPanelHeading\":{}}}}}","redocHasSecurityDefinitions":false,"redocInfoPageLink":"/process-intelligence-apis/subscription-api/outbound-api-reference/openapi/reference/overview/","redocItemId":"tag/Webhook/operation/consumEvents","redocHasInfoPage":false,"settings":{"corsProxyUrl":"https://cors.redoc.ly","generateCodeSamples":{"languages":[{"lang":"curl"},{"lang":"JavaScript"},{"lang":"Java"},{"lang":"Python"},{"lang":"PHP"}]}},"requestLogin":false,"lastModified":"2025-01-24T15:24:54.000Z"},"seo":{"title":"Receive asynchronous events from Subscription API"}}},"pageContext":{"id":"e7d41f04-149c-5040-97ce-91e73979b907operation/consumEvents__redocly content/process-intelligence-apis/subscription-api/outbound-api-reference/openapi/reference/operation/consumEvents/","seo":{"title":"Receive asynchronous events from Subscription API","description":"Receive asynchronous events","image":"","keywords":null,"jsonLd":null,"lang":null,"siteUrl":null},"pageId":"process-intelligence-apis/subscription-api/outbound-api-reference/openapi/reference.page.yaml#operation/consumEvents","pageBaseUrl":"/process-intelligence-apis/subscription-api/outbound-api-reference/openapi/reference","type":"redoc-operation","toc":{"enable":true,"maxDepth":4,"headings":null},"data":{},"catalogInfo":null,"link":"/process-intelligence-apis/subscription-api/outbound-api-reference/openapi/reference/operation/consumEvents/","sidebarName":"celonis","isLanding":false,"showPrevButton":null,"showNextButton":null,"apiVersions":[{"definitionId":"outbound","id":"outbound","title":"outbound","isDefault":true,"apiId":null}],"apiVersionId":null,"isDefaultApiVersion":true}},"staticQueryHashes":["1123603147","1302185487","1344209882","1398840060","1520077861","1975142765","2667623876","2950305614","3240152602","3743992808","561138138"]}