Pending approvals
list_approvalsRetrieve your WorkMobile approval inbox counts, or list form records pending your approval. Use form_id to target a form; personal answers are hidden unless include_contact_details is true.
Instructions
Without form_id: the API user's approval inbox totals (badge counts) from GET /api/approvals/getinboxtotals, returned as WorkMobile sends them with text redacted (the format is not documented). With form_id: the records on that form waiting for the API user's approval (records search with onlyMyPendingApprovals), with personal answers withheld unless include_contact_details is set.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_approvals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page to start from (pages hold 500 rows, the smallest page size the API allows) | |
| form_id | No | List the records on this form that are pending the API user's approval | |
| max_pages | No | Pages of 500 to fetch in this call | |
| max_results | No | Most rows to return; rows beyond this on pages already fetched are counted, not returned | |
| include_contact_details | No | Include personal answers in the pending records. Off by default. Bank, card and payment details are never returned. |