{"openapi":"3.1.0","info":{"title":"Mailosaur (BYOK) API","version":"0.1.0","description":"Mailosaur (BYOK) lets an AI assistant read your own Mailosaur data through the Mailosaur API with a key you supply (API key). Read-only: 6 tools (list_servers, get_server, list_messages, get_deliverability_report, get_usage_limits, list_usage_transactions). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent to...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-mailosaur.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-mailosaur/docs"},"termsOfService":"https://connectorbay.com/byok-mailosaur/terms"},"servers":[{"url":"https://byok-mailosaur.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-mailosaur/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_servers":{"post":{"operationId":"list_servers","summary":"List your Mailosaur servers (virtual inboxes for email and SMS testing) in alphabetical order with id, name, users and m","description":"List your Mailosaur servers (virtual inboxes for email and SMS testing) in alphabetical order with id, name, users and message count. Use for \"Which Mailosaur inboxes do I have and how many messages are in each\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_serversArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_server":{"post":{"operationId":"get_server","summary":"Get one Mailosaur server by id: name, users and message count. Use for \"How many messages are in Mailosaur server abcd12","description":"Get one Mailosaur server by id: name, users and message count. Use for \"How many messages are in Mailosaur server abcd1234\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"server_id":{"description":"Server id (from list_servers).","maxLength":200,"title":"Server Id","type":"string"}},"required":["server_id"],"title":"get_serverArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_messages":{"post":{"operationId":"list_messages","summary":"List message summaries of one server, newest first: id, received time, type (Email or SMS), subject, sender and recipien","description":"List message summaries of one server, newest first: id, received time, type (Email or SMS), subject, sender and recipients. Message bodies are not returned. Use for \"What was the latest email that reached my Mailosaur test inbox\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"server":{"description":"Server id to list messages from.","maxLength":40,"title":"Server","type":"string"},"received_after":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only messages received after this ISO 8601 date-time.","title":"Received After"},"dir":{"anyOf":[{"enum":["Received","Sent"],"type":"string"},{"type":"null"}],"default":null,"description":"Direction: Received (default) or Sent.","title":"Dir"},"items_per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Messages per page (1 to 100, default 20).","title":"Items Per Page"},"page":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Page number, starting at 0.","title":"Page"}},"required":["server"],"title":"list_messagesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_deliverability_report":{"post":{"operationId":"get_deliverability_report","summary":"Analyse one received email for deliverability: SPF, DKIM and DMARC results, block-list checks, content issues, DNS recor","description":"Analyse one received email for deliverability: SPF, DKIM and DMARC results, block-list checks, content issues, DNS records and SpamAssassin score. Use for \"Does Mailosaur message 77061c9f-da47-4009-9f33-9715a3bbf00c pass SPF, DKIM and DMARC\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"message_id":{"description":"Message id (from list_messages).","maxLength":200,"title":"Message Id","type":"string"}},"required":["message_id"],"title":"get_deliverability_reportArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_usage_limits":{"post":{"operationId":"get_usage_limits","summary":"Show account limits and current usage for servers, users, emails, SMS, previews and numbers (needs an account-level key)","description":"Show account limits and current usage for servers, users, emails, SMS, previews and numbers (needs an account-level key). Use for \"How close am I to my Mailosaur email limit\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_usage_limitsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_usage_transactions":{"post":{"operationId":"list_usage_transactions","summary":"List the last 31 days of daily usage: emails, SMS and previews per day (needs an account-level key). Use for \"How many e","description":"List the last 31 days of daily usage: emails, SMS and previews per day (needs an account-level key). Use for \"How many emails did my Mailosaur account receive per day this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_usage_transactionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}