---
title: "Create a new preset"
method: POST
path: "/api/library/presets"
tags: ["v2", "presets"]
---

# Create a new preset

`POST /api/library/presets`

Create a new preset for the current user.

## Request body

- union
  - LibraryAgentPresetCreatable — Request model used when creating a new preset for a library agent.
    - `graph_id` string, required
    - `graph_version` integer, required
    - `inputs` object, required
    - `credentials` object, required
    - `name` string, required
    - `description` string, required
    - `is_active` boolean
    - `webhook_id` string, nullable
  - LibraryAgentPresetCreatableFromGraphExecution — Request model used when creating a new preset for a library agent.
    - `graph_execution_id` string, required
    - `name` string, required
    - `description` string, required
    - `is_active` boolean

## Response `200`

Successful Response

- LibraryAgentPreset — Represents a preset configuration for a library agent.
  - `graph_id` string, required
  - `graph_version` integer, required
  - `inputs` object, required
  - `credentials` object, required
  - `name` string, required
  - `description` string, required
  - `is_active` boolean
  - `webhook_id` string, nullable
  - `id` string, required
  - `user_id` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `webhook` Webhook, required
    - `id` string
    - `user_id` string, required
    - `provider` string, required — Provider name for integrations. Can be any string value, including custom provider names.
    - `credentials_id` string, required
    - `webhook_type` string, required
    - `resource` string, required
    - `events` string[], required
    - `config` object
    - `secret` string, required
    - `provider_webhook_id` string, required
    - `url` string, required

## Other responses

- `401` — Authentication required
- `422` — Validation Error

## Changes

- **2026-04-30** `8c84efcb3afb` — 4 warning, 1 info
  - removed the optional property `organization_id` from the response with the `200` status
  - removed the optional property `team_id` from the response with the `200` status
  - removed the optional property `webhook/anyOf[subschema #1: Webhook]/organization_id` from the response with the `200` status
  - removed the optional property `webhook/anyOf[subschema #1: Webhook]/team_id` from the response with the `200` status
  - …1 more

[Change history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/library/presets/post.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/revisions/72eaad2d41b3?raw)
