---
title: "Manage proxy consent for a User"
method: POST
path: "/v2.01/{ClientId}/sca/users/{UserId}/consent"
tags: ["Users"]
---

# Manage proxy consent for a User

`POST /v2.01/{ClientId}/sca/users/{UserId}/consent`

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) **&rarr;**"

## Path parameters

- `ClientId` string, required
- `UserId` string, required

## Headers

- `Authorization` string, required

## Response `200`

Success

- EnrollUserManageProxyConsentResponse
  - `PendingUserAction` PendingUserAction — Object containing the `RedirectUrl` needed for SCA redirection if triggered by the API call (otherwise returned `null`).
    - `RedirectUrl` string — The URL to which to redirect the user to perform strong customer authentication (SCA) via a Mangopay-hosted webpage. This value is a variable and should not be hardcoded. The SCA session link expires 10 minutes after it's generated. **Caution:** Before redirecting the user on this URL, you must add the query parameter `ReturnUrl` with the percent-encoded URL to which you want the SCA session to return the user after authentication (whether successful or not). For more details, see [How to redirect a user for an SCA session](/guides/sca/session#how-to-redirect-a-user-for-sca).

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/mangopay/apis/api-reference.md) · [All operations](https://skmtc.net/mangopay/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mangopay/api-reference/versions/795281070285/schema)
