Documentation

Quick Start

Get up and running in 3 minutes:

1. Create an Agent

Sign up for a free account and create your first AI agent from the dashboard. Choose an AI model and write a system prompt.

2. Connect Your Data

Add connectors to your agent — PostgreSQL, MySQL, REST APIs, Shopify, HubSpot, and more. Your agent will query them in real-time.

3. Embed the Widget

Copy the embed code from your agent settings and paste it into your website:

<script src="https://cdn.meshly.pro/widget.js" data-agent-id="YOUR_AGENT_ID"></script>

Widget Options

Attribute Description
data-agent-id Required. Your agent's public ID.
data-token Optional. JWT for end-user identification.
data-api-url Optional. Custom API base URL.

REST API

Authenticate with a Bearer token from your API Keys page:

curl -H "Authorization: Bearer meshly_xxx" https://meshly.pro/api/v1/agents

Endpoints

  • GET /api/v1/agents — List your agents
  • GET /api/v1/conversations — List conversations
  • POST /api/v1/conversations/:id/messages — Send a message
  • GET /api/v1/usage — Usage statistics