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

# List Auto Top-Up Attempts

> Lists automatic top-up attempts, newest first — including failed ones, which may have no order

```
GET /openapi/memorylake/admin/v1/billing/auto-topup/attempts
```

Lists automatic top-up attempts, newest first — including failed ones, which may have no order.

<Note>
  **Permission required:** `credits:view`
</Note>

### Query Parameters

<ParamField query="page_size" type="integer" default="20">
  Items per page (1–100)
</ParamField>

<ParamField query="continuation_token" type="string">
  Token from the previous page
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/auto-topup/attempts' \
    -H 'Authorization: Bearer sk_xxxxxx'
  ```
</RequestExample>

### Response

<ResponseField name="data" type="object">
  <Expandable title="Load More Response Auto Topup Attempt object">
    <ResponseField name="items" type="array">
      List of items in the current page

      <Expandable title="Auto Topup Attempt object">
        <ResponseField name="amount" type="object">
          Amount charged (or attempted)

          <Expandable title="Money object">
            <ResponseField name="amount" type="integer">Amount in the currency's smallest unit (cents for usd)</ResponseField>
            <ResponseField name="currency" type="string">Lowercase ISO 4217 currency code</ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="created_at" type="integer">Unix seconds</ResponseField>
        <ResponseField name="failure_reason" type="string">Why it failed; null unless status is failed. payment\_method\_missing = no card on file; payment\_failed = the payment provider declined or could not complete the charge; processing\_error = the charge could not be set up</ResponseField>
        <ResponseField name="id" type="integer">Attempt id</ResponseField>
        <ResponseField name="order_id" type="string">The order created for the charge (GET /billing/orders/\{order\_id}); null when none was created</ResponseField>
        <ResponseField name="status" type="string">Outcome of the attempt. One of: `pending`, `succeeded`, `failed`, `refunded`.</ResponseField>
        <ResponseField name="tokens" type="integer">Tokens the top-up adds when it succeeds</ResponseField>
        <ResponseField name="triggered_by" type="string">What started it. One of: `balance_check`, `manual`.</ResponseField>
        <ResponseField name="updated_at" type="integer">Unix seconds</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="continuation_token" type="string">Token to fetch the next page; absent on the last page</ResponseField>
    <ResponseField name="total" type="integer">Total number of items matching the filter across all pages; omitted when the count is unavailable</ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "message": "Operation completed successfully",
    "data": {
      "items": [
        {
          "amount": {
            "amount": 1999,
            "currency": "usd"
          },
          "created_at": 1760000000,
          "failure_reason": "payment_method_missing",
          "id": 1,
          "order_id": "74e5cfabc395a14f8f866a7031a74a3f",
          "status": "pending",
          "tokens": 1200000,
          "triggered_by": "balance_check",
          "updated_at": 1760000000
        }
      ],
      "continuation_token": "eyJvZmZzZXQiOjIwfQ",
      "total": 1
    }
  }
  ```
</ResponseExample>

### Errors

Errors answer with `success: false`, a `message` and an `error_code`. See [Error Codes](/features/memorylake/api-reference/errors) for every code.

| Status | Meaning |
| - | - |
| `400` | A parameter or the body is invalid |
| `401` | The API key is missing, invalid, disabled or expired |
| `403` | The key is not allowed to do this |
| `422` | The body or a parameter failed validation |
| `429` | Too many requests. Wait for the time in `Retry-After` |
| `500` | Server-side error |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.