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

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

```json Event Object theme={null}
{
  "accessToken": {
    "customClaims": {},
    "scope": []
  },
  "client": {
    "client_id": "string",
    "is_first_party": false,
    "metadata": {},
    "name": "string"
  },
  "request": {
    "body": {},
    "geoip": {},
    "ip": "string",
    "method": "string"
  },
  "resource_server": {
    "identifier": "string"
  },
  "tenant": {
    "id": "string"
  },
  "transaction": {
    "requested_scopes": []
  },
  "secrets": {}
}
```

## `event.accessToken`

**event.accessToken** `object`

Information about the access token to be issued.

**event.accessToken properties**

**customClaims** `dictionary`

**scope** `array of string`

## `event.agent`

**event.agent** `object`

\[Early Access] Information about the agent acting in this flow. Set when the client requesting the token 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.client`

**event.client** `object`

Information about the Client used during this token exchange.

**event.client properties**

**client\_id** `string`

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

**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).

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

Information about the Resource Server that is issuing the access token.

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

Information about the Tenant used during this token exchange.

**event.tenant properties**

**id** `string`

The name of the tenant.

## `event.transaction`

**event.transaction** `object`

Information about the Credentials Exchange transaction.

**event.transaction properties**

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

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

The scopes specified (if any) when requesting the access token.

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

The live target scope set for the access token. Initialized from the client grants and immediately updated by api.transaction target scope methods across current and subsequent Actions. After all Actions complete, these scopes are intersected with the client grant. Scopes not present in the grant are silently dropped from the final access token.
