---
title: "Import group channel from OneAPI"
method: POST
path: "/api/group_channels/import/oneapi"
tags: ["group_channels"]
---

# Import group channel from OneAPI

`POST /api/group_channels/import/oneapi`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`

Imports group channels from OneAPI from the global management view and atomically creates the group when it does not exist. Existing group configuration is preserved. The request body must include group_id.

## Request body

- ControllerImportChannelFromOneAPIRequest
  - `dsn` string
  - `group_id` string

## Response `200`

OK

- object
  - `data` unknown[]
    - unknown
  - `message` string
  - `success` boolean

## Changes

- **2026-10-12** `c2f7f35df2f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/labring/apis/ai-proxy-swagger-api/changes/api/group_channels/import/oneapi/post.md)

---

[API](https://skmtc.dev/labring/apis/ai-proxy-swagger-api.md) - [All operations](https://skmtc.dev/labring/apis/ai-proxy-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/labring/apis/ai-proxy-swagger-api/revisions/c2f7f35df2f5?raw)
