跳到主要内容

aknAPI

URLhttps://api.akn.me.uk
DescriptionHTTP API for akn ID sessions, federated sign-in, and the data served to akn's own sites
AccessPublic endpoints are open. The rest require an approved akn ID account, a project grant, an API key, or a registered OIDC client
PricingFree

Overview

aknAPI allows a developer to verify an akn ID sign-in, open and refresh a session, and read the status, role and project grants attached to the person behind it. Authorisation controls are held by akn ID: every gated endpoint checks account status first, then the project grant the endpoint requires.

The same service acts as an OpenID Connect provider for relying parties, bridges sign-in methods that cannot be used directly, and serves the notification, calendar, status and location data behind akn's own sites.

Capabilities

CapabilityAvailability
Verify a sign-in and open a sessionAny caller holding a valid ID token
Read the signed-in person's status, role and project grantsSession cookie or bearer ID token
Sign in with a code sent to an email addressPublic
Request an accountPublic
Sign in through a bridged providerPublic
Act as an OpenID Connect provider, authorisation code flowRegistered relying parties
Supply authorisation claims to an upstream identity providerSigned callers only
Administer people, grants and linked identitiesAdmin role
Submit a notificationAPI key holders
Read notifications and the owner's calendarstartpage project grant
Read location and visitor summariesPublic
Manage status incidents and monitored URLsAdmin role, or status project grant
Refresh tokens on the OIDC providerNot available
Dynamic client registrationNot available
Single logout across relying partiesNot available
Pagination on any list endpointNot available
Webhooks or streaming responsesNot available
Deleting a personNot available
Rate limiting outside the email code endpointsNot available

Endpoint groups

GroupPath prefixPurpose
Sessions and sign-in/authVerify a sign-in, hold a session, obtain a credential
People administration/auth/people, /auth/syncManage people, grants and linked identities
OpenID Connect/auth/oidc, /auth/zitadelFederate akn ID to a relying party or an upstream provider
Notifications, calendar and status/startpage, /calendar, /statusData for the startpage and status sites
Location/locationLocation summaries and visitor records

Service check

GET / requires no credential and answers with a fixed body.

{ "ok": true, "service": "akn-api" }

Conventions

PropertyDetail
Request bodiesJSON. The token endpoint also accepts form encoding
Response bodiesJSON, except bridge errors, which are HTML pages
TimestampsISO 8601 in UTC, unless stated otherwise on the endpoint
VersioningNone. Paths are unversioned and change in place
IdempotencyNot offered. No request identifier is honoured

Next steps

  • aknID, sign-in provider for sessions this API issues