API reference
Machine-readable OIDC discovery, the OAuth 2.0 + OIDC endpoint surface, the standard scopes, and where the OpenAPI spec lives. For narrative integration walkthroughs, see Third-party API.
Discovery
Every server detail (endpoints, supported algorithms, scopes, response types) is published at the standard OIDC discovery URL. Read this once at integration time and cache it.
GET https://staging.loginseal.eu/.well-known/openid-configuration
The matching JSON Web Key Set used to verify ID tokens:
GET https://staging.loginseal.eu/.well-known/jwks.json
Endpoints
| Method | Path | Purpose |
|---|---|---|
| GET | /oauth/authorize |
Start the authorization-code + PKCE flow. |
| POST | /oauth/token |
Exchange the code (or a refresh token) for tokens. |
| GET | /oauth/userinfo |
Read the authenticated user (bearer-token). |
| POST | /oauth/introspect |
Validate an access token from the server side. |
| POST | /oauth/revoke |
Revoke an access or refresh token. |
| POST | /api/v1/ip/lookup |
Country + VPN lookup for any IP. See IP intelligence below. |
Scopes
Scopes are requested at the authorize endpoint and listed on the consent screen. Apps receive only the fields the user approved.
openid: required, returns the subject identifier.profile.read: display name + avatar.email.read: verified email address.age.over_18: boolean only, no DOB.userdata.read/userdata.write: per-user developer data slot.
IP intelligence
Submit an IP address and get back its country and whether it belongs to a known commercial VPN / hosting-provider range. Authenticate with any active OAuth bearer token. Rate-limited to 60 requests per minute per user.
Use the optional include parameter to ask for one signal or both. Omit it (or send an empty array) to receive both.
POST https://staging.loginseal.eu/api/v1/ip/lookup
Authorization: Bearer <access_token>
Content-Type: application/json
{
"ip": "1.2.3.4",
"include": ["country", "vpn"]
}
Response with both signals (default):
{
"ip": "1.2.3.4",
"country": "FR",
"is_vpn": true,
"checked_at": "2026-05-20T12:34:56+00:00"
}
Country-only response ("include": ["country"]):
{
"ip": "1.2.3.4",
"country": "FR",
"checked_at": "2026-05-20T12:34:56+00:00"
}
VPN-only response ("include": ["vpn"]):
{
"ip": "1.2.3.4",
"is_vpn": true,
"checked_at": "2026-05-20T12:34:56+00:00"
}
countryis an ISO-3166-1 alpha-2 code, or null when we cannot classify the IP.is_vpnis true when the IP falls in a known commercial VPN / hosting-provider range. Datasets refresh on independent cadences; a brand-new range may not yet be flagged.- The endpoint never returns 500 for IPs it cannot classify; the affected field becomes null or false instead.
- Loopback, RFC-1918, and reserved addresses report
country = "LO"andis_vpn = false. - Bad IP or unknown
includevalue returns HTTP 422.
OpenAPI specification
The full machine-readable specification is published with the third-party docs. Use it to generate clients, validate requests, or import into Postman or Insomnia.