cURL
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 } }
Returns information about the authenticated user, including subscription details and available credits.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
User information retrieved successfully
Unique identifier for the user
Subscription details for the user, or null if no active subscription
Show child attributes