Reusable Mimecast API query building block
Build a reusable workflow (callable via Send-to-Story) that accepts a Mimecast endpoint path, method, and arbitrary payload. Construct the correctly signed/authenticated HTTP request, send it, and return the parsed response. Handle auth errors, rate limits, and pagination, and validate required inputs. Output the Mimecast API response for the caller to consume.
What this prompt builds
A configurable building block for calling any Mimecast endpoint with correct request signing.
The problem
Mimecast's API requires specific request signing and structure, so every team re-implements it and gets it subtly wrong. That friction blocks email-security automations from being built at all.
Solution and impact
This workflow provides a reusable, correctly-signed Mimecast request pattern that accepts any endpoint and payload. Engineers can query Mimecast from other workflows immediately instead of wrestling with auth.
