Authorization header:
GET /public/posts and GET /health work without
one. Optional-auth endpoints return extra data to the owner.
Get a token
The API accepts access tokens from any Nebyoulous sign-in: the web session,nebyoulous login, or an OAuth grant. For your own scripts, use OAuth. It’s
standard OAuth 2.1 with the authorization code flow, PKCE (S256), and
dynamic client registration. Clients are public, so there’s no client secret.
1
Register a client
Register once and keep the
client_id. Any redirect URI works. A local one
is easiest for scripts.2
Make a PKCE pair
3
Approve in the browser
Open this URL, replacing Sign in, pick how long the token should last (7, 30, or 90 days), and
choose Allow access. The browser goes to your redirect URI with
CLIENT_ID and CHALLENGE:?code=...&state=xyz. If nothing is listening there, copy code from the
address bar. Codes expire after 5 minutes.4
Trade the code for tokens
access_token, refresh_token, and expires_in in
seconds. The token endpoint takes form-encoded bodies, not JSON.