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`.

POST/api/v2/replays/{matchId}/{mapIndex}/viewer-sessions

Parameters #

PropertyTypeLocationDescription
matchIdstringRequiredpath-
mapIndexintegerRequiredpath-
authorizationstringheader-
strave-installation-idstringheader-
x-request-idstringheader-
Idempotency-KeystringRequiredheader-

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 200
application/json
400Response for status 400
application/json
401Response for status 401
application/json
403Response for status 403
application/json
404Response for status 404
application/json
429Response for status 429
application/json
500Response for status 500
application/json
503Response for status 503
application/json
PropertyTypeDescription
dataobjectRequired-
└sessionTokenstringRequired-
└embedUrlstring<uri>Required-
└expiresAtstringRequired-
└matchIdstringRequired-
└mapIndexintegerRequired-
└originstringRequired-
└modestringRequired-
└watermarkstringRequired-
└authMethodstringRequired-
└protocolVersionnumberRequired-

Cost #

1 API unit