Webhook Service
Subscriptions

Create subscription

1min
POST
https://{tenantSubdomain}.getos1.com/core/api/v1/webhooks/subscriptions

Create the subscription for the app

User will need to specify the topic Name, appId of the app which published this events and events that he wants to subscribe.

customAttr: (default: false) If the user wants custom attributes to be sent as part of webhook payload, then he will need to set this flag.

Note1: Subscriber will only be created with customAttr=true only if subscribing app has access to the publisher app.

Note2: Max 5 subscribers are allowed per unique Event

Header Parameters
X-COREOS-APP-ID
*
X-COREOS-TID
*
X-COREOS-ACCESS
*
X-COREOS-AUTH
X-COREOS-REQUEST-ID
*
X-COREOS-USERINFO
*
Body Parameters
body
*
description
topic
*
eventsAppName
events
isActive
customAttr
webhook
*
Responses
201
OK - The request succeeded.
data
400
Bad request - The server is unable to process the request due to something that is perceived to be a client error.
error
request
401
Unauthorized - The client's identity is unknown to the server. Verify that you are accessing the correct tenant and that your client ID and client secret are valid on that Tenant.
error
request
403
Forbidden - The client's identity is known to the server but it does not have access rights to the requested resource. Verify that you're using the correct client ID and client secret or grant the client the necessary roles to access the resource.
error
request
404
Not found - The server can not find the requested resource.
error
request
503
Server error - The server is not ready to handle the request. This could be due to maintenance downtime or system resource constraints.
error
request
Curl
JS
Ruby
Python
Responses
201
400
401
403
404
503