{"openapi":"3.1.0","info":{"title":"Junction (BYOK) API","version":"0.1.0","description":"Junction (BYOK) lets an AI assistant read your own Junction data through the Junction API with a key you supply (Junction team API key). Read-only: 9 tools (list_providers, list_users, get_user_connections, get_user_devices, get_activity_summary, get_workouts_summary, get_sleep_summary, get_body_summary, get_meal_summary). The BYOK key travels with each request, is used for that one call only and...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-junction.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-junction/docs"},"termsOfService":"https://connectorbay.com/byok-junction/terms"},"servers":[{"url":"https://byok-junction.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-junction/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_providers":{"post":{"operationId":"list_providers","summary":"List the wearable and health-app providers Junction supports with slug, authentication type and which data resources eac","description":"List the wearable and health-app providers Junction supports with slug, authentication type and which data resources each one offers. Use for \"Which wearables can Junction connect to\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"region":{"description":"Junction data region of your team: 'us' or 'eu' (your API key starts with pk_us_ or pk_eu_).","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Region","type":"string"}},"required":["region"],"title":"list_providersArguments","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_users":{"post":{"operationId":"list_users","summary":"List the users of your Junction team with your own client user ID, creation time and connected sources. Offset-based: li","description":"List the users of your Junction team with your own client user ID, creation time and connected sources. Offset-based: limit up to 500. Use for \"Which users does my Junction team have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"region":{"description":"Junction data region of your team: 'us' or 'eu' (your API key starts with pk_us_ or pk_eu_).","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Region","type":"string"},"offset":{"anyOf":[{"maximum":1000000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many users to skip (default 0).","title":"Offset"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"How many users to return (1 to 500, default 100).","title":"Limit"}},"required":["region"],"title":"list_usersArguments","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_user_connections":{"post":{"operationId":"get_user_connections","summary":"List the providers one user has connected with connection time, status (connected or error) and which data resources are","description":"List the providers one user has connected with connection time, status (connected or error) and which data resources are available. Use for \"Which wearables has Junction user 9d1c3a2e-0000-4000-8000-000000000001 connected\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"region":{"description":"Junction data region of your team: 'us' or 'eu' (your API key starts with pk_us_ or pk_eu_).","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Region","type":"string"},"user_id":{"description":"Junction user ID (a UUID) of one of your team's users, as returned by list_users.","maxLength":200,"title":"User Id","type":"string"}},"required":["region","user_id"],"title":"get_user_connectionsArguments","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_user_devices":{"post":{"operationId":"get_user_devices","summary":"List the devices that have reported data for one user with provider, source type, manufacturer, model and version. Use f","description":"List the devices that have reported data for one user with provider, source type, manufacturer, model and version. Use for \"Which devices has Junction user 9d1c3a2e-0000-4000-8000-000000000001 used\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"region":{"description":"Junction data region of your team: 'us' or 'eu' (your API key starts with pk_us_ or pk_eu_).","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Region","type":"string"},"user_id":{"description":"Junction user ID (a UUID) of one of your team's users, as returned by list_users.","maxLength":200,"title":"User Id","type":"string"}},"required":["region","user_id"],"title":"get_user_devicesArguments","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_activity_summary":{"post":{"operationId":"get_activity_summary","summary":"Get daily activity summaries of one user between two dates: steps, distance, calories (total and active), minutes at low","description":"Get daily activity summaries of one user between two dates: steps, distance, calories (total and active), minutes at low, medium and high intensity, floors and heart rate average, minimum, maximum and resting. Use for \"How many steps did Junction user 9d1c3a2e-0000-4000-8000-000000000001 take each day last week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"region":{"description":"Junction data region of your team: 'us' or 'eu' (your API key starts with pk_us_ or pk_eu_).","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Region","type":"string"},"user_id":{"description":"Junction user ID (a UUID) of one of your team's users, as returned by list_users.","maxLength":200,"title":"User Id","type":"string"},"start_date":{"description":"First day to read, as YYYY-MM-DD or an ISO date-time (a bare date starts at 00:00:00).","maxLength":40,"title":"Start Date","type":"string"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Last day to read, as YYYY-MM-DD or an ISO date-time (a bare date ends at 23:59:59); default is today.","title":"End Date"},"provider":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data from this provider slug, for example 'oura' or 'fitbit' (see list_providers). Default: all connected providers.","title":"Provider"}},"required":["region","user_id","start_date"],"title":"get_activity_summaryArguments","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_workouts_summary":{"post":{"operationId":"get_workouts_summary","summary":"Get workouts of one user between two dates: title, sport, start and end time, distance, calories, heart rate, moving tim","description":"Get workouts of one user between two dates: title, sport, start and end time, distance, calories, heart rate, moving time, elevation gain, average speed and power. Use for \"What workouts did Junction user 9d1c3a2e-0000-4000-8000-000000000001 do in the first week of October\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"region":{"description":"Junction data region of your team: 'us' or 'eu' (your API key starts with pk_us_ or pk_eu_).","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Region","type":"string"},"user_id":{"description":"Junction user ID (a UUID) of one of your team's users, as returned by list_users.","maxLength":200,"title":"User Id","type":"string"},"start_date":{"description":"First day to read, as YYYY-MM-DD or an ISO date-time (a bare date starts at 00:00:00).","maxLength":40,"title":"Start Date","type":"string"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Last day to read, as YYYY-MM-DD or an ISO date-time (a bare date ends at 23:59:59); default is today.","title":"End Date"},"provider":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data from this provider slug, for example 'oura' or 'fitbit' (see list_providers). Default: all connected providers.","title":"Provider"}},"required":["region","user_id","start_date"],"title":"get_workouts_summaryArguments","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_sleep_summary":{"post":{"operationId":"get_sleep_summary","summary":"Get sleep summaries of one user between two dates: bedtime, type (long sleep, nap), total, deep, light, REM and awake se","description":"Get sleep summaries of one user between two dates: bedtime, type (long sleep, nap), total, deep, light, REM and awake seconds, efficiency, score, resting and average heart rate, HRV and respiratory rate. Use for \"How did Junction user 9d1c3a2e-0000-4000-8000-000000000001 sleep last week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"region":{"description":"Junction data region of your team: 'us' or 'eu' (your API key starts with pk_us_ or pk_eu_).","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Region","type":"string"},"user_id":{"description":"Junction user ID (a UUID) of one of your team's users, as returned by list_users.","maxLength":200,"title":"User Id","type":"string"},"start_date":{"description":"First day to read, as YYYY-MM-DD or an ISO date-time (a bare date starts at 00:00:00).","maxLength":40,"title":"Start Date","type":"string"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Last day to read, as YYYY-MM-DD or an ISO date-time (a bare date ends at 23:59:59); default is today.","title":"End Date"},"provider":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data from this provider slug, for example 'oura' or 'fitbit' (see list_providers). Default: all connected providers.","title":"Provider"}},"required":["region","user_id","start_date"],"title":"get_sleep_summaryArguments","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_body_summary":{"post":{"operationId":"get_body_summary","summary":"Get body measurement summaries of one user between two dates: weight in kg, body fat, water, muscle and bone percentages","description":"Get body measurement summaries of one user between two dates: weight in kg, body fat, water, muscle and bone percentages, BMI, lean mass and waist circumference, as reported by smart scales and apps. Use for \"What did Junction user 9d1c3a2e-0000-4000-8000-000000000001 weigh over the past month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"region":{"description":"Junction data region of your team: 'us' or 'eu' (your API key starts with pk_us_ or pk_eu_).","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Region","type":"string"},"user_id":{"description":"Junction user ID (a UUID) of one of your team's users, as returned by list_users.","maxLength":200,"title":"User Id","type":"string"},"start_date":{"description":"First day to read, as YYYY-MM-DD or an ISO date-time (a bare date starts at 00:00:00).","maxLength":40,"title":"Start Date","type":"string"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Last day to read, as YYYY-MM-DD or an ISO date-time (a bare date ends at 23:59:59); default is today.","title":"End Date"},"provider":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data from this provider slug, for example 'oura' or 'fitbit' (see list_providers). Default: all connected providers.","title":"Provider"}},"required":["region","user_id","start_date"],"title":"get_body_summaryArguments","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_meal_summary":{"post":{"operationId":"get_meal_summary","summary":"Get logged meals of one user between two dates from nutrition apps: time, name, energy and the carbohydrate, protein, fa","description":"Get logged meals of one user between two dates from nutrition apps: time, name, energy and the carbohydrate, protein, fat, fibre and sugar amounts in grams. Use for \"What meals did Junction user 9d1c3a2e-0000-4000-8000-000000000001 log yesterday\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"region":{"description":"Junction data region of your team: 'us' or 'eu' (your API key starts with pk_us_ or pk_eu_).","maxLength":200,"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Region","type":"string"},"user_id":{"description":"Junction user ID (a UUID) of one of your team's users, as returned by list_users.","maxLength":200,"title":"User Id","type":"string"},"start_date":{"description":"First day to read, as YYYY-MM-DD or an ISO date-time (a bare date starts at 00:00:00).","maxLength":40,"title":"Start Date","type":"string"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Last day to read, as YYYY-MM-DD or an ISO date-time (a bare date ends at 23:59:59); default is today.","title":"End Date"},"provider":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data from this provider slug, for example 'oura' or 'fitbit' (see list_providers). Default: all connected providers.","title":"Provider"}},"required":["region","user_id","start_date"],"title":"get_meal_summaryArguments","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}}}}