Access tokens
Create access token
Changed onCreates a short-lived access token for Whop's web and mobile embedded components. With API key authentication, pass account_id or user_id; with OAuth, the token is issued for the OAuth user.
post/access_tokens
Request
- Base URL: https://api.whop.com/api/v1
- URL: https://api.whop.com/api/v1/access_tokens
- Auth: HTTP bearer
Request body
Example request
{
"account_id": "biz_xxxxxxxxxxxxxx",
"expires_at": "2023-12-01T05:00:00.401Z",
"user_id": "user_xxxxxxxxxxxxx"
}Response
A successful response
Example response
{
"expires_at": "2023-12-01T05:00:00.401Z"
}Changes
- warning
removed the request property
- info
added the new optional request property
- warning