---
title: "POST /analytics"
method: POST
path: "/analytics"
---

# POST /analytics

`POST /analytics`

Execute a SQL query against the user's data.

The endpoint provides read-only access to secure views (transactions, cards, accounts, etc.) scoped to the authenticated user's entities.

**SQL Dialect**: Uses Snowflake SQL syntax.

**Data Freshness**: Data may be up to 1 hour behind real-time.

Use `SHOW TABLES` to list available tables and `DESCRIBE <table>` to see columns.

## Request body

- PathsAnalyticsDtoPostRequest
  - `query` string, required — SQL query to execute against the sandbox. Supports SELECT on exposed views, SHOW TABLES, and DESCRIBE <table>.

## Response `200`

OK

- PathsAnalyticsDtoPostResponse
  - `columns` string[], required — Ordered list of column names in the result set.
  - `rows` object[], required — Array of row objects keyed by column name.
  - `rowCount` integer, required — Total number of rows returned.
  - `error` string — SQL error message when the query fails.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `429` — TooManyRequests
- `500` — Internal Error

---

[API](https://skmtc.net/slashfi/apis/slash-public-api.md) · [All operations](https://skmtc.net/slashfi/apis/slash-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/slashfi/slash-public-api/versions/773c90f079c5/schema)
