kamaiyoAPI
Kamaiyo API

Build on Kamaiyo.

Generate trackable links, list the campaigns you can promote, and pull your orders — the same data the Kamaiyo app runs on, from your own code.

Base URL

https://api.kamaiyo.com/v1

Auth

x-api-key header

Format

JSON · { success, data }

Authentication

Every request needs your API key in the x-api-key header. Sign in below to create one — it’s shown once, so store it safely. Rotating replaces it and immediately disables the old key.

Playground API key

Used by the “Try it” panels. Stored only in this browser — never sent to our docs server.

Example request

curl
curl https://api.kamaiyo.com/v1/campaigns \
  -H "x-api-key: YOUR_API_KEY"
GET/v1/campaigns

List campaigns

Every campaign you can promote right now — live, brand-approved offers with their commission, allowed channels and the store domains they cover.

Parameters

limitinteger
query
Page size (default 50, max 200).
offsetinteger
query
Rows to skip for paging.

Example response

json
{
  "success": true,
  "data": {
    "campaigns": [
      {
        "id": "c316e04e-8a76-4064-a675-e4ac4f6ff0d9",
        "brand_name": "Flipkart",
        "category": null,
        "brand_logo_url": null,
        "commission": {
          "type": "percentage",
          "value": "8",
          "currency": "INR",
          "display": "Up to 8%"
        },
        "allowed_channels": [
          "whatsapp",
          "telegram",
          "website"
        ],
        "destination_domains": [
          "www.flipkart.com",
          "dl.flipkart.com"
        ],
        "terms_url": null,
        "link_mode": "kamaiyo_tracked_redirect"
      }
    ],
    "count": 1
  }
}

Try it

curl
curl "https://api.kamaiyo.com/v1/campaigns?limit=20" \
  -H "x-api-key: YOUR_API_KEY"
GET/v1/conversions

Track orders

Your orders, straight from Kamaiyo’s own records. Newest first. Filter by campaign, by a specific link (its short code or id), or look up a single order by its reference.

Parameters

campaign_idstring (uuid)
query
Only orders for this campaign.
link_codestring
query
Only orders on this short link (the code in …/r/CODE).
link_idstring (uuid)
query
Only orders on this generated-link id.
order_referencestring
query
Look up one order by its store reference.
statusstring
query
validated, awaiting_validation, received, reversed or rejected.
start_datestring (date)
query
Only orders reported on/after this date.
end_datestring (date)
query
Only orders reported on/before this date.
limitinteger
query
Page size (default 50, max 200).

Example response

json
{
  "success": true,
  "data": {
    "conversions": [
      {
        "order_reference": "OD338333937551273100",
        "campaign_id": "c316e04e-8a76-4064-a675-e4ac4f6ff0d9",
        "brand_name": "Flipkart",
        "link_code": "avyrk5z4jr",
        "channel": "whatsapp",
        "sale_amount": {
          "minor": 86900,
          "amount": "869.00",
          "currency": "INR"
        },
        "commission": {
          "minor": 5985,
          "amount": "59.85",
          "currency": "INR"
        },
        "status": "awaiting_validation",
        "source": "whatsapp",
        "order_date": "2026-08-11T21:34:33+00:00",
        "reported_at": "2026-08-12T06:40:48.28+00:00"
      }
    ],
    "count": 1
  }
}

Try it

curl
curl "https://api.kamaiyo.com/v1/conversions?link_code=avyrk5z4jr&order_reference=OD338333937551273100&start_date=2026-08-01&limit=20" \
  -H "x-api-key: YOUR_API_KEY"

Errors

Failures use the same envelope with success: false and an error.code you can branch on.

401 missing_api_key / invalid_api_keyNo x-api-key header, or the key is wrong or revoked.
400 invalid_input / invalid_urlA parameter is missing or malformed (the message says which).
422 no_campaign_for_urlNo active campaign covers that product link’s store.
403 account_suspendedThe account behind the key is suspended.
500 internal_errorSomething went wrong on our side — retry, then contact support.

Need help? Email hello@kamaiyo.com.