---
title: "Mint a throwaway demo session (user + workspace + seeded mock-provider graph) — sets the session cookie."
method: POST
path: "/demo/session"
tags: ["demo"]
---

# Mint a throwaway demo session (user + workspace + seeded mock-provider graph) — sets the session cookie.

`POST /demo/session`

## Request

- Base URL: `https://api.livegraph.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.livegraph.ai/demo/session`
- Auth: one of:
  - API key in cookie `livegraph_session`
  - API key in header `x-api-key`

404 when DEMO_ENABLED=false. Signed-in users get the demo graph seeded into their own workspace instead.

## Response `200`

Success — see summary for the response shape.

## Other responses

- `4XX`: Client error — body is the shared {error, code?} envelope.

---

[API](https://skmtc.dev/livegraph/apis/livegraph-api.md) · [All operations](https://skmtc.dev/livegraph/apis/livegraph-api/llms.txt) · [OpenAPI document](https://skmtc.dev/livegraph/apis/livegraph-api/revisions/551085d7719e?raw)
