One authenticated POST request. Official JavaScript and Python SDKs available.
cURL
curl -X POST https://api.mecanik.dev/v1/client/YOUR_UUID/tools/discord-timestamp \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"timestamp":"2026-04-20T16:20:00Z","format":"R"}'
JavaScript (fetch)
const res = await fetch(
"https://api.mecanik.dev/v1/client/YOUR_UUID/tools/discord-timestamp",
{
method: "POST",
headers: {
Authorization: "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({ timestamp: "2026-04-20T16:20:00Z", format: "R" }),
},
);
const { result } = await res.json();
console.log(result.tag); // <t:1776716400:R>
Python (requests)
import requests
r = requests.post(
"https://api.mecanik.dev/v1/client/YOUR_UUID/tools/discord-timestamp",
headers={"Authorization": "Bearer YOUR_TOKEN"},
json={"timestamp": "2026-04-20T16:20:00Z", "format": "R"},
)
print(r.json()["result"]["tag"]) # <t:1776716400:R>