You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3.1 KiB
3.1 KiB
Call API
- API v1: 🏁 Removed with API v4
- API v2: 🏁 Removed with API v4
- API v3: 🏁 Removed with API v4
- API v4: Base endpoint
/ocs/v2.php/apps/spreed/api/v4
Get list of connected participants
-
Method:
GET -
Endpoint:
/call/{token} -
Response:
-
Status code:
200 OK403 ForbiddenWhen the conversation is read-only404 Not FoundWhen the conversation could not be found for the participant412 Precondition FailedWhen the lobby is active and the user is not a moderator
-
Data: Array of participants, each participant has at least:
field type Added Removed Description actorTypestring v3 Actor type of the attendee (see Constants - Attendee types) actorIdstring v3 The user id, guest random id or email address of the attendee userIdstring v1 v3 The user id replaced with actorType = users and actorId being the userId displayNamestring v3 The display name of the attendee lastPingint v1 Timestamp of the last ping of the user (should be used for sorting) sessionIdstring v1 512 character long string
-
Join a call
-
Method:
POST -
Endpoint:
/call/{token} -
Data:
field type Description flagsint Flags what streams are provided by the participant (see Constants - Participant in-call flag) -
Response:
- Status code:
200 OK403 ForbiddenWhen the conversation is read-only404 Not FoundWhen the conversation could not be found for the participant404 Not FoundWhen the user did not join the conversation before412 Precondition FailedWhen the lobby is active and the user is not a moderator
- Status code:
Update call flags
-
Method:
PUT -
Endpoint:
/call/{token} -
Data:
field type Description flagsint Flags what streams are provided by the participant (see Constants - Participant in-call flag) -
Response:
- Status code:
200 OK400 Bad RequestWhen the user is not in the call400 Bad RequestWhen the flags do not contain "in call"403 ForbiddenWhen the conversation is read-only404 Not FoundWhen the conversation could not be found for the participant404 Not FoundWhen the user did not join the conversation before412 Precondition FailedWhen the lobby is active and the user is not a moderator
- Status code:
Leave a call (but staying in the conversation for future calls and chat)
-
Method:
DELETE -
Endpoint:
/call/{token} -
Response:
- Status code:
200 OK403 ForbiddenWhen the conversation is read-only404 Not FoundWhen the conversation could not be found for the participant404 Not FoundWhen the user did not join the conversation before412 Precondition FailedWhen the lobby is active and the user is not a moderator
- Status code: