Sync client data via API with secure token authentication
API toolWorkatoRecipe ToolsSecurityUtilitiesDeveloper ToolAPI Integration
What it does
When someone makes a POST request to this API endpoint, this automation fetches the client ID and generates a secure token. The token authenticates a query to Planq, and the API responds with data or error details.
Who it's for
Engineering teams who need to securely query client data through an authenticated API without manual token management.
How teams use this
Authenticate requests without manual tokens
Generate a secure token automatically for each API request so callers do not need to manage tokens separately. The token is created fresh each time and passed securely to Planq.
Fetch client data from Planq securely
Query Planq GraphQL with authenticated requests so client data is returned only to authorized callers. The secure token ensures only valid requests reach the database.
Monitor errors and respond to callers
Check all steps for errors and respond with HTTP 500 and error details when something fails. Callers know immediately if the request did not succeed.
Add role-based access control
Set a condition to filter queries based on the caller's role so only authorized roles can query certain data from Planq. The secure token includes the role for validation.
How it works
- Receive the API request. Someone makes a POST request to this endpoint with defined parameters. The Workato Api Platform receives the request and prepares to process it.
- Fetch the client ID. Call the UTLY Developer API through Workato Recipe Function to retrieve the client ID and role needed for secure authentication.
- Generate a secure token. Create a web token using the client ID and role variables in Jwt to authenticate the request to Planq securely.
- Query Planq and return data. POST the Planq GraphQL query via Rest with the secure token. Respond with data on success or HTTP 500 with error details on failure.