Approve a held action
POST
/v1/agent-action-requests/:id/approveWrite API
Runs the held action now; it may message the customer. Recorded in the audit log as the team member who created the API key, so a key with no owning member cannot approve. Returns 409 when someone already answered it or it expired.
Permission: agents:approve · 60 requests / minute
Path parameters
- idstringRequired
- The requestId from the list or the webhook event.
curl -X POST "https://public-api.wsmartsender.com/v1/agent-action-requests/667f1a2b3c4d5e6f7a8b9c0d/approve" \
-H "X-Api-Key: wss_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"Response fields200
{ requestId, conversationId, contactId, agentId, toolName, summary, status: executed | failed, reviewedBy, reviewedAt, … }