---
title: "Timestamp Converter"
method: POST
path: "/api/v1/tools/timestamp-converter"
tags: ["tools"]
---

# Timestamp Converter

`POST /api/v1/tools/timestamp-converter`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/timestamp-converter`
- Auth: HTTP bearer

Convert a Unix timestamp (seconds or milliseconds) to an ISO 8601 UTC date, or an ISO date to a Unix timestamp. Returns both timestamps, the ISO and RFC 7231 forms, and the weekday.

## Request body

- object
  - `value` integer
  - `unit` string

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `input` integer
    - `interpretedAs` string
    - `unixSeconds` integer
    - `unixMilliseconds` integer
    - `iso` string
    - `utc` string
    - `date` string
    - `time` string
    - `weekday` string

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

[API](https://skmtc.dev/toolforte/apis/toolforte-api.md) · [All operations](https://skmtc.dev/toolforte/apis/toolforte-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolforte/apis/toolforte-api/revisions/4d814d484dfc?raw)
