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
Name of the user's subscription plan
Number of credits currently available to the user
Date and time when credits were last reset
Total number of credits allocated monthly
Whether generated PDFs include a watermark
Whether data retention is enabled for this plan
Number of days generated PDFs are retained