# Account usage

## Usage

### Get account usage for a specific date

This method can be used to retrieve your account usage for a specific date. Must be a date in the past.

{% tabs %}
{% tab title="Request" %}

```
GET https://pci.vaultera.co/api/v1/account/usage/{date}?api_key={YOUR_API_KEY}
```

{% endtab %}

{% tab title="Response" %}

```
{
  "data": [
    {
      "type": "usage",
      "attributes": {
        "type": "tokenizations",
        "value": 123
      }
    },
    {
      "type": "usage",
      "attributes": {
        "type": "detokenizations",
        "value": 321
      }
    },
    {
      "type": "usage",
      "attributes": {
        "type": "storage",
        "value": 10
      }
    }
  ]
}
```

{% endtab %}
{% endtabs %}

**Arguments**

| Argument | Description                                                     |
| -------- | --------------------------------------------------------------- |
| `date`   | Date in yyyy-MM-dd format, should be in the past, ex 2021-08-31 |

### Returns

**Success**\
Method can return a Success result with `200 OK` HTTP Code if operation is successful. Will contain a list of usage in the answer.

* ```
  tokenizations (How many cards tokenised on that day)
  ```
* ```
  detokenizations (How many detokenisations on that day)
  ```
* ```
  storage (How many cards stored older than 24 Months)
  ```

\
\
**Unauthorised Error**\
Method can return a Unauthorised Error result with `401 Unauthorized` HTTP Code if wrong Bearer Token provided.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vaultera.co/account-usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
