Skip to main content
DELETE
/
api
/
blocked-companies
/
{domain}
Remove a blocked company by domain
curl --request DELETE \
  --url https://app.puffle.ai/api/blocked-companies/{domain} \
  --header 'Authorization: Bearer <token>'
{ "success": true }

Overview

Removes a row from blocked_companies matching user_id + domain. The {domain} segment must be URL-encoded; the server decodeURIComponents and lowercases it before matching. Delete-by-domain is a no-op at the database level when no row matches — the response is still { success: true }.

AI agent notes

Idempotent. Safe to call repeatedly; unknown domains still return 200 with { success: true }. No way to distinguish “deleted a row” from “nothing matched” via this endpoint.Name-only entries aren’t reachable here. Blocklist rows created with name but no domain have domain: null and cannot be removed via this path — use deleteBlockedCompanyById with the row UUID instead.Encoding. Hosts with special characters (ports, punycode, etc.) must be URL-encoded in the path. The server decodes once — double-encoding breaks the match.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

domain
string
required

URL-encoded domain to remove. The server decodes and lowercases before matching.

Response

Delete issued. Returns { success: true } whether or not a row was actually removed (Supabase delete is a no-op on no match).

success
enum<boolean>
required
Available options:
true