Troubleshooting

Every error response carries an error message, and the quoted strings below are the exact messages Surface sends, so you can search this page for the text you got back. Branch on the HTTP status first. The full table of statuses and limits is in Errors and limits.

If the verdict itself looks wrong (something benign flagged, or a threat let through), see False positives and missed threats.

Every request comes back 401 authentication required#

Surface didn't recognize the credential, so the request was treated as anonymous.

403 permission denied: scans:write required#

The key authenticated, but its role isn't allowed to submit scans. Analyst and Viewer are read-only. Use a key with the Scanner role, or Admin, or a custom role that grants write on scans. The same message shape names other permissions on other routes (profiles:write, account:write, and so on). See Access Control.

403 with code: "plan_required"#

The request needs something your plan doesn't include. The message names it, for example webhooks is not included on the free plan. The body also carries feature and current_plan. Features gated this way include webhooks, auto-block IP and the Blocked IPs list, analytics, the audit log, custom roles and scan export.

Creating a profile past your plan's allowance returns the same code, with a message like the starter plan includes 1 scan profile(s); this account has 1. Built-in profiles don't count toward it.

Upgrade, or leave that setting out of the request. Pricing shows which plan includes what.

403 Payload scanning is not enabled for this scan profile.#

The profile linked to your key has Enable payload scan turned off. Turn it on for that profile, or scan with a key linked to a profile that allows payloads. See Scan Profiles.

403 IP address is blocked#

A profile with Auto-block IP turned on saw a malicious file from this address. The response includes reason and ip. A blocked address can't submit scans to that account until it's unblocked. Any address can be unblocked on any plan:

See IP blocking.

My upload is refused with 400 File type "exe" is not allowed by scan profile "Default"#

The profile that ran the scan doesn't accept that extension, so the file was never scanned. The body lists the profile's allowedTypes. The built-in Default profile excludes executables and scripts on purpose.

Built-in profiles can't be edited. Saving one returns built-in profiles cannot be modified; create a custom profile instead. So either link your key to the built-in All File Types profile, or create a custom profile that accepts the types you need and link the key to that. A profile_id sent with the request overrides the key's linked profile, and a profile_id that doesn't exist returns 400 scan profile not found. See Scan Profiles.

413 on a file or payload that isn't that big#

There are three different 413s:

Message What it means
File exceeds maximum size (N MB for your plan) The file is over the lower of two caps: your plan's file size and the profile's Max file size. A profile can set a lower cap than your plan, but never a higher one.
decoded payload exceeds size limit (N bytes max) A payload over the payload cap. The cap applies after base64 decoding.
This file is too large to scan on the hosted service. … The file is under your caps, but the hosted scanner can't fit it in memory.

For a big file, the scanner binary has no per-file ceiling of its own on paid plans. Current plan caps are on Pricing.

429 rate limit exceeded#

You're over your plan's per-minute request rate. The scan response tells you which limit you hit with plan and limit_per_minute. Back off and retry, or spread requests out. Other endpoints answer an over-limit request with Retry-After: 60 and send X-RateLimit-Limit / X-RateLimit-Remaining on every response.

Feedback reports have a separate daily cap, and going over it returns feedback rate limit exceeded, try again later.

See Usage and quotas.

402 monthly scan quota exceeded (N/M scans used)#

Your plan's monthly scan allowance is used up. GET /api/account/usage shows scans_used, max_scans and reset_at, when the count goes back to zero.

A different 402, async scanning is not included on the <plan> plan, means you sent ?defer=true on a plan without async scanning. Drop the flag, and the scan runs synchronously.

503 Server at capacity, try again shortly or Scan engine unavailable: …#

The scanner couldn't take the scan right now. Both responses carry a Retry-After header. The SDKs retry these on their own within their timeout, and you should do the same if you call the API directly. See When Surface is unavailable.

My deferred scan stays pending#

A deferred scan the scanner can't finish doesn't stay pending. It completes with threatLevel: "Error". Finished deferred scans show up in Scan History, and if the profile has a webhook, it gets the result too. See Async Scanning.

The result says Rejected or Error#

Both mean nothing was scanned, so there's no verdict. Both set recommendedAction to Block and carry an error saying why. Never treat either as clean.

See Verdicts.

Everything comes back Review#

Review means "a person should look at this before it goes through". These are the common reasons you get a lot of it:

If you're instead gating on threatLevel == "Clean" and rejecting good files, that's a different problem: formats with minimal coverage, such as JARs, top out at Informational, which is still Allow. Branch on recommendedAction. See Tune strictness and reject.

My webhook never fires#

Test webhook fails#

Test webhook sends a signed sample delivery (marked "test": true) and reports the outcome:

If the delivery arrives but your signature check fails:

See Webhooks.

My MCP client shows no Surface tools#

It depends on which server you connected:

See MCP Server.

The scanner binary won't update, or stops scanning#

See Scanner Binary.

Still stuck?#

Include the requestId from the failing response when you report a problem. It identifies the exact request. Support is best-effort with no guaranteed response time; see Support.