Getting 403 Forbidden on POST /api/v2/conversations/cobrowse. Docs state: “The access token must include the cobrowse:write scope.” My token has it. Request body:
{ "participants": [ { "id": "user-123" } ] }
Running Node.js v18 with genesys-cloud-node-sdk. Auth works for everything else. Any idea why cobrowse is rejecting this?
The 403 usually isn’t the token itself. It’s the participant ID format. The cobrowse endpoint expects a specific object structure, not just a raw ID string. You also need to specify the type.
Try this payload structure:
{
"participants": [
{
"id": "user-123",
"type": "user"
}
]
}
Also double-check your scope. cobrowse:write is required, but sometimes the token generation misses it if you’re using a custom grant. Run this curl to verify your token scopes:
curl -H "Authorization: Bearer $TOKEN" https://api.mypurecloud.com/api/v2/oauth/tokeninfo
If cobrowse:write is missing, regenerate the token. If it’s there, the missing type field is likely causing the strict validation to fail. The SDK docs are a bit light on the exact JSON shape for participants.