Authentication
Reads are anonymous. Submissions need an API key.
| Operation | Auth |
|---|---|
Read segments (/segments, /intro, /outro) | None |
Submit timestamps (/submit) | API key in the X-API-Key header |
Getting an API key
Sign in at introdb.app and create a key from account settings. Keys start with idb_. You can see the key once, when it's created. If you lose it, generate a new one from the same page.
Using it
curl -X POST "https://api.introdb.app/submit" \
-H "X-API-Key: idb_your_key" \
-H "Content-Type: application/json" \
-d '{"imdb_id":"tt0903747","segment_type":"intro","season":1,"episode":1,"start_sec":2.5,"end_sec":58}'Authorization: Bearer idb_your_key works too.
Keep the key on a server or in the user's own settings. Don't ship one shared key inside a public app, because every submission is tied to the account that owns the key.