Skip to main content

Developer Documentation (Developers & API)

AIHive provides a powerful toolkit (API & SDK) to help you integrate artificial intelligence into your website, mobile app, or internal management system (ERP/CRM) quickly.

Chat Widget Integration (Web SDK)

This is an “instant” solution (No-code) that allows you to add AIHive to your website with just a simple HTML code snippet. First, go to the “AI Setup” interface, after completing the setup. Click “Publish” image.png

Method 1: Floating Chat Bubble

Displays a chat icon in the corner of the screen. Suitable for Landing Pages or homepages. Copy the following code and paste it into the <body> or <footer> tag of your website:

Method 2: Full Page Embed

Transform a sub-page into a dedicated AI chat interface (similar to ChatGPT interface). Paste the following code into the <body> tag:

Method 3: iFrame Embed (Fixed Chat Frame)

Embed a chat frame in a fixed position within an article or admin dashboard interface.

Chat API (Backend Integration)

Use this API to build a custom chat interface (Custom UI) on Mobile App or send/receive messages from your Server.

1. Connection Information

  • Base URL: https://api.aihive.global/v1
  • Endpoint: /chat-messages
  • Method: POST

2. Authentication

Go to the Agent setup interface, click “Publish” and copy the API Key here image.png

2. Authentication

All requests must include an authentication Header for security:

3. Body Parameters (Data to Send)

4. Request Example (cURL)

You can quickly test the connection using Terminal:

5. Response Example (Returned Result)

If the call is successful, the Server will return JSON containing the AI’s answer:

Error Handling