Docs / API reference

Upload a photo

POST /v1/images: upload a box, component, or gameplay photo for an item or a submission, with its source and license.

POST /v1/images

Needs an API key: Authorization: Bearer <key>. See Authentication.

Attach a photo to an existing item (item_id) or to a submission still under review (submission_id). Users' photos wait for review; the same bytes uploaded twice are kept once. Uploading photos covers sizes, formats, and licensing.

Request body

multipart/form-data.

FieldTypeRequiredDescription
filefileYes
item_idUUIDNo
submission_idUUIDNo
kindone of: box_front, box_back, box_side, components, detail, gameplay, otherNo
captionstringNo
sort_orderinteger, default 0No
sourcestringNoSource key (bots and admins)
source_urlURLNo
source_page_urlURLNo
licensestringNo
attributionstringNo

Example

curl -X POST "https://tablearchive.dev/v1/images" \
  -H "Authorization: Bearer $TA_KEY" \
  -F "[email protected]" \
  -F "item_id=9dde0e9c-530a-4d31-80f7-38637d823f59" \
  -F "kind=box_front"

Notes

  • Counts against the hourly contribution budget, like submissions.

Errors

StatusWhen
400A parameter or field is missing or invalid; details names each one
401No API key, or one that is not valid
413The file is over the size limit
429Rate limited; wait for Retry-After seconds

Every error is JSON with an error message. See Rate limits and errors.