> For the complete documentation index, see [llms.txt](https://docs.senmo.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.senmo.io/segment-ledger/example-workflow.md).

# Example Workflow

#### 1. Create a ledger

Create a new ledger and store the generated API key securely.

#### 2. Create an account

Create one or more accounts under that ledger.

#### 3. Post transactions

Create transactions against accounts and move them through valid statuses.

#### 4. Retrieve statements

Use the statements endpoint to fetch account history for a given period.

#### 5. Process provider events

Receive external provider events through the webhook endpoint and transform them into transactions.
