Set the test space's webhook
Это содержимое пока не доступно на вашем языке.
any keywritestest key only
TEST SPACE ONLY.
Everything the agent is told about this tool
TEST SPACE ONLY. Points the test space’s one webhook address at your https server (url, with the events to deliver; default all), replacing the previous address, or takes it off (remove: true). Every event of the space’s log is then delivered to it, signed and retried exactly as on the real account, by the world’s steps that run with your ordinary calls — a delivery leaves within a call or two of the event, not before. The signing secret comes back once in secret; whoami.sandbox.webhook shows the address and its newest deliveries with their verdicts. The address must be on the public internet (a private or local one fails on the delivery row, as it would for a real address). Nothing is delivered from the test space to the real account’s addresses, nor the other way round. Send an idempotencyKey; dryRun: true checks and sets nothing.
Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
url |
string |
no | The https address the test space delivers to. Setting it replaces the space’s previous address, if any; the new signing secret comes back once in secret. |
events |
"clip.approved" | "clip.rejected" | "clip.submitted" | "deposit.credited" | "campaign.paused" | "campaign.resumed" | "campaign.ended" | "campaign.activated" | "campaign.in_review" | "campaign.rejected" | "approval.requested" | "approval.rejected" | "approval.expired" | "company.submitted" | "campaign.budget_added"[] |
no | Which events to deliver (default: all of them). Ignored without url. |
remove |
boolean |
no | Send true to take the space’s address off instead. Nothing is delivered to it afterwards. |
idempotencyKey |
string |
no | Any unique string for this attempt, for example a UUID. Sending the same key and body again returns the first answer instead of writing twice. |
dryRun |
boolean |
no | When true, runs every check and returns what would happen, and keeps nothing: no draft, no log entry, no event. |
A write: send an idempotencyKey (any unique string for this one intent). A call with dryRun: true needs none.
Example
Section titled “Example”curl https://countviews.com/api/public/v1/call \ -H "Authorization: Bearer $COUNTVIEWS_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"sandbox_webhook_set","arguments":{"url":"https://example.com/hooks/countviews","idempotencyKey":"hook-1"}}'{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "sandbox_webhook_set", "arguments": { "url": "https://example.com/hooks/countviews", "idempotencyKey": "hook-1" } }}{ "url": "https://example.com/hooks/countviews", "idempotencyKey": "hook-1"}