Connect your AI tool to Unsendbox
Unsendbox exposes a Streamable HTTP MCP endpoint. OAuth-capable clients can discover the authorization flow automatically; custom clients can use an organization-bound API key when they support the x-api-key header.
Get your API keyAuthentication options
Choose OAuth for a client that supports MCP authorization discovery. Use an API key only with a custom client that explicitly supports x-api-key.
1) Use the MCP endpoint
Enter this Streamable HTTP endpoint in an MCP-capable client.
- 01MCP endpoint: https://app.unsendbox.com/api/v1/mcp
- 02Keep the endpoint URL unchanged when the client performs OAuth discovery.
- 03Keep API keys, OAuth client secrets, and authorization codes private.
2) Connect Claude Code with OAuth
Configure Claude Code with the HTTP MCP endpoint, then allow its OAuth flow to run.
- 01Run `claude mcp add --transport http unsendbox https://app.unsendbox.com/api/v1/mcp` to add the remote HTTP server.
- 02Use Claude Code OAuth for this endpoint. Do not add an API key or Authorization header to this server entry.
- 03On first connection, let Claude Code follow the protected-resource metadata link and complete authorization code flow with S256 PKCE.
- 04Claude Code owns its local loopback callback; do not enter a hosted callback URL manually.
- 05The protected-resource metadata URL is https://app.unsendbox.com/api/v1/mcp/.well-known/oauth-protected-resource.
- 06The authorization-server metadata URL is https://app.unsendbox.com/api/v1/mcp/.well-known/oauth-authorization-server.
- 07Run `claude mcp list` or `/mcp` to confirm the server connects and its tools are available.
3) Connect Claude Desktop or another OAuth-capable client
Use the same endpoint and let the client discover the authorization server.
- 01Add https://app.unsendbox.com/api/v1/mcp as the remote MCP server URL.
- 02When the client requests authentication, use OAuth discovery rather than an API-key header.
- 03Approve the requested scopes only after checking the client and redirect destination.
- 04For native clients, loopback callbacks may use a dynamic port when the registered callback is a portless localhost, 127.0.0.1, or IPv6 loopback URL.
4) Use an API key with a custom client
This path is for clients that can send the x-api-key header and do not use OAuth discovery.
- 01Go to Dashboard → Settings → API Keys and create or copy a key for the intended organization.
- 02Send the key as x-api-key on every MCP HTTP request. Do not put it in a URL, prompt, or public configuration.
- 03Pass organizationId only when the key is not already organization-bound or when selecting an allowed organization for an unbound key.
- 04A key-bound organization is authoritative. A conflicting organizationId request is rejected.
create_address(domain="rebookos.win", local_part="hello", mirror_to=["hello@rebookos.io"])
list_threads(filter={"domain":"rebookos.win"})
get_thread(thread_id="thr_92f...")
reply(thread_id="thr_92f...", from="hello@rebookos.win", body="Thanks — here are next steps…")
send(to=["lead@company.com"], from="hello@rebookos.win", subject="Quick question", body="…", intent="outreach")OAuth discovery contract
These are the local MCP OAuth facts clients can verify from the metadata endpoints.
Verify your connection
After authentication, confirm both tool access and the organization context.
Safety notes
Treat the client credential and the OAuth grant as production secrets.