API and MCP server

Version 1 · updated 21 November 2026

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

  1. 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).
  2. Give your key a name (for example "n8n") and click Create a key. Copy it straight away: it is shown only once.
  3. Send the key in the Authorization header 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:

What you can read

Each line is both an API address and a tool of the MCP server. Every request is a GET.

AddressMCP toolWhat you get
GET /v1/shopget_shopYour shop: name, website, connected Facebook page and Instagram account, assistant on or off.
GET /v1/orderslist_ordersThe orders the assistant took (and those your team added), newest first.
GET /v1/orders/{id}get_orderOne order with its status history.
GET /v1/conversationslist_conversationsYour customer conversations (Messenger, Instagram, WhatsApp, TikTok, website) and their last message.
GET /v1/conversations/{id}get_conversationOne conversation: its latest messages, what is known about the customer and their orders.
GET /v1/productslist_productsYour catalogue: title, link, photo, price, stock and variants (size, colour).
GET /v1/customerslist_customersYour customers who ordered: number of orders, delivered, cancelled, refused, total spent.
GET /v1/customers/{key}get_customerOne customer's profile, from a phone number, an order or a conversation.
GET /v1/automationslist_comment_automationsYour comment automations, their trigger words and their results.
GET /v1/statsget_statsYour 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

GET /v1/conversations

GET /v1/conversations/{id}

GET /v1/products

GET /v1/customers

GET /v1/stats

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

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:

CallPoints
GET /v1/conversations/{id}2
GET /v1/customers/{key}3
GET /v1/customers5
GET /v1/automations5
GET /v1/stats?days=15
GET /v1/stats?days=710
GET /v1/stats?days=3025
Every other call1

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." } }
StatusCodeWhat it means
400invalid_requestA parameter is wrong. The message says which one.
401unauthorizedThe key is missing, wrong or was deleted.
403plan_requiredThe shop's current plan does not include the API (Pro or Business).
404not_foundNothing with this id in your shop, or an unknown address.
405method_not_allowedThe API is read only: only GET requests are accepted (POST for the MCP server).
429rate_limitedToo many requests, or the day's budget is used up. Wait for the time given by Retry-After.
500internal_errorA problem on our side. Try again in a moment.

Security

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].