Sample - Slack Web API
POST/calls.end

End 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.

1 parameter · 2 body fields
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

2 status codes
200Returns an object with `ok` set to true confirming that the call was ended.
okbooleanrequired
Allowed:true
defaultReturned when the call identifier, authentication, or request data cannot be processed; the response contains `ok` set to false.
okbooleanrequired
Allowed:false

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.