Seekmodo developer docs

Reference for the REST shim, MCP JSON-RPC surface, and storefront connectors. Authenticate with HMAC; replay window is 5 minutes.

Tickets API

Read, open, answer and update Seekmodo Tickets from your own systems. Everything goes through one endpoint:

POST https://seekmodo.com/api/platform/tickets_api

The body is a JSON object with an action and that action's fields, for example {"action": "get", "number": 1042}. Success answers {"ok": true, ...} with HTTP 200; failures answer {"ok": false, "error": "<code>"} with the status in the error table. The machine-readable spec is in /openapi.json (tag Tickets, plus webhooks), browsable on the REST tab.

Authentication

Every request carries X-Seekmodo-Tenant: your-store-id (lower case) and one of the two methods below.

1. Tenant API key (integrations)

Create a key at admin.seekmodo.com/settings/api-keys (store owner or admin). It starts with smk_tk_, is shown once, and is sent as Authorization: Bearer smk_tk_.... Each key has an optional expiry, can be rotated (the old secret stops working at once) or revoked, and every call is logged with its action, status and IP. Scopes:

ScopeActs likeAllows
tickets:readViewerThe read actions only: list, get, poll, agents, settings_get, suppressions_list, macros_list, attachment_get. Any other action fails with insufficient_scope (403).
tickets:writeChat roleReads plus create, reply, notes, status and priority (not closed), assigning yourself, watching, participants, forwards, chat conversion, quarantine release, and your own notify_email.
tickets:adminAdmin roleEverything above plus closing, assigning others, merge, bulk_update, suppressions, macros, quarantine reject and store settings. With a tickets:write key the admin-only actions (merge, bulk_update, suppressions_add, suppressions_remove, macros_set, macros_remove, quarantine_reject) fail with insufficient_scope (403); admin-only fields of other actions fail with forbidden.

Keys can never call the key, webhook and email-setup management actions (api_keys_*, webhooks_*, email_* such as email_status, email_domain_add or email_send_test; admin app only) or the customer-portal and inbound-mail actions (shopper_list, shopper_get, shopper_reply, csat_submit, inbound_email). Those answer action_not_allowed (403).

2. Connector HMAC (store plugins)

Paired connectors (Zen Cart, WordPress, the MCP gateway) sign with the store's shared secret instead of a key, the same way as the rest of the Seekmodo API. Send:

  • X-Seekmodo-Timestamp: Unix seconds, within 5 minutes of Seekmodo's clock (otherwise timestamp_out_of_window).
  • X-Seekmodo-Signature: lower-case hex HMAC-SHA256 of the raw request body, keyed with the shared secret. Only the body is signed, not the timestamp.

HMAC callers act with store-admin rights. Reads need nothing more; writes must name a person in acting_agent, otherwise they fail with actor_required (401). The connector vouches for that person: any valid email is created (or updated) as an active ticket agent with admin rights, so send your logged-in store admin, not customer input. A store that was never paired answers not_paired (503).

Who the action is attributed to

Add acting_agent to act as a real person: {"email": "[email protected]", "name": "Ada"}.

  • With an API key (and for MCP gateway calls) the email must be the store owner, a store team member, or an existing active ticket agent, otherwise actor_not_member (403). No new agent is created.
  • That person's team role applies (an active ticket agent who is not on the team counts as admin), capped by the key's scope: an admin acting through a tickets:write key gets Chat rights; a Viewer member cannot write at all (forbidden).
  • With connector HMAC the email is not checked against the team: it is created as a ticket agent if needed and acts with admin rights (see above).
  • Writes with an API key and no acting_agent are made by a service agent named API: <key name> (it never receives notification emails). That is the name customers and your team see on replies and in the history.
  • role, user_id and operator inside acting_agent are ignored for API-key and HMAC callers.
  • Reads need no actor. Without one, the mine view is empty and me is null.

Examples

List open tickets with an API key:

curl -sS https://seekmodo.com/api/platform/tickets_api \
  -H "Authorization: Bearer $SEEKMODO_TICKETS_KEY" \
  -H "X-Seekmodo-Tenant: your-store-id" \
  -H "Content-Type: application/json" \
  -d '{"action": "list", "view": "open", "per_page": 25}'

Reply as a teammate and mark the ticket solved:

curl -sS https://seekmodo.com/api/platform/tickets_api \
  -H "Authorization: Bearer $SEEKMODO_TICKETS_KEY" \
  -H "X-Seekmodo-Tenant: your-store-id" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "reply",
    "number": 1042,
    "body": "Your replacement ships today.",
    "status_after": "solved",
    "acting_agent": {"email": "[email protected]"}
  }'

Connector HMAC signing from a shell:

BODY='{"action": "get", "number": 1042}'
TS=$(date +%s)
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$SEEKMODO_SHARED_SECRET" -hex | sed 's/^.* //')

curl -sS https://seekmodo.com/api/platform/tickets_api \
  -H "X-Seekmodo-Tenant: your-store-id" \
  -H "X-Seekmodo-Timestamp: $TS" \
  -H "X-Seekmodo-Signature: $SIG" \
  -H "Content-Type: application/json" \
  --data-raw "$BODY"

The JavaScript and PHP SDKs cover search and catalog calls and do not wrap the ticket API yet. These small helpers do the same job with no dependencies.

Node:

// Node 18+ (global fetch). No dependencies.
const TICKETS_API = "https://seekmodo.com/api/platform/tickets_api";

async function tickets(action, fields = {}) {
  const res = await fetch(TICKETS_API, {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.SEEKMODO_TICKETS_KEY}`,
      "X-Seekmodo-Tenant": process.env.SEEKMODO_TENANT,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ action, ...fields }),
  });
  const data = await res.json();
  if (!data.ok) throw new Error(`tickets_api ${action}: ${res.status} ${data.error}`);
  return data;
}

// Open a ticket from your CRM, then answer it as a real teammate.
const { number } = await tickets("create", {
  origin: "api",
  requester_email: "[email protected]",
  requester_name: "Sam",
  subject: "Order #5521 arrived damaged",
  body: "The left bracket is bent.",
  priority: "high",
  tags: ["damage", "crm"],
});
await tickets("reply", {
  number,
  body: "Sorry about that. A replacement ships today.",
  status_after: "pending_customer",
  acting_agent: { email: "[email protected]" },
});

// Page through open tickets.
const page1 = await tickets("list", { view: "open", sort: "updated", per_page: 50 });
console.log(page1.total, page1.rows.map((t) => t.number));

PHP:

<?php
// PHP 8+, ext-curl. No dependencies.
function seekmodo_tickets(string $action, array $fields = []): array
{
    $ch = curl_init('https://seekmodo.com/api/platform/tickets_api');
    curl_setopt_array($ch, [
        CURLOPT_POST => true,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('SEEKMODO_TICKETS_KEY'),
            'X-Seekmodo-Tenant: ' . getenv('SEEKMODO_TENANT'),
            'Content-Type: application/json',
        ],
        CURLOPT_POSTFIELDS => json_encode(['action' => $action] + $fields),
    ]);
    $raw = curl_exec($ch);
    $status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
    curl_close($ch);
    $data = json_decode((string) $raw, true);
    if (!is_array($data) || ($data['ok'] ?? false) !== true) {
        throw new RuntimeException("tickets_api $action: $status " . ($data['error'] ?? 'bad_response'));
    }
    return $data;
}

$ticket = seekmodo_tickets('get', ['number' => 1042, 'include_notes' => false]);
echo $ticket['ticket']['status'], PHP_EOL;

seekmodo_tickets('note', [
    'number' => 1042,
    'body' => 'Checked with the warehouse: shipped 14:05.',
]);

Actions

Tickets are addressed by their store number (number, the #1042 customers see). Agent ids come from agents. Statuses: new, open, pending_customer, on_hold, solved, closed. Priorities: low, normal, high, urgent. Views for list: mine, unassigned, open (default), pending, overdue, solved, quarantine, all. Exact field types for every action are in the TicketAction_* and TicketResult_* schemas of /openapi.json.

Read (tickets:read)

actionFields (* required)Returns (besides ok: true)
listview, status, priority, assignee (me | unassigned | agent id), tag, requester_email, q, sort (updated | created | priority | due), dir, page, per_page (max 100)rows[], total, page, pages, per_page, counts, me
getnumber*, include_notes (default true)ticket, messages[], threads[], events[] (latest 100), participants[], delivery[], requester_tickets[], actions, me
pollsince_event_id, updated_since (ISO time)counts, last_event_id, last_message_id, changed, updated_numbers[] (max 200), ts
agents(none)agents[] (id, name, email, active, ...), me
settings_get(none)SLA, mail, portal (including portal_tls certificate status for a custom host) and inbound_address settings
suppressions_list(none)suppressions[] (id, email, reason, source, global, created_at)
macros_list(none)macros[] (id, title, body)
attachment_getnumber*, attachment_id*attachment { filename, content_type, size, content_base64 }

Write (tickets:write)

actionFields (* required)Returns (besides ok: true)
createbody*, subject, requester_email, requester_name, priority, type, tags, origin (send api), as_agent_reply, send_ack, assignee_ids[], assign_selfnumber, created
replynumber*, body* (max 50,000 chars), status_after (open | pending_customer | on_hold | solved; default pending_customer), cc[] (max 20), cc_on_reply, attachments[]number, status, recipients[]
notenumber*, body*, sensitivenumber, kind (internal_note | sensitive)
updatenumber*, status, priority, tags (replaces), type, subjectticket
assignnumber*, add[], remove[], primary, selfnumber, assignees[], watchers[], count
watch / unwatchnumber*, agent_id (default: you)number, watching
participants_add / participants_removenumber*, email*, namenumber, participants[]
forward_createnumber*, body*, to* (list or comma string), cc, bcc, subject, quote_message_id, attachments[]number, thread_id
forward_replynumber*, thread_id*, body*, to, cc, bcc, attachments[]number, thread_id
convert_from_chatchat_ref* (store:<id>), transcript[], requester_email, requester_name, subject, priority, assign_selfnumber, created (false when that chat already has a ticket)
quarantine_promotenumber*number, quarantined: false
presencenumber*, typingviewers[]
settings_setnotify_email; admin only (forbidden otherwise): sla_policy, auto_close_days (1-60), sla_calendar, csat_enabled, reopen_within_days (0-90, clamped), portal_participants_manage, portal_participants_status, portal_daily_caps ({signup,reset,ticket}; lower only, clamped to the Seekmodo maximum), spam_allowlist, email_logo_url, email_accent_color, from_*, portal_custom_domain, verify_portal_domain, refresh_portal_tls (re-read the custom host certificate status), ...the same shape as settings_get
  • reply emails the requester and CC participants first and only saves the reply if the email was accepted. Replying to an unassigned ticket assigns it to the actor. Addresses in cc become participants right away (they stay even if the email then fails). attachments takes the same {filename, content_type, content_base64} items as forwards (10 files, 5 MiB in total); executables and scripts are refused with blocked_attachment_type and the file's filename.
  • note is never emailed to the customer. @name mentions add those agents as watchers and notify them. sensitive: true keeps the text out of notification mail and the list preview.
  • forward_create starts a private email thread with a third party (supplier, courier). Up to 50 recipients per message, 100 threads per ticket, and 10 attachments of 5 MiB in total, each {filename, content_type, content_base64}.
  • create with as_agent_reply: true needs requester_email and emails the first message to the customer; once sent the status becomes pending_customer. If that email fails the ticket is still created and the call still returns ok: true (the status stays new); check get → delivery if it matters. send_ack: true emails the customer a receipt that the ticket was opened.
  • settings_set: reopen_within_days is clamped to 0-90 (0 = a reply to a closed ticket starts a new one). portal_participants_manage / portal_participants_status let CC participants, not only the requester, manage participants / change status in the portal. An email_logo_url that is not an https:// URL (up to 500 characters) or an email_accent_color that is not #RRGGBB clears that setting instead of failing.

Admin (tickets:admin)

actionFields (* required)Returns (besides ok: true)
mergenumber* (merged away), into* (survives)number (survivor), merged
bulk_updatenumbers[]* (max 100), status, priority, tags, type, subject, add_tags, assign_add[], assign_remove[]updated
suppressions_add / suppressions_removeemail*, reasonemail, global / removed
macros_set / macros_removeid, title*, body* / id*macro / id
quarantine_rejectnumber* (must be in quarantine, else not_quarantined)number, status: closed
reportsfrom, to (YYYY-MM-DD, inclusive, in the SLA calendar timezone or UTC), days (default 30, max 366)range, summary (first response and resolution avg/median minutes, SLA breaches, backlog_end, csat), by_priority[], by_channel[], by_agent[], daily[], csat_weekly[], csat_comments[] (latest 50)

Prefer webhooks to polling. If you do poll, call poll with the last last_event_id (and updated_since) and only get the tickets in updated_numbers.

merge closes and archives the source ticket and moves its messages, attachments and forward threads to the target. The source's assignees are added to the target; watchers are not moved. CC participants are copied, and if the requesters differ the source requester becomes a CC participant on the target.

Errors

errorHTTPMeaning
tenant_required401X-Seekmodo-Tenant is missing or not a valid store id.
invalid_api_key401Unknown key, malformed key, or a key of another store.
api_key_revoked / api_key_expired401The key was revoked or passed its expiry date.
missing_timestamp, timestamp_out_of_window, bad_signature_format, signature_mismatch401Connector HMAC problems. Also what you get when the Authorization header is not an smk_tk_ key, because the request then falls through to HMAC.
actor_required401A write had no usable actor (connector HMAC calls must send acting_agent on writes).
action_required / unknown_action400No action, or an action this endpoint does not have. Checked before the key's scope, so a read-only key gets these too.
insufficient_scope403The key's scope does not cover the action: a write with tickets:read, or an admin-only action (merge, bulk_update, suppressions_add/remove, macros_set/remove, quarantine_reject, reports) without tickets:admin.
action_not_allowed403Management, portal and inbound-mail actions are not available to API keys.
actor_not_member403acting_agent is not the store owner, a team member, or an active ticket agent.
forbidden403The acting role is too low for this action or field (for example closing via update, assigning someone else, or admin settings without admin).
ticket_not_found / chat_not_found404No ticket with that number in this store (or no such chat). These are the only 404s: other *_not_found codes are 400.
payload_too_large413Body over 8,000,000 characters.
mail_failed / mail_not_configured502The email could not be sent. A reply or forward is not saved in that case.
not_paired503HMAC only: the store has no paired shared secret.
internal_error500Unexpected failure. Safe to retry reads; check the ticket before retrying writes.
anything else400Validation and state errors: invalid_json, action_required, unknown_action, body_required, body_too_long, ticket_closed, ticket_merged, ticket_quarantined, email_required, invalid_requester_email, invalid_cc_email (with email), invalid_email, unknown_agent (with agent_ids), already_requester, not_quarantined, merge_into_self, numbers_required, attachment_not_found, too_many_recipients, too_many_attachments, invalid_attachment, attachment_too_large, blocked_attachment_type (with filename), thread_limit, thread_required, thread_not_found, quote_not_found, invalid_chat_ref, transcript_required, title_required, id_required, macro_not_found, mail_suppressed, ticket_email_quota, portal_domain_not_under_verified_apex, portal_domain_required, portal_cname_missing.

Webhooks

Instead of polling, Seekmodo can POST a signed JSON event to your HTTPS endpoint when a ticket changes. Add endpoints at admin.seekmodo.com/settings/webhooks (store owner or admin; up to 10 per store). The signing secret starts with whsec_ and is shown once. After Rotate secret the old secret keeps signing for 24 hours: the signature header then carries two v1 values (new secret first), so switch your receiver over within that day. Endpoints must be https:// on port 443 (the default) or 8443, on a public address (no localhost, private networks, or IPv6 transition ranges that embed one).

EventSent whendata.change
ticket.createdA ticket is opened, or released from spam quarantine.absent, or {"released_from_quarantine": true}
ticket.repliedThe customer or an agent adds a public reply (never internal notes). Includes data.message; data.ticket.status is the status after the reply.{"author_type": "customer" | "agent" | "system", "channel"}
ticket.status_changedThe status moves, including the automatic close of solved tickets (actor System), the source ticket of a merge, and rejecting a quarantined ticket as spam.{"from": "open", "to": "solved"}
ticket.assignedSomeone is assigned, unassigned or made primary.{"action": "assigned" | "unassigned" | "primary_changed", "agent_id", "previous_agent_id"?}
ticket.participant_changedA CC participant is added or removed: by an agent (also via reply cc), in the portal, when a customer email Cc's a new address, or when a merge copies participants.{"action": "added" | "removed", "email"}
webhook.testYou click Send test event. data is {"endpoint_id", "message"}.-

Tickets held in spam quarantine send nothing until released. Every event has the same envelope: id, type, api_version (currently 2026-11-21), created_at, tenant_id and data with ticket, change, actor ({"agent_id", "name"}; agent_id is null for customers and the system) and, on ticket.replied, message (text cut at 10,000 characters). Fetch anything else with get.

{
  "id": "evt_5f0c...",
  "type": "ticket.replied",
  "api_version": "2026-11-21",
  "created_at": "2026-11-21T18:04:05.000Z",
  "tenant_id": "your-store-id",
  "data": {
    "ticket": {
      "number": 1042,
      "subject": "Order #5521 arrived damaged",
      "status": "open",
      "priority": "high",
      "type": "",
      "tags": ["damage"],
      "requester_name": "Sam",
      "requester_email": "[email protected]",
      "origin": "email",
      "message_count": 3,
      "assignee_ids": ["6f1d..."],
      "primary_assignee_id": "6f1d...",
      "created_at": "...", "updated_at": "...", "solved_at": null, "closed_at": null
    },
    "change": { "author_type": "customer", "channel": "email" },
    "actor": { "agent_id": null, "name": "Sam" },
    "message": {
      "id": 88123,
      "kind": "customer",
      "channel": "email",
      "author_name": "Sam",
      "author_email": "[email protected]",
      "body": "Thanks! Will the new one have the same part number?",
      "body_truncated": false,
      "attachment_count": 0,
      "created_at": "..."
    }
  }
}

Headers

  • Seekmodo-Signature: t=<unix seconds>,v1=<hex>
  • Seekmodo-Event: the event type
  • Seekmodo-Event-Id: same as id; use it to ignore duplicates
  • Seekmodo-Delivery: the delivery id for this endpoint

Verifying the signature

  1. Read t and every v1 from Seekmodo-Signature.
  2. Compute HMAC-SHA256 of t + "." + raw body, keyed with the full secret (including whsec_), as lower-case hex.
  3. Accept only if it equals a v1 (constant-time compare) and t is within 5 minutes of now.

Node (Express):

import { createHmac, timingSafeEqual } from "node:crypto";
import express from "express";

export function verifySeekmodoSignature(rawBody, header, secret, toleranceSeconds = 300) {
  let t = NaN;
  const signatures = [];
  for (const part of (header ?? "").split(",")) {
    const [key, value] = part.trim().split("=", 2);
    if (key === "t") t = Number(value);
    else if (key === "v1" && value) signatures.push(value);
  }
  if (!Number.isSafeInteger(t)) return false;
  if (Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false;
  // Key = the full secret, including the "whsec_" prefix.
  const expected = Buffer.from(createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex"));
  return signatures.some((s) => {
    const got = Buffer.from(s);
    return got.length === expected.length && timingSafeEqual(got, expected);
  });
}

const app = express();
// Use the raw body: re-serialised JSON will not match the signature.
app.post("/seekmodo/webhooks", express.raw({ type: "application/json" }), (req, res) => {
  const raw = req.body.toString("utf8");
  if (!verifySeekmodoSignature(raw, req.get("Seekmodo-Signature"), process.env.SEEKMODO_WEBHOOK_SECRET)) {
    return res.sendStatus(400);
  }
  const event = JSON.parse(raw);
  // Deliveries can repeat: skip event.id values you have already handled.
  if (event.type === "ticket.status_changed") {
    console.log(event.data.ticket.number, event.data.change.from, "->", event.data.change.to);
  }
  res.sendStatus(204); // answer within 10 seconds; do slow work afterwards
});

PHP:

<?php
function seekmodo_verify_signature(string $rawBody, string $header, string $secret, int $tolerance = 300): bool
{
    $t = null;
    $signatures = [];
    foreach (explode(',', $header) as $part) {
        [$key, $value] = array_pad(explode('=', trim($part), 2), 2, '');
        if ($key === 't' && ctype_digit($value)) {
            $t = (int) $value;
        } elseif ($key === 'v1' && $value !== '') {
            $signatures[] = $value;
        }
    }
    if ($t === null || abs(time() - $t) > $tolerance) {
        return false;
    }
    // Key = the full secret, including the "whsec_" prefix.
    $expected = hash_hmac('sha256', $t . '.' . $rawBody, $secret);
    foreach ($signatures as $signature) {
        if (hash_equals($expected, $signature)) {
            return true;
        }
    }
    return false;
}

$raw = file_get_contents('php://input');
$header = $_SERVER['HTTP_SEEKMODO_SIGNATURE'] ?? '';
if (!seekmodo_verify_signature($raw, $header, getenv('SEEKMODO_WEBHOOK_SECRET'))) {
    http_response_code(400);
    exit;
}
$event = json_decode($raw, true);
// Deliveries can repeat: skip $event['id'] values you have already handled.
http_response_code(204);

Retries and automatic disabling

Events are queued in the same transaction as the ticket change and usually sent within a minute. Answer with any 2xx within 10 seconds. Anything else, including redirects and timeouts, is retried after about 30 seconds, 2 minutes, 10 minutes, 30 minutes, 1 hour, 3 hours and 6 hours (8 attempts in total, with a little jitter). The 10 seconds cover DNS and connecting too. Deliveries can arrive more than once or out of order, so de-duplicate on id and order by created_at.

An endpoint that has failed at least 15 attempts in a row and has had no success for more than 24 hours is turned off and shown as disabled (failing). Fix your server, send a test event, then click Enable. While an endpoint is disabled no new events are queued for it. Enabling it queues again, from the first attempt, the deliveries that were cancelled because it was disabled during the last 72 hours. The Deliveries log keeps 30 days of attempts, HTTP responses and payloads, and can redeliver. Retries and redeliveries send the stored payload unchanged: the same event id, created_at and ticket snapshot from when the event happened (only the signature timestamp is new). A delivery that is being sent at that moment cannot be redelivered until it finishes.

Ticket emails

Customer mail for Seekmodo Tickets uses one layout. You choose the logo and the staff color. The arrangement of the message, the earlier replies, and the footer stays the same for every store.

Where to change it

Open Admin → Tickets and choose Email and portal in the sidebar. The section is Brand. The same logo and accent style ticket emails and the customer portal. Save with Save look. Only a store admin can change it.

  • Logo URL — an https:// address for your logo, up to 500 characters. Other kinds of URL are ignored.
  • Accent color — the bar on staff replies. Use the color picker. The saved value is a hex color such as #10B981.

Seekmodo's own support mail keeps the Seekmodo logo and links to seekmodo.com. On that account you can still set the staff color. Every other store can set both the logo and the color.

What stays fixed

  • The newest reply is the first block.
  • Up to three earlier public messages sit under Earlier messages.
  • Staff replies use your accent color. Each customer on that ticket gets their own color the first time they write, keeps it for the rest of the ticket, and never uses the staff color.
  • Other stores get a Powered by Seekmodo line that links to https://seekmodo.com.

The name on a reply

A reply shows the sender's display name from their Seekmodo account, not their email address. Set it at seekmodo.com/app/account. That name is what customers see on your replies, in the ticket desk, and on earlier messages from the same person.

If the account has no display name yet, mail uses a name already stored for that address on the ticket. It does not print the raw email address as the sender.