> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Event Object

> Learn about the post-login Action trigger's event object, which provides contextual information about the trigger execution.

The `event` object for the post-login Actions trigger provides contextual information about the trigger execution.

```json Event Object theme={null}
{
  "secrets": {},
  "client": {
    "client_id": "string",
    "is_first_party": false,
    "metadata": {},
    "name": "string"
  },
  "connection": {
    "id": "string",
    "name": "string",
    "strategy": "string"
  },
  "request": {
    "body": {},
    "geoip": {},
    "ip": "string",
    "method": "string",
    "query": {}
  },
  "stats": {
    "logins_count": 0
  },
  "tenant": {
    "id": "string"
  },
  "user": {}
}
```

## `event.agent`

**event.agent** `object`

\[Early Access] Information about the agent acting in this flow. Set when the authenticating client is linked to an agent and the tenant has agents as principals enabled; `undefined` otherwise.

**event.agent properties**

**agent\_id** `string`

\[Early Access] The stable identifier for the agent, prefixed with `agt_` (for example, `agt_2hVk6JxPxbRgNZDKfJQqmn`).

**agent\_metadata** `dictionary`

\[Early Access] Free-form key-value metadata associated with the agent. Always defined when `agent` is present; an empty object when the agent has no metadata.

**name** `string`

\[Early Access] The human-readable name of the agent.

## `event.anonymous_session`

**event.anonymous\_session** `object`

\[Private Early Access] Details of the anonymous session that preceded this login, if any. Present only when the login was preceded by an anonymous session; undefined otherwise.

**event.anonymous\_session properties**

**created\_at** `string`

\[Private Early Access] The date and time when the anonymous session was created, in ISO 8601 format.

**expires\_at** `string`

\[Private Early Access] The date and time when the anonymous session expires, in ISO 8601 format.

**metadata** `dictionary`

\[Private Early Access] Key-value pairs carrying additional information about the anonymous session. Always defined; an empty object when no metadata was provided.

**session\_id** `string`

\[Private Early Access] The identifier of the anonymous session.

**user\_id** `string`

\[Private Early Access] The identifier of the anonymous user associated with the anonymous session.

## `event.authentication`

**event.authentication** `object`

Details about authentication signals obtained during the login flow.

**event.authentication properties**

**methods** `array of objects`

Contains the authentication methods a user has completed during their session.

**riskAssessment** `object`

Details about risk assessments obtained during the login or password reset flow.

**riskAssessment properties**

**assessments** `object`

**assessments properties**

**AgentDetection** `object`

Determines if the user is logging in as a known agent.

**AgentDetection properties**

**code** `string`

Allowed values: `unknown`, `verified_agent`

**confidence** `string`

Allowed values: `low`, `medium`, `high`, `neutral`

**details** `object`

**details properties**

**provider** `string`

**ImpossibleTravel** `object`

Determines if the user is logging in from a location signaling impossible travel.

**ImpossibleTravel properties**

**code** `string`

Allowed values: `minimal_travel_from_last_login`, `travel_from_last_login`, `substantial_travel_from_last_login`, `impossible_travel_from_last_login`, `invalid_travel`, `missing_geoip`, `anonymous_proxy`, `unknown_location`, `initial_login`, `location_history_not_found`, `assessment_not_available`

**confidence** `string`

Allowed values: `low`, `medium`, `high`, `neutral`

**NewDevice** `object`

Determines if the user is logging in from a known device.

**NewDevice properties**

**code** `string`

Allowed values: `initial_login`, `assessment_not_available`, `match`, `partial_match`, `no_match`, `unknown_device`, `no_device_history`

**confidence** `string`

Allowed values: `low`, `medium`, `high`, `neutral`

**details** `object`

**details properties**

**device** `string`

Allowed values: `unknown`, `known`

**useragent** `string`

Allowed values: `unknown`, `known`

**UntrustedIP** `object`

Shows if the IP was found in Auth0's repository of low reputation IPs.

**UntrustedIP properties**

**code** `string`

Allowed values: `assessment_not_available`, `not_found_on_deny_list`, `found_on_deny_list`, `invalid_ip_address`

**confidence** `string`

Allowed values: `low`, `medium`, `high`, `neutral`

**details** `object`

**details properties**

**category** `string`

**ip** `string`

The originating IP address of the request.

**matches** `string`

**source** `string`

**confidence** `string`

Overall risk score

Allowed values: `low`, `medium`, `high`, `neutral`

**supplemental** `object`

\[Early Access] Supplemental risk assessment.

**supplemental properties**

**akamai** `dictionary`

**akamai properties**

**akamaiBot** `object`

The bot detection results as forwarded by Akamai Bot Manager.

**akamaiBot properties**

**type** `string`

The type of the Akamai bot manager results.

**action** `string`

The action of the Akamai bot manager results.

**botCategory** `array of string`

The bot category of the Akamai bot manager results.

**botScore** `number`

The bot score of the Akamai bot manager results.

**botScoreResponseSegment** `string`

The bot score response segment of the Akamai bot manager results.

**botnetId** `string`

The botnet ID of the Akamai bot manager results.

**akamaiUserRisk** `object`

The user risk detection results as forwarded by Akamai Account Protector.

**akamaiUserRisk properties**

**action** `string`

The action of the Akamai user risk assessment.

**allow** `number`

The allowed status of the Akamai user risk assessment.

**emailDomain** `string`

The email domain of the user.

**general** `dictionary`

The general risk of the Akamai user risk assessment.

**ouid** `string`

The OUID of the user.

**requestid** `string`

The request ID of the user.

**risk** `dictionary`

The risk of the Akamai user risk assessment.

**score** `number`

The score of the Akamai user risk assessment.

**status** `number`

The status of the Akamai user risk assessment.

**trust** `dictionary`

The trust of the Akamai user risk assessment.

**username** `string`

The username of the user.

**uuid** `string`

The UUID of the Akamai user risk assessment.

**version** `string`

## `event.authorization`

**event.authorization** `object`

An object containing information describing the authorization granted to the user who is logging in.

**event.authorization properties**

**roles** `array of string`

An array containing the names of a user's assigned roles.

## `event.client`

**event.client** `object`

Information about the Client with which this login transaction was initiated.

**event.client properties**

**client\_id** `string`

The client id of the application to which the user is logging in.

**is\_first\_party** `boolean`

Indicates whether the client application is first-party (true) or third-party (false). First-party applications are owned and operated by your organization, while third-party applications are owned by an external party. To learn more, read [First-Party and Third-Party Applications](https://auth0.com/docs/get-started/applications/first-party-and-third-party-applications).

**metadata** `dictionary`

An object for holding other application properties.

**name** `string`

The name of the application (as defined in the Dashboard).

**refresh\_token** `object`

\[Early Access] An object for holding refresh token configuration properties.

**refresh\_token properties**

**policies** `array of objects`

\[Early Access] A collection of policies governing multi-resource refresh token exchange (MRRT), defining how refresh tokens can be used across different resource servers

## `event.connection`

**event.connection** `object`

Details about the Connection that was used to authenticate the user.

**event.connection properties**

**id** `string`

The connection's unique identifier.

**metadata** `dictionary`

Metadata associated with the connection.

**name** `string`

The name of the connection used to authenticate the user (such as `twitter` or `some-g-suite-domain`).

**strategy** `string`

The type of connection. For social connections, `event.connection.strategy === event.connection.name`. For enterprise connections, the strategy is `waad` (Windows Azure AD), `ad` (Active Directory/LDAP), `auth0` (database connections), and so on.

## `event.custom_domain`

**event.custom\_domain** `object`

Details about the custom domain associated with the current transaction.

**event.custom\_domain properties**

**domain** `string`

The custom domain name.

**domain\_metadata** `dictionary`

Custom domain metadata as key-value pairs.

## `event.organization`

**event.organization** `dictionary`

Details about the Organization associated with the current transaction.

**event.organization properties**

**id** `string`

The Organization identifier.

**display\_name** `string`

The friendly name of the Organization.

**metadata** `dictionary`

Metadata associated with the Organization.

**name** `string`

The name of the Organization.

## `event.prompt`

**event.prompt** `object`

Collected data from rendered custom prompts.

**event.prompt properties**

**id** `string`

The prompt ID.

**fields** `dictionary`

Fields and hidden fields data.

**vars** `dictionary`

Shared variables data.

## `event.refresh_token`

**event.refresh\_token** `object`

\[Enterprise Customers] The current refresh token.

**event.refresh\_token properties**

**id** `string`

\[Enterprise Customers] The ID of the refresh token.

**client\_id** `string`

\[Enterprise Customers] The ID of the client associated with the refresh token.

**created\_at** `string`

\[Enterprise Customers] Timestamp of when the refresh token was created.

**device** `object`

**device properties**

**initial\_asn** `string`

\[Enterprise Customers] First autonomous system number associated with this refresh token.

**initial\_ip** `string`

\[Enterprise Customers] First IP address associated with this refresh token.

**initial\_user\_agent** `string`

\[Enterprise Customers] First user agent of the device associated with this refresh token.

**last\_asn** `string`

\[Enterprise Customers] Last autonomous system number from which this refresh token was last exchanged.

**last\_ip** `string`

\[Enterprise Customers] Last IP address from which this refresh token was last exchanged.

**last\_user\_agent** `string`

\[Enterprise Customers] Last user agent of the device from which this refresh token was last exchanged.

**expires\_at** `string`

\[Enterprise Customers] Timestamp of when the refresh token will absolutely expire.

**idle\_expires\_at** `string`

\[Enterprise Customers] Timestamp of when the refresh token will idle expire.

**last\_exchanged\_at** `string`

\[Enterprise Customers] Timestamp of when the refresh token was last successfully exchanged.

**metadata** `dictionary`

Refresh Token Metadata

**resource\_servers** `array of objects`

**rotating** `boolean`

\[Enterprise Customers] If the refresh token is a rotating refresh token.

**session\_id** `string`

\[Enterprise Customers] The ID of the session bound to the refresh token.

**session\_transfer** `object`

\[Enterprise Customers] This object is defined when the session is created from a session transfer token (Native to Web SSO), undefined otherwise.

**session\_transfer properties**

**parent\_refresh\_token** `object`

\[Enterprise Customers] This object is defined when the refresh token is created from a session initiated as a result of session transfer (Native to Web SSO), undefined otherwise.

**parent\_refresh\_token properties**

**id** `string`

\[Enterprise Customers] The ID of the parent refresh token from which this session/refresh token was created as a result of a session transfer (Native to Web SSO).

**user\_id** `string`

\[Enterprise Customers] The ID of the user bound to the refresh token.

## `event.request`

**event.request** `object`

Details about the request that initiated the transaction.

**event.request properties**

**asn** `string`

The ASN (autonomous system number) of the user-agent making the request.

**body** `dictionary`

The body of the POST request. This data will only be available during refresh token and Client Credential Exchange flows and Post Login Action.

**geoip** `dictionary`

**geoip properties**

**cityName** `string`

**continentCode** `string`

**countryCode** `string`

**countryCode3** `string`

**countryName** `string`

**latitude** `number`

**longitude** `number`

**subdivisionCode** `string`

**subdivisionName** `string`

**timeZone** `string`

**hostname** `string`

The hostname that is being used for the authentication flow.

**ip** `string`

The originating IP address of the request.

**language** `string`

The language requested by the browser.

**method** `string`

The HTTP method used for the request

**query** `dictionary`

The query string parameters sent to the authorization request.

**user\_agent** `string`

The value of the `User-Agent` header received when initiating the transaction.

## `event.resource_server`

**event.resource\_server** `object`

Details about the resource server to which the access is being requested.

**event.resource\_server properties**

**identifier** `string`

The identifier of the resource server. For example: `https://your-api.example.com`.

## `event.secrets`

**event.secrets** `secrets`

Secret values securely associated with this Action.

## `event.security_context`

**event.security\_context** `object`

An object containing fingerprint signatures. This will be available only if the client is using cloudflare. The JA3/JA4 fingerprint can be null or empty in some cases. The most common case is for HTTP requests because JA3 and JA4 are calculated in TLS. It can also be empty due to the Worker sending requests within the same zone or to a zone that is not proxied (or a third party).

**event.security\_context properties**

**ja3** `string`

JA3 fingerprint signature. This will be available only if the client is using a TLS connection.

**ja4** `string`

JA4 fingerprint signature. This will be available only if the client is using a TLS connection.

## `event.session`

**event.session** `object`

The current login session.

**event.session properties**

**id** `string`

The ID of the current session.

**actor** `dictionary`

The actor for sessions established using Session transfer tokens from Custom Token Exchange. Contains a required 'sub' property and up to 5 additional properties set via the Custom Token Exchange action. The actor will be defined for delegated sessions only.

**actor properties**

**sub** `string`

The subject identifier of the actor. A unique identifier for the entity acting in this role.

**authenticated\_at** `string`

\[Enterprise Customers] The date and time when the session was last authenticated.

**clients** `array of objects`

\[Enterprise Customers] List of client details for the session.

**cookie** `object`

\[Enterprise Customers] Cookie configuration for the session, which determines how the session cookie is handled by the User Agent.

**cookie properties**

**mode** `string`

\[Enterprise Customers] The persistence mode of the session cookie. When set to 'non-persistent' (ephemeral), the cookie will be deleted when the browser is closed. When set to 'persistent', the cookie will be stored until it expires or is deleted by the user.

Allowed values: `persistent`, `non-persistent`

**created\_at** `string`

\[Enterprise Customers] The date and time when the session was created.

**device** `object`

\[Enterprise Customers] Metadata related to the device used in the session.

**device properties**

**initial\_asn** `string`

\[Enterprise Customers] First autonomous system number associated with this session.

**initial\_ip** `string`

\[Enterprise Customers] First IP address associated with this session.

**initial\_user\_agent** `string`

\[Enterprise Customers] First user agent of the device associated with this session.

**last\_asn** `string`

\[Enterprise Customers] Last autonomous system number from which this user logged in.

**last\_ip** `string`

\[Enterprise Customers] Last IP address from which this user logged in.

**last\_user\_agent** `string`

\[Enterprise Customers] Last user agent of the device from which this user logged in.

**expires\_at** `string`

\[Enterprise Customers] The date and time when the session will expire.

**idle\_expires\_at** `string`

\[Enterprise Customers] The date and time when the session will expire if idle.

**last\_interacted\_at** `string`

\[Enterprise Customers] The date and time when the session was last successfully interacted with.

**metadata** `dictionary`

\[Enterprise Customers] \[Early Access] Session Metadata

**session\_transfer** `object`

\[Enterprise Customers] \[Early Access] This object is defined when the session is created from a session transfer token (Native to Web SSO), undefined otherwise.

**session\_transfer properties**

**parent\_refresh\_token** `object`

\[Enterprise Customers] This object is defined when the refresh token is created from a session initiated as a result of session transfer (Native to Web SSO), undefined otherwise.

**parent\_refresh\_token properties**

**id** `string`

\[Enterprise Customers] The ID of the parent refresh token from which this session/refresh token was created as a result of a session transfer (Native to Web SSO).

**metadata** `dictionary`

\[Enterprise Customers] The metadata of the parent refresh token from which this session/refresh token was created as a result of a session transfer (Native to Web SSO).

**updated\_at** `string`

\[Enterprise Customers] The date and time when the session was last updated.

**user\_id** `string`

\[Enterprise Customers] ID of the user which can be used when interacting with other APIs.

## `event.session_transfer_token`

**event.session\_transfer\_token** `object`

\[Early Access] Details of the current session transfer token being used to establish Single Sign-On (SSO) from a native application to a web application.

**event.session\_transfer\_token properties**

**client\_id** `string`

\[Early Access] The client identifier of the application that issued the token.

**request** `object`

\[Early Access] Details about the request that issued the token.

**request properties**

**asn** `string`

\[Early Access] The Autonomous System Number (ASN) associated with the request that issued the token.

**geoip** `dictionary`

**geoip properties**

**cityName** `string`

**continentCode** `string`

**countryCode** `string`

**countryCode3** `string`

**countryName** `string`

**latitude** `number`

**longitude** `number`

**subdivisionCode** `string`

**subdivisionName** `string`

**timeZone** `string`

**ip** `string`

\[Early Access] The IP address associated with the request that issued the token.

**user\_agent** `string`

\[Early Access] The User-Agent string of the device that issued the token.

**scope** `array of string`

\[Early Access] The scopes requested when the token was issued.

## `event.stats`

**event.stats** `object`

Login statistics for the current user.

**event.stats properties**

**logins\_count** `number`

The number of times this user has logged in.

## `event.tenant`

**event.tenant** `object`

Details about the Tenant associated with the current transaction.

**event.tenant properties**

**id** `string`

The name of the tenant.

## `event.transaction`

**event.transaction** `dictionary`

Details about the current transaction.

**event.transaction properties**

**id** `string`

Unique identifier for the transaction. Populated for all browser-based login flows.

**acr\_values** `array of string`

Any acr\_values provided in the original authentication request.

**linking\_id** `string`

Dynamic Linking ID that allows developers to reference this transaction.

**locale** `string`

The locale to be used for this transaction as determined by comparing the browser's requested languages to the tenant's language settings.

**login\_hint** `string`

Hint to the Authorization Server about the login identifier the End-User might use to log in (if necessary).

**prompt** `array of string`

List of instructions indicating whether the user may be prompted for re-authentication and consent.

**protocol** `string`

Allowed values: `oidc-basic-profile`, `oidc-ciba`, `oidc-ciba-web-link`, `oidc-implicit-profile`, `oauth2-device-code`, `oauth2-resource-owner`, `oauth2-resource-owner-jwt-bearer`, `oauth2-password`, `oauth2-webauthn`, `oauth2-access-token`, `oauth2-refresh-token`, `oauth2-token-exchange`, `oidc-hybrid-profile`, `samlp`, `wsfed`, `wstrust-usernamemixed`

**redirect\_uri** `string`

The URL to which Auth0 will redirect the browser after the transaction is completed.

**requested\_authorization\_details** `array of objects`

The details of a rich authorization request per Section 2 of the Rich Authorization Requests spec at [https://datatracker.ietf.org/doc/html/draft-ietf-oauth-rar#section-2](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-rar#section-2).

**requested\_scopes** `array of string`

The scopes requested (if any) when starting this authentication flow.

**response\_mode** `string`

Informs the Authorization Server of the mechanism to be used for returning parameters from the Authorization Endpoint.

Allowed values: `query`, `fragment`, `form_post`, `web_message`

**response\_type** `array of string`

Denotes the kind of credential that Auth0 will return.

**state** `string`

An opaque arbitrary alphanumeric string your app adds to the initial request that Auth0 includes when redirecting back to your application.

**ui\_locales** `array of string`

The ui\_locales provided in the original authentication request.

**actor** `dictionary`

The actor in a token exchange request.

**actor properties**

**act** `dictionary`

The next actor in the delegation chain, representing that this actor is making the request on behalf of another principal.

**act properties**

**act** `dictionary`

The next actor in the delegation chain, representing that this actor is making the request on behalf of another principal.

**act properties**

**act** `dictionary`

The next actor in the delegation chain, representing that this actor is making the request on behalf of another principal.

**act properties**

**act** `dictionary`

The next actor in the delegation chain, representing that this actor is making the request on behalf of another principal.

**sub** `string`

The subject identifier of the actor. A unique identifier for the entity acting in this role.

**sub** `string`

The subject identifier of the actor. A unique identifier for the entity acting in this role.

**sub** `string`

The subject identifier of the actor. A unique identifier for the entity acting in this role.

**sub** `string`

The subject identifier of the actor. A unique identifier for the entity acting in this role.

**actor\_token\_type** `string`

The type of the actor token in a token exchange request.

**correlation\_id** `string`

Correlation ID can be provided in the initial authentication request when the application redirects to Universal Login. You can use value to correlate logs and requests from your Action code with the user flow.

**metadata** `dictionary`

An object containing shared data across custom Actions for the duration of a transaction.

**subject\_token\_type** `string`

The type of the subject token in a token exchange request.

**target\_scopes** `array of string`

The live target scope set for the transaction. Initialized from the requested scopes and immediately updated by api.transaction target scope methods across current and subsequent Actions. After all Actions complete, these scopes are filtered by the transaction's applicable authorization policies, including App Access Permissions and RBAC. Unauthorized scopes are silently dropped. When explicit user consent is required, all scopes remaining after filtering are included in the consent prompt.

## `event.user`

**event.user** `dictionary`

An object describing the user on whose behalf the current transaction was initiated.

**event.user properties**

**app\_metadata** `dictionary`

Custom fields that store info about a user that influences the user's access, such as support plan, security roles, or access control groups.

**created\_at** `string`

Timestamp indicating when the user profile was first created.

**email** `string`

(unique) User's email address.

**email\_verified** `boolean`

Indicates whether the user has verified their email address.

**family\_name** `string`

User's family name.

**given\_name** `string`

User's given name.

**last\_password\_reset** `string`

Timestamp indicating the last time the user's password was reset/changed. At user creation, this field does not exist. This property is only available for Database connections.

**name** `string`

User's full name.

**nickname** `string`

User's nickname.

**phone\_number** `string`

User's phone number.

**phone\_verified** `boolean`

Indicates whether the user has verified their phone number.

**picture** `string`

URL pointing to the [user's profile picture](https://auth0.com/docs/users/change-user-picture).

**updated\_at** `string`

Timestamp indicating when the user's profile was last updated/modified.

**user\_id** `string`

(unique) User's unique identifier.

**user\_metadata** `dictionary`

Custom fields that store info about a user that does not impact what they can or cannot access, such as work address, home address, or user preferences.

**username** `string`

(unique) User's username.

**enrolledFactors** `array of objects`

An an array of authentication factors that the user has enrolled.

**multifactor** `array of string`

List of multi-factor authentication (MFA) providers with which the user is enrolled. This array is updated when the user enrolls in MFA and when an administrator resets a user's MFA enrollments.

**identities** `array of objects`

Contains info retrieved from the identity provider with which the user originally authenticates. Users may also link their profile to multiple identity providers; those identities will then also appear in this array. The contents of an individual identity provider object varies by provider.
