---
title: "Create Tool"
method: POST
path: "/api/v1/tools"
tags: ["tools"]
---

# Create Tool

`POST /api/v1/tools`

## Request

- Base URL: `https://api.gnosari.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gnosari.com/api/v1/tools`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-AUTH-TOKEN`

Create new tool.

## Request body

- ToolCreate
  - `name` string, required
  - `description` string, nullable
  - `config` object, nullable
  - `identifier` string, nullable
  - `module` string, nullable
  - `class_name` string, nullable
  - `url` string, nullable
  - `command` string, nullable
  - `connection_type` string, nullable
  - `args` union
    - object
    - unknown[]
      - unknown
  - `headers` object, nullable
  - `timeout` integer, nullable

## Response `201`

Successful Response

- Tool
  - `name` string, required
  - `description` string, nullable
  - `config` object, nullable
  - `identifier` string, nullable
  - `module` string, nullable
  - `class_name` string, nullable
  - `url` string, nullable
  - `command` string, nullable
  - `connection_type` string, nullable
  - `args` union
    - object
    - unknown[]
      - unknown
  - `headers` object, nullable
  - `timeout` integer, nullable
  - `id` integer, required
  - `account_id` integer, required
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

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