Potente API
ChatBotKit API is your one-stop solution for integrating cutting-edge AI functionality into your applications. Our API is designed to be powerful yet flexible, offering a range of endpoints and features that can be tailored to your specific needs.
Características principales
- Action-Based Approach: Our API is designed around actions, not just resources. Each resource supports a range of actions, such as listing, creating, updating, and more. This dynamic approach allows for greater flexibility and closer alignment with your application's needs.
- Token-Based Authorization: We prioritize security and convenience. Our token-based authorization system lets you create tokens for accessing the API, and even generate scoped tokens for specific resources and actions.
- Suposición del usuario: ¿Necesita cambiar el contexto a una subcuenta? Nuestra API también lo permite. Perfecto para configuraciones de relación de cuenta padre-hijo.
- Paginación y streaming: Maneje grandes conjuntos de datos con facilidad. Nuestra API es compatible con la paginación basada en el cursor y el streaming, para ayudarle a navegar y extraer grandes cantidades de datos de forma eficiente.
Uso de la API de ChatBotKit
Aquí tienes una idea de cómo es trabajar con nuestra API. A continuación te mostramos cómo listar tus conversaciones:
GET /v1/conversation/list HTTP/1.1 Host: api.chatbotkit.com Authorization: Bearer {your_token_here}
A continuación se explica cómo utilizar nuestras funciones de streaming para recibir mensajes:
POST /v1/conversation/complete HTTP/1.1 Host: api.chatbotkit.com Authorization: Bearer {your_token_here} Accept: application/jsonl {"text": "Hello"} HTTP/1.1 200 OK Conten-Type: application/jsonl Transfer-Encoding: chunked {"type": "token", "token": "Hi"} {"type": "token", "token": "there"} {"type": "token", "token": "!"}
Todos los puntos finales de lista y finalización admiten respuestas de flujo continuo en varios formatos, como application/jsonl
y texto/csv
.
Profundizar
¿Quiere saber más? Nuestra completa documentación de la API le ofrece todo lo que necesita para empezar a integrar ChatBotKit en sus aplicaciones. Para disfrutar de la experiencia completa, visite nuestra Especificación OpenAPI OpenAPI.