API and MCP server
The JAWEBNI API lets you read your shop's data from your other tools: your orders, conversations, customers, catalogue, comment automations and statistics. The MCP server gives the same access to an AI assistant such as Claude, so you can ask questions about your shop in plain language.
Two ways to connect. An AI assistant (Claude, ChatGPT) connects with your JAWEBNI account: it reads your shop and can change an order's status when you ask it to. An API key, for your tools and your code, only reads. Either way, a connection opens one shop: yours.
Get started in 2 minutes
- Open your JAWEBNI dashboard, then Settings → API. Only the shop's owner sees this tab. The API is included in the Pro and Business plans (and during the free trial).
- Give your key a name (for example "n8n") and click Create a key. Copy it straight away: it is shown only once.
- Send the key in the
Authorizationheader of every request:
curl "https://api.jawebni.app/v1/orders?status=new&limit=2" \
-H "Authorization: Bearer jw_live_YOUR_KEY"
The answer is JSON. Lists are in data; next_cursor is used to ask for the next page.
{
"data": [
{
"id": "ord_4112160b15e549208b7c",
"number": "#15988",
"status": "new",
"needs_review": false,
"created_at": "2026-11-21T09:42:10.000Z",
"customer": { "name": "Amira B.", "phone": "55123456", "email": null },
"shipping": { "governorate": "Ariana", "city": "La Soukra", "address": "12 rue des Jasmins" },
"items": [
{ "title": "Sneakers Classic White", "size": "38", "quantity": 1, "unit_price": 189 }
],
"subtotal": 189,
"delivery_fee": 8,
"discount": 0,
"discount_code": null,
"total": 197,
"currency": "TND",
"note": null,
"cancel_reason": null,
"conversation_id": "instagram:1784:99120",
"channel": "instagram"
}
],
"next_cursor": "WzE3OTc5MzI1MzAwMDAsIm9yZF80MTEyIl0"
}
Connect an AI assistant (MCP)
MCP (Model Context Protocol) is the standard that lets an AI assistant use tools. JAWEBNI's MCP server gives the same data as the API. Its address:
https://api.jawebni.app/mcp
Claude and ChatGPT (sign in with your account)
In your dashboard, Settings → API gives you the address to copy and opens the right page. In Claude: "Add" then "Add custom connector". In ChatGPT: "+" then "Add custom MCP server". Paste the address, then click "Connect": JAWEBNI opens, you pick your shop and allow. No key to copy. Connected this way, the assistant has one more tool, update_order_status, to confirm, ship or cancel an order; you choose at sign-in whether it has that right, every change is written to your activity log (100 a day at most), and you can disconnect it at any time in Settings → API.
Claude Code
In a terminal, with an API key (without the --header option, Claude Code opens the JAWEBNI sign-in in your browser):
claude mcp add --transport http jawebni https://api.jawebni.app/mcp \
--header "Authorization: Bearer jw_live_YOUR_KEY"
Other tools (Cursor, VS Code, n8n…)
Any tool that speaks MCP over HTTP ("Streamable HTTP") works with an API key. Give it the server address and the Authorization header. Many tools use this format:
{
"mcpServers": {
"jawebni": {
"type": "http",
"url": "https://api.jawebni.app/mcp",
"headers": { "Authorization": "Bearer jw_live_YOUR_KEY" }
}
}
}
Then just ask, for example:
- Which of today's orders are not confirmed yet?
- Who are my 5 best customers this month?
- Which products are out of stock?
- Summarise what customers asked about this week.
What you can read
Each line is both an API address and a tool of the MCP server. Every request is a GET.
| Address | MCP tool | What you get |
|---|---|---|
GET /v1/shop | get_shop | Your shop: name, website, connected Facebook page and Instagram account, assistant on or off. |
GET /v1/orders | list_orders | The orders the assistant took (and those your team added), newest first. |
GET /v1/orders/{id} | get_order | One order with its status history. |
GET /v1/conversations | list_conversations | Your customer conversations (Messenger, Instagram, WhatsApp, TikTok, website) and their last message. |
GET /v1/conversations/{id} | get_conversation | One conversation: its latest messages, what is known about the customer and their orders. |
GET /v1/products | list_products | Your catalogue: title, link, photo, price, stock and variants (size, colour). |
GET /v1/customers | list_customers | Your customers who ordered: number of orders, delivered, cancelled, refused, total spent. |
GET /v1/customers/{key} | get_customer | One customer's profile, from a phone number, an order or a conversation. |
GET /v1/automations | list_comment_automations | Your comment automations, their trigger words and their results. |
GET /v1/stats | get_stats | Your numbers for today, the last 7 days or the last 30 days. |
Parameters
Parameters go in the address (?status=new&limit=10). All of them are optional.
GET /v1/orders
status: the status:new,confirmed,shipped,delivered,cancelledorreturned.q: search in the customer's name, phone or the order number.since: only orders created on or after this date, ISO 8601 (2026-11-01).limit: how many results, 1 to 50 (default 20).cursor: thenext_cursorvalue of the previous page.
GET /v1/conversations
channel: the channel:messenger,instagram,whatsapp,tiktokorweb.limit: how many results, 1 to 50 (default 20).cursor: thenext_cursorvalue of the previous page.
GET /v1/conversations/{id}
limit: how many messages (the latest ones), 1 to 100 (default 50).
GET /v1/products
q: words to look for in the title, brand or type.in_stock:true= only products in stock,false= only sold-out products.limit: how many results, 1 to 50 (default 20).cursor: thenext_cursorvalue of the previous page.
GET /v1/customers
q: search in the customer's name or phone.sort:spent(biggest spenders, default),recent(latest order) orrisk(most cancelled and refused orders).limit: how many results, 1 to 100 (default 50).
GET /v1/stats
days:1(today, Tunis time),7(default) or30.
In an address, a conversation id must be URL-encoded (it contains ":"). A customer key is a phone number, an order id or a conversation id.
Data format
- Amounts are in Tunisian dinars (
"currency": "TND"), as numbers:189,7.5. - Dates are ISO 8601, in UTC:
2026-11-21T09:42:10.000Z. The shop works in Tunis time. - Pages: a list returns a few results at a time. If
next_cursoris notnull, send the same request withcursor=that value to get the rest. - The dashboard's test conversations and test orders are never returned.
Limits
Limits count for your whole shop, all keys together: 60 requests a minute and a budget of 1,000 points a day (it restarts at midnight UTC). Most calls cost 1 point; the ones that read a lot of data cost more:
| Call | Points |
|---|---|
GET /v1/conversations/{id} | 2 |
GET /v1/customers/{key} | 3 |
GET /v1/customers | 5 |
GET /v1/automations | 5 |
GET /v1/stats?days=1 | 5 |
GET /v1/stats?days=7 | 10 |
GET /v1/stats?days=30 | 25 |
| Every other call | 1 |
Every answer tells you where you stand: X-RateLimit-Remaining (requests left this minute) and X-RateLimit-Remaining-Day (points left today). Beyond that the API answers 429 with the Retry-After header: the number of seconds to wait. Need more? Write to us.
Errors
An error always has the same shape, with a stable code and a message in English:
{ "error": { "code": "rate_limited", "message": "Too many requests (60 a minute). Wait a moment and try again." } }
| Status | Code | What it means |
|---|---|---|
400 | invalid_request | A parameter is wrong. The message says which one. |
401 | unauthorized | The key is missing, wrong or was deleted. |
403 | plan_required | The shop's current plan does not include the API (Pro or Business). |
404 | not_found | Nothing with this id in your shop, or an unknown address. |
405 | method_not_allowed | The API is read only: only GET requests are accepted (POST for the MCP server). |
429 | rate_limited | Too many requests, or the day's budget is used up. Wait for the time given by Retry-After. |
500 | internal_error | A problem on our side. Try again in a moment. |
Security
- A key gives access to your customers' names, phone numbers, addresses and messages. Only give it to a tool you trust.
- Keep the key on a server: never in a web page, a mobile app or a public code repository.
- Send it only in the
Authorizationheader, never in the address. - Create one key per tool (5 at most). If a key leaks, delete it in Settings → API: it stops working at once, the others keep working.
- Every key creation and deletion is written to your shop's activity log.
- With an AI assistant: messages are written by your customers. A good assistant treats them as information, never as orders to follow.
Going further
The full technical description (OpenAPI 3.1), to import into Postman, n8n or a code generator: https://api.jawebni.app/v1/openapi.json. A question or a need (writing, webhooks, higher limits)? [email protected].