Update the access token for a social identity by verification ID
This API updates the token storage for a social identity by a given social verification ID. It is used to fetch a new access token from the social provider and store it securely in Logto.
PUT
/api/my-account/identities/{target}/access-token
curl \
--request PUT 'https://[tenant_id].logto.app/api/my-account/identities/{target}/access-token' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"verificationRecordId":"string"}'
Request examples
{
"verificationRecordId": "string"
}
Response examples (200)
{
"access_token": "string",
"scope": "string",
"token_type": "string",
"expires_in": 42.0
}