{"openapi":"3.1.0","info":{"title":"Lomadee (BYOK) API","version":"0.1.0","description":"Lomadee (BYOK) lets an AI assistant read your own Lomadee data through the Lomadee API with a key you supply (Lomadee affiliate API key (x-api-key)). Read-only: 10 tools (list_brands, get_brand, list_campaigns, get_campaign, list_channels, list_orders, get_order, list_products, list_short_urls, get_short_url). The BYOK key travels with each request, is used for that one call only and is never...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-lomadee.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-lomadee/docs"},"termsOfService":"https://connectorbay.com/byok-lomadee/terms"},"servers":[{"url":"https://byok-lomadee.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-lomadee/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_brands":{"post":{"operationId":"list_brands","summary":"List Lomadee advertiser brands with segment, site, network state, ratings and commission. Search and filter, paged (20 m","description":"List Lomadee advertiser brands with segment, site, network state, ratings and commission. Search and filter, paged (20 max). Use for \"Which brands can I promote on Lomadee in the fashion segment\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"search":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Full-text search on the brand name.","title":"Search"},"categories":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Categories, comma separated.","title":"Categories"},"is_exclusive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"Only exclusive brands.","title":"Is Exclusive"},"is_highlight":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"Only highlighted brands.","title":"Is Highlight"},"is_favorite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"Only your favorite brands.","title":"Is Favorite"},"is_public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"true for public brands, false for private ones.","title":"Is Public"},"page":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"limit":{"anyOf":[{"maximum":20,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Items per page (1 to 20).","title":"Limit"}},"title":"list_brandsArguments","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_brand":{"post":{"operationId":"get_brand","summary":"Get one Lomadee brand: segment, site, network ratings, commission and the channels you can use for it. Use for \"What com","description":"Get one Lomadee brand: segment, site, network ratings, commission and the channels you can use for it. Use for \"What commission does Lomadee brand 62a1b2c3d4e5f6a7b8c9d0e1 pay\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"brand_id":{"description":"Brand (organization) id from list_brands.","maxLength":200,"title":"Brand Id","type":"string"}},"required":["brand_id"],"title":"get_brandArguments","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 Lomadee coupon and offer campaigns with period, status, coupon code, landing URL and brand. Filter by brand, name o","description":"List Lomadee coupon and offer campaigns with period, status, coupon code, landing URL and brand. Filter by brand, name or status, paged (20 max). Use for \"Which Lomadee coupons are active right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organization_id":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Brand (organization) id from list_brands.","title":"Organization Id"},"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Campaign name to search for.","title":"Name"},"is_highlight":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"Only highlighted campaigns.","title":"Is Highlight"},"status":{"anyOf":[{"enum":["onTime","expired","scheduled"],"type":"string"},{"type":"null"}],"default":null,"description":"Campaign status: onTime, expired or scheduled.","title":"Status"},"types":{"anyOf":[{"enum":["PersonalCoupon","GenericCoupon","Offer"],"type":"string"},{"type":"null"}],"default":null,"description":"Campaign type: PersonalCoupon, GenericCoupon or Offer.","title":"Types"},"page":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"limit":{"anyOf":[{"maximum":20,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Items per page (1 to 20).","title":"Limit"}},"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 Lomadee campaign: type, status, period, coupon code, description, landing URL and brand. Use for \"What are the d","description":"Get one Lomadee campaign: type, status, period, coupon code, description, landing URL and brand. Use for \"What are the details of Lomadee campaign 65f1a2b3c4d5e6f7a8b9c0d1\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"campaign_id":{"description":"Campaign id from list_campaigns.","maxLength":200,"title":"Campaign Id","type":"string"}},"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/list_channels":{"post":{"operationId":"list_channels","summary":"List your Lomadee affiliate channels (the traffic sources you registered) with active state. Use for \"Which Lomadee chan","description":"List your Lomadee affiliate channels (the traffic sources you registered) with active state. Use for \"Which Lomadee channels do I have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_channelsArguments","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_orders":{"post":{"operationId":"list_orders","summary":"List your Lomadee affiliate orders with status, order value, commission and its status, brand and your tracking tag. Fil","description":"List your Lomadee affiliate orders with status, order value, commission and its status, brand and your tracking tag. Filter by date range, paged. Use for \"How much commission did I earn on Lomadee this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"from_date":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the period, date YYYY-MM-DD.","title":"From Date"},"to_date":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"End of the period, date YYYY-MM-DD.","title":"To Date"},"organization_id":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Brand (organization) id from list_brands.","title":"Organization Id"},"mdasc":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only orders carrying this custom tracking identifier.","title":"Mdasc"},"page":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Items per page (1 to 100).","title":"Limit"}},"title":"list_ordersArguments","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_order":{"post":{"operationId":"get_order","summary":"Get one Lomadee affiliate order: status, value, commission, brand and tracking tag. Use for \"What is the status of Lomad","description":"Get one Lomadee affiliate order: status, value, commission, brand and tracking tag. Use for \"What is the status of Lomadee order 66a0b1c2d3e4f5a6b7c8d9e0\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"order_id":{"description":"Order id from list_orders.","maxLength":200,"title":"Order Id","type":"string"}},"required":["order_id"],"title":"get_orderArguments","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_products":{"post":{"operationId":"list_products","summary":"Search the Lomadee product catalog of brands you can promote: name, description, URL, availability and price options. Pa","description":"Search the Lomadee product catalog of brands you can promote: name, description, URL, availability and price options. Paged. Use for \"Which products under R$100 does Lomadee list for brand 62a1b2c3d4e5f6a7b8c9d0e1\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"search":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Search term for the product name or description.","title":"Search"},"price":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Price range in cents as from:to, for example 1000:10000.","title":"Price"},"organization_ids":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Brand ids, comma separated.","title":"Organization Ids"},"is_available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"Only available products.","title":"Is Available"},"page":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":5,"description":"Items per page (1 to 100).","title":"Limit"}},"title":"list_productsArguments","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_short_urls":{"post":{"operationId":"list_short_urls","summary":"List the affiliate short links you created on Lomadee with original URL, click count, brand and link type. Paged. Use fo","description":"List the affiliate short links you created on Lomadee with original URL, click count, brand and link type. Paged. Use for \"Which Lomadee short links did I create and how many clicks do they have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"search":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Search term for the link.","title":"Search"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"true (default) for active links, false for inactive ones.","title":"Active"},"organization_id":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Brand (organization) id from list_brands.","title":"Organization Id"},"type":{"anyOf":[{"enum":["Coupon","BrandPage","Offer","Custom"],"type":"string"},{"type":"null"}],"default":null,"description":"Link type: Coupon, BrandPage, Offer or Custom.","title":"Type"},"page":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Items per page (1 to 100).","title":"Limit"}},"title":"list_short_urlsArguments","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_short_url":{"post":{"operationId":"get_short_url","summary":"Get one Lomadee short link by its code: original URL, short URL, click count, brand and link type. Use for \"How many cli","description":"Get one Lomadee short link by its code: original URL, short URL, click count, brand and link type. Use for \"How many clicks does my Lomadee short link AbC123 have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"url_code":{"description":"The urlCode of the short link from list_short_urls.","maxLength":200,"title":"Url Code","type":"string"}},"required":["url_code"],"title":"get_short_urlArguments","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}}}}