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

# Introduction

> Authenticate and send requests to the Anthid APIs

Use the Anthid API reference to explore available endpoints, request parameters, response schemas, and errors.

## Authentication

Authenticate requests with an API key in the `x-api-key` header. Keep your API key private and do not expose it in client-side code.

### REST

REST requests use JSON for both request bodies and responses. Include `Content-Type: application/json` when sending a request body.

```bash theme={null}
curl https://api.anthid.com/v1/accounts/<ACCOUNT_ID>/intents \
  -X POST \
  -H "x-api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "command": {
      "type": "CREATE",
      "payload": {
        "symbol": "AAPL",
        "order_side": "BUY",
        "spec": {
          "Market": {
            "quantity": "1"
          }
        }
      }
    }
  }'
```

### gRPC

For gRPC requests, pass the same API key as request metadata using the `x-api-key` key.

```bash theme={null}
grpcurl \
  -H "x-api-key: <YOUR_API_KEY>" \
  -d '{
    "trading_account_id": "YOUR_TRADING_ACCOUNT_ID",
    "subscriptions": ["EVENT_TYPE_BROKER_ORDER"]
  }' \
  stream.anthid.com:443 \
  trading.TradingService/SubscribeEvents
```

## Support

For questions about authentication, request formats, or API behavior, contact [support](mailto:support@anthid.com).
