v8
OpenAPI 3.1.02026-08-033623795.0 MBAccess tokens
Create access token
Create a short-lived access token for authenticating API requests. When using API key authentication, provide company_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
{
"company_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"
}