curl --request GET \
--url https://app.onlyfansapi.com/api/whoami \
--header 'Authorization: Bearer <token>'
{
"api_key": {
"name": "Onboarding",
"last_used_at": "2025-05-23T15:51:52.000000Z",
"created_at": "2025-04-20T16:27:45.000000Z"
},
"team": {
"name": "Personal Team",
"slug": "personal-team-123"
}
}
Get details about the currently used API Key & the relevant Team
curl --request GET \
--url https://app.onlyfansapi.com/api/whoami \
--header 'Authorization: Bearer <token>'
{
"api_key": {
"name": "Onboarding",
"last_used_at": "2025-05-23T15:51:52.000000Z",
"created_at": "2025-04-20T16:27:45.000000Z"
},
"team": {
"name": "Personal Team",
"slug": "personal-team-123"
}
}
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
Success
The response is of type object
.