Approvals
Frank never writes, sends or changes anything on his own. When an answer needs an action (adding a company to your pipeline, drafting an email, creating a document), the response comes back as needs_approval:
{ "status": "needs_approval", "run_id": "6f0c…", "chat_id": "a1d2…", "approval": { "title": "Add Ramp to your pipeline", "choices": ["Approve", "Reject"], "detail": "…" }, "next": "POST /v1/runs/6f0c…/respond"}Respond
Section titled “Respond”POST /v1/runs/{run_id}/respond| Field | |
|---|---|
decision |
approve, reject, edit or respond. |
message |
Required for edit (what to change) and respond (your answer to Frank’s question). |
curl https://letsfrank.ai/v1/runs/6f0c…/respond \ -H "Authorization: Bearer $FRANK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"decision": "approve"}'Frank continues the same run and the response is a normal answer envelope.
Everything waiting on you
Section titled “Everything waiting on you”GET /v1/approvalsReturns approvals, newest first. Items with "where": "frank" carry a run_id you can answer here. Items with "where": "summitpoint" are approval cards from elsewhere in SummitPoint; resolve those in the app.
Approvals you start in one place can be finished in another: ask through the API, approve in SummitPoint, or the other way around.
