API reference

Identity APIs with explicit access.

Call the Egreed ID REST API with an OAuth access token or scoped API key. All endpoints enforce granted scopes on every request.

Authorization

Send an OAuth access token or API key in the Authorization header. API keys may instead use X-API-Key.

Authenticated request
curl https://id.egreedtech.org/api/public/v1/me \
  -H "Authorization: Bearer egr_live_..." \
  -H "Accept: application/json"

OAuth and OIDC endpoints

GET/.well-known/openid-configurationDiscovery document
GET/oauth/authorizeAuthorization and consent
POST/api/public/oauth/tokenToken exchange and refresh
GET/api/public/oauth/userinfoOpenID Connect UserInfo
GET/api/public/oauth/jwksRS256 public signing keys
POST/api/public/oauth/introspectToken introspection
POST/api/public/oauth/revokeToken revocation

Identity REST API

MethodPathScopePurpose
GET/api/public/v1/meidentity:read or profileProfile, email and verification status
PATCH/api/public/v1/meidentity:writeUpdate name, job title, locale and timezone
GET/api/public/v1/organizationsorganizations:readOrganization memberships and roles
GET/api/public/v1/sessionssessions:readKnown devices and trust state
DELETE/api/public/v1/sessions?device_id=sessions:revokeRemove trust from a device
GET/api/public/v1/auditaudit:readSecurity and account events for SIEM

Scopes

openid

Issue an OpenID Connect ID token

profile

Standard profile claims

email

Email and verification status

phone

Phone claims

offline_access

Issue a rotating refresh token

identity:read

Read identity data

identity:write

Update identity data

sessions:read

List known devices and trust state

sessions:revoke

Remove device trust

organizations:read

Read memberships and roles

organizations:write

Reserved for provisioning integrations; no write endpoint documented

audit:read

Read security and account events

Errors and access control

Use standard HTTP status handling. A request outside the granted scopes is refused with 403 Forbidden and recorded in the integration access log. Treat 401 Unauthorized as a missing, invalid, expired, or revoked credential. Validate response details without exposing tokens or personal data in application logs.