---
title: "Create Endpoint"
method: POST
path: "/api/endpoints"
tags: ["endpoints"]
---

# Create Endpoint

`POST /api/endpoints`

## Request

- Base URL: `https://api.modelwatch.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.modelwatch.app/api/endpoints`
- Auth: HTTP bearer

## Request body

- EndpointCreate
  - `name` string, required
  - `provider` 'openai' | 'anthropic', required
  - `model` string, required
  - `system_prompt` string, nullable
  - `temperature` number
  - `max_tokens` integer
  - `extra_params` object

## Response `201`

Successful Response

- EndpointOut
  - `id` string, uuid, required
  - `workspace_id` string, uuid, required
  - `name` string, required
  - `provider` 'openai' | 'anthropic', required
  - `model` string, required
  - `system_prompt` string, nullable, required
  - `temperature` number, required
  - `max_tokens` integer, required
  - `is_active` boolean, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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