Private Voice Chats
Calls calleeAddress. Fails with 403 when either user only accepts calls from friends and they are not friends, or one blocked the other, and with 409 when either user is already in, or being invited to, another private or community voice chat.
Signed Fetch authentication. See ADR-44 for more details about the authentication mechanism.
0x0000000000000000000000000000000000000001Call started
Invalid request or missing authentication
The authenticated user is not allowed to perform this action
The action conflicts with the current state
Internal server error
POST /v1/private-voice-chats HTTP/1.1
Host: social-api.decentraland.org
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"calleeAddress": "0x0000000000000000000000000000000000000001"
}{
"data": {
"callId": "123e4567-e89b-12d3-a456-426614174000"
}
}Returns the call the authenticated user is being invited to, or 404 when there is none.
Signed Fetch authentication. See ADR-44 for more details about the authentication mechanism.
Incoming call
Invalid request or missing authentication
Not found
Internal server error
GET /v1/private-voice-chats/incoming HTTP/1.1
Host: social-api.decentraland.org
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"callId": "123e4567-e89b-12d3-a456-426614174000",
"callerAddress": "text"
}
}Ends the call, or cancels it before it is accepted. Either participant can do it.
Signed Fetch authentication. See ADR-44 for more details about the authentication mechanism.
ID of the private voice chat
Call ended
No content
Invalid request or missing authentication
Not found
Internal server error
DELETE /v1/private-voice-chats/{callId} HTTP/1.1
Host: social-api.decentraland.org
Authorization: YOUR_API_KEY
Accept: */*
No content
The callee accepts the call, getting the credentials to join it (200), or rejects it (204). Only the callee can do either.
Signed Fetch authentication. See ADR-44 for more details about the authentication mechanism.
ID of the private voice chat
Call accepted
Call rejected
Invalid request or missing authentication
The authenticated user is not allowed to perform this action
Not found
Internal server error
PATCH /v1/private-voice-chats/{callId} HTTP/1.1
Host: social-api.decentraland.org
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"intention": "accepted"
}{
"data": {
"callId": "123e4567-e89b-12d3-a456-426614174000",
"connectionUrl": "text"
}
}Last updated