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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Internal-Service-Token | header | string or null | no | Header parameter: X Internal Service Token. |
Request body (required)
Request body for record auth event.
application/json—AuthEventCreateRequest
Responses
| Status | Description | Body |
|---|---|---|
| 202 | Successful response for record auth event. | application/json AuthEventAccepted |
| 401 | No internal service token presented. | — |
| 403 | Internal service token invalid. | — |
| 422 | The event is outside the accepted vocabulary or limits. | — |
| 503 | Disabled: no INTERNAL_SERVICE_TOKEN configured. | — |
Schemas used
AuthEventAccepted
Payload of a recorded event.
| Property | Type | Required | Description |
|---|---|---|---|
accepted | boolean | no | Accepted. |
AuthEventCreateRequest
Body of POST /v1/internal/auth-events.
| Property | Type | Required | Description |
|---|---|---|---|
event_type | string | yes | sign_in, sign_up or link. |
outcome | string | yes | success or failure. |
provider | string or null | no | sso:<slug> or an OAuth provider slug. |
user_id | string or null | no | The resolved user, when there is one. |
user_label | string or null | no | The email the attempt carried. |
error_code | string or null | no | Stable error code on failure. |
ip | string or null | no | Client IP; hashed, never stored. |
user_agent | string or null | no | Client User-Agent; hashed, never stored. |
detail | object or null | no | Small structured context, no secrets. |