Create a new webhook subscription
POST
/subscriptionsLast modified: 13 days ago
Request
Header Params
X-Integration-Name
string
required
Integration name
Example:
API Documentation
X-Integration-Provider
string
required
Integration provider
Example:
cobra GmbH
X-Cobra-TenantId
string
required
Tenant ID
Example:
12e39e53-ece1-4d8d-8958-e782de1dbef0
X-Integration-Contact
string
optional
Integration contact
Example:
info@cobra.de
Body Params application/json
No schema defined
Example
{
"caption": "Event created",
"webhookId": "80f48afa-4927-43de-9d0d-24cf4aba53cf",
"method": "POST",
"url": "https://www.mytesturl.de",
"errorEmail": "error@cobra.de",
"payload": "{\"firstName\": \"John\",\"lastName\": \"Doe\",\"EventNumber\": \"<EventNumber>\"}",
"headers": {
"MyHeader1": "HeaderValue1",
"MyHeader2": "HeaderValue2"
}
}
Request samples
Responses
Created(201)
Not Found(404)
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"data": {
"id": "52fa5344-a28a-4866-84ce-798e4ff19341",
"dateCreate": "2024-10-09T07:00:39.1309318+00:00",
"dateModified": "2024-10-09T07:00:39.1309326+00:00",
"caption": "Event created",
"webhookId": "80f48afa-4927-43de-9d0d-24cf4aba53cf",
"method": "POST",
"url": "https://www.mytesturl.de",
"errorEmail": "error@cobra.de",
"payload": "{\"firstName\": \"John\",\"lastName\": \"doe\",\"EventNumber\": \"<EventNumber>\"}",
"headers": {
"MyHeader1": "HeaderValue1",
"MyHeader2": "HeaderValue2"
}
},
"message": "",
"metaData": null,
"statusCode": 200
}
Last modified: 13 days ago