> ## 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 custom-token-exchange Action trigger's event object, which provides contextual information about the trigger execution.

The `event` object for the custom-token-exchange Actions trigger provides contextual information about the trigger execution.

```json Event Object theme={null}
{
  "client": {
    "client_id": "string",
    "metadata": {},
    "name": "string"
  },
  "request": {
    "body": {},
    "geoip": {},
    "ip": "string",
    "method": "string"
  },
  "resource_server": {
    "identifier": "string"
  },
  "tenant": {
    "id": "string"
  },
  "transaction": {
    "requested_scopes": [],
    "requested_token_type": "string",
    "subject_token": "string",
    "subject_token_type": "string"
  },
  "secrets": {}
}
```

## `event.client`

**event.client** `object`

Information about the Client with which this transaction was initiated.

**event.client properties**

**client\_id** `string`

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

**metadata** `dictionary`

An object for holding other application properties.

**name** `string`

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

## `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.request`

**event.request** `object`

Details about the request that initiated the transaction.

**event.request properties**

**body** `dictionary`

The body of the POST request. This data will only be available during refresh token, Client Credential Exchange flows and PreUserRegistration 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

**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.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** `object`

Details about the current custom token exchange transaction.

**event.transaction properties**

**actor\_token** `string`

The actor token provided in the token exchange request.

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

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

**actor\_token\_user** `dictionary`

The user represented by the actor token. This will only be present if the actor\_token\_type is urn:ietf:params:oauth:token-type:id\_token and the actor token provided in the token exchange request is a valid Auth0 generated ID token.

**actor\_token\_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 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.

**metadata** `dictionary`

\[Early Access] An object containing shared data across custom Actions for the duration of a transaction.

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

The scopes requested (if any) provided in the token exchange request.

**requested\_token\_type** `string`

The type of token to be generated by Auth0. For example: urn:ietf:params:oauth:token-type:access\_token.

**subject\_token** `string`

The subject token provided in the token exchange request.

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

The subject\_token\_type provided in the token exchange request.
