Functions
calls-add
fn (request: CallsAddRequest): CallsAddResponse
fn (request: CallsAddRequest, opts: Map): CallsAddResponse
POST /calls.add - Register a new call. Requires an external_unique_id
and join_url. Optionally include a title, participants, and start
time.
Example
response ::slack::calls/calls-add(::slack::calls/CallsAddRequest({
external_unique_id: "call-2025-0042",
join_url: "https://example.com/join/42",
title: "Weekly sync",
users: [{slack_id: "U1234567"}, {external_id: "guest-1", display_name: "Sam"}]
}))
response.call.id
calls-end
fn (request: CallsEndRequest): CallsEndResponse
fn (request: CallsEndRequest, opts: Map): CallsEndResponse
POST /calls.end - End a call. Pass the call id and optionally a
duration in seconds.
Example
response ::slack::calls/calls-end(::slack::calls/CallsEndRequest({
id: "R1234567",
duration: 1800
}))
response.ok
calls-info
fn (request: CallsInfoRequest): CallsInfoResponse
fn (request: CallsInfoRequest, opts: Map): CallsInfoResponse
GET /calls.info - Get information about a call. Returns the call object with title, participants, and status.
Example
response ::slack::calls/calls-info(::slack::calls/CallsInfoRequest({
id: "R1234567"
}))
response.call.title
calls-participants-add
fn (request: CallsParticipantsAddRequest): CallsParticipantsAddResponse
fn (request: CallsParticipantsAddRequest, opts: Map): CallsParticipantsAddResponse
POST /calls.participants.add - Add new participants to a call. Each user
in the users Vec should be a Map with a slack_id or external_id
and display_name.
Example
response ::slack::calls/calls-participants-add(::slack::calls/CallsParticipantsAddRequest({
id: "R1234567",
users: [{slack_id: "U1234567"}, {external_id: "guest-1", display_name: "Sam"}]
}))
response.ok
calls-participants-remove
fn (request: CallsParticipantsRemoveRequest): CallsParticipantsRemoveResponse
fn (request: CallsParticipantsRemoveRequest, opts: Map): CallsParticipantsRemoveResponse
POST /calls.participants.remove - Remove participants from a call. Each
user in the users Vec should be a Map with a slack_id or
external_id.
Example
response ::slack::calls/calls-participants-remove(::slack::calls/CallsParticipantsRemoveRequest({
id: "R1234567",
users: [{slack_id: "U1234567"}]
}))
response.ok
calls-update
fn (request: CallsUpdateRequest): CallsUpdateResponse
fn (request: CallsUpdateRequest, opts: Map): CallsUpdateResponse
POST /calls.update - Update information about a call. Can change the title and join URLs.
Example
response ::slack::calls/calls-update(::slack::calls/CallsUpdateRequest({
id: "R1234567",
title: "Weekly sync (moved)"
}))
response.call.title
rtm-connect
fn (request: RtmConnectRequest): RtmConnectResponse
fn (request: RtmConnectRequest, opts: Map): RtmConnectResponse
GET /rtm.connect - Start a Real Time Messaging session. Returns a WebSocket URL for receiving events in real time. Note: RTM may not be available for all token types (bot tokens may receive a not_allowed_token_type error).
Example
response ::slack::calls/rtm-connect(::slack::calls/RtmConnectRequest({}))
response.url // => "wss://wss-primary.slack.com/websocket/..."
response.team // => {id: "T1234", name: "My Team"}
response.self // => {id: "U1234", name: "my-bot"}
Types
CallsAddRequest
CallsAddRequest type {
external_unique_id: Str,
join_url: Str,
created_by: Str?,
date_start: Int?,
desktop_app_join_url: Str?,
external_display_id: Str?,
title: Str?,
users: Vec<Map>?
}
CallsAddResponse
CallsAddResponse type {
ok: Bool?,
error: Str?,
call: Map?
}
CallsEndRequest
CallsEndRequest type {
id: Str,
duration: Int?
}
CallsEndResponse
CallsEndResponse type {
ok: Bool?,
error: Str?
}
CallsInfoRequest
CallsInfoRequest type {
id: Str
}
CallsInfoResponse
CallsInfoResponse type {
ok: Bool?,
error: Str?,
call: Map?
}
CallsParticipantsAddRequest
CallsParticipantsAddRequest type {
id: Str,
users: Vec<Map>
}
CallsParticipantsAddResponse
CallsParticipantsAddResponse type {
ok: Bool?,
error: Str?
}
CallsParticipantsRemoveRequest
CallsParticipantsRemoveRequest type {
id: Str,
users: Vec<Map>
}
CallsParticipantsRemoveResponse
CallsParticipantsRemoveResponse type {
ok: Bool?,
error: Str?
}
CallsUpdateRequest
CallsUpdateRequest type {
id: Str,
title: Str?,
join_url: Str?,
desktop_app_join_url: Str?
}
CallsUpdateResponse
CallsUpdateResponse type {
ok: Bool?,
error: Str?,
call: Map?
}
RtmConnectRequest
RtmConnectRequest type {
batch_presence_aware: Bool?,
presence_sub: Bool?
}
RtmConnectResponse
RtmConnectResponse type {
ok: Bool?,
error: Str?,
url: Str?,
team: Map?,
self: Map?
}