Was this helpful?
Get a list of domains in your account's blocklist
/blocklist
Number of results per page
curl -L \ --url 'https://api.usercheck.com/blocklist' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[ { "domain": "example.com", "created_at": "2024-01-28T12:00:00Z" } ]
Add a new domain to your account's blocklist
example.com
curl -L \ --request POST \ --url 'https://api.usercheck.com/blocklist' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "domain": "example.com" }'
{ "domain": "example.com", "created_at": "2024-01-28T12:00:00Z" }
Check if a specific domain is in your account's blocklist
/blocklist/{domain}
Domain to check
curl -L \ --url 'https://api.usercheck.com/blocklist/{domain}' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
Remove a domain from your account's blocklist
Domain to remove
curl -L \ --request DELETE \ --url 'https://api.usercheck.com/blocklist/{domain}' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
No body