Request portal access
Generate a customer portal URL. Exactly one identifier (email or customerId) is required.
Generate a customer portal URL. Exactly one identifier (email or customerId) is required.
Authorization
ApiKeyAuth x-api-key<token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
email?string
customerId?string
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/portal/request-access" \ -H "Content-Type: application/json" \ -d '{}'{ "success": true, "data": { "portalUrl": "string", "object": "portal_session", "livemode": true }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}