---
title: "Create a chat"
method: POST
path: "/v1/chats"
tags: ["Chats"]
---

# Create a chat

`POST /v1/chats`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/chats`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Creates a chat, starts its workflow, and submits the first message. Returns the new chat id; the turn runs asynchronously.

## Request body

- CreateChatRequest
  - `enabledSkills` string[]
  - `model` ModelConfiguration, required
    - `integrationId` string
    - `maxOutputTokens` integer
    - `modelName` string
    - `provider` 'ANTHROPIC' | 'GEMINI' | 'LITELLM' | 'OPENAI'
  - `text` string, required

## Response `201`

Chat created

- CreateChatResponse
  - `chatId` string

## Other responses

- `401`: Unauthorized

---

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