Skip to main content

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, subscription plan and remaining monthly uploads.

Endpoint​

GET /api/uploadposts/me

Headers​

NameRequiredDescription
AuthorizationYesApikey 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": "Default",
"api_usage": {
"used": 4,
"limit": 10,
"remaining": 6,
"unlimited": false,
"count": 4,
"last_reset": "2026-11-17T08:15:00.000000",
"resets_at": "2026-12-17T08:15:00Z"
},
"analyze_shorts": {
"limit": 300,
"used": 12,
"remaining": 288,
"resets_at": "2026-12-10T08:15:00Z"
},
"preferences": {
"weekStartDay": 1
}
}

Response Fields:

FieldTypeDescription
successBooleanAlways true for successful requests
messageStringConfirmation message
emailStringThe email address associated with the authenticated account
planStringCurrent subscription plan (e.g., Basic, Professional, Business, Default)
api_usageObjectMonthly upload allowance of the current 30-day window, the same numbers as the API Keys page of the dashboard: used, limit, remaining (never below 0) and resets_at (UTC; null when no window is running: the next upload starts a new 30-day window with the full limit). One credit per platform per upload; scheduled posts take their credit when they are created, so they are already included in used (cancelling one before it runs gives it back). On unlimited plans unlimited is true and used, limit, remaining and resets_at are null. count and last_reset are the raw counter and the window start. Reading it never uses an upload. null only if the account data cannot be read.
analyze_shortsObjectAI Shorts analyses of the current 30-day window: limit (included in the plan), used, remaining (never below 0) and resets_at (UTC; null when no window is running: the next analysis starts a new 30-day window with the full limit). Reading it never uses an analysis. null only if the account data cannot be read.
preferencesObjectUser preferences. See Preferences below.

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"
}

Preferences​

Manage user-level preferences via the preferences endpoint.

Get Preferences​

GET /api/uploadposts/users/preferences

Response (200 OK):

{
"success": true,
"preferences": {
"weekStartDay": 1
}
}

Update Preferences​

POST /api/uploadposts/users/preferences

Body (JSON):

FieldTypeDescription
weekStartDayIntegerCalendar week start day. 0 = Sunday, 1 = Monday.

Example:

curl -X POST https://api.upload-post.com/api/uploadposts/users/preferences \
-H 'Authorization: Apikey YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"weekStartDay": 1}'

Response (200 OK):

{
"success": true,
"preferences": {
"weekStartDay": 1
}
}

Error (400 Bad Request):

{
"success": false,
"message": "weekStartDay must be 0 (Sunday) or 1 (Monday)"
}

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
  • Quota Check: See how many uploads are left this month (api_usage.remaining) before scheduling or publishing
  • Account Verification: Confirm which account is associated with your credentials