Prerequisites
- Optional
subject_idin the questionnaire from Subject management when you want the recommendation tied to a known subject. If you send it, it must exist for your account. - At least one successful analysis whose
video_idyou will reference:id_side_view_analysismust point to a completed side analysis (analysis_typeside_viewor legacyrunningin stored metadata).id_back_view_analysismust point to a completed back analysis (analysis_typeback_viewor legacypronation).
- You may pass one or both analysis ids. Passing both yields the richest context. If you send
form.subject_idand an analysis was started with asubject_id, those values must match.
Shoe catalog
Recommendations only include shoes that are active in your organization’s catalog. Inactive or missing models are excluded frombest_matching_shoe and all_matches, even when
they would otherwise match the runner profile.
Activate shoes in admin
Before you call the API, activate the models you want offered in results through the Organization API settings in the Ochy admin panel.External product catalogue
To connect an external product catalogue instead of (or in addition to) the catalog managed
in Ochy, contact the Ochy team. That integration is set up on your account by Ochy — it is not
configured through the Partner API alone.
Three-step flow
1
Submit the questionnaire
POST /shoeRecommendation/form with JSON body input.form (runner profile),
optional id_side_view_analysis, id_back_view_analysis, and optional favorite_brands.The response is 201 with { "shoe_recommendation_id": "..." }.2
Start processing
POST /shoeRecommendation/start with { "shoe_recommendation_id": "<id>" }.The response is 202 with a short confirmation message. Processing runs asynchronously.3
Get results
GET /shoeRecommendation/{shoe_recommendation_id}/result.While the job is queued or running, the API returns 404 with a JSON body that includes
status (pending or processing). If processing fails, you get 404 with status: failed.
On success, 200 returns only the business payload: recommendations, best_matching_shoe,
all_matches, and user_id. Each catalog shoe in best_matching_shoe and in all_matches
includes top-level gtins and mpns (arrays of strings, possibly empty), copied from
the catalog model for GTIN/EAN and manufacturer part numbers.Request body: input (with form)
The JSON body is a single object { "input": { ... } }. Fields next to form apply to the
whole recommendation request:
At least one of
id_side_view_analysis or id_back_view_analysis must be non-empty. Each id
must match an analysis you own, with the correct analysis_type, and source from the Partner API.
If you send form.subject_id and an analysis was created with a subject_id, that id must equal form.subject_id.
Questionnaire: input.form
All fields below live under input.form in the JSON body.
Previous shoes object (previous_shoes)
When you send previous_shoes, each property is optional; only include keys you know. If you send
a key, its value must be one of the tokens listed for that key.
For request/response examples and full OpenAPI schemas, see the API reference tab under Shoe recommendation. The GET
/shoeRecommendation/{shoe_recommendation_id}/result page includes a full 200 response example (partner_success).
Result payload: catalog identifiers
On 200 fromGET /shoeRecommendation/{shoe_recommendation_id}/result, every shoe object returned
as best_matching_shoe or as an element of all_matches includes:
Related guides
- Analysis workflow — how to obtain
video_idvalues and poll analysis results. - Subject management — creating subjects and linking analyses.