For developers

Send one email. Keep the ID.

Start in your sandbox with a verified sender and a recipient you’re authorized to contact. The same message ID ties your request to the events that follow.

Send your first email

Send a test email from your application’s server and follow it in the delivery log.

  1. Create a workspace and application. Select Sandbox and the brand you want to send from.
  2. Use the sending option available for your workspace. For managed email, use the connection set up for your workspace. If you’re using an existing supported provider, connect your account first.
  3. Add a sending domain, publish the DNS records shown in ValoSend, and verify it. Use Getting started to send a controlled sandbox test to the workspace owner’s verified address. The test tier is restricted to this recipient.
  4. Create an API key with permission to send transactional email for that application, brand, and sender. Store it on your server.
  5. Call POST /v1/messages with your sender and recipient IDs and an idempotency key for the test event. Save the returned message ID and open it in the console to see delivery updates.
# Run on your server. Fill in the IDs from your sandbox.
curl --fail-with-body "$VALOSEND_API_URL/v1/messages" \
  -H "Authorization: Bearer $VALOSEND_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: account-update:your-stable-event-id" \
  --data-binary @- <<'JSON'
{
  "scope": {
    "organization_id": "<workspace-id>",
    "application_id": "<application-id>",
    "environment": "sandbox",
    "brand_id": "<brand-id>"
  },
  "sender_id": "<sender-id>",
  "recipient_id": "<recipient-id>",
  "channel": "email",
  "purpose": "transactional",
  "content": {
    "kind": "inline",
    "subject": "Your account update",
    "text": "Your account update is ready."
  }
}
JSON

# Retry a timeout with the same idempotency key and body.
# Save the message_id from the response to check delivery.

Managed email is in limited rollout. Check availability for your workspace before moving production traffic.

Run the Node.js quickstart

The example runs on Node.js 24 with no additional packages. Use the API origin for your workspace and the IDs from your sandbox.

VALOSEND_API_URL and VALOSEND_API_KEY
Your HTTPS API origin and server-side sending key.
VALOSEND_SCOPE_JSON
A JSON object with organization_id, application_id, environment set to sandbox, and brand_id.
VALOSEND_SENDER_ID and VALOSEND_RECIPIENT_ID
Your verified sender and authorized test recipient IDs.
VALOSEND_TEST_EVENT_ID
A stable ID for this test. Reuse it if the request times out.
node first-email.mjs

HTTP API & retries

Use POST /v1/emails for transactional mail to an email address. Use POST /v1/messages for enrolled recipients.

  1. For POST /v1/emails, choose Transactional email addresses under Integrations → SMTP submission. Use the issued password as a Bearer token and supply an Idempotency-Key from your backend. Send JSON with from (the bound sender), to (one email address), subject, and text or html or both.
  2. For production, activate a paid plan in Billing and issue the credential in the production scope after verifying the sender. Test-tier mail is limited to the registered owner’s verified address in the sandbox.
  3. For POST /v1/messages, use your scoped API key and include the organization, application, environment, brand and recipient ID in the request.
  4. If the request times out, retry with the same idempotency key and identical body. A different body under the same key returns a conflict.
  5. Save the message ID. The API receipt confirms ValoSend recorded the request. Check the message record or subscribe to webhooks for sending, delivery, and bounce events.
  6. If the sending outcome is uncertain after submission, investigate the original message before sending another one. Check for a suppression, expired deadline, or permission error before retrying a failed request.

Customer domain setup

Embed DNS instructions and verification status inside your app when embedded sender setup is available for your workspace.

  1. Add the customer’s sending domain in ValoSend. Create a setup installation for that domain and your app’s HTTPS origin, then verify the origin with the TXT record ValoSend returns.
  2. After your app confirms the signed-in customer can manage the domain, use a dedicated setup key on your backend to request a short-lived session for that installation.
  3. Use the setup session to show the domain’s DNS records and let the customer check verification from your app. Keep the setup key and the sending key on your server.
  4. Complete sender setup and test delivery before sending production email from that domain.
Embedded setup guide (repository access required)

SMTP setup

Use SMTP if your workspace has an endpoint and your application accepts an SMTP configuration.

  1. Choose the application, environment, brand and verified sender. For signup, resend, recovery and email change, choose Transactional email addresses and save the password when it is shown. Suppressions apply even on first contact.
  2. Configure the hostname for your workspace on port 465 with implicit TLS, or 587 with required STARTTLS when enabled. Keep the credential in your server’s secret store.
  3. A 250 response means ValoSend accepted the message for processing. If the client missed the response, check the delivery log before retrying to avoid duplicates.
  4. In Supabase Authentication → Email → SMTP Settings, enable custom SMTP for the project and enter the displayed host, port, username, password and sender address. Keep tracking off and test the confirmation links in your templates.
# Use the SMTP settings for your workspace.
Host       <workspace SMTP hostname>
Port       465
Security   Implicit TLS
Username   <scoped SMTP username>
Password   <SMTP secret>

# Keep the secret on your server.
# Check the delivery log if the client missed a 250 response.
# Test sign-in and recovery in isolation before switching them.

Delivery webhooks

Send delivery updates to your application over HTTPS.

  1. Register an event destination for the application scope you want to receive and store its signing secret on your server.
  2. Verify the HMAC-SHA256 signature and timestamp against the original request bytes before parsing JSON.
  3. Save the event ID with the resulting change or outbox entry in one transaction. If ValoSend retries delivery of an event, use the ID to skip duplicate work.
  4. Return a success response after recording the event. An event can be replayed independently of the original email.

Verify the signature

Read ValoSend-Event-Id, ValoSend-Timestamp, and ValoSend-Key-Version from the request headers. Sign the following prefix, immediately followed by the raw request body, with the secret for that key version.

v1\nEVENT_ID\nUNIX_SECONDS\nKEY_VERSION\n

Compare the unpadded base64url digest with the value after v1= in ValoSend-Signature using a constant-time comparison. Reject timestamps more than five minutes from your server’s clock.

Webhook receiver example (repository access required)

Connect your AI agent

Hosted MCP is available for qualified clients with an approved transactional email grant.

ValoSend must preregister the public client ID and its exact callback. Look for your client under Registered client applications in the console. If it’s missing, you can copy the URL and review setup while access is pending.

Set up Devin

  1. In Customize → MCPs, choose + → New MCP. Name it ValoSend, select HTTP, and paste the server URL.
  2. Choose OAuth → OAuth credentials. Enter the client ID issued by ValoSend and leave the secret blank. ValoSend must already have registered the exact callback shown by Devin.
  3. Save and choose Connect.

Approve in ValoSend

  1. When your client opens ValoSend, sign in to your workspace. New users should create a workspace and then restart the connection from their client.
  2. Choose your workspace, application, environment and brand. Select the agent grant, review the requested access and approve.
  3. Return to your client. It can now call the tools allowed by your grant. Reconnect when access expires.
Review clients or revoke access in Agents & MCP

Qualified clients for Hosted MCP 0.5.0

  • Devin Cloud cloud-2026-12-04 · MCP 2025-11-25 · valosend:operations
OAuth, scopes and protocol reference

Hosted MCP uses stateless Streamable HTTP over POST with JSON responses. Use the exact server URL as the OAuth resource. Use authorization code with PKCE S256 and verify the callback state and issuer. ValoSend uses public clients with token endpoint authentication method none. Dynamic registration and Client ID Metadata Documents (CIMD) are unavailable. Transactional email access tokens last up to 15 minutes. Reconnect through OAuth to renew access.

Transactional email scopes

Read-only capabilities, operation lookup and diagnosis within the approved grant.

Use tools/list to see the transactional email tools available to the current grant. Workspace management has a separate scope and qualification path.

Read capabilities

For MCP 2025-11-25, complete initialize and notifications/initialized first.

Send this JSON body by POST with Authorization: Bearer <access_token>, Content-Type: application/json, Accept: application/json, text/event-stream, and the negotiated MCP-Protocol-Version header. The response uses JSON.

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "valosend_get_capabilities",
    "arguments": {}
  }
}

For an operation covered by the grant, pass its operation_id to valosend_get_operation to inspect its state, or to valosend_diagnose to see the next action supported by the recorded evidence. Both tools work with read-only consent.

Errors and support

  • 503 capability_disabled means hosted access is closed.
  • 401 with a Bearer challenge points to protected resource metadata. Reconnect if the token expired or was revoked.
  • 403 insufficient_scope can indicate that separately approved runtime access is required. A plain 403 can indicate that the current grant denies the operation.
  • Check the tool result’s isError and structuredContent.error.code even when HTTP returns 200. If idempotency_conflict occurs, recover the original action and compare the reviewed inputs before preparing any new action.

See service status, ValoSend support and the legal and privacy register. When reporting a failed call, share its time, tool name, error code and request ID if available. Keep access tokens, authorization codes and message content private.

Local MCP setup (repository access required)

The local MCP launcher requires access to the ValoSend repository.

  1. Follow the local setup guide to configure an API origin, scoped agent credential, sandbox context, and durable action journal.
  2. Use the guide for your client to launch the local MCP process over stdio.
  3. List capabilities and preview a test email within the sandbox grant. Review the recipient, content, and quoted cost before executing the approved preview.
  4. Save the task, action, and operation IDs so you can look up the original operation after a timeout.
Read the local MCP guide
# Run from a ValoSend checkout after pnpm install.
node packages/sdk/src/mcp-stdio.ts

# Use the client setup guide and an agent with scoped access.
# Save action receipts so you can look them up after a restart.

Export data & close an account

Export your workspace data or track an account closure from the console.

  1. Request an export for your organization. The export includes the data your role can access within retention limits.
  2. Review what happens to access, sending, and retained data before requesting closure.
  3. Closure revokes credentials and delegated access for future requests. Records of submitted or unresolved sends are kept for reconciliation.
  4. Track pending exports, scheduled deletions, and retention exceptions in the console. Backups expire on their own retention schedule.