Documentation · API reference
POST
/api/v1/auth/secondPost second
This page as Markdown, or in an AI chatMore ways to read this page
# Post second
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/post-auth-second
`POST /api/v1/auth/second`
## What to send
`SecondAnswer`: The second step given: the app's six digits, or a security key's answer.
- `code` (string or null)
- `key` (PasskeyAnswer or null)
- `token` (string, needed)
## The answer
200, `OAuthGo`: Where the browser goes next.
- `to` (string, needed)
## Asking
```sh
curl -X POST https://tidekeeper.eu/api/v1/auth/second \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"token": "…"}'
```
What to send
SecondAnswer The second step given: the app's six digits, or a security key's answer.
- code
- string or null
- key
- PasskeyAnswer or null
- token
- stringneeded
The answer
Status 200
OAuthGo Where the browser goes next.
- to
- stringneeded
Asking
curl -X POST https://tidekeeper.eu/api/v1/auth/second \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN" \ -H "Content-Type: application/json" \ -d '{"token": "…"}'
const answer = await fetch("https://tidekeeper.eu/api/v1/auth/second", { method: "POST", headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, "Content-Type": "application/json", }, body: JSON.stringify({"token": "…"}), }).then((r) => r.json());