API reference · v1
Convert timestamps and time zones
Convert up to 100 timestamps between Unix seconds/milliseconds/microseconds/nanoseconds, ISO 8601/RFC 3339, RFC 2822, Windows FILETIME, Excel serial dates and Julian days, and render each instant in up to 10 IANA time zones. Precision is exact to the nanosecond (large values are returned as strings). Date-times without an offset are read in inputTimeZone with RFC 5545 DST rules (localTimeResolution reports gap/fold). Invalid entries are reported per item. Requires a credential with tools.run; every accepted call consumes one monthly unit, including business 4xx/5xx.
/v1/run/time/convertAccess requirements
Health, metadata, changelog and waitlist routes are public. Catalog reads (GET /v1/tools, /v1/tools/{id}, /v1/colors/*) and POST /v1/tools/query require a tools.read credential; POST /v1/run/* requires tools.run. There is no anonymous access to these routes: send an API key (Bearer OR X-API-Key) from your server, or use the HttpOnly main-site session plus workspace selection and same-origin Origin. Never combine credentials. Every admitted call is metered. Ingress and workspace/actor minute/month limits are separate; waitlist has its own policy.
Implemented interfaces and development screens do not imply public production availability, paid access or a completed payment integration. Confirm access with Birdor before connecting an application. No paid Pro service, activation or cross-device sync is currently delivered. We are validating one repeatable task before building a paid offer.
Parameters
| Field | Description |
|---|---|
AuthorizationstringOptional | Bearer API key with tools.run; alternatively X-API-Key. One of the credentials is required. |
X-API-KeystringOptional | Alternative to Authorization; never send both. |
X-Birdor-Workspace-IDstringOptional | Required with the site session; optional and matching with an API key. |
X-Birdor-Project-IDstringOptional | Optional owned project; a project-bound key cannot select another project. |
Request body
Send JSON with Content-Type: application/json.
| Field | Description |
|---|---|
valuesarrayRequired | Values to convert, 1–100: Unix timestamps (send 16+ digit values as strings to keep precision), ISO 8601/RFC 3339 date-times, RFC 2822 dates, Windows FILETIME ticks, Excel serial dates or Julian days. |
fromauto | unix-s | unix-ms | unix-us | unix-ns | iso | windows-filetime | excel-serial | julian-dayOptional | Input format: auto (numbers by digit count: ≤11 seconds, 12–14 ms, 15–17 µs, 18+ ns; text as ISO/RFC 2822), unix-s, unix-ms, unix-us, unix-ns, iso, windows-filetime, excel-serial or julian-day. |
inputTimeZonestringOptional | IANA zone for date-times without an offset, e.g. 2026-10-11 09:00 in Europe/Berlin; default UTC. DST gaps move forward, repeated times use the first occurrence. |
timeZonesarrayOptional | IANA zones to render each instant in (local time, offset, abbreviation, DST), at most 10. |
Request example
curl --request POST "$BIRDOR_API_BASE_URL/v1/run/time/convert" \
--header "Accept: application/json" \
--header "Authorization: Bearer $BIRDOR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"values": [
"1760000000",
"2026-10-11 09:00"
],
"inputTimeZone": "Europe/Berlin",
"timeZones": [
"Asia/Tokyo"
]
}'Examples are copied only; this page does not send API requests.
Responses
Illustrative response. Values vary by environment and time.
200Success
{
"ok": true,
"data": {
"results": [
{
"input": "1760000000",
"ok": true,
"error": null,
"format": "unix-s",
"utc": "2025-10-09T08:53:20.000Z",
"unixSeconds": 1760000000,
"unixMillis": 1760000000000,
"unixMicros": "1760000000000000",
"unixNanos": "1760000000000000000",
"windowsFileTime": "134044736000000000",
"excelSerial": 45939.37037037,
"julianDay": 2460957.87037037,
"rfc2822": "Thu, 09 Oct 2025 08:53:20 GMT",
"localTimeResolution": null,
"zones": [
{
"timeZone": "Asia/Tokyo",
"local": "2025-10-09T17:53:20+09:00",
"offset": "+09:00",
"abbreviation": null,
"dst": false
}
]
},
{
"input": "2026-10-11 09:00",
"ok": true,
"error": null,
"format": "iso",
"utc": "2026-10-11T07:00:00.000Z",
"unixSeconds": 1791702000,
"unixMillis": 1791702000000,
"unixMicros": "1791702000000000",
"unixNanos": "1791702000000000000",
"windowsFileTime": "134361756000000000",
"excelSerial": 46306.29166667,
"julianDay": 2461324.79166667,
"rfc2822": "Sun, 11 Oct 2026 07:00:00 GMT",
"localTimeResolution": "exact",
"zones": [
{
"timeZone": "Asia/Tokyo",
"local": "2026-10-11T16:00:00+09:00",
"offset": "+09:00",
"abbreviation": null,
"dst": false
}
]
}
]
},
"request_id": "req_example",
"timestamp": "2026-10-11T00:00:00.000Z"
}400Invalid JSON, schema validation failure (field paths/codes only, never input values) or ambiguous credentials
{
"ok": false,
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters",
"request_id": "req_example",
"timestamp": "2026-10-11T00:00:00.000Z"
}401Missing, expired, rotated, revoked or invalid credential; there is no anonymous access
{
"ok": false,
"code": "UNAUTHENTICATED",
"message": "API access denied",
"request_id": "req_example",
"timestamp": "2026-10-11T00:00:00.000Z"
}403Key lacks tools.run, or workspace/project/member policy or site Origin denied
{
"ok": false,
"code": "FORBIDDEN",
"message": "API access denied",
"request_id": "req_example",
"timestamp": "2026-10-11T00:00:00.000Z"
}405Only POST is supported; rejected before admission
{
"ok": false,
"code": "METHOD_NOT_ALLOWED",
"message": "Method not allowed",
"request_id": "req_example",
"timestamp": "2026-10-11T00:00:00.000Z"
}408Body read exceeds five seconds; before admission
{
"ok": false,
"code": "REQUEST_TIMEOUT",
"message": "Request body timeout or aborted",
"request_id": "req_example",
"timestamp": "2026-10-11T00:00:00.000Z"
}413Body exceeds 8192 bytes; before admission
{
"ok": false,
"code": "PAYLOAD_TOO_LARGE",
"message": "Request body too large",
"request_id": "req_example",
"timestamp": "2026-10-11T00:00:00.000Z"
}415Content-Type must be application/json; before admission
{
"ok": false,
"code": "UNSUPPORTED_MEDIA_TYPE",
"message": "JSON content type required",
"request_id": "req_example",
"timestamp": "2026-10-11T00:00:00.000Z"
}429Ingress, workspace/actor minute or monthly quota exceeded; inspect code and Retry-After
{
"ok": false,
"code": "QUOTA_EXCEEDED",
"message": "API request limit exceeded",
"request_id": "req_example",
"timestamp": "2026-10-11T00:00:00.000Z"
}500Unexpected operation failure; details are never echoed
{
"ok": false,
"code": "OPERATION_FAILED",
"message": "Operation failed",
"request_id": "req_example",
"timestamp": "2026-10-11T00:00:00.000Z"
}503Authentication/metering dependency unavailable
{
"ok": false,
"code": "API_GATEWAY_UNAVAILABLE",
"message": "API access denied",
"request_id": "req_example",
"timestamp": "2026-10-11T00:00:00.000Z"
}422INVALID_TIME_ZONE: inputTimeZone or an entry of timeZones is not a supported IANA time zone
{
"ok": false,
"code": "INVALID_TIME_ZONE",
"message": "inputTimeZone or an entry of timeZones is not a supported IANA time zone",
"request_id": "req_example",
"timestamp": "2026-10-11T00:00:00.000Z"
}Example response fields
Fields shown in this example; optional fields can be omitted. Array rows describe the first example element.
- okboolean
- Application success flag.
- dataobject
- Endpoint-specific result.
- data.resultsarray
- Endpoint-specific example value.
- data.results[].inputstring
- Endpoint-specific example value.
- data.results[].okboolean
- Application success flag.
- data.results[].errornull
- Validator error details.
- data.results[].formatstring
- Endpoint-specific example value.
- data.results[].utcstring
- Run instant in UTC (ISO 8601).
- data.results[].unixSecondsnumber
- Endpoint-specific example value.
- data.results[].unixMillisnumber
- Endpoint-specific example value.
- data.results[].unixMicrosstring
- Endpoint-specific example value.
- data.results[].unixNanosstring
- Endpoint-specific example value.
- data.results[].windowsFileTimestring
- Endpoint-specific example value.
- data.results[].excelSerialnumber
- Endpoint-specific example value.
- data.results[].julianDaynumber
- Endpoint-specific example value.
- data.results[].rfc2822string
- Endpoint-specific example value.
- data.results[].localTimeResolutionnull
- Endpoint-specific example value.
- data.results[].zonesarray
- Endpoint-specific example value.
- request_idstring
- Origin-response identifier matching X-Request-ID; a shared HTTP cache may replay the original trace.
- timestampstring
- Response creation timestamp.