# Get Virtual Account History

## Get Virtual Account History

> Returns Virtual Account transaction history

```json
{"openapi":"3.0.0","info":{"title":"Virtual Accounts API","version":"0"},"servers":[{"url":"https://api.alignlabs.dev","description":"Production server"},{"url":"https://api-sandbox.alignlabs.dev","description":"Sandbox server"}],"paths":{"/v0/customers/{customer_id}/virtual-account/{virtual_account_id}/history":{"get":{"summary":"Get Virtual Account History","description":"Returns Virtual Account transaction history","parameters":[{"name":"customer_id","in":"path","description":"The unique identifier of the customer","required":true,"schema":{"type":"string"}},{"name":"virtual_account_id","in":"path","description":"The unique identifier of the virtual account","required":true,"schema":{"type":"string"}},{"name":"Api-Key","in":"header","description":"Your secret API key, available in the developer dashboard. Include this header on every request to authenticate your application.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful virtual account history retrieval","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"event_type":{"type":"string","description":"The type of event","enum":["deposit_completed","withdrawal_completed","micro_deposit_completed"]},"source":{"type":"object","properties":{"amount":{"type":"string","description":"The amount of the transaction"},"currency":{"type":"string","description":"The currency of the transaction","enum":["usd","eur"]},"payment_rails":{"type":"string","description":"The payment rails used","enum":["ach","wire","sepa"]}},"required":["amount","currency","payment_rails"]},"destination":{"type":"object","properties":{"amount":{"type":"string","description":"The destination amount"}},"required":["amount"]},"created_at":{"type":"string","description":"The timestamp when the event was created","format":"date-time"}},"required":["event_type","created_at"]}}}}}}}}}}}}
```


---

# 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.alignlabs.dev/align-api/virtual-accounts/get-virtual-account-history.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.
