Skip to main content

Internal auth events

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: internal-auth-events · 1 operation

POST /v1/internal/auth-events​

Record Auth Event

Append one sign-in outcome to auth_events (best-effort; hashes the IP and User-Agent).

Operation id: record_auth_event_v1_internal_auth_events_post

Parameters

NameInTypeRequiredDescription
X-Internal-Service-Tokenheaderstring or nullnoHeader parameter: X Internal Service Token.

Request body (required)

Request body for record auth event.

Responses

StatusDescriptionBody
202Successful response for record auth event.application/json AuthEventAccepted
401No internal service token presented.—
403Internal service token invalid.—
422The event is outside the accepted vocabulary or limits.—
503Disabled: no INTERNAL_SERVICE_TOKEN configured.—

Schemas used​

AuthEventAccepted​

Payload of a recorded event.

PropertyTypeRequiredDescription
acceptedbooleannoAccepted.

AuthEventCreateRequest​

Body of POST /v1/internal/auth-events.

PropertyTypeRequiredDescription
event_typestringyessign_in, sign_up or link.
outcomestringyessuccess or failure.
providerstring or nullnosso:<slug> or an OAuth provider slug.
user_idstring or nullnoThe resolved user, when there is one.
user_labelstring or nullnoThe email the attempt carried.
error_codestring or nullnoStable error code on failure.
ipstring or nullnoClient IP; hashed, never stored.
user_agentstring or nullnoClient User-Agent; hashed, never stored.
detailobject or nullnoSmall structured context, no secrets.