Docs / API reference
Get your account
GET /v1/me: the account an API key belongs to: its name, role, and email. A quick way to check a key works.
GET /v1/meNeeds an API key: Authorization: Bearer <key>. See Authentication.
Who you are to the API. Keys are made and revoked in the web app, under Account.
Example
curl "https://tablearchive.dev/v1/me" \
-H "Authorization: Bearer $TA_KEY"const res = await fetch('https://tablearchive.dev/v1/me', {
headers: { Authorization: `Bearer ${process.env.TA_KEY}` },
})
const data = await res.json()import os, requests
res = requests.get(
"https://tablearchive.dev/v1/me",
headers={"Authorization": f"Bearer {os.environ['TA_KEY']}"},
)
data = res.json()Response
{ "id": "…", "name": "my-app", "email": null, "role": "user", "notify_reviews": false, "notify_signups": false }Errors
| Status | When |
|---|---|
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.