Read current-authorized upload status and bounded recovery metadata; customer erasure withholds results and private storage references are excluded
GET
/api/v1/projects/{project_id}/customers/{customer_id}/media/{id}media:writeParameters
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id path | uuid | Yes | |
id path | uuid | Yes |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
media | object | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After502Invalid stored result or inconsistent project/customer/operation binding; no private data returned503Maintenance mode or required service configuration unavailable
curl -X GET "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/customers/$CUSTOMER_ID/media/$ID" \
-H "Authorization: Bearer $TECHRACE_API_KEY"Upload a customer-owned media asset, maximum20MB. Reuse X-Upload-ID with identical bytes/metadata after a transport error; replay never repeats PUT. Publish only after upload_status=ready.
POST
/api/v1/projects/{project_id}/customers/{customer_id}/mediamedia:writeParameters
| Field | Type | Required | Rules |
|---|---|---|---|
customer_id path | uuid | Yes | |
X-Upload-ID header | uuid | No | Stable client UUID for retries and status polling. Optional; omitted IDs are generated server-side and cannot be recovered after a lost response. |
X-Filename header | string | No | URI-encoded filename |
Response 200
| Field | Type | Required | Rules |
|---|---|---|---|
media | object | Yes | |
replay | boolean | Yes |
Errors
400Invalid request401Authentication required402Billing activation or published usage allowance required403Project, role or scope denied409State, ownership, idempotency or configuration conflict429Rate limit; respect Retry-After503Maintenance mode or required service configuration unavailable
curl -X POST "https://YOUR_DOMAIN/api/v1/projects/$TECHRACE_PROJECT_ID/customers/8f1c2a4e-6b3d-4e21-9a77-1d0c5b2e9f10/media" \
-H "Authorization: Bearer $TECHRACE_API_KEY" \
-H "Content-Type: image/jpeg" \
-H "X-Filename: croissant.jpg" \
--data-binary @croissant.jpg{
"media": {
"id": "e9a2c5d1-7f3b-4c86-b014-5d2e8a1f6c73"
},
"replay": false
}