AT Protocol TID decoder
Markdown versionGET/tools/tid-decoder
Decodes a TID (a timestamp identifier, the record key of a post) into the time it encodes and its clock identifier. The time is set by the app that wrote the record: a claim, not a proof.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| tid (required) | query | string | A TID (`3l6oveex3ii2l`), or a bsky.app post link or `at://` URI that ends with one. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The tool's answer, with the canonical URL of its page. | ToolTidDecoder |
| 400 | Invalid query parameter (code `bad_request`). | Error |
| 401 | Unknown, expired or revoked token (code `unauthorized`). Without an `Authorization` header, the tool answers anonymously. | Error |
| 404 | Not found. Also returned on a bot's handle subdomain: the API is only served on the main site. | Error |
| 429 | Rate limited: `toolsApi` (60 a minute) and `toolsApiDaily` (2,000 a day) per IP, or 10 times both per account with a creator's token. A tool that fans out costs more than one call. | Error |
| 500 | Unexpected error. | Error |
Example
curl \
-G \
--data-urlencode "tid=3l6oveex3ii2l" \
-H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
https://bluesky.bot/api/v1/tools/tid-decoderSchemas
Error
| Field | Type | Description |
|---|---|---|
| error (required) | object | |
| error.code (required) | string: "bad_request", "invalid_handle", "not_found", "rate_limited", "internal_error", "unauthorized", "forbidden", "conflict", "invalid_grant", "upstream_error", "insufficient_scope", "invalid_listing", "consent_required" | |
| error.message (required) | string | |
| error.reason | string | With `invalid_handle`, `invalid_listing`, `conflict` and `forbidden`: e.g. `reserved`, `taken`, `too_long`, `no_handle`, `suspended`. |
| error.url | string, uri | With consent_required: open this dashboard page to grant profile editing. |
| error.field | string | With `invalid_listing`: the refused field. |
| error.scope | string | With `insufficient_scope`: the scope the token lacks. |
| error.parameter | string | The invalid query parameter. |
| error.retryAfterSeconds | integer (1–) | With `rate_limited`. |
ToolTidDecoder
| Field | Type | Description |
|---|---|---|
| tool (required) | string = "tid-decoder" | The tool's slug. |
| url (required) | string | The canonical URL of the tool's page on Bluesky.bot. |
| result (required) | object | The tool's answer. |
| result.tid (required) | string | The TID. |
| result.timestamp (required) | string | The time it encodes, ISO 8601 in UTC (milliseconds). |
| result.microseconds (required) | string | The time in microseconds since the UNIX epoch, as a decimal string (exact: it can pass 2^53). |
| result.clockId (required) | integer | The clock identifier, 0 to 1023. |
| result.topBitSet (required) | boolean | The top bit is set (first character `c` to `j`): valid syntax, but not a real timestamp. |