POST
/calls.endEnd a registered call
Ends a registered call and records its final duration when supplied. Use the id returned by calls.add to identify the call being ended.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
tokenstringrequired
Authentication token supplied in the request header; the required scope is `calls:write`.
Details for ending a registered call.
idstringrequired
`id` returned when registering the call using the [`calls.add`](/methods/calls.add) method.
durationintegeroptional
Call duration in seconds
200Returns an object with `ok` set to true confirming that the call was ended.
okbooleanrequired
defaultReturned when the call identifier, authentication, or request data cannot be processed; the response contains `ok` set to false.
okbooleanrequired
Error handling
id must be supplied and must identify a call registered through calls.add. When provided, duration must be an integer representing the call length in seconds.