Remote Request Hook API
note
Read this page in wide view mode from here
Send approval request
Receive a request from witboost about an ongoing action started by a user that requires a third-party interaction on your end
header Parameters
| X-Request-ID required | string <uuid> Examples:
A unique identifier for the request that can be used to trace the request in the logs. |
Request Body schema: application/jsonrequired
An object containing all the input data received by the action where the remote request hook is attached
| respondToUrl required | string URL to be contacted to notify that the hook is completed. This represents the fact that the third-party interaction has been performed on your end. e.g. An access request that has been accepted on your dedicated platform |
| fields required | object A free-form object containing all the action's input data coming from witboost |
Responses
Request samples
- Payload
Content type
application/json
{- "fields": {
- "identities": [
- "john.doe_company.com"
], - "verb": "grant",
- "motivation": "I need access to this resource",
- "domain": "finance",
- "role": "data_engineer"
}
}Response samples
- 202
- 400
- 401
- 500
Content type
application/json
Example
{- "hookInfo": {
- "status": "accepted",
- "message": "request has been accepted on the external system"
}
}