---
title: "Create Graph"
method: POST
path: "/api/graphs"
tags: ["graphs"]
---

# Create Graph

`POST /api/graphs`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/graphs`
- Auth: HTTP bearer

Create a new graph owned by the current user.

## Request body

- GraphCreate
  - `nodes` object[]
  - `edges` object[]
  - `meta` object

## Response `201`

Successful Response

- GraphResponse
  - `nodes` object[]
  - `edges` object[]
  - `meta` object
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
