[SDK reference](../../index.md) / [Models](../index.md) / [Auth](index.md)

# TokenExchangeRequest

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Auth`  

An RFC 8693 token exchange (form encoded): the MCP host trades the client's token for one the API accepts.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Audience` | `string?` | `audience` | The API's own audience, https://api.{domain}; required unless resource is given. |
| `GrantType` | `Models.Auth.TokenExchangeRequest_grant_type?` | `grant_type` | The grant_type property |
| `Resource` | `string?` | `resource` | RFC 8707: an MCP project URI, {mcp}/v1/projects/{project}. A person's token is exchanged for a token of one of the agents they sponsor (ADR-0210 cliProxy), with this URI as audience; the scope names the project and agent. |
| `Scope` | `string?` | `scope` | project:{project}: the project an agent's call is for; with resource, also agent:{agt_...}. |
| `SubjectToken` | `string?` | `subject_token` | The subject_token property |
| `SubjectTokenType` | `Models.Auth.TokenExchangeRequest_subject_token_type?` | `subject_token_type` | The subject_token_type property |
