---
title: "Flow: Issue JWT → create data → list data"
method: POST
path: "/api/v1/flows/auth-and-data"
tags: ["End-to-End Flows"]
---

# Flow: Issue JWT → create data → list data

`POST /api/v1/flows/auth-and-data`

Demonstrates the authenticate-then-write pattern.
Step 1 — POST /auth/token — issues a JWT for the demo user "alice".
Step 2 — POST /api/v1/users — creates a user record in the session.
Step 3 — GET /api/v1/users — lists the most recent 5 users in the session.
Use the access_token from step 1 with the Authorization: Bearer header on real requests.

## Response `200`

Default Response

---

[API](https://skmtc.net/totalshiftleft/apis/api-learning-sandbox.md) · [All operations](https://skmtc.net/totalshiftleft/apis/api-learning-sandbox/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/totalshiftleft/api-learning-sandbox/revisions/3b3179c504b0/schema)
