HYBRID-CHAINDEVELOPERS
DOCUMENTATIONv2
GET

User Profile Data

List authentication events

/api/v2/me/authentication-events
AUTHENTICATIONBearer token · sessions:readAUTHORITATIVE OWNERidentity-access · identity-serviceCONTRACT AUTHORITYGenerated Rust OpenAPISTATUSSource ready · production listed

PURPOSE + BUSINESS CONTEXT

List successful password and federated sign-ins with redacted device context and integrity-protected cursor pagination.

WHEN THIS CALL IS USEFUL

Call this when an identity, compliance, relying-party, or trust agent workflow needs to reconcile the chronology and current state of authentication events so it can make a purpose-limited identity or assurance decision with current policy and lifecycle state.

OUTCOME · Reconcile

What changes

Read-only projection; it grants no mutation, settlement, traffic, or authority change.

WHY IT MATTERS

  • Gives people and agents a contract-backed way to reconcile authentication events.
  • Separates subject identity, consent, evidence, provider output, review, issuer credentials, and relying-party acceptance instead of collapsing them into a universal trust score.

ISOLATION + AUTHORITY

Bearer subject, tenant, purpose, policy version, role, issuer, reviewer, provider, and relying-party boundaries remain distinct. The response or transition grants no payment, custody, settlement, publisher, matching, or trading authority and must not expose regulated evidence beyond the live schema.

BEFORE YOU CALL

  • Authenticate at the documented boundary: bearer+scope.
  • Use the live OpenAPI schema as the authority for the exact request shape and response model.
  • Resolve the applicable purpose, policy version, consent or role basis, and required assurance before relying on this result.

WHAT TO DO NEXT

  • Use the returned lifecycle state and policy version to choose the next least-privilege trust action; do not infer a missing stage.
  • Refresh authentication events when its observation time, version, or lifecycle state is no longer adequate for the decision.

AGENT GUIDANCE

  • Use authentication events only for the purpose and lifecycle stage described by this operation; do not treat it as authority for an adjacent action.
  • Use the live OpenAPI schema as the authority for the exact request shape and response model.
  • Treat policy availability, consent, evidence capture, completed checks, review, decision, credential issuance, validity, and relying-party acceptance as separate facts.
  • Use response links and canonical identifiers instead of constructing internal service URLs or scraping the website.
MACHINE CONTRACT

The exact deployed parameters, schemas, responses, security requirements, and Hybrid-Chain agent metadata are authoritative at this operation's production OpenAPI JSON Pointer. The readable tables below add integration guidance; the deployed OpenAPI controls if guidance and the machine contract ever differ.

Open the authoritative production contract

EXTENDED INTEGRATION GUIDANCE

Readable request and response reference

Examples illustrate integration intent; the referenced OpenAPI operation and component schemas define the executable shape.

PARAMETERS

Headers, path, query, and body

NAMELOCATIONPRESENCETYPE / RULES / PURPOSE
AuthorizationheaderRequired

Bearer tokenCredential containing the sessions:read scope.EXAMPLEBearer hc_live_…

cursorqueryOptional

integrity-protected opaque stringCursor returned by the preceding page. Modified or fabricated cursors are rejected.

limitqueryOptional

integer · 1–100Maximum successful authentication records to return; defaults to 50.EXAMPLE50

RESPONSES

Status and payload examples

200Newest-first successful authentication history.Read completed · JSON RESPONSE+
{
  "items": [
    {
      "event_id": "9b51ed4c9c8f4aec85d1bd5520e40557",
      "event_type": "SESSION_CREATED",
      "outcome": "SUCCEEDED",
      "authentication_method": "federated_github",
      "device": {
        "name": "Production CLI",
        "platform": "server"
      },
      "session_status": "REVOKED",
      "current_session": false,
      "occurred_at": "2026-08-13T20:00:00Z",
      "last_seen_at": "2026-08-13T20:10:00Z",
      "revoked_at": "2026-08-13T20:15:00Z"
    }
  ],
  "next_cursor": "NDIuYWJj…"
}
INTEGRATION DECISION
CALLER ACTION
Accept the returned representation or receipt, then use the returned lifecycle state and policy version to choose the next least-privilege trust action; do not infer a missing stage.
RETRY SAFETY
For another page, send the returned opaque cursor unchanged with the same filters. Restart without a cursor when a new snapshot is required.
STATE RECONCILIATION
Use returned identifiers and versions as the comparison point for later reads. Refresh the specific profile or account projection and compare tenant, profile, lifecycle, and version identifiers before retrying.
400The cursor is malformed or fails integrity verification.Request must change · JSON RESPONSE+
{
  "code": "invalid_profile_request",
  "message": "The cursor is malformed or fails integrity verification."
}
INTEGRATION DECISIONinvalid_profile_request
CALLER ACTION
Rebuild the request from the live OpenAPI operation and correct the rejected method, media type, header, parameter, or body field.
RETRY SAFETY
Do not retry the same invalid request. A corrected read may be sent as a new attempt.
STATE RECONCILIATION
Compare the submitted values with the documented constraints before another call. Refresh the specific profile or account projection and compare tenant, profile, lifecycle, and version identifiers before retrying.
ESCALATE WHEN
Escalate when a fresh session resolves to an unexpected tenant or profile, or when an account lifecycle receipt cannot be found after reconciliation.
401The bearer credential is missing, expired, or invalid.Authentication required · JSON RESPONSE+
{
  "code": "invalid_credentials",
  "message": "The bearer credential is missing, expired, or invalid."
}
INTEGRATION DECISIONinvalid_credentials
CALLER ACTION
Discard the rejected credential, complete the documented authentication or reassertion flow, and rebuild any request signature with fresh timestamps and nonces.
RETRY SAFETY
Retry only with a newly valid credential and fresh replay-protection values. Do not replay an expired signature.
STATE RECONCILIATION
Authentication failed before an authoritative read was returned for the authenticated profile, tenant brand, referral, funding, and account-lifecycle projections.
ESCALATE WHEN
Escalate when a fresh session resolves to an unexpected tenant or profile, or when an account lifecycle receipt cannot be found after reconciliation.
403The session lacks sessions:read.Authority or policy denied · JSON RESPONSE+
{
  "code": "profile_action_forbidden",
  "message": "The session lacks sessions:read."
}
INTEGRATION DECISIONprofile_action_forbidden
CALLER ACTION
Verify the exact scope, tenant or workspace membership, owner boundary, step-up purpose, feature policy, and resource eligibility. Never broaden authority automatically.
RETRY SAFETY
Do not retry until the missing authority or policy condition has been deliberately resolved with least privilege.
STATE RECONCILIATION
Confirm the caller and resource resolve to the same authority boundary for the authenticated profile, tenant brand, referral, funding, and account-lifecycle projections.
ESCALATE WHEN
Escalate when a fresh session resolves to an unexpected tenant or profile, or when an account lifecycle receipt cannot be found after reconciliation.
422The requested page size is outside 1–100.Request must change · JSON RESPONSE+
{
  "code": "invalid_limit",
  "message": "The requested page size is outside 1–100."
}
INTEGRATION DECISIONinvalid_limit
CALLER ACTION
Rebuild the request from the live OpenAPI operation and correct the rejected method, media type, header, parameter, or body field.
RETRY SAFETY
Do not retry the same invalid request. A corrected read may be sent as a new attempt.
STATE RECONCILIATION
Compare the submitted values with the documented constraints before another call. Refresh the specific profile or account projection and compare tenant, profile, lifecycle, and version identifiers before retrying.
ESCALATE WHEN
Escalate when a fresh session resolves to an unexpected tenant or profile, or when an account lifecycle receipt cannot be found after reconciliation.
503The authoritative Identity session history is unavailable.Dependency unavailable or outcome uncertain · JSON RESPONSE+
{
  "code": "identity_unavailable",
  "message": "The authoritative Identity session history is unavailable."
}
INTEGRATION DECISIONidentity_unavailable
CALLER ACTION
Treat the failure as transient and preserve the last known good representation without presenting it as fresh.
RETRY SAFETY
Retry with bounded exponential backoff and jitter; stop after the integration's failure budget is exhausted.
STATE RECONCILIATION
Refresh the specific profile or account projection and compare tenant, profile, lifecycle, and version identifiers before retrying.
ESCALATE WHEN
Escalate when a fresh session resolves to an unexpected tenant or profile, or when an account lifecycle receipt cannot be found after reconciliation.

OPERATIONAL NOTES

Security and lifecycle guarantees

  • This fulfills the V1 last-logins business case without returning the oversized user object.
  • Only successful V2 password and federated session creation is represented in this projection; failed attempts require a separate abuse-monitoring audit source.
  • Raw device identifiers, access and refresh credentials, upstream assertions, public keys, IP addresses, and geolocation are never returned.
  • Responses are owner-scoped, cursor-paginated, and no-store.

UPGRADING FROM V1

Legacy calls replaced by this operation

If you maintain an older integration, use this map to find the V2 replacement. Do not translate the old request field-for-field: rebuild it from the V2 parameters and schemas above because identity, authorization, replay protection, and response semantics may have changed.

GET/api/v1/profile/last_loginsPROFILE: Get Last Logins
DOCUMENTATION STATUS

This route is implemented in canonical gateway source and appears in the production OpenAPI snapshot observed 2026-09-11T06:35:11.572Z. Authentication, tenant, feature, venue, and market policy still apply.

Verify the exact production OpenAPI operation Return to the V2 directory