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.
Signed Fetch authentication. See ADR-44 for more details about the authentication mechanism.
Number of results per page. Values above the maximum are reduced to it.
100Number of results to skip. Values above 100000 are clamped to 100000.
0Users blocked by the authenticated user
Invalid request or missing authentication
Internal server error
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
}
}Blocks address for the authenticated user. Blocking a friend also ends the friendship. Blocking an address that is already blocked keeps the original blockedAt.
Signed Fetch authentication. See ADR-44 for more details about the authentication mechanism.
Ethereum address of the user to block
0x0000000000000000000000000000000000000001Pattern: ^0x[a-fA-F0-9]{40}$User blocked, with the blocked address and when it was blocked
Invalid request or missing authentication, including an attempt to block yourself
Too many friendship or block actions, try again later
Internal server error
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
}
}Removes the block the authenticated user placed on address. Does nothing if that block does not exist.
Signed Fetch authentication. See ADR-44 for more details about the authentication mechanism.
Ethereum address of the other user
^0x[a-fA-F0-9]{40}$User unblocked
No content
Invalid request or missing authentication
Too many friendship or block actions, try again later
Internal server error
DELETE /v1/blocks/{address} HTTP/1.1
Host: social-api.decentraland.org
Authorization: YOUR_API_KEY
Accept: */*
No content
Returns every address the authenticated user blocked and every address that blocked them.
Signed Fetch authentication. See ADR-44 for more details about the authentication mechanism.
Blocking status of the authenticated user
Invalid request or missing authentication
Internal server error
GET /v1/blocking-status HTTP/1.1
Host: social-api.decentraland.org
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"blockedUsers": [
"text"
],
"blockedByUsers": [
"text"
]
}
}Last updated