Create account link
Changed onGenerates a URL that sends a sub-merchant to a hosted Whop page, such as the payouts dashboard or the KYC onboarding flow. Requires an API key.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Request body
Parameters for CreateAccountLink
The unique identifier of the company to generate the link for, starting with 'biz_'. Must be a sub-merchant of the API key's company.
The URL to redirect the user to if the session expires and needs to be re-authenticated, such as 'https://example.com/refresh'.
The URL to redirect the user to when they want to return to your site, such as 'https://example.com/return'.
The purpose of the account link, such as hosted payouts portal or hosted KYC onboarding.
Example request
{
"account_id": "biz_xxxxxxxxxxxxxx"
}Response
A successful response
A temporary, time-limited URL that grants a user access to an external account management page.
The timestamp after which this account link URL is no longer valid.
The temporary URL to redirect the user to for account access. Expires at the time specified by expires_at.
Example response
{
"expires_at": "2023-12-01T05:00:00.401Z",
"url": "https://whop.com/verify-identity/biz_xxxxxxxxx/"
}Changes
- breaking
added the new required request property
account_id - warning
removed the request property
company_id
- breaking
- info
added the non-success response with the status
- info