Skip to main content
POST
/
api
/
channel
Add Channel
curl --request POST \
  --url https://api.ldx.dev/api/channel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mode": "single",
  "channel": {
    "id": 123,
    "name": "<string>",
    "type": 123,
    "status": 123,
    "models": "<string>",
    "groups": "<string>",
    "priority": 123,
    "weight": 123,
    "base_url": "<string>",
    "tag": "<string>"
  }
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.liandanxia.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
mode
enum<string>
Available options:
single,
batch,
multi_to_single
channel
object

Response

200

Success