Manage proxy consent for a User

Allow a user to give or revoke consent for proxy actions. This endpoint allows your platform to manage consent given by the end user for [SCA-triggering actions taken under proxy](/guides/sca/proxy-management). Your platform needs to retrieve the returned `PendingUserAction.RedirectUrl`, add an encoded `returnUrl` query parameter for them to be returned to after the SCA session, and redirect the user (read more about [SCA redirection](/guides/sca/session)). On the SCA session link in the response, the user can: - Give consent for the first time - Give consent to additional actions included by your platform - Revoke consent (which your platform must allow at any time) Read more about [proxy consent for SCA-triggering actions](/guides/sca/proxy-management) **→**"

Authentication

AuthorizationBearer
Bearer authentication of the form `Bearer <token>`, where token is your auth token. If your platform is using a [proxy](/guides/sca/proxy-management) to take SCA-triggering action on behalf of users, you also need to integrate [mTLS authentication](/guides/sca/platform) and use the `api-mtls` base URL.

Path parameters

ClientIdstringRequired
Platform's API account identifier, associated with the API key.
UserIdstringRequired
The unique identifier of the user.

Response

Success
PendingUserActionobject

Object containing the RedirectUrl needed for SCA redirection if triggered by the API call (otherwise returned null).

Errors

400
Bad Request Error