Friday evening: monthly usage is approaching the budget, and the website widget’s channel key shows up in the source of somebody else’s page. Both demand a quick response, and neither may leave customers writing into the void.
The agent’s controls are built so that stopping breaks nothing: the stop takes effect immediately, open conversations receive a closing message once, and incoming messages keep being recorded — just no longer answered by the model.
| Surface | Roles |
|---|---|
| Sales agent | Parts trading, Vehicle trading, Software vendor |
What this case requires
- A prepared closing message. Drafted only during the incident, it will be drafted badly; it can be stored in the controls or passed with the stop.
- A colleague who sees the recorded messages. Recording without an inbox merely moves the problem.
- A deployment that can update the widget script at once. The old channel key stops working immediately after rotation.
- Knowing which credential is affected. A targeted revocation hits only that one; a blanket one hits the whole channel.
The sequence
The table names the responsible call per stage and what exists afterwards. The reasoning for why a stage cannot be skipped follows below it.
| Stage | Call | What exists afterwards |
|---|---|---|
| Read the usage | GET /agent/usage | Amounts, turns, balance and budgetState — in total, per channel and per day |
| Stop | POST /agent/stop | takes effect immediately; open conversations receive the closing message once |
| Keep recording | POST /agent/conversations/record | new messages go to a colleague — nothing is lost, nothing is charged |
| Rotate the channel key | POST /agent/channels/{channelId}/web-key/rotate | a new webKey, issued once; the old one stops working immediately |
| Revoke the access | POST /agent/channels/{channelId}/credentials/revoke | with purpose only that one credential, without purpose the whole channel |
| Resume | POST /agent/resume | turns are answered again from the next message on |
Why each stage is needed
- Read the situation.
GET /agent/usagereturns, for one month, the billed amounts net of refunds, turns, colleague questions and conversations — in total, per channel and per day — plusbalanceandbudgetState. That tells you whether the whole agent must stop or just one channel stands out. - Stop.
POST /agent/stopoptionally takesreasonandclosingMessage. The stop takes effect immediately; open conversations receive the closing message once so nobody waits without a word. - Keep recording.
POST /agent/conversations/recordcreates a conversation in a colleague’s hands, stores the message and does not answer. That is the intended route for a stopped or capped account: nothing is lost and nothing is charged. - Rotate the channel key.
POST /agent/channels/{channelId}/web-key/rotateissues the newwebKeyexactly once. The old one stops working immediately — so the new script tag belongs in the same deployment. - Revoke access selectively.
POST /agent/channels/{channelId}/credentials/revokewith apurposedeletes exactly one credential — such asmail_smtporebay_refresh_token. Withoutpurposethe whole channel is revoked, because a channel without its key would be silent and still active. - Resume.
POST /agent/resumerestarts operation; from the next message on, turns are answered again. Conversations recorded in the meantime stay with the colleague until they hand them back.
curl -X POST \
-H 'X-Api-Key: <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{"reason":"Monatsbudget erreicht","closingMessage":"Ein Kollege meldet sich persönlich bei Ihnen."}' \
'https://api.tapinomahub.com/hub/index.php/agent/stop'What you end up with
What remains is an incident in which no customer went unanswered, no key stayed valid longer than necessary and no message was lost. The agent is running again, and the interval is traceable in the inbox.
Where to find this in the documentation
The binding field lists, error codes and sample responses live in this surface’s OpenAPI contract at docs.tapinomahub.com (tapinoma-agent). All use cases arranged by surface and role: overview of the use cases.
Sources and legal references
Frequently asked
What happens to messages during the standstill?
They are recorded and go to a colleague. According to the contract nothing is lost and nothing is charged for this recording.
What happens to customers who are writing right now?
Open conversations receive the closing message once. New messages are recorded and go to a colleague.
Why does a revocation without purpose revoke the whole channel?
Because a channel without its scoped key would be silent and still active. Anyone wanting to replace only one credential names it in purpose.
