---
title: "Add Openapi Connection To Client"
method: POST
path: "/v1/workspaces/{workspace}/clients/{client_id}/openapi-connections"
tags: ["v1", "protected", "clients"]
---

# Add Openapi Connection To Client

`POST /v1/workspaces/{workspace}/clients/{client_id}/openapi-connections`

## Request

- The document declares no server URL.
- Auth: HTTP bearer

## Path parameters

- `client_id` string, uuid, required
- `workspace` string, required: Slug of the workspace the request acts in

## Request body

- OpenAPIConnectionAssociationBody: Attach an OpenAPI connection, or replace how an attached one is served.
  - `allowed_tools` string[], nullable
  - `id` string, required
  - `namespace_prefix` string, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-13** `a2981101dd93`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/workspaces/:workspace/clients/:client_id/openapi-connections/post.md)

---

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