numbers

Set a number's manual-mode brain URL

Sets the per-number manual-mode conversation-brain URL (a fallback for the connection's manualWebhookUrl). NOT an event-notification webhook — to receive call/SMS events, register a workspace webhook endpoint via POST /workspaces/:slug/webhooks.

post/numbers/{id}/webhook

Request

  • Base URL: https://api.saperly.com
  • URL: https://api.saperly.com/numbers/{id}/webhook
  • Auth: none required

Path parameters

idstring required

The phone number's id.

Request body

urlstring required

The per-number MANUAL-mode brain URL: a public https:// endpoint Saperly POSTs each conversation turn to for a manual-mode line, as a fallback when the connection has no manualWebhookUrl and no live agent socket. This is NOT for receiving call/SMS event notifications — for those, register a workspace webhook endpoint (POST /workspaces/:slug/webhooks).

Response

Success

idstring required
phoneNumberstring required
connectionIdstring nullable required
webhookUrlstring nullable required
smsSenderIdstring nullable
callerIdNamestring nullable
countrystring nullable required
numberTypestring nullable required
monthlyPriceCentsnumber nullable required
currencystring nullable required
nextChargeAtstring nullable required
releasedAtstring nullable required
createdAtstring required

Changes

No recorded changes to this operation across all 1 revision of this API.