# `ACPex.Schema.Connection.AuthenticateRequest`
[🔗](https://github.com/lostbean/acpex/blob/v0.1.1/lib/acpex/schema/connection/authenticate_request.ex#L1)

Request to authenticate with the agent.

Sent by the client if the agent requires authentication (as indicated by
`auth_methods` in the InitializeResponse).

## Required Fields

  * `method_id` - The ID of the authentication method to use (string)

## Optional Fields

  * `meta` - Additional metadata (map)

## Example

    %ACPex.Schema.Connection.AuthenticateRequest{
      method_id: "api_key"
    }

## JSON Representation

    {
      "methodId": "api_key"
    }

# `t`

```elixir
@type t() :: %ACPex.Schema.Connection.AuthenticateRequest{
  meta: map() | nil,
  method_id: String.t()
}
```

# `changeset`

```elixir
@spec changeset(t(), map()) :: Ecto.Changeset.t()
```

Creates a changeset for validation.

## Required Fields

  * `method_id` - Must be present

---

*Consult [api-reference.md](api-reference.md) for complete listing*
