Call it
curl https://api.peume.com/v1/call/time \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"mode": "now"
}
}'const res = await fetch("https://api.peume.com/v1/call/time", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"mode": "now"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/time",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"mode": "now"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: time.
Parameters
modestringinferred from the other params when omitted
now · convert · add · diff
Example: now
addstringduration for mode=add: 3d, -2h30m, 1y2mo, 5bd (business days), or ISO P1DT2H
tzstringIANA zone, abbreviation (EST/JST), city, or UTC offset; comma list for up to 12 at once
fromstringzone a naive `time` is interpreted in (default UTC)
timestringISO 8601, a bare date, or a unix epoch (s/ms); defaults to now
tostringtarget zone(s) for mode=convert
to_timestringend instant for mode=diff
