---
title: Data Collection
description: What data Agnic collects and how it's used
---

# Data Collection

When using AI through Agnic, whether via the dashboard or the API, your prompts and responses go through multiple touchpoints. You have control over how your data is handled at each step.

This page gives a practical overview of how your data is handled, stored, and used by Agnic.

---

## Within Agnic

Agnic does not store your prompts or responses, **unless** you have explicitly opted in to prompt logging in your account settings. It's as simple as that.

### Default Behavior

| Data Type | Stored? | Notes |
|-----------|---------|-------|
| Prompts | No | Unless opted in |
| Responses | No | Unless opted in |
| Model used | Yes | For billing and analytics |
| Token counts | Yes | For billing |
| Timestamps | Yes | For activity tracking |

### Prompt Logging (Opt-in)

If you enable prompt logging:

- Your prompts and responses are stored securely
- You can review your history in the dashboard
- Data is encrypted at rest
- You can delete your history at any time

<Callout type="info">
  Prompt logging is disabled by default. Enable it in your account settings if you want to maintain a history of your AI interactions.
</Callout>

---

## Metadata Collection

Agnic stores metadata for each request to power reporting, billing, and your activity feed.

### What Metadata Includes

| Metadata | Purpose |
|----------|---------|
| Token counts | Billing accuracy |
| Latency | Performance monitoring |
| Model ID | Usage analytics |
| Timestamp | Activity timeline |
| Status codes | Error tracking |
| Cost | Spending tracking |

### What Metadata Does NOT Include

- **Prompt content** - Never stored without opt-in
- **Response content** - Never stored without opt-in
- **Personal identifiable information** - Not linked to prompts

---

## Transaction Data

For X402 transactions and wallet operations:

### Stored Data

| Data | Purpose | Retention |
|------|---------|-----------|
| Transaction hashes | Audit trail | Permanent |
| Transaction amounts | Billing records | Permanent |
| Endpoint URLs | Transaction history | Permanent |
| Wallet addresses | Account association | While account active |

### Not Stored

- Private keys (never leave your device)
- Seed phrases (user responsibility)

---

## X402 Activation Data

When you enable X402 Payments from your account settings, we record a small, append-only entry so we can show you the correct state and confirm you went through the opt-in flow.

### Stored at Activation

| Data | Purpose | Retention |
|------|---------|-----------|
| Country you selected | Confirm availability in your region | While account active |
| Activation timestamp | Show when you enabled the feature | While account active |
| Disclosure version | Know which version of the disclosure you accepted | Append-only |
| IP address and IP-derived country | Soft corroboration of the selected country | Append-only |
| User agent | Activation context | Append-only |

The IP-derived country is looked up from an offline database and is used for record-keeping only — it doesn't block or filter any of your requests.

You can disable X402 Payments at any time from the same settings page. Your selection and activation history are kept after disabling so your account reflects the right state.

---

## Third-Party Providers

When you use the AI Gateway, your prompts are sent to third-party AI providers (OpenAI, Anthropic, Google, etc.). Each provider has their own data policies.

### Agnic's Role

1. **Routing** - We route your request to the chosen provider
2. **No inspection** - We don't inspect or log prompt content
3. **Provider policies** - The provider's policies apply to your data

### Controlling Provider Access

You can:

- Choose specific models/providers
- Avoid providers with certain data policies
- See provider data policies in our documentation

<Callout type="tip">
  See the [Logging](/docs/privacy/logging) page for detailed information about each provider's data retention policies.
</Callout>

---

## Your Rights

### Access Your Data

- View your transaction history in the dashboard
- Export your activity data
- See all metadata associated with your account

### Delete Your Data

- Delete prompt history (if logging enabled)
- Delete transaction history
- Request full account deletion

### Control Your Data

- Enable/disable prompt logging
- Choose which providers to use
- Set spending limits for additional control

---

## Data Security

### Encryption

| Layer | Protection |
|-------|------------|
| Transit | TLS 1.3 |
| At rest | AES-256 |
| API tokens | Hashed storage |

### Access Control

- API tokens with configurable permissions
- OAuth2 with scoped access
- Spending limits per token

---

## Contact

For privacy-related questions or data requests, contact us at privacy@agnic.ai.

<Cards>
  <Card title="Logging" href="/docs/privacy/logging" />
  <Card title="Authentication" href="/docs/authentication" />
</Cards>
