Access tokens
Create access token
Create a short-lived access token for authenticating API requests. When using API key authentication, provide account_id or user_id. When using OAuth, the user is derived from the token. Use this token with Whop's web and mobile embedded components.
post/access_tokens
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
Changed in 1 of the 74 revisions of this API.11
- ●
removed the request property
request-property-removed
- ○
added the new optional request property
new-optional-request-property
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
Of the 74 revisions, 1 has no diff computed.