Webhooks
Learn all about integrating webhooks into Dastra
Concept π
Configuration π οΈ
How to receive the webhook π¬
{
"webhookId": <id of the webhook configured in dastra>,
"signatureUrl": "https://yourapi.com/webhooks/handle",
"userId": <The user whot triggered the event>,
"eventType": <The id of the event>,
"eventName": <The label of the event>,
"data": <Event dynamic data>,
"date": <date of the event>
} Test your webhooks url π§ͺ
How to secure the webhook? π‘οΈ
What happens when the url answers something other than 200
How to set up webhooks with APIs
Required scopes
This endpoint requires the following scopes:
- : Access database operations
Authorizations
OAuth2clientCredentialsRequired
Authorization URL: Token URL:
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Query parameters
workspaceIdinteger Β· int32Optional
Responses
200
Success
application/json
signatureKeystring Β· uuidOptional
errorMessagestring Β· nullableOptional
nbErrorsinteger Β· int32Optional
dateLastErrorstring Β· date-time Β· nullableOptional
inErrorbooleanOptional
idinteger Β· int32Optional
urlstringRequired
workSpaceIdinteger Β· int32 Β· nullableOptional
get/v1/WebHookUrls
GET /v1/WebHookUrls HTTP/1.1
Host: api.dastra.eu
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
200
Success
[
{
"signatureKey": "123e4567-e89b-12d3-a456-426614174000",
"errorMessage": "text",
"nbErrors": 1,
"dateLastError": "2026-01-01T00:00:00.000Z",
"inError": true,
"workSpace": {
"id": 1,
"tenantId": 1,
"primaryColor": "text",
"secondaryColor": "text",
"label": "text",
"logoUrl": "text",
"state": "Active",
"permissions": [
{
"name": "text",
"tenantId": 1,
"workSpaceId": 1,
"shortName": "text"
}
],
"dataSubjectArchivedRetentionDays": 1,
"nbEntities": 1
},
"id": 1,
"url": "text",
"workSpaceId": 1,
"subscribedEvents": [
"ProcessingCreation"
]
}
]Required scopes
This endpoint requires the following scopes:
- : Access database operations
Authorizations
OAuth2clientCredentialsRequired
Authorization URL: Token URL:
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Body
idinteger Β· int32Optional
urlstringRequired
workSpaceIdinteger Β· int32 Β· nullableOptional
Responses
200
Success
application/json
signatureKeystring Β· uuidOptional
errorMessagestring Β· nullableOptional
nbErrorsinteger Β· int32Optional
dateLastErrorstring Β· date-time Β· nullableOptional
inErrorbooleanOptional
idinteger Β· int32Optional
urlstringRequired
workSpaceIdinteger Β· int32 Β· nullableOptional
post/v1/WebHookUrls
POST /v1/WebHookUrls HTTP/1.1
Host: api.dastra.eu
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 79
{
"id": 1,
"url": "text",
"workSpaceId": 1,
"subscribedEvents": [
"ProcessingCreation"
]
}200
Success
{
"signatureKey": "123e4567-e89b-12d3-a456-426614174000",
"errorMessage": "text",
"nbErrors": 1,
"dateLastError": "2026-01-01T00:00:00.000Z",
"inError": true,
"workSpace": {
"id": 1,
"tenantId": 1,
"primaryColor": "text",
"secondaryColor": "text",
"label": "text",
"logoUrl": "text",
"state": "Active",
"permissions": [
{
"name": "text",
"tenantId": 1,
"workSpaceId": 1,
"shortName": "text"
}
],
"dataSubjectArchivedRetentionDays": 1,
"nbEntities": 1
},
"id": 1,
"url": "text",
"workSpaceId": 1,
"subscribedEvents": [
"ProcessingCreation"
]
}Required scopes
This endpoint requires the following scopes:
- : Access database operations
Authorizations
OAuth2clientCredentialsRequired
Authorization URL: Token URL:
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Path parameters
idinteger Β· int32Required
Responses
200
Success
application/json
signatureKeystring Β· uuidOptional
errorMessagestring Β· nullableOptional
nbErrorsinteger Β· int32Optional
dateLastErrorstring Β· date-time Β· nullableOptional
inErrorbooleanOptional
idinteger Β· int32Optional
urlstringRequired
workSpaceIdinteger Β· int32 Β· nullableOptional
get/v1/WebHookUrls/{id}
GET /v1/WebHookUrls/{id} HTTP/1.1
Host: api.dastra.eu
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
200
Success
{
"signatureKey": "123e4567-e89b-12d3-a456-426614174000",
"errorMessage": "text",
"nbErrors": 1,
"dateLastError": "2026-01-01T00:00:00.000Z",
"inError": true,
"workSpace": {
"id": 1,
"tenantId": 1,
"primaryColor": "text",
"secondaryColor": "text",
"label": "text",
"logoUrl": "text",
"state": "Active",
"permissions": [
{
"name": "text",
"tenantId": 1,
"workSpaceId": 1,
"shortName": "text"
}
],
"dataSubjectArchivedRetentionDays": 1,
"nbEntities": 1
},
"id": 1,
"url": "text",
"workSpaceId": 1,
"subscribedEvents": [
"ProcessingCreation"
]
}Required scopes
This endpoint requires the following scopes:
- : Access database operations
Authorizations
OAuth2clientCredentialsRequired
Authorization URL: Token URL:
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Path parameters
idinteger Β· int32Required
Responses
200
Success
No content
delete/v1/WebHookUrls/{id}
DELETE /v1/WebHookUrls/{id} HTTP/1.1
Host: api.dastra.eu
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
200
Success
No content
Last updated
Was this helpful?

