Partner Sync specs
Sending the summary
One URL, two steps:
- The summary.
- BFF Pro
POSTs the summary to the Session Summary URL withContent-Type: application/json. - You answer within 30 seconds with a receipt (below).
- BFF Pro
- The video. It goes only when the fitter sends the session with its Video Report. It's the Video Report MP4 and never the source videos.
- The summary's
videoobject givesfile_name,content_type,size_bytes, andsha256. - The receipt says where to put it.
- BFF Pro then uploads the MP4 with one
PUTof the raw file. - On Azure, the upload URL can be a Blob Storage SAS URL: write-only, for one blob, and short-lived. The video goes straight to storage and never passes through your Function.
- Any other setup can return its own HTTPS endpoint that accepts the
PUT.
- The summary's
- Done (optional).
- If the receipt gives a
complete_url, BFF Pro posts{"schema": "bff.push_complete", "schema_version": 1, "push_id": "...", "sha256": "..."}there after the upload. - If you watch your blob storage, you can leave
complete_urlout.
- If the receipt gives a
Why not one multipart POST:
- The summary would wait on the video, and any failure would resend both.
- The whole request would pass through the Function. Azure Functions caps a request at 210 MB, and an HTTP-triggered function must answer within 230 seconds (Microsoft's published figures). A large report on a slow connection could run out of time.
- iOS uploads in the background only from a single file, so a multipart body would first have to be built into a temporary file.
The receipt. There's an example in An example summary.
| Key | Required | Meaning |
|---|---|---|
schema, schema_version |
yes | "bff.push_receipt", 1 |
accepted |
yes | true when you've stored the summary. |
partner_ref |
no | Your own reference for this send. BFF Pro shows it to the fitter. |
video |
when a video follows | upload_url (HTTPS, required), method (default "PUT"), headers (to send with the upload), expires_at, and complete_url. |
A send without a video: a summary with no video object is a data-only send, so answer without video. If a receipt carries one anyway, BFF Pro ignores it, and the unused link costs nothing: an Azure SAS URL is only a signed address that expires.
HTTP status codes:
- 200 or 201: accepted.
- 4xx: not retried as it stands. If the body carries
{"error": "..."}, BFF Pro shows it to the fitter. - 5xx, or no answer within 30 seconds: retried. See Reliability.
Was this section helpful?Tell us more