Search + K

Command Palette

Search for a command to run...

Sign In

Check if a user is blocked by the authenticated user

GET /user/blocks/{username}
Copy endpoint
https://api.github.com

Returns a 204 if the given user is blocked by the authenticated user. Returns a 404 if the given user is not blocked by the authenticated user, or if the given user account has been identified as spam by GitHub.

Parameters

path Path Parameters

Name Type
username required

The handle for the GitHub user account.

string

Responses

204

If the user is blocked

unknown

Redirects

304

Not modified

unknown

Client Errors

401 application/json

Requires authentication

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
403 application/json

Forbidden

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
404 application/json

If the user is not blocked

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}