Docs / API reference
Submit an item or a change
POST /v1/submissions: add a new item or change an existing one, with credits, terms, relations, and IDs. Reviewed before it shows.
POST /v1/submissionsNeeds an API key: Authorization: Bearer <key>. See Authentication.
Every change to the catalog goes through a submission. A user's waits for an admin; a bot's is applied at once when it only fills gaps. Submissions covers the payload in full, removals, and how duplicates are caught.
Request body
JSON.
| Field | Type | Required | Description |
|---|---|---|---|
action | one of: create, update | Yes | |
item_id | UUID | No | |
payload | object | Yes | |
payload.kind | one of: board_game, card_game, rpg, rpg_supplement, rpg_adventure, card_set, miniatures_game, expansion, edition, accessory, other | No | |
payload.name | string, up to 300 characters | No | |
payload.data | object, default {} | No | |
payload.data.description | string, up to 20000 characters | No | |
payload.data.short_description | string, up to 500 characters | No | |
payload.data.min_players | integer, 1–100000 | No | |
payload.data.max_players | integer, 1–100000 | No | |
payload.data.min_age | integer, 0–120 | No | |
payload.data.min_playtime | integer, 1–100000 | No | |
payload.data.max_playtime | integer, 1–100000 | No | |
payload.data.year_published | integer, -4000–2200 | No | |
payload.data.alternate_names | array of string, up to 300 characters, up to 200 | No | |
payload.data.website | string | No | |
payload.data.language | string, up to 100 characters | No | |
payload.credits | array of object, up to 200 | No | |
payload.credits[].role | string, up to 50 characters | Yes | |
payload.credits[].name | string, up to 300 characters | Yes | |
payload.credits[].kind | one of: person, organization | No | |
payload.credits[].external_ids | array of object, up to 20 | No | |
payload.credits[].external_ids[].source | string, up to 100 characters | Yes | |
payload.credits[].external_ids[].id | string, up to 300 characters | Yes | |
payload.credits[].external_ids[].url | string | No | |
payload.credits[].entity_id | UUID | No | |
payload.terms | array of object, up to 200, default [] | No | |
payload.terms[].kind | string, up to 50 characters | Yes | |
payload.terms[].name | string, up to 200 characters | Yes | |
payload.relations | array of object, up to 200 | No | |
payload.relations[].type | one of: expansion_of, supplement_for, set_of, edition_of, reimplements, integrates_with, accessory_for, contains | Yes | |
payload.relations[].item_id | UUID | No | |
payload.relations[].external_id | object | No | |
payload.relations[].external_id.source | string, up to 100 characters | Yes | |
payload.relations[].external_id.id | string, up to 300 characters | Yes | |
payload.relations[].external_id.url | string | No | |
payload.external_ids | array of object, up to 50 | No | |
payload.external_ids[].source | string, up to 100 characters | Yes | |
payload.external_ids[].id | string, up to 300 characters | Yes | |
payload.external_ids[].url | string | No | |
payload.remove | object | No | |
payload.remove.credits | array of object, up to 200, default [] | No | |
payload.remove.credits[].role | string, up to 50 characters | Yes | |
payload.remove.credits[].entity_id | UUID | Yes | |
payload.remove.terms | array of object, up to 200, default [] | No | |
payload.remove.terms[].kind | string, up to 50 characters | Yes | |
payload.remove.terms[].name | string, up to 200 characters | Yes | |
payload.remove.relations | array of object, up to 200, default [] | No | |
payload.remove.relations[].type | one of: expansion_of, supplement_for, set_of, edition_of, reimplements, integrates_with, accessory_for, contains | Yes | |
payload.remove.relations[].item_id | UUID | Yes | |
payload.remove.external_ids | array of object, up to 50 | No | |
payload.remove.external_ids[].source | string, up to 100 characters | Yes | |
payload.remove.external_ids[].id | string, up to 300 characters | Yes | |
payload.remove.external_ids[].url | string | No | |
payload.remove.images | array of UUID, up to 200, default [] | No | |
source | object | No | |
source.key | string, up to 200 characters | Yes | |
source.name | string, up to 300 characters | Yes | |
source.kind | one of: manufacturer, open_data, community, other | Yes | |
source.url | string | No | |
source.license | string, up to 200 characters | No | |
source_url | string | No | |
note | string, up to 2000 characters | No |
Example
curl -X POST "https://tablearchive.dev/v1/submissions" \
-H "Authorization: Bearer $TA_KEY" \
-H "Content-Type: application/json" -d '{"action":"create","payload":{"kind":"board_game","name":"Example Game","data":{"min_players":2,"max_players":4,"year_published":2024},"credits":[{"role":"designer","name":"Ada Example"}],"external_ids":[{"source":"bgg","id":"123456"}]},"note":"From the publisher'\''s site"}'const res = await fetch('https://tablearchive.dev/v1/submissions', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.TA_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"action": "create",
"payload": {
"kind": "board_game",
"name": "Example Game",
"data": {
"min_players": 2,
"max_players": 4,
"year_published": 2024
},
"credits": [
{
"role": "designer",
"name": "Ada Example"
}
],
"external_ids": [
{
"source": "bgg",
"id": "123456"
}
]
},
"note": "From the publisher's site"
}),
})
const data = await res.json()import os, requests
res = requests.post(
"https://tablearchive.dev/v1/submissions",
headers={"Authorization": f"Bearer {os.environ['TA_KEY']}"},
json={
"action": "create",
"payload": {
"kind": "board_game",
"name": "Example Game",
"data": {
"min_players": 2,
"max_players": 4,
"year_published": 2024
},
"credits": [
{
"role": "designer",
"name": "Ada Example"
}
],
"external_ids": [
{
"source": "bgg",
"id": "123456"
}
]
},
"note": "From the publisher's site"
},
)
data = res.json()Response
The submission: its id, status (pending, approved, rejected), item_id once there is one, and any flags, such as possible_duplicates with the evidence for each.
Notes
- Counts against an hourly contribution budget (200 for user keys). See Rate limits.
- Photos go separately:
POST /v1/imageswith the submission'sid.
Errors
| Status | When |
|---|---|
400 | A parameter or field is missing or invalid; details names each one |
401 | No API key, or one that is not valid |
429 | Rate limited; wait for Retry-After seconds |
Every error is JSON with an error message. See Rate limits and errors.