scribase
Scribase Mail

Send email from Python

Scribase Mail has no published Python SDK; send mail with the standard requests library against https://mail-api.scribase.com/emails, the same payload shape Resend's Python SDK sends.

Last checked November 24, 2026.

Send with requests

A standard POST with a bearer token. No install beyond requests, which most Python projects already have.

send.pypy
import os
import requests

response = requests.post(
    "https://mail-api.scribase.com/emails",
    headers={"Authorization": f"Bearer {os.environ['SCRIBASE_MAIL_KEY']}"},
    json={
        "from": "Acme <hello@acme.com>",
        "to": ["you@example.com"],
        "subject": "It works",
        "html": "<p>Sent through Scribase Mail.</p>",
    },
    timeout=30,
)
response.raise_for_status()
print(response.json()["id"])

Or test it with curl first

The same request, outside Python, to confirm the key and domain work before wiring up application code.

sh
curl -X POST https://mail-api.scribase.com/emails \
  -H "Authorization: Bearer $SCRIBASE_MAIL_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "Acme <hello@acme.com>",
    "to": ["you@example.com"],
    "subject": "It works",
    "html": "<p>Sent through Scribase Mail.</p>"
  }'

Try it without a verified domain

Create an sk_test_ key in the dashboard; sends with it are simulated and never delivered. Recipients on test.scribase.dev script the outcome (delivered@test.scribase.dev, bounced@test.scribase.dev, complained@test.scribase.dev), so a webhook handler can be exercised for real.

FAQ

Questions people ask

Is there a scribase or resend package on PyPI for this?

Not from Scribase. Resend publishes its own Python SDK, but it targets resend.com directly and has no base-URL override today, so plain requests (or httpx) against the REST API is the direct path from Python.

What does the response look like?

A JSON body with the new email id: response.json()["id"]. GET /emails/{id} returns a last_event field (queued, sent, delivered, bounced, complained, failed).

Can I send without an API key while testing?

No key means no call, but an sk_test_ key sends with no verified domain: every send is simulated and never delivered, so your Python code runs end to end before any DNS work.