Current User API
Verify the validity of your API key and retrieve basic account information.
Authentication
Authorization: ApiKey YOUR_API_KEY
Get Current User
Validates your API key and returns the associated email and subscription plan.
Endpoint
GET /api/uploadposts/me
Headers
| Name | Required | Description |
|---|---|---|
| Authorization | Yes | ApiKey YOUR_API_KEY |
Example Request (curl)
curl -X GET https://api.upload-post.com/api/uploadposts/me \
-H "Authorization: ApiKey YOUR_API_KEY"
Success Response (200 OK)
{
"success": true,
"message": "Token is valid",
"email": "[email protected]",
"plan": "Professional"
}
Response Fields:
| Field | Type | Description |
|---|---|---|
| success | Boolean | Always true for successful requests |
| message | String | Confirmation message |
| String | The email address associated with the authenticated account | |
| plan | String | Current subscription plan (e.g., Basic, Professional, Business, Default) |
Error Responses
401 Unauthorized - Invalid or missing authentication
{
"success": false,
"message": "Invalid or expired token"
}
500 Internal Server Error - Server-side error
{
"success": false,
"message": "Error description"
}
Use Cases
- Token Validation: Verify that your API key or JWT is still valid before making other API calls
- Plan Check: Determine the current subscription plan to understand available features and limits
- Account Verification: Confirm which account is associated with your credentials