Мазмұнға өту

Messenger API

Панель қосылған Instagram, WhatsApp немесе Telegram аккаунтымен істей алатынның бәрі REST арқылы — бір кілт, бір жауап пішіні, тарау бойынша.

AI

Өз провайдер кілтіңізбен чат және медиа талдауы.

AI requests use the provider key you connected (OpenAI, Anthropic, Gemini, …); they are not part of the plan.

Base URL: https://chatvendor.net/api/v1 · every response is {"success": true, "data": …}

POST /channels/{id}/ai/analyze AI analysis of a message photo/file

Scope: ai:use

Parameters

idpath · integerrequired

Channel id (from GET /channels)

Body (application/json)

peerstringrequired
message_idintegerrequired
promptstring
provider_idinteger
json_schemaobject

Response 200 · Analysis

id integertext stringjson object|nullurl string

curl -X POST https://chatvendor.net/api/v1/channels/1/ai/analyze \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
  -H "Content-Type: application/json" \
  -d '{"peer":"…","message_id":1}'
POST /ai/chat Chat completion with your own provider key

Scope: ai:use

Body (application/json)

messagesobject[]required
messages[].rolestring
messages[].contentstring
systemstring
provider_idinteger
max_tokensinteger

Response 200 · AiReply

text stringmodel stringusage object

curl -X POST https://chatvendor.net/api/v1/ai/chat \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
  -H "Content-Type: application/json" \
  -d '{"messages":[]}'
GET /ai/providers Your AI providers

Scope: ai:use

Response 200 · AiProvider[]

id integername stringtype stringmodel stringis_default boolean

curl https://chatvendor.net/api/v1/ai/providers \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"