For the complete documentation index, see llms.txt. This page is also available as Markdown.

Private Voice Chats

Start a private voice chat

post
/v1/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.

Authorizations
AuthorizationstringRequired

Signed Fetch authentication. See ADR-44 for more details about the authentication mechanism.

Body
calleeAddressstringRequiredExample: 0x0000000000000000000000000000000000000001
Responses
201

Call started

application/json
post/v1/private-voice-chats
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"
  }
}

Get the incoming private voice chat

get
/v1/private-voice-chats/incoming

Returns the call the authenticated user is being invited to, or 404 when there is none.

Authorizations
AuthorizationstringRequired

Signed Fetch authentication. See ADR-44 for more details about the authentication mechanism.

Responses
200

Incoming call

application/json
get/v1/private-voice-chats/incoming
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"
  }
}

End a private voice chat

delete
/v1/private-voice-chats/{callId}

Ends the call, or cancels it before it is accepted. Either participant can do it.

Authorizations
AuthorizationstringRequired

Signed Fetch authentication. See ADR-44 for more details about the authentication mechanism.

Path parameters
callIdstring · uuidRequired

ID of the private voice chat

Responses
204

Call ended

No content

delete/v1/private-voice-chats/{callId}
DELETE /v1/private-voice-chats/{callId} HTTP/1.1
Host: social-api.decentraland.org
Authorization: YOUR_API_KEY
Accept: */*

No content

Accept or reject a private voice chat

patch
/v1/private-voice-chats/{callId}

The callee accepts the call, getting the credentials to join it (200), or rejects it (204). Only the callee can do either.

Authorizations
AuthorizationstringRequired

Signed Fetch authentication. See ADR-44 for more details about the authentication mechanism.

Path parameters
callIdstring · uuidRequired

ID of the private voice chat

Body
intentionstring · enumRequiredPossible values:
Responses
200

Call accepted

application/json
patch/v1/private-voice-chats/{callId}
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