List all steps for an approval request, including approver resolutions.
cURL
curl --request GET \ --url https://public.api.serval.com/v2/approval-requests/{approval_request_id}/steps \ --header 'Authorization: Bearer <token>'
{ "data": [ { "id": "<string>", "stepNumber": 123, "result": "APPROVAL_REQUEST_RESULT_UNSPECIFIED", "resolutions": [ { "id": "<string>", "approverUserId": "<string>", "approverType": "APPROVAL_REQUEST_USER_TYPE_UNSPECIFIED", "result": "APPROVAL_REQUEST_RESULT_UNSPECIFIED", "resultSetAt": "2023-11-07T05:31:56Z", "autoApproved": true } ], "configuredApproverSources": [ { "type": "CONFIGURED_APPROVER_SOURCE_TYPE_UNSPECIFIED", "id": "<string>" } ], "customWorkflowRun": { "approverAssignment": { "reason": "<string>" }, "runId": "<string>", "status": "WORKFLOW_RUN_STATUS_UNSPECIFIED" } } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the approval request.
Success
Show child attributes
Was this page helpful?