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

# Slash API overview

> Automate financial workflows across your Slash workspace.

The Slash API gives you programmatic access to the financial and operational
workflows in your workspace.

> [card] Accounts and balances
>
> Discover financial products, balances, and virtual accounts.

> [card] Cards and spend
>
> Manage cards, spending controls, authorizations, and card activity.

> [card] Money movement
>
> Create transfers, manage recipients, and follow payment lifecycles.

> [card] Operations
>
> Automate invoices, expenses, approvals, and other back-office workflows.

> [card] Accounting and reconciliation
>
> Read transaction activity and connect financial events to your accounting
> systems.

> [card] Webhooks
>
> React to resource changes without polling every endpoint.

Treat the API Reference as the contract for request fields, response objects,
and supported actions.

## Request basics

Every request uses `https://api.slash.com`, an `X-API-Key` header carrying a
[user API key](https://docs.slash.com/docs/v2/get-started/authentication.md), and an `x-legal-entity`
header naming the legal entity to act on. Get that id from
[`GET /v2/legal-entities`](https://docs.slash.com/api-reference/legal-entities/list), the one
request that takes no `x-legal-entity` header.

JSON fields and query parameters use camelCase. Standard HTTP headers retain
their documented hyphenated names.

Resource ids are opaque. Store them and pass them back unchanged rather than
inferring behavior from their prefixes.

## Build a reliable integration

* Use [idempotency keys](https://docs.slash.com/docs/v2/get-started/idempotency.md) for writes that
  require them.
* Follow [cursor pagination](https://docs.slash.com/docs/v2/get-started/pagination.md) until
  `nextCursor` is absent.
* Branch on documented [error codes](https://docs.slash.com/docs/v2/get-started/errors.md), not message
  text.
* Consume [webhooks](https://docs.slash.com/docs/v2/webhooks/overview.md) and retrieve current resource
  state after receiving an event.

Start with the [quickstart](https://docs.slash.com/docs/v2/get-started/quickstart.md), then use the
concept and workflow guides for the part of the product you are integrating.


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