AI Chat
    • API Documentation
    • Ai
      • Get AI List
        GET
    • Chat
      • Create Room
        POST
      • Send Message
        POST
    • Schemas
      • Response
        • Response Get AI List

    API Documentation

    This documentation provides guidelines on how to access and use the API. Please read all sections carefully before integrating.

    Server#

    EnvironmentBase URL
    Staging-
    Production-
    Use the appropriate base URL based on your purpose. Staging is intended for testing and development, while production is for live systems.

    Request Headers#

    Every request to the API must include the following headers:
    Header NameTypeRequiredDescription
    x-request-idstring✅A unique ID for each request, generated on the client side. Useful for tracing and debugging.
    x-client-idstring✅A unique ID for each client. If you don’t have a client_id, please contact the admin to obtain one.
    x-ai-codestring⚠️Optional. Some endpoints may require an x-ai-code for additional validation. Check the endpoint documentation.
    Authorizationstring✅Authorization token using the Bearer scheme. The token is generated from Base64(public_key:private_key). Both keys can be obtained from the admin.
    Header Example

    Authorization#

    The API uses the Bearer Token scheme for authorization.
    The token format is the Base64 encoding of public_key:private_key.
    Example:
    public_key: abc123
    private_key: xyz789
    Encoding result :
    Important: Never store public_key and private_key in frontend code or any public repository.
    Modified at 2025-09-27 01:45:25
    Next
    Get AI List
    Built with