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

# API Keys

> Obtain a JWT token for authenticated API access

Unauthenticated requests incur a **0.2% (20 basis points)** platform fee. Authenticated requests using a JWT token are **fee-free** - you only pay network gas costs and market maker spreads.

<Callout color="#ff7043" icon="key">
  Get your JWT token from the <a href="https://partners.near-intents.org/home" class="underline font-medium">Partner Dashboard</a> for authenticated API access and fee-free swaps.
</Callout>

***

## How to Use Your API Key

Once you have your JWT token from the Partner Dashboard, include it in your API requests:

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://1click.chaindefuser.com/v0/quote \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer YOUR_JWT_TOKEN" \
    -d '{
      "dry": false,
      "swapType": "EXACT_INPUT",
      "originAsset": "nep141:wrap.near",
      "destinationAsset": "nep141:usdt.tether-token.near",
      "amount": "1000000000000000000000000",
      "recipient": "your-account.near",
      "recipientType": "INTENTS",
      "refundTo": "your-account.near",
      "refundType": "INTENTS"
    }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://1click.chaindefuser.com/v0/quote', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'Authorization': `Bearer ${YOUR_JWT_TOKEN}`
    },
    body: JSON.stringify({
      dry: false,
      swapType: 'EXACT_INPUT',
      originAsset: 'nep141:wrap.near',
      destinationAsset: 'nep141:usdt.tether-token.near',
      amount: '1000000000000000000000000',
      recipient: 'your-account.near',
      recipientType: 'INTENTS',
      refundTo: 'your-account.near',
      refundType: 'INTENTS'
    })
  });
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
    'https://1click.chaindefuser.com/v0/quote',
    headers={
      'Content-Type': 'application/json',
      'Authorization': f'Bearer {YOUR_JWT_TOKEN}'
    },
    json={
      'dry': False,
      'swapType': 'EXACT_INPUT',
      'originAsset': 'nep141:wrap.near',
      'destinationAsset': 'nep141:usdt.tether-token.near',
      'amount': '1000000000000000000000000',
      'recipient': 'your-account.near',
      'recipientType': 'INTENTS',
      'refundTo': 'your-account.near',
      'refundType': 'INTENTS'
    }
  )
  ```
</CodeGroup>

<Tip>
  Store your JWT token securely and never commit it to version control. Use environment variables or secure secret management systems.
</Tip>

<Info>
  Authenticating **end users** (not your integration) uses a separate `User-Session` bearer token. This is part of Confidential Intents, which is currently invite-only.
</Info>
