Create a 2D replay viewer session
Mints a short-lived signed viewer session JWT for Strave's hosted 2D replay embed (`/embed/replay`). Requires a short-lived OIDC/OAuth 2.1 JWT access token (Trusted Workload or OAuth 2.1 flow). Static `strave_sk_` API keys are rejected. The session binds strictly to one `https://` host origin, one match map, and Strave's compressed `.stv` replay files; raw `.rec` files are never exposed. Requires an Application owned by an organisation on the Professional or Enterprise plan; other owners get 403 `entitlement_required`.
Parameters #
| Property | Type | Location | Description |
|---|---|---|---|
matchId | stringRequired | path | - |
mapIndex | integerRequired | path | - |
authorization | string | header | - |
strave-installation-id | string | header | - |
x-request-id | string | header | - |
Idempotency-Key | stringRequired | header | - |
Request #
curl --request POST 'https://strave.gg/api/v2/replays/MATCH_ID/MAP_INDEX/viewer-sessions' \
--header 'Authorization: Bearer $STRAVE_ACCESS_TOKEN'Response #
200Response for status 200400Response for status 400401Response for status 401403Response for status 403404Response for status 404429Response for status 429500Response for status 500503Response for status 503| Property | Type | Description |
|---|---|---|
data | objectRequired | - |
└sessionToken | stringRequired | - |
└embedUrl | string<uri>Required | - |
└expiresAt | stringRequired | - |
└matchId | stringRequired | - |
└mapIndex | integerRequired | - |
└origin | stringRequired | - |
└mode | stringRequired | - |
└watermark | stringRequired | - |
└authMethod | stringRequired | - |
└protocolVersion | numberRequired | - |
Cost #
1 API unit