Upload History
Retrieve a paginated list of your past uploads across platforms.
Endpoint
GET /api/uploadposts/history
Headers
| Name | Value | Description |
|---|---|---|
| Authorization | Apikey your-api-key | Required. |
Query Parameters
| Name | Type | Required | Default | Allowed | Description |
|---|---|---|---|---|---|
| page | Integer | No | 1 | >= 1 | Page number |
| limit | Integer | No | 10 | 10, 20, 50, 100 | Page size |
Responses
- 200 OK
history: array of history items (most recent first)total: total number of records for the userpage: requested pagelimit: requested limit
- 400 Bad Request:
{ "error": "Invalid page" }or{ "error": "Invalid limit" } - 401 Unauthorized:
{ "success": false, "message": "Invalid or expired token" } - 500 Internal Server Error:
{ "error": "Failed to retrieve upload history", "details": "..." }
History Item Schema
Typical fields (not all fields are guaranteed on every record):
user_email: stringprofile_username: stringplatform: string (e.g.,tiktok,instagram,linkedin,youtube,facebook,x,threads,pinterest)media_type: string (video|photo|text)upload_timestamp: string (ISO-8601)success: booleanplatform_post_id: string | array | nullpost_url: string | null (present whensuccessis true)error_message: string | nullmedia_size_bytes: number | nullpost_title: string | nullpost_caption: string | nullis_async: boolean | nulljob_id: string | null (present when the upload originated from a scheduled job)dashboard: any | nullvideo_was_transcoded: boolean | nullchanges: object | nullprevalidation_metadata: object | nullrequest_id: string | nullrequest_total_platforms: number | null
Note: When you schedule a post, the resulting history items will include
job_id. Use this to correlate the scheduled job with the eventual publish record in history.
Example Request
curl -X GET "https://api.upload-post.com/api/uploadposts/history?page=1&limit=20" \
-H "Authorization: Apikey your-api-key"
Example 200 Response (truncated)
{
"history": [
{
"user_email": "[email protected]",
"profile_username": "profile_username",
"platform": "instagram",
"media_type": "video",
"upload_timestamp": "2025-09-04T10:22:33.123Z",
"success": true,
"platform_post_id": "1789654321",
"post_url": "https://instagram.com/p/abc123",
"media_size_bytes": 12345678,
"post_title": "Title",
"post_caption": "Description",
"is_async": false,
"job_id": "a1b2c3d4e5f67890a1b2c3d4e5f67890",
"dashboard": true,
"request_id": "req_123",
"request_total_platforms": 3
}
],
"total": 42,
"page": 1,
"limit": 20
}