---
title: "Create Session"
method: POST
path: "/v1/chats"
tags: ["Chats", "chats"]
---

# Create Session

`POST /v1/chats`

## Request

- Base URL: `https://api.call2me.app`
- URL: `https://api.call2me.app/v1/chats`
- Auth: HTTP bearer

Create a new chat session with an agent.

## Request body

- SrcRoutersV1ChatsCreateSessionRequest
  - `agent_id` string, required
  - `title` string, nullable
  - `external_user_id` string, nullable
  - `metadata` object, nullable

## Response `200`

Successful Response

- ChatSession
  - `session_id` string, required
  - `user_id` string, required
  - `agent_id` string, nullable
  - `agent_name` string, nullable
  - `title` string, nullable
  - `status` string, required
  - `message_count` integer, required
  - `total_tokens` integer, required
  - `total_cost_usd` number, required
  - `external_user_id` string, nullable
  - `created_at` string, required
  - `updated_at` string, required
  - `source` string
  - `widget_name` string, nullable
  - `visitor_name` string, nullable

## Other responses

- `422`: Validation Error

---

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