Docs / API reference

Register a source

POST /v1/sources: register or update a source before a bot submits data from it. Bots and admins only.

POST /v1/sources

Needs a bot or admin API key.

For importers. Register the source once (sending it again updates it), then name its key on each submission so every fact keeps where it came from. A submission can also carry the source inline; see Submissions.

Request body

JSON.

FieldTypeRequiredDescription
keystring, up to 200 charactersYes
namestring, up to 300 charactersYes
kindone of: manufacturer, open_data, community, otherYes
urlstringNo
licensestring, up to 200 charactersNo

Example

curl -X POST "https://tablearchive.dev/v1/sources" \
  -H "Authorization: Bearer $TA_KEY" \
  -H "Content-Type: application/json" -d '{"key":"shopify:example.com","name":"Example Games","kind":"manufacturer","url":"https://example.com","license":"proprietary"}'

Errors

StatusWhen
400A parameter or field is missing or invalid; details names each one
401No API key, or one that is not valid
403The key is not a bot or admin key
429Rate limited; wait for Retry-After seconds

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