---
title: "Create a chat widget"
method: POST
path: "/chat-widgets"
tags: ["Chat widgets"]
---

# Create a chat widget

`POST /chat-widgets`

## Request

- Base URL: `https://api.flogpt.com/api/v1`
- URL: `https://api.flogpt.com/api/v1/chat-widgets`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

## Request body

- ResourceInput

## Response `201`

Created chat widget

- Resource: Resource fields vary by endpoint. Identifiers are serialized as strings.

## Other responses

- `400`: The request is invalid.
- `403`: The API key does not include the required scope.

---

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