Create Job Req Log from API requests
API toolRecipe Tools
What it does
When someone sends an API request to the endpoint, this automation verifies access permissions using the Get API Access Profile Permissions function. It creates a job request log if permitted, then returns forbidden, success, or failed.
Who it's for
IT teams who need to track and log API requests with permission validation in real time.
How teams use this
Log all API requests with permission checks
Track every API request in real time by creating a job request log after verifying the requester has access. This keeps a complete audit trail of who called the API and when.
Deny requests from unauthorized users
Return a forbidden response when someone without the right permissions tries to use the API. The request is rejected before any log is created.
Add custom fields to the job request log
Extend the Create Job Req Log function to include additional fields such as request source, user role, or request type. The permission check stays the same and only the log record changes.
How it works
- Receive a new API request. Someone sends an API request to the endpoint. The Workato Api Platform receives the request and defines the parameters needed to process it.
- Check access permissions. Call the Get API Access Profile Permissions function in Workato Recipe Function to verify the requester has permission to proceed with the job request log.
- Create the job request log. If permissions are granted, call the Create Job Req Log function to record the API request in Workato Recipe Function. Return success when the log is created.
- Return the response. The Workato Api Platform returns forbidden if permissions fail, success if the log was created, or failed if an error occurred during the process.