List Uploads API¶
Overview¶
Returns upload records associated with the authenticated API key’s user. An optional status header filters the records.
Endpoint¶
| Method | Path | URL |
|---|---|---|
GET | /list-uploads-api | https://api.apidatatools.com/list-uploads-api |
Authentication¶
Send your API key in the x-api-key header:
x-api-key: YOUR_API_KEY
Headers¶
Header names are case-insensitive. Use the lowercase spellings shown here.
| Header | Type | Required | Default / values | Description |
|---|---|---|---|---|
x-api-key | String | Yes | No default | API key used to authenticate the request. |
x-upload-status | String | No | pending, success, or failed | Filters uploads by status. If omitted or empty, no status filter is applied. |
Request parameters¶
This endpoint does not require a request body or query parameters.
curl examples¶
List all uploads:
curl --request GET \
'https://api.apidatatools.com/list-uploads-api' \
--header 'x-api-key: YOUR_API_KEY'
Filter uploads by status:
curl --request GET \
'https://api.apidatatools.com/list-uploads-api' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'x-upload-status: success'
Success responses¶
A successful request returns HTTP 200 with an uploads array. The endpoint returns the upload records as provided by the service; their individual fields are not specified here.
{
"uploads": []
}
When no status filter is supplied, records are returned newest first.
Error handling¶
Error responses use an envelope with status, error, and request_id. A details object may also be present and contains a message.
| HTTP status | Error code | When it can occur |
|---|---|---|
400 | DDB_QUERY_FAILED | An upload query fails. |
400 | INTERNAL_ERROR | An unexpected error occurs while retrieving uploads. |
401 | UNAUTHORIZED | Authentication context is missing. |
404 | USER_NOT_FOUND | The authenticated user cannot be found. |
429 | RATE_LIMITED | The request exceeds the applicable rate limit. |
500 | PLAN_NOT_FOUND | The user’s plan configuration cannot be found. |
500 | INTERNAL_ERROR | An unhandled error occurs while processing the request. |
Management tool errors are returned with HTTP 400. Rate limits are plan-dependent; see the tool limits.
Notes¶
- The
x-upload-statusfilter is applied to the authenticated user’s uploads. - Rate limits vary by plan.