Help centre
Answers to common questions
Accounts, validation, sending, billing and the API. If you do not find what you need, contact us and we will help.
Account and security
Getting set up and keeping your account safe.
How do I get an API key?
Create an account, then open API Keys in the dashboard and create a key. Copy it when it is shown: the full key is displayed only once and cannot be viewed again, because keys are stored hashed. If you lose one, create a new key. You can keep several keys at once, for example one for production and one for staging.
Can I limit what an API key can do?
Yes. A key can be limited to scopes: validate, validate:bulk, send, send:bulk, domains, templates, suppressions and history. A key with no scopes can use everything, and a call outside a key's scopes returns 403. On plans that include it, you can also restrict a key to specific IP addresses; requests from other addresses are rejected with 401.
Does ScrubiMail support two-factor authentication?
Yes. You can turn on two-factor authentication with an authenticator app (TOTP) in your account security settings. You can also sign in with Google.
Where should I keep my API key?
On your server, in an environment variable or secrets manager. Never put an API key in browser or mobile app code; call ScrubiMail from your backend instead. If a key leaks, deactivate it in the dashboard and create a new one.
How do I contact support?
Use the contact form or email [email protected]. Include your account email and, for API problems, the request you sent and the error you received. Never send your API key.
Email validation
What a check does and how to read the result.
What does a validation check?
Syntax (RFC 5322), DNS and MX records, a live SMTP mailbox check, catch-all detection, disposable domains, role-based addresses such as info@ or admin@, and reputation and spam-trap signals. You get a verdict, a 0 to 100 score and a breakdown of each check.
How long does a validation take?
The default deep check includes a live mailbox check and typically takes about 2 to 8 seconds. Add ?mode=fast for a syntax and DNS check that returns in well under a second, which suits instant feedback while someone is typing.
How should I use the result?
Accept an address when is_valid is true and reject it when false. Treat catch-all domains, role addresses and low scores as risky, which is a business decision for you to make. The suggestions field can contain a typo fix, such as gmial.com to gmail.com, worth showing to the user.
Can I validate a whole list?
Yes. Send a list to POST /validate-bulk/ and you get a job_id back; poll GET /bulk-status/{job_id}/ for progress and a summary. You can also upload a CSV from the dashboard.
Are repeat lookups cached?
They can be. A cached result is marked with cached: true in the response.
Email sending and SMTP
Domains, delivery and the relay.
Do I have to verify a domain before sending?
Yes. You can only send from a domain you have verified. Add the domain in the dashboard and publish the SPF and DKIM records it shows you, then click Verify. A DMARC record is recommended. DNS changes can take minutes, sometimes up to 48 hours.
What SPF record do I need?
Add include:_spf.scrubimail.com to your SPF record, for example v=spf1 include:_spf.scrubimail.com ~all. A domain may have only one SPF record, so if you already have one, add the include to it instead of creating a second.
What are the SMTP relay settings?
Host smtp.scrubimail.com, port 587 with STARTTLS (not SSL/TLS on port 465). The username is your ScrubiMail account email and the password is an API key with the send scope. The From address can be any address on a verified domain.
Why was my message rejected?
Every message is checked when it is submitted. A 550 5.7.1 reply means the From address is on an unverified domain, the recipient is suppressed or you are out of credits; the reply text says which. 451 means try again later, and mail libraries retry automatically. 535 means the login was wrong: use your account email as the username and an active key with the send scope as the password.
What happens to bounces and unsubscribes?
Hard bounces are added to your suppression list automatically and suppressed addresses are never emailed. Complaints and unsubscribes are recorded as suppressions too, and you can manage the list in the dashboard or through the API.
Can I personalise messages and send attachments?
Yes. Subjects and bodies sent through the API support tags such as {{first_name|there}}, where the text after the bar is used when there is no value. Through the API you can attach up to 10 files totalling 10 MB. Over SMTP, attach files in your mail library, up to 20 MB per message.
Credits and billing
How you are charged and where to see it.
How do credits work?
Each validated address and each sent email uses 1 credit. Validation and sending each have their own credit balance. Buy or top up from Billing in the dashboard.
Where can I see plans and prices?
On the pricing page, which shows the current plans and pay-as-you-go credit pricing. Prices are never quoted anywhere else, so what you see there is what applies.
How do I pay?
Payments are processed by Paystack. You manage your plan and credit purchases from Billing in the dashboard.
What happens when I run out of credits?
The API returns 402 with the code insufficient_credits, and the SMTP relay rejects the message with a 550 reply. Top up your balance and retry.
API
Authentication, limits and errors.
How do I authenticate?
Send your key in the X-API-Key header. Authorization: ApiKey <key> also works. Do not send an API key as Authorization: Bearer; Bearer is only for dashboard login sessions.
What is the API base URL?
https://api.scrubimail.com/scrubimail/api/v1. Request and response bodies are JSON, and paths end in a trailing slash, for example /validate/.
What are the rate limits?
They depend on your plan. Over the limit the API returns 429; wait for the number of seconds in the Retry-After header (also in error.meta.retry_after in the response body) before retrying.
What do the error codes mean?
400 invalid request (the body says which field), 401 a missing, invalid or expired key, or a request from an IP not on the key's allow-list (with a WWW-Authenticate header), 402 not enough credits, 403 a key that lacks the required scope, 404 not found, 429 rate limited, and 5xx a temporary problem to retry with backoff. Validation errors come as {success: false, error: {code, message, details}}, so branch on error.code.
Still stuck?
Send us a message with your account email and what you tried.