{"openapi":"3.1.0","info":{"title":"Ecomail (BYOK) API","version":"0.1.0","description":"Ecomail (BYOK) lets an AI assistant read your own Ecomail data through the Ecomail API with a key you supply (Ecomail API key). Read-only: 12 tools (list_lists, get_list, list_list_subscribers, get_subscriber, list_subscriber_transactions, list_campaigns, get_campaign, get_campaign_stats, list_automations, get_automation_stats, get_transactional_stats, list_domains). The BYOK key travels with...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-ecomail.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-ecomail/docs"},"termsOfService":"https://connectorbay.com/byok-ecomail/terms"},"servers":[{"url":"https://byok-ecomail.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-ecomail/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_lists":{"post":{"operationId":"list_lists","summary":"List the subscriber lists of the account with name, sender name and email and double opt-in setting. Use for \"Which subs","description":"List the subscriber lists of the account with name, sender name and email and double opt-in setting. Use for \"Which subscriber lists do I have in Ecomail\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_listsArguments","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_list":{"post":{"operationId":"get_list","summary":"Get one subscriber list: custom fields, groups, segments, active subscriber count and subscriber counts by status. Use f","description":"Get one subscriber list: custom fields, groups, segments, active subscriber count and subscriber counts by status. Use for \"How many active subscribers does Ecomail list 1 have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"list_id":{"description":"Id of the subscriber list; list_lists returns it.","maximum":999999999,"minimum":1,"title":"List Id","type":"integer"}},"required":["list_id"],"title":"get_listArguments","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_list_subscribers":{"post":{"operationId":"list_list_subscribers","summary":"List the subscribers of one list with email, status, subscription date, source and profile (name, city, country, phone).","description":"List the subscribers of one list with email, status, subscription date, source and profile (name, city, country, phone). Up to 5000 per page; default status is subscribed. Use for \"Show the subscribers of Ecomail list 1 who unsubscribed\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"list_id":{"description":"Id of the subscriber list; list_lists returns it.","maximum":999999999,"minimum":1,"title":"List Id","type":"integer"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"status":{"anyOf":[{"enum":["subscribed","unsubscribed","not_confirmed","bounced","complained"],"type":"string"},{"type":"null"}],"default":null,"description":"Subscriber status to show.","title":"Status"},"per_page":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Subscribers per page (1 to 500).","title":"Per Page"}},"required":["list_id"],"title":"list_list_subscribersArguments","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_subscriber":{"post":{"operationId":"get_subscriber","summary":"Look up one subscriber by email across all lists: name, country, tags, rating, bounce counters and the lists they belong","description":"Look up one subscriber by email across all lists: name, country, tags, rating, bounce counters and the lists they belong to. Use for \"Which Ecomail lists is jane@example.com on\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"email":{"description":"Subscriber email address.","maxLength":200,"title":"Email","type":"string"}},"required":["email"],"title":"get_subscriberArguments","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_subscriber_transactions":{"post":{"operationId":"list_subscriber_transactions","summary":"List purchases recorded for a subscriber email, newest first, with order id, shop, amount, tax, shipping, status and ite","description":"List purchases recorded for a subscriber email, newest first, with order id, shop, amount, tax, shipping, status and items. Use for \"What did jane@example.com buy according to Ecomail\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"email":{"description":"Subscriber email address.","maxLength":200,"title":"Email","type":"string"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"per_page":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Transactions per page (1 to 500).","title":"Per Page"}},"required":["email"],"title":"list_subscriber_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}},"/v1/tools/list_campaigns":{"post":{"operationId":"list_campaigns","summary":"List email campaigns with title, subject, sender, send time, recipient count and status code. Filter by title, subject, ","description":"List email campaigns with title, subject, sender, send time, recipient count and status code. Filter by title, subject, status or dates. Use for \"What campaigns did I send in Ecomail this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Campaigns per page.","title":"Per Page"},"filter_title":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only campaigns whose title matches.","title":"Filter Title"},"filter_subject":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only campaigns whose subject matches.","title":"Filter Subject"},"filter_status":{"anyOf":[{"maximum":100,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Only campaigns with this status code.","title":"Filter Status"},"filter_date_from":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Only campaigns from this date, YYYY-MM-DD.","title":"Filter Date From"},"filter_date_to":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Only campaigns up to this date, YYYY-MM-DD.","title":"Filter Date To"},"sort_by":{"anyOf":[{"enum":["id","sent_at","changed_at","title","status"],"type":"string"},{"type":"null"}],"default":"id","description":"Sort column.","title":"Sort By"},"sort_dir":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":"desc","description":"Sort direction.","title":"Sort Dir"}},"title":"list_campaignsArguments","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_campaign":{"post":{"operationId":"get_campaign","summary":"Get one campaign with its settings, recipient lists and, once sent, delivery, open, click, bounce and unsubscribe statis","description":"Get one campaign with its settings, recipient lists and, once sent, delivery, open, click, bounce and unsubscribe statistics. Use for \"How did Ecomail campaign 1 perform\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"campaign_id":{"description":"Campaign id; list_campaigns returns it.","maximum":999999999,"minimum":1,"title":"Campaign Id","type":"integer"}},"required":["campaign_id"],"title":"get_campaignArguments","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_campaign_stats":{"post":{"operationId":"get_campaign_stats","summary":"Get aggregated statistics of one campaign: delivered, opens, clicks, bounces, spam, unsubscribes and conversions with ra","description":"Get aggregated statistics of one campaign: delivered, opens, clicks, bounces, spam, unsubscribes and conversions with rates. Use for \"What was the open rate of Ecomail campaign 1\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"campaign_id":{"description":"Campaign id; list_campaigns returns it.","maximum":999999999,"minimum":1,"title":"Campaign Id","type":"integer"}},"required":["campaign_id"],"title":"get_campaign_statsArguments","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_automations":{"post":{"operationId":"list_automations","summary":"List the automations (pipelines) of the account with name, connected list and dates. Use for \"Which automations run in m","description":"List the automations (pipelines) of the account with name, connected list and dates. Use for \"Which automations run in my Ecomail account\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_automationsArguments","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_automation_stats":{"post":{"operationId":"get_automation_stats","summary":"Get aggregate statistics of one automation: triggered, ended, sent, opens, clicks, bounces and conversions. Use for \"How","description":"Get aggregate statistics of one automation: triggered, ended, sent, opens, clicks, bounces and conversions. Use for \"How is Ecomail automation 1 performing\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"pipeline_id":{"description":"Automation id; list_automations returns it.","maximum":999999999,"minimum":1,"title":"Pipeline Id","type":"integer"}},"required":["pipeline_id"],"title":"get_automation_statsArguments","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_transactional_stats":{"post":{"operationId":"get_transactional_stats","summary":"Get delivery statistics for transactional emails over the past 6 months: injected, delivered, opened, clicked and bounce","description":"Get delivery statistics for transactional emails over the past 6 months: injected, delivered, opened, clicked and bounced counts and rates. Use for \"How are my Ecomail transactional emails doing\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_transactional_statsArguments","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_domains":{"post":{"operationId":"list_domains","summary":"List the sending domains with whether each is valid and whether it is blocked. Use for \"Are my Ecomail sending domains v","description":"List the sending domains with whether each is valid and whether it is blocked. Use for \"Are my Ecomail sending domains valid\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_domainsArguments","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}}}}