Yondry B2b API
The b2b API from Yondry, for b2b.
The b2b API from Yondry, for b2b.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/yondry-app:yondry-app-b2b-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Yondry B2b API
version: 0.1.0
tags:
- name: B2B
paths:
/api/v1/b2b/planner/query:
post:
tags:
- B2B
summary: B2B Nl Query
description: 'Natural-language planner for B2B callers.
No end-user account required — the caller supplies a lat/lon instead of a
user JWT. The planner uses Google Places gap-fill to source nearby
attractions (the same mechanism used when a registered user''s library is
sparse in the requested area).
Returns 429 when the tenant''s monthly plan cap is exceeded.'
operationId: b2b_nl_query_api_v1_b2b_planner_query_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/B2BPlannerRequest'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/B2BPlannerResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
/api/v1/b2b/usage:
get:
tags:
- B2B
summary: B2B Usage
description: Return this tenant's plan usage for the current calendar month (UTC).
operationId: b2b_usage_api_v1_b2b_usage_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/B2BUsageResponse'
security:
- APIKeyHeader: []
/api/v1/b2b/branding:
get:
tags:
- B2B
summary: B2B Branding
description: White-label branding for this tenant's embeddable widget.
operationId: b2b_branding_api_v1_b2b_branding_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/B2BBrandingResponse'
security:
- APIKeyHeader: []
/api/v1/b2b/insights:
get:
tags:
- B2B
summary: B2B Insights
description: 'Usage analytics for this tenant: top moods, place types, and companions.'
operationId: b2b_insights_api_v1_b2b_insights_get
security:
- APIKeyHeader: []
parameters:
- name: days
in: query
required: false
schema:
type: integer
maximum: 365
minimum: 1
default: 30
title: Days
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/B2BInsightsResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
PlanningConflictOut:
properties:
type:
type: string
title: Type
stop_name:
type: string
title: Stop Name
detail:
type: string
title: Detail
suggestion:
type: string
title: Suggestion
type: object
required:
- type
- stop_name
- detail
- suggestion
title: PlanningConflictOut
TransitionSegment:
properties:
mode:
type: string
title: Mode
minutes:
type: integer
title: Minutes
distance_km:
type: number
title: Distance Km
is_estimated:
type: boolean
title: Is Estimated
default: true
type: object
required:
- mode
- minutes
- distance_km
title: TransitionSegment
description: Travel segment between two consecutive stops within the zone.
B2BPlannerResponse:
properties:
query:
type: string
title: Query
intent:
$ref: '#/components/schemas/PlannerIntent'
plans:
items:
$ref: '#/components/schemas/Plan'
type: array
title: Plans
weather:
anyOf:
- type: string
- type: 'null'
title: Weather
generated_at:
type: string
format: date-time
title: Generated At
type: object
required:
- query
- intent
- plans
- weather
- generated_at
title: B2BPlannerResponse
description: Response for POST /b2b/planner/query.
B2BBrandingResponse:
properties:
display_name:
type: string
title: Display Name
logo_url:
anyOf:
- type: string
- type: 'null'
title: Logo Url
accent_color:
anyOf:
- type: string
- type: 'null'
title: Accent Color
type: object
required:
- display_name
- logo_url
- accent_color
title: B2BBrandingResponse
description: Response for GET /b2b/branding — consumed by the embeddable widget.
DiscoveryConstraints:
properties:
max_travel_minutes:
type: integer
title: Max Travel Minutes
vibe_keywords:
items:
type: string
type: array
title: Vibe Keywords
must_haves:
items:
type: string
type: array
title: Must Haves
exclusions:
items:
type: string
type: array
title: Exclusions
type: object
required:
- max_travel_minutes
title: DiscoveryConstraints
description: Spatial/vibe constraints when the user wants us to find a destination.
AlternativeStop:
properties:
name:
type: string
title: Name
category:
type: string
title: Category
why:
type: string
title: Why
type: object
required:
- name
- category
- why
title: AlternativeStop
description: A backup option suggested alongside a primary plan stop.
JourneySegment:
properties:
from_location:
type: string
title: From Location
to_location:
type: string
title: To Location
mode:
type: string
title: Mode
minutes:
type: integer
title: Minutes
depart_time:
type: string
format: date-time
title: Depart Time
type: object
required:
- from_location
- to_location
- mode
- minutes
- depart_time
title: JourneySegment
description: Arrival or return leg between the user's start location and the destination zone.
PlannerIntent:
properties:
moods:
items:
type: string
type: array
title: Moods
place_types:
items:
type: string
type: array
title: Place Types
duration_hours:
anyOf:
- type: number
- type: 'null'
title: Duration Hours
companions:
items:
type: string
type: array
title: Companions
time_of_day:
anyOf:
- type: string
- type: 'null'
title: Time Of Day
budget:
anyOf:
- type: string
- type: 'null'
title: Budget
excluded_place_types:
items:
type: string
type: array
title: Excluded Place Types
prefer_discovery:
type: boolean
title: Prefer Discovery
default: false
vibe_conflicts:
items:
type: string
type: array
title: Vibe Conflicts
planning_mode:
anyOf:
- type: string
enum:
- local
- known_day_trip
- discovery_day_trip
- away_trip
- type: string
- type: 'null'
title: Planning Mode
destination:
anyOf:
- type: string
- type: 'null'
title: Destination
discovery_constraints:
anyOf:
- $ref: '#/components/schemas/DiscoveryConstraints'
- type: 'null'
start_location_type:
anyOf:
- type: string
enum:
- home
- custom
- current_location
- future_location
- type: string
- type: 'null'
title: Start Location Type
arrival_transport:
anyOf:
- type: string
- type: 'null'
title: Arrival Transport
local_transport:
anyOf:
- type: string
- type: 'null'
title: Local Transport
duration_minutes:
anyOf:
- type: integer
- type: 'null'
title: Duration Minutes
start_time:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Start Time
must_include_meal:
type: boolean
title: Must Include Meal
default: false
constraints_inferred:
items:
type: string
type: array
title: Constraints Inferred
ambiguity_flags:
items:
type: string
type: array
title: Ambiguity Flags
first_time_visitor:
anyOf:
- type: boolean
- type: 'null'
title: First Time Visitor
named_landmarks:
items:
type: string
type: array
title: Named Landmarks
type: object
title: PlannerIntent
description: Structured intent extracted from a free-text query by Claude Haiku.
B2BUsageResponse:
properties:
tenant:
type: string
title: Tenant
plan_limit_per_month:
anyOf:
- type: integer
- type: 'null'
title: Plan Limit Per Month
used_this_month:
type: integer
title: Used This Month
remaining:
anyOf:
- type: integer
- type: 'null'
title: Remaining
type: object
required:
- tenant
- plan_limit_per_month
- used_this_month
- remaining
title: B2BUsageResponse
description: Response for GET /b2b/usage.
B2BInsightsResponse:
properties:
tenant:
type: string
title: Tenant
period_days:
type: integer
title: Period Days
total_plans:
type: integer
title: Total Plans
top_moods:
items:
$ref: '#/components/schemas/InsightBucket'
type: array
title: Top Moods
top_place_types:
items:
$ref: '#/components/schemas/InsightBucket'
type: array
title: Top Place Types
companion_breakdown:
items:
$ref: '#/components/schemas/InsightBucket'
type: array
title: Companion Breakdown
type: object
required:
- tenant
- period_days
- total_plans
- top_moods
- top_place_types
- companion_breakdown
title: B2BInsightsResponse
description: Response for GET /b2b/insights.
InsightBucket:
properties:
label:
type: string
title: Label
count:
type: integer
title: Count
pct:
type: number
title: Pct
type: object
required:
- label
- count
- pct
title: InsightBucket
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
B2BPlannerRequest:
properties:
query:
type: string
maxLength: 500
minLength: 1
title: Query
lat:
type: number
maximum: 90.0
minimum: -90.0
title: Lat
lon:
type: number
maximum: 180.0
minimum: -180.0
title: Lon
radius_km:
type: number
maximum: 100.0
exclusiveMinimum: 0.0
title: Radius Km
default: 5.0
travel_mode:
type: string
pattern: ^(driving|walking|cycling)$
title: Travel Mode
default: walking
companion:
type: string
title: Companion
default: solo
vibes:
items:
type: string
type: array
title: Vibes
language:
type: string
maxLength: 20
minLength: 2
title: Language
default: en
type: object
required:
- query
- lat
- lon
title: B2BPlannerRequest
description: Request body for POST /b2b/planner/query.
TravelLegOut:
properties:
from_stop:
type: string
title: From Stop
to_stop:
type: string
title: To Stop
distance_km:
type: number
title: Distance Km
travel_mins:
type: integer
title: Travel Mins
travel_mode:
type: string
title: Travel Mode
type: object
required:
- from_stop
- to_stop
- distance_km
- travel_mins
- travel_mode
title: TravelLegOut
Plan:
properties:
label:
type: string
title: Label
stops:
items:
$ref: '#/components/schemas/PlanStop'
type: array
title: Stops
summary:
type: string
title: Summary
conflicts:
items:
$ref: '#/components/schemas/PlanningConflictOut'
type: array
title: Conflicts
total_duration_mins:
anyOf:
- type: integer
- type: 'null'
title: Total Duration Mins
plan_notes:
type: string
title: Plan Notes
default: ''
arrival_segment:
anyOf:
- $ref: '#/components/schemas/JourneySegment'
- type: 'null'
return_segment:
anyOf:
- $ref: '#/components/schemas/JourneySegment'
- type: 'null'
buffer_minutes:
type: integer
title: Buffer Minutes
default: 20
travel_note:
type: string
title: Travel Note
default: ''
type: object
required:
- label
- stops
- summary
title: Plan
description: One complete itinerary option returned by Claude Sonnet.
PlanStop:
properties:
place_id:
anyOf:
- type: string
- type: 'null'
title: Place Id
name:
type: string
title: Name
category:
type: string
title: Category
why:
type: string
title: Why
suggested_duration_minutes:
type: integer
title: Suggested Duration Minutes
is_discovery:
type: boolean
title: Is Discovery
default: false
is_meal:
type: boolean
title: Is Meal
default: false
lat:
anyOf:
- type: number
- type: 'null'
title: Lat
lng:
anyOf:
- type: number
- type: 'null'
title: Lng
admission_price:
anyOf:
- type: string
- type: 'null'
title: Admission Price
alternative_stops:
items:
$ref: '#/components/schemas/AlternativeStop'
type: array
title: Alternative Stops
travel_leg:
anyOf:
- $ref: '#/components/schemas/TravelLegOut'
- type: 'null'
arrival_time:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Arrival Time
transition_to_next:
anyOf:
- $ref: '#/components/schemas/TransitionSegment'
- type: 'null'
type: object
required:
- name
- category
- why
- suggested_duration_minutes
title: PlanStop
description: A single stop in an NL-generated plan.
securitySchemes:
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key
HTTPBearer:
type: http
scheme: bearer