---
title: "Import an OpenAI Agent Builder export (Agents SDK code, parsed without executing) as a graph."
method: POST
path: "/graphs/import/agent-builder"
tags: ["graphs"]
---

# Import an OpenAI Agent Builder export (Agents SDK code, parsed without executing) as a graph.

`POST /graphs/import/agent-builder`

## 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/graphs/import/agent-builder`
- Auth: one of:
  - API key in cookie `livegraph_session`
  - API key in header `x-api-key`

## Request body

- object
  - `code` string, required
  - `name` string
  - `useDefaultModel` boolean

## 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)
