{"openapi":"3.1.0","info":{"title":"Rephonic (BYOK) API","version":"0.1.0","description":"Rephonic (BYOK) lets an AI assistant read your own Rephonic data through the Rephonic API with a key you supply (Rephonic API key). Read-only: 11 tools (get_quota, search_podcasts, search_episodes, autocomplete_search, lookup_podcast, get_podcast, get_podcast_demographics, list_episodes, get_trends, list_chart_categories, get_chart). The BYOK key travels with each request, is used for that one...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-rephonic.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-rephonic/docs"},"termsOfService":"https://connectorbay.com/byok-rephonic/terms"},"servers":[{"url":"https://byok-rephonic.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-rephonic/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/get_quota":{"post":{"operationId":"get_quota","summary":"Show the key's request quota and how many requests have been used this month. Use for \"How many Rephonic API requests ha","description":"Show the key's request quota and how many requests have been used this month. Use for \"How many Rephonic API requests have I used this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_quotaArguments","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/search_podcasts":{"post":{"operationId":"search_podcasts","summary":"Search podcasts by topic, title or publisher; returns listener estimates, Spotify followers, social reach, genres and id","description":"Search podcasts by topic, title or publisher; returns listener estimates, Spotify followers, social reach, genres and ids. Supports quotes, AND, OR and -negation. Use for \"Which podcasts about climate change have the most listeners\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"description":"Search text; quotes for exact phrases, AND, OR and -negation are supported.","maxLength":300,"title":"Query","type":"string"},"mode":{"anyOf":[{"enum":["topics","titles","publishers"],"type":"string"},{"type":"null"}],"default":"topics","description":"Match against topics, titles or publishers.","title":"Mode"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Results per page (maximum 100).","title":"Per Page"},"page":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["query"],"title":"search_podcastsArguments","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/search_episodes":{"post":{"operationId":"search_episodes","summary":"Search episodes by title, show notes and transcripts, optionally within one podcast or only recent ones. Use for \"Which ","description":"Search episodes by title, show notes and transcripts, optionally within one podcast or only recent ones. Use for \"Which podcast episodes mentioned 'solid state batteries' in the last week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"description":"Search text; quotes, AND, OR and -negation are supported.","maxLength":300,"title":"Query","type":"string"},"podcast_id":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Limit to one podcast id from search_podcasts.","title":"Podcast Id"},"threshold":{"anyOf":[{"maximum":1209600,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only episodes published within the last N seconds (maximum 1209600, 14 days).","title":"Threshold"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Results per page (maximum 100).","title":"Per Page"},"page":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["query"],"title":"search_episodesArguments","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/autocomplete_search":{"post":{"operationId":"autocomplete_search","summary":"Suggest search keywords and matching podcasts for a partial query, in topics, titles, publishers or episodes mode. Use f","description":"Suggest search keywords and matching podcasts for a partial query, in topics, titles, publishers or episodes mode. Use for \"Suggest podcast topics that start with 'marketing'\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"description":"Partial search text.","maxLength":100,"title":"Query","type":"string"},"mode":{"description":"What to suggest for.","enum":["topics","titles","publishers","episodes"],"title":"Mode","type":"string"}},"required":["query","mode"],"title":"autocomplete_searchArguments","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/lookup_podcast":{"post":{"operationId":"lookup_podcast","summary":"Find the Rephonic podcast for an external identifier (give exactly one of itunes_id, spotify_id, feed_url or youtube_cha","description":"Find the Rephonic podcast for an external identifier (give exactly one of itunes_id, spotify_id, feed_url or youtube_channel_id). Returns a possibly empty list. Use for \"What is the Rephonic id of the Apple Podcasts show 1545953110\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"itunes_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Apple Podcasts id (numeric).","title":"Itunes Id"},"spotify_id":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Spotify show id (22 characters).","title":"Spotify Id"},"feed_url":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Full RSS feed URL.","title":"Feed Url"},"youtube_channel_id":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"YouTube channel id starting with UC.","title":"Youtube Channel Id"}},"title":"lookup_podcastArguments","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_podcast":{"post":{"operationId":"get_podcast","summary":"Get one podcast's metadata, listener estimates, estimated ad cost, chart rankings, subscriber counts on other apps and l","description":"Get one podcast's metadata, listener estimates, estimated ad cost, chart rankings, subscriber counts on other apps and latest episode. Use for \"How big is the Huberman Lab podcast and where does it chart\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"podcast_id":{"description":"Rephonic podcast id, a slug such as 'huberman-lab', from search_podcasts or lookup_podcast.","maxLength":200,"title":"Podcast Id","type":"string"}},"required":["podcast_id"],"title":"get_podcastArguments","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_podcast_demographics":{"post":{"operationId":"get_podcast_demographics","summary":"Get estimated listener demographics of a podcast: countries, age groups, education, professions, interests and household","description":"Get estimated listener demographics of a podcast: countries, age groups, education, professions, interests and household income. Use for \"Who listens to the Huberman Lab podcast by age and country\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"podcast_id":{"description":"Rephonic podcast id, a slug such as 'huberman-lab', from search_podcasts or lookup_podcast.","maxLength":200,"title":"Podcast Id","type":"string"}},"required":["podcast_id"],"title":"get_podcast_demographicsArguments","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_episodes":{"post":{"operationId":"list_episodes","summary":"List a podcast's episodes with date, duration, summary, popularity and transcript availability, newest first, optionally","description":"List a podcast's episodes with date, duration, summary, popularity and transcript availability, newest first, optionally filtered by text. 25 per page at most. Use for \"What are the latest episodes of the Huberman Lab podcast\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"podcast_id":{"description":"Rephonic podcast id.","maxLength":120,"title":"Podcast Id","type":"string"},"query":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Only episodes matching this text.","title":"Query"},"per_page":{"anyOf":[{"maximum":25,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Results per page (maximum 25).","title":"Per Page"},"page":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["podcast_id"],"title":"list_episodesArguments","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_trends":{"post":{"operationId":"get_trends","summary":"Get history of downloads_per_episode, social_reach or spotify_followers for up to 3 podcasts as [unix time, value] pairs","description":"Get history of downloads_per_episode, social_reach or spotify_followers for up to 3 podcasts as [unix time, value] pairs. Use for \"How have the listeners per episode of climate-one changed over time\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"podcast_ids":{"description":"Comma-separated podcast ids, at most 3.","maxLength":300,"title":"Podcast Ids","type":"string"},"metrics":{"description":"Comma-separated metrics, at most 5, from downloads_per_episode, social_reach, spotify_followers.","maxLength":100,"title":"Metrics","type":"string"}},"required":["podcast_ids","metrics"],"title":"get_trendsArguments","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_chart_categories":{"post":{"operationId":"list_chart_categories","summary":"List the chart categories and countries available for a platform's podcast charts. Use for \"Which podcast chart categori","description":"List the chart categories and countries available for a platform's podcast charts. Use for \"Which podcast chart categories exist on Spotify\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"platform":{"description":"Chart source: apple, spotify or youtube.","enum":["apple","spotify","youtube"],"title":"Platform","type":"string"}},"required":["platform"],"title":"list_chart_categoriesArguments","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_chart":{"post":{"operationId":"get_chart","summary":"Get the latest podcast chart for a platform, country and category (updated daily) with positions and rank change. Use fo","description":"Get the latest podcast chart for a platform, country and category (updated daily) with positions and rank change. Use for \"What are the top podcasts on Apple in the United States right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"platform":{"description":"Chart source: apple, spotify or youtube.","enum":["apple","spotify","youtube"],"title":"Platform","type":"string"},"country":{"description":"Country slug from list_chart_categories, for example united-states.","maxLength":60,"title":"Country","type":"string"},"category":{"description":"Category slug from list_chart_categories, or 'all' for the overall chart.","maxLength":80,"title":"Category","type":"string"}},"required":["platform","country","category"],"title":"get_chartArguments","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}}}}