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

# API Reference

> Programmatically manage orders, retrieve proxies, and monitor usage.

Build integrations that automate proxy management for your applications.

```
https://dashboard.statproxies.com/api/v2/
```

## Capabilities

<CardGroup cols={2}>
  <Card title="Create Orders" icon="plus" href="/api-reference/order/create-order">
    Programmatically purchase subscriptions
  </Card>

  <Card title="List Orders" icon="list" href="/api-reference/order/list-orders">
    Retrieve orders and proxy details
  </Card>

  <Card title="Fetch Proxies" icon="download" href="/api-reference/order/get-order">
    Get proxy lists in multiple formats
  </Card>

  <Card title="Manage Accounts" icon="user" href="/api-reference/account/create-account">
    Create and manage customer accounts
  </Card>
</CardGroup>

## Quick start

<Steps>
  <Step title="Get your API key">
    Navigate to **Settings → API Keys** in your [dashboard](https://dashboard.statproxies.com)
  </Step>

  <Step title="Make a request">
    ```bash theme={null}
    curl -X GET "https://dashboard.statproxies.com/api/v2/order/list" \
      -H "Authorization: Bearer YOUR_API_KEY"
    ```
  </Step>

  <Step title="Parse the response">
    ```json theme={null}
    {
      "response": "success",
      "summary": { "total_orders": 3, "total_proxies": 30 },
      "orders": [...]
    }
    ```
  </Step>
</Steps>

## Endpoints

<Tabs>
  <Tab title="Order API">
    | Endpoint                         | Method | Description            |
    | -------------------------------- | ------ | ---------------------- |
    | `/order/newscale`                | POST   | Create a new order     |
    | `/order/list`                    | GET    | List all active orders |
    | `/order/fetch/:order_id`         | GET    | Get order with proxies |
    | `/order/fetch/customer/:id`      | GET    | Get orders by customer |
    | `/order/delete/:sub_id/:prod_id` | DELETE | Cancel an order        |
    | `/order/exchange/:order_id`      | POST   | Exchange proxies       |
  </Tab>

  <Tab title="Account API">
    | Endpoint                     | Method | Description       |
    | ---------------------------- | ------ | ----------------- |
    | `/account/fetch/details/:id` | GET    | Get order history |
    | `/account/fetch/all/:id`     | GET    | Get active orders |
    | `/account/create`            | POST   | Create account    |
  </Tab>
</Tabs>

## Response format

```json theme={null}
// Success
{
  "response": "success",
  "data": { ... }
}

// Error
{
  "response": "error",
  "message": "Description of the error"
}
```

## Next steps

<CardGroup cols={2}>
  <Card title="Authentication" icon="key" href="/api-reference/authentication">
    Set up API keys and authentication
  </Card>

  <Card title="Create Order" icon="plus" href="/api-reference/order/create-order">
    Start with your first API call
  </Card>
</CardGroup>
