---
title: "Authentication | 0xArchive Docs"
description: "Use X-API-Key for market-data requests, then add SIWE wallet auth for wallet-managed signup, API keys, billing, and x402 workflows."
canonical_url: "https://www.0xarchive.io/docs/authentication/"
markdown_url: "https://www.0xarchive.io/docs/authentication.md"
route: "/docs/authentication"
robots: "index, follow"
generated_from: "prerendered_html"
---

# Authentication

Every client uses X-API-Key. Wallet auth exists for wallet-managed signup, keys, and x402 billing.

Header X-API-Key Standard Dashboard-managed keys Wallet auth SIWE + web3 endpoints

[Manage API keys](https://www.0xarchive.io/dashboard/)

[Open Quick Start](https://www.0xarchive.io/docs/quick-start/)

## API key header

Send `X-API-Key` on every request. That is the standard auth model for REST, WebSocket, SDKs, CLI, and AI clients.

```
curl -X GET "https://api.0xarchive.io/v1/hyperliquid/orderbook/BTC" \
  -H "X-API-Key: 0xa_your_api_key"
```

[Get an API key](https://www.0xarchive.io/signup/)

[Manage keys](https://www.0xarchive.io/dashboard/)

## Wallet auth

Wallet auth is for scripts that sign in from a wallet, mint keys, revoke keys, or pay through x402 without touching the dashboard. Request a SIWE challenge, sign it with `personal_sign`, then submit it to `/v1/web3/signup`.

```
# Step 1: Get a SIWE challenge
CHALLENGE=$(curl -s -X POST "https://api.0xarchive.io/v1/auth/web3/challenge" \
  -H "Content-Type: application/json" \
  -d '{"address": "0xYourWalletAddress"}')

# Step 2: Sign the message with your wallet (personal_sign / EIP-191)
# Then submit the signed message to create your account:
curl -s -X POST "https://api.0xarchive.io/v1/web3/signup" \
  -H "Content-Type: application/json" \
  -d '{"message": "<SIWE message>", "signature": "0x<your_signature>"}'
# Returns: { "api_key": "0xa_live_...", "tier": "free", "wallet_address": "0x..." }
```

### Use the key here

[REST API Endpoints](https://www.0xarchive.io/docs/rest-api/)

[SDKs](https://www.0xarchive.io/docs/sdks/)

[Wallet Automation](https://www.0xarchive.io/docs/wallet-automation/)

[Error Handling](https://www.0xarchive.io/docs/errors/)
