get
https://api.superwise.ai/v1/policies/
Get policy by ID
- policy_id (UUID): The ID of the policy.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Returns one policy by its ID. Its status is one of pending, healthy, unhealthy, error, or no_data.
When to use it
Use it to check a policy's configuration and when it last ran and runs next.
Required parameters
policy_id(path): the ID of the policy.
Response
A successful call returns 200 OK with the PolicyResponse object, including id, name, status, data_config, threshold_settings, cron_expression, destination_ids, last_evaluation, and next_evaluation.
Related: List policies, Update a policy, Trigger a policy
404Not Found
500Internal Server Error