---
title: "Add"
method: POST
path: "/api/v1/prompts"
tags: ["Prompts Resource"]
---

# Add

`POST /api/v1/prompts`

## Request body

- PromptReference
  - `id` string
  - `name` string
  - `description` string
  - `messages` PromptMessage[]
    - `role` string
    - `content` PromptContent
      - `type` string
  - `arguments` PromptArgument[]
    - `name` string
    - `description` string
    - `required` boolean
  - `toolReferences` string[]
  - `namespace` string
  - `configurationURI` string

## Response `200`

OK

- WanakuResponsePromptReference
  - `error` WanakuError
    - `message` string
  - `data` PromptReference
    - `id` string
    - `name` string
    - `description` string
    - `messages` PromptMessage[]
      - `role` string
      - `content` PromptContent
        - `type` string
    - `arguments` PromptArgument[]
      - `name` string
      - `description` string
      - `required` boolean
    - `toolReferences` string[]
    - `namespace` string
    - `configurationURI` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/wanaku-ai/apis/wanaku-router-backend-api.md) · [All operations](https://skmtc.net/wanaku-ai/apis/wanaku-router-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wanaku-ai/wanaku-router-backend-api/versions/801af2512b23/schema)
