CChatAPI DeveloperKrijo llogari

Dokumentacion

Të gjitha endpoint-et

Katalog i plotë. Prefiksi është /v1.

Publike

  • GET /v1/health — { status, service, ts }
  • GET /v1/developer/meta — api_base, ws_path, portali
  • POST /v1/auth/register — krijon supervisor
  • POST /v1/auth/login — JWT agjenti
  • POST /v1/chat/session — platform_token → sesion lojtari
  • GET /v1/chat/me — Bearer platform_token

Lojtari (chat access_token)

  • POST /v1/chat/conversations/:id/messages — { body }
  • GET /v1/chat/conversations/:id/messages
  • POST /v1/chat/conversations/:id/photos — multipart photo
  • GET /v1/media/:id?token= — shkarkon foton

Agjenti (agent JWT)

  • GET /v1/conversations
  • GET /v1/conversations/:id/messages
  • POST /v1/conversations/:id/messages — përgjigjja
  • POST /v1/conversations/:id/photos
  • POST /v1/conversations/:id/read
  • POST /v1/conversations/:id/close
  • POST /v1/conversations/:id/block-user
  • GET /v1/conversations/canned-replies
  • GET /v1/conversations/export/csv
  • GET /v1/players?q=
  • POST /v1/players/contact
  • GET /v1/settings/auto-message
  • PUT /v1/settings/auto-message
  • GET /v1/settings/canned-replies
  • POST /v1/settings/canned-replies — { title, body }
  • PUT /v1/settings/canned-replies/:id
  • DELETE /v1/settings/canned-replies/:id
  • GET /v1/developer/tokens, POST /v1/developer/tokens, POST /v1/developer/tokens/:id/revoke — vetëm supervisor

Backend-i i bastit (API key)

  • GET /v1/developer/integrations/ping — scope integration:ping
  • GET /v1/developer/integrations/conversations — scope conversations:read
  • POST /v1/developer/integrations/players — scope players:write
  • POST /v1/developer/integrations/agent-session — scope agent:session

Vetëm zhvillim

Këto nuk janë aktive kur NODE_ENV=production.

  • GET /v1/chat/dev/me — profili demo
  • POST /v1/chat/dev/platform-token — nënshkruan JWT demo. Trupi mund të ketë user_id dhe username