## GET /v1/account/billing/auto-recharge

Read your automatic credit recharge settings. An account that never saved them reads as disabled with no card. Card details are never returned.

Required permissions: read:account.
API key: Supported.
CLI user token: Supported.
Session token: Requires the ellipsis:api scope, and the session's permissions.ellipsis rules must allow the operation.
Higher permission levels include lower levels: read < write < delete.

### Response

```text
{
  "amount": int,
  "card": {
    "brand": str,
    "exp_month": int,
    "exp_year": int,
    "last4": str
  },
  "consecutive_failures": int,
  "enabled": bool,
  "last_attempted_at": str,
  "min_threshold": int,
  "threshold": int
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.account.billing.auto_recharge.get()
print(result)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const result = await client.account.billing.autoRecharge.get();
console.log(result);
```

### cURL

```bash
curl "https://api.ellipsis.dev/v1/account/billing/auto-recharge" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```

### Response schema

```json
{
  "properties": {
    "amount": {
      "type": "integer"
    },
    "card": {
      "anyOf": [
        {
          "properties": {
            "brand": {
              "type": "string"
            },
            "exp_month": {
              "type": "integer"
            },
            "exp_year": {
              "type": "integer"
            },
            "last4": {
              "type": "string"
            }
          },
          "required": [
            "brand",
            "last4",
            "exp_month",
            "exp_year"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "consecutive_failures": {
      "type": "integer"
    },
    "enabled": {
      "type": "boolean"
    },
    "last_attempted_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "min_threshold": {
      "type": "integer"
    },
    "threshold": {
      "type": "integer"
    }
  },
  "required": [
    "enabled",
    "card",
    "threshold",
    "amount",
    "consecutive_failures",
    "last_attempted_at",
    "min_threshold"
  ],
  "type": "object"
}
```
