Allows clients to manage webhooks.
The Peach webhook system will issue POST
requests with the event data as JSON payload.
Creates a new webhook subscription.
Success
{- "webhookType": "direct",
- "eventTypes": [
- "string"
], - "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "enabled": true,
- "hydrateData": false,
- "webhookDirectDetails": {
- "webhookUrl": "string"
}, - "webhookProxyDetails": {
- "galileoApiTransKey": "string",
- "galileoApiLogin": "string",
- "galileoProviderId": "string",
- "galileoBaseUrl": "string"
}
}
{- "status": 0,
- "message": "string",
- "data": {
- "webhookType": "direct",
- "eventTypes": [
- "string"
], - "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "companyId": "string",
- "enabled": true,
- "hydrateData": false,
- "webhookDirectDetails": {
- "webhookUrl": "string",
- "hmacSecretKey": "string"
}, - "webhookProxyDetails": {
- "galileoProviderId": "string",
- "galileoBaseUrl": "string"
}
}
}
{- "status": 0,
- "count": 0,
- "data": [
- {
- "webhookType": "direct",
- "eventTypes": [
- "string"
], - "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "companyId": "string",
- "enabled": true,
- "hydrateData": false,
- "webhookDirectDetails": {
- "webhookUrl": "string",
- "hmacSecretKey": "string"
}, - "webhookProxyDetails": {
- "galileoProviderId": "string",
- "galileoBaseUrl": "string"
}
}
]
}
{- "status": 0,
- "message": "string",
- "data": {
- "webhookType": "direct",
- "eventTypes": [
- "string"
], - "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "companyId": "string",
- "enabled": true,
- "hydrateData": false,
- "webhookDirectDetails": {
- "webhookUrl": "string",
- "hmacSecretKey": "string"
}, - "webhookProxyDetails": {
- "galileoProviderId": "string",
- "galileoBaseUrl": "string"
}
}
}
Success
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "enabled": true,
- "hydrateData": false,
- "webhookDirectDetails": {
- "webhookUrl": "string"
}, - "webhookProxyDetails": {
- "galileoApiTransKey": "string",
- "galileoApiLogin": "string",
- "galileoProviderId": "string",
- "galileoBaseUrl": "string"
}
}
{- "status": 0,
- "message": "string",
- "data": {
- "webhookType": "direct",
- "eventTypes": [
- "string"
], - "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "companyId": "string",
- "enabled": true,
- "hydrateData": false,
- "webhookDirectDetails": {
- "webhookUrl": "string",
- "hmacSecretKey": "string"
}, - "webhookProxyDetails": {
- "galileoProviderId": "string",
- "galileoBaseUrl": "string"
}
}
}
Request sandbox access