Skip to content

Overview

Base URL, authentication and errors.

https://api.tpp.io

Requests and responses are JSON. Send a token with every request:

Authorization: Bearer <token>

Getting a token

curl -s https://api.tpp.io/v1/auth/login \
  -d '{"email": "you@example.com", "password": "..."}'
{ "id": "...", "token": "...", "expires_at": "2026-12-01T09:30:00Z" }

A sign-in token lasts 30 days. For scripts, create an API key. POST /v1/auth/logout revokes the current token.

Errors

Errors are {"error": "message"}:

Status Meaning
400 Invalid input
401 Missing or expired token
403 Not allowed
404 Not found
409 Name already taken
429 Too many sign-in attempts

Lists

GET /v1/logins takes limit (default 100, max 1000) and offset.

Bytes

Amounts are in bytes. 1 GB is 1024³ bytes.

Esc