cURL
curl --request POST \ --url https://api.portalhq.io/api/v3/custodians/me/clients/{clientId}/web-otps \ --header 'Authorization: Bearer <token>'
{ "id": "clientId", "otp": "one-time-password" }
Generates a one-time password (OTP) for a client using the Web SDK.
Note: The legacy v1 endpoint (GET /api/v1/custodians/clients/{clientId}/web-otp) is still available but this v3 POST endpoint is preferred.
GET /api/v1/custodians/clients/{clientId}/web-otp
Portal API Key (Custodian API Key). Pass as a Bearer token in the Authorization header.
The unique identifier of the client.
OTP created successfully
The client ID
The one-time password
Was this page helpful?