GET
/
user
/
info
curl --request GET \
  --url https://www.refile.co/api/v1/user/info \
  --header 'Authorization: Bearer <token>'
{
  "userId": "user_123456789",
  "subscription": {
    "planName": "Pro",
    "currentCredits": 850,
    "lastReset": "2023-04-15T00:00:00Z",
    "monthlyCredits": 5000,
    "hasWatermark": false,
    "hasDataRetention": false,
    "dataRetentionDays": 0
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json
User information retrieved successfully
userId
string
required

Unique identifier for the user

subscription
object | null

Subscription details for the user, or null if no active subscription