---
title: "Create agent from template"
method: POST
path: "/agent/from-template"
tags: ["Agent Templates"]
---

# Create agent from template

`POST /agent/from-template`

We have created templates for some common use cases. You can use these templates to create an agent. For getting list of templates, you can use the /agent/template endpoint. It will give you the list of templates with their description and id. You can pass the id of the template in the request body to create an agent from the template.

## Request body

- CreateAgentFromTemplateRequest
  - `agentName` string, required — Name of the agent
  - `agentDescription` string — Description of the agent
  - `templateId` string, required — ID of the template to use. You can get the list of templates with their description and id from the /agent/template endpoint.

## Response `200`

Successful response

- object
  - `status` boolean
  - `data` string — The ID of the created agent

## Other responses

- `400` — Invalid input
- `401` — Unauthorized access
- `500` — Internal server error

---

[API](https://skmtc.net/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.net/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/c2d0eb64b01a/schema)
