---
title: "Connect Ai Provider"
method: POST
path: "/v2/ai-credentials/{provider}"
tags: ["v2 - AI Credentials"]
---

# Connect Ai Provider

`POST /v2/ai-credentials/{provider}`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/ai-credentials/{provider}`
- Auth: HTTP bearer

Connect an AI provider by validating and storing an API key.

## Path parameters

- `provider` string, required

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Request body

- ConnectRequest
  - `api_key` string, required
  - `model` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
