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

Blocks

Get blocked users (addresses only)

get
/v2/blocks

Returns a paginated list of the addresses the authenticated user blocked, with when each one was blocked. The response has no profile information: clients resolve the profiles themselves.

Authorizations
AuthorizationstringRequired

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

Query parameters
limitinteger · min: 1 · max: 100Optional

Number of results per page. Values above the maximum are reduced to it.

Default: 100
offsetintegerOptional

Number of results to skip. Values above 100000 are clamped to 100000.

Default: 0
Responses
200

Users blocked by the authenticated user

application/json
get/v2/blocks
GET /v2/blocks HTTP/1.1
Host: social-api.decentraland.org
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": {
    "results": [
      {
        "address": "text",
        "blockedAt": 1
      }
    ],
    "total": 1,
    "limit": 1,
    "offset": 1,
    "page": 1,
    "pages": 1
  }
}

Block a user

post
/v1/blocks

Blocks address for the authenticated user. Blocking a friend also ends the friendship. Blocking an address that is already blocked keeps the original blockedAt.

Authorizations
AuthorizationstringRequired

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

Body
addressstringRequired

Ethereum address of the user to block

Example: 0x0000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{40}$
Responses
201

User blocked, with the blocked address and when it was blocked

application/json
post/v1/blocks
POST /v1/blocks HTTP/1.1
Host: social-api.decentraland.org
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 56

{
  "address": "0x0000000000000000000000000000000000000001"
}
{
  "data": {
    "address": "text",
    "blockedAt": 1
  }
}

Unblock a user

delete
/v1/blocks/{address}

Removes the block the authenticated user placed on address. Does nothing if that block does not exist.

Authorizations
AuthorizationstringRequired

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

Path parameters
addressstringRequired

Ethereum address of the other user

Pattern: ^0x[a-fA-F0-9]{40}$
Responses
204

User unblocked

No content

delete/v1/blocks/{address}
DELETE /v1/blocks/{address} HTTP/1.1
Host: social-api.decentraland.org
Authorization: YOUR_API_KEY
Accept: */*

No content

Get the blocking status

get
/v1/blocking-status

Returns every address the authenticated user blocked and every address that blocked them.

Authorizations
AuthorizationstringRequired

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

Responses
200

Blocking status of the authenticated user

application/json
get/v1/blocking-status
GET /v1/blocking-status HTTP/1.1
Host: social-api.decentraland.org
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": {
    "blockedUsers": [
      "text"
    ],
    "blockedByUsers": [
      "text"
    ]
  }
}

Last updated