HTTP API
The endpoints the SDKs call, for languages without an SDK or for debugging. Base URL: https://id.novren.net.
Every error answers with a JSON body { "error": "CODE" } and the status listed in Errors.
OAuth
POST /oauth/token
Exchanges a code or a refresh token. Body application/x-www-form-urlencoded (JSON is accepted too). No cookies; CORS open, without credentials, to the origins of your registered callback URLs.
Authorization code
| Field | Value |
|---|---|
grant_type | authorization_code |
client_id | your client id |
code | the code from the callback (43 characters) |
code_verifier | the PKCE verifier |
redirect_uri | the callback URL of the request, exactly |
Refresh
| Field | Value |
|---|---|
grant_type | refresh_token |
client_id | your client id |
refresh_token | the latest refresh token (43 characters) |
Answer 200
{ "access_token": "eyJ…", "token_type": "Bearer", "expires_in": 300, "refresh_token": "…" }Errors: 400 OAUTH_INVALID_REQUEST (malformed body), 400 OAUTH_INVALID_CLIENT (unknown or disabled client), 400 OAUTH_INVALID_GRANT (code or refresh token unknown, expired, used, or PKCE mismatch; account deleted or being deleted, app being removed by the user: the cases are deliberately not distinguished), 429 RATE_LIMITED. The precise reason is in your sign-in log.
Rate limit: 120 requests per 10 minutes per IP address on /oauth/*.
POST /oauth/revoke
Closes the chain of a refresh token (RFC 7009). Body: client_id, token. Always answers 200 {}, even for unknown tokens.
GET /oauth/revocations?after=<cursor>
The revocation feed, for your server. Authorization: Bearer <service token>.
{
"events": [
{ "id": 812, "kind": "family", "subject": "<sid>", "at": 1764331200 },
{ "id": 813, "kind": "account", "subject": "<account id>", "at": 1764331260 }
],
"cursor": 813
}family: the chainsubject(thesidclaim) is closed;account: every token of that account issued up toat(Unix seconds) is revoked;- only events of the last 10 minutes are kept: access tokens live 5;
- pass the returned
cursorasafternext time.
GET /.well-known/jwks.json
Public keys of the access tokens (Ed25519, alg: EdDSA, use: sig, with kid). Cache them; fetch again when a token carries an unknown kid.
The sign-in page
GET https://account.novren.net/autorizza
Not an API: the page where the SDK sends the user. Query parameters: client_id, redirect_uri, code_challenge (S256, 43 characters), handoff_key (X-Wing public key, base64url), state, and optionally ui_locales. The answer comes back on redirect_uri as described in How sign-in works.
Service API
For your server, with Authorization: Bearer <service token> (64 hexadecimal characters). Answers only about your users; any other account gets 404, exactly like an account that doesn't exist. A wrong token gets 401 AUTH_FAILED.
const ID_SERVER = 'https://id.novren.net'
const auth = { authorization: `Bearer ${process.env.NOVREN_ID_SERVICE_TOKEN}` }
interface ServiceAccount {
id: string
email: string
mfa: boolean // two-factor authentication turned on
status: 'active' | 'locked'
createdAt: string
deletionDueAt: string | null // deletion requested: no tokens until then
}
/** One of YOUR users. `null` also for accounts that never used your app. */
export async function findUser(accountId: string): Promise<ServiceAccount | null> {
const response = await fetch(`${ID_SERVER}/service/accounts/${accountId}`, { headers: auth })
if (response.status === 404) return null
if (!response.ok) throw new Error(`Novren ID: HTTP ${response.status}`)
return (await response.json()) as ServiceAccount
}
/** All your users whose email starts with `prefix`, page by page. */
export async function* listUsers(prefix = '') {
let cursor: string | null = null
do {
const query = new URLSearchParams({ prefix, limit: '200', ...(cursor ? { cursor } : {}) })
const response = await fetch(`${ID_SERVER}/service/accounts?${query}`, { headers: auth })
if (!response.ok) throw new Error(`Novren ID: HTTP ${response.status}`)
const page = (await response.json()) as { items: Omit<ServiceAccount, 'deletionDueAt'>[]; cursor: string | null }
yield* page.items
cursor = page.cursor
} while (cursor)
}GET /service/accounts/:id
{
"id": "6f1c…",
"email": "ada@example.com",
"mfa": true,
"status": "active",
"createdAt": "2026-11-02T10:15:00.000Z",
"deletionDueAt": null
}status is active or locked. deletionDueAt is set while a deletion is pending: until then the account gets no tokens.
GET /service/accounts?email=<email>
The id of one of your users from their email: { "id": "…" }, or 404.
GET /service/accounts?prefix=<text>&limit=<n>&cursor=<c>
Your users whose email starts with prefix (empty: all), ordered by email, limit from 1 to 200 (default 50). Answer { "items": [ … ], "cursor": "…" | null }; pass cursor to get the next page.
GET /service/stats
{ "accounts": 1234 }: how many users your app has.
GET /service/events?after=<id>
Deleted accounts and users who removed your app, last 90 days, up to 1000 per page.
{ "events": [{ "id": 41, "kind": "account-deleted", "accountId": "…", "at": 1764331200 }], "cursor": 41 }kind is account-deleted or service-left. See Deleted accounts.
Directory
GET /api/directory/lookup?email=<email>&product=<app id>
The public identity of a person for your app, with Authorization: Bearer <access token of your app> (the token of the user who is looking). 120 lookups per hour per account.
{
"accountId": "…",
"product": "app-…",
"version": 1,
"encryptionKey": "…",
"signingKey": "…",
"signature": "…",
"accountSigningKey": "…"
}404 if that person has no identity for your app (they never authorized it). Check the answer with verifyDirectoryEntry before using it. This endpoint is not open to browser origins: call it from your server.