---
title: "Save Connection"
method: PUT
path: "/api/v1/ai/connection"
tags: ["ai"]
---

# Save Connection

`PUT /api/v1/ai/connection`

## Request

- Base URL: `https://teraads.co` (the document declares no server; this is the origin it was published from)
- URL: `https://teraads.co/api/v1/ai/connection`
- Auth: none declared

Connect the business's AI. Own keys are checked with the provider first; the model must be one it offers.

## Query parameters

- `brand_id` string, required

## Request body

- ConnectionRequest
  - `provider` string, required
  - `model` string
  - `key` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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