Update Job Req Log from API request
API toolRecipe Tools
What it does
When someone makes a new API request, this automation verifies access permissions using the Get API Access Profile Permissions function. It updates the job request log and returns forbidden, success, or failed based on the permission check and log result.
Who it's for
IT teams who need to track and validate API requests against access profiles in real time.
How teams use this
Validate and log API requests
Track every API request in real time by checking permissions first, then logging the request to the job request log. Teams see a complete audit trail of who accessed what and when.
Enforce access control on endpoints
Deny requests from users without the right access profile before the log is updated. This prevents unauthorized data access and keeps the log clean of failed attempts.
Add custom logging fields
Extend the Update Job Req Log function to include request source, timestamp, and user role in the log entry. Only the function parameters need to change.
Monitor failed requests separately
Set up the automation to filter and only log requests that fail the permission check. This requires adding a condition to exclude successful requests from the log.
How it works
- Receive the API request. A new API request arrives at the Workato Api Platform endpoint with defined request and response parameters.
- Check access permissions. Call the Get API Access Profile Permissions function in Workato Recipe Function to verify the requester has permission to proceed.
- Update the job request log. If permissions are granted, call the Update Job Req Log function to record the request in Workato Recipe Function. Return forbidden if permissions fail.
- Return the result to the requester. Reply through Workato Api Platform with success if the log updated, or failed if an error occurred and no retry is set.