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.
OAuth and OIDC endpoints
/.well-known/openid-configurationDiscovery document/oauth/authorizeAuthorization and consent/api/public/oauth/tokenToken exchange and refresh/api/public/oauth/userinfoOpenID Connect UserInfo/api/public/oauth/jwksRS256 public signing keys/api/public/oauth/introspectToken introspection/api/public/oauth/revokeToken revocationIdentity REST API
| Method | Path | Scope | Purpose |
|---|---|---|---|
| GET | /api/public/v1/me | identity:read or profile | Profile, email and verification status |
| PATCH | /api/public/v1/me | identity:write | Update name, job title, locale and timezone |
| GET | /api/public/v1/organizations | organizations:read | Organization memberships and roles |
| GET | /api/public/v1/sessions | sessions:read | Known devices and trust state |
| DELETE | /api/public/v1/sessions?device_id= | sessions:revoke | Remove trust from a device |
| GET | /api/public/v1/audit | audit:read | Security and account events for SIEM |
Scopes
openidIssue an OpenID Connect ID token
profileStandard profile claims
emailEmail and verification status
phonePhone claims
offline_accessIssue a rotating refresh token
identity:readRead identity data
identity:writeUpdate identity data
sessions:readList known devices and trust state
sessions:revokeRemove device trust
organizations:readRead memberships and roles
organizations:writeReserved for provisioning integrations; no write endpoint documented
audit:readRead 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.