Sentrick Foods
- Base URL
- www.sentrickfoods.com/api/v1
- MCP server
- POST www.sentrickfoods.com/api/mcp
- Token prefix
- stk_foods_…
- Access
- Read-only · Phase 1
Anywhere. Anytime. One Team. Global B2B Trade.
Money & RFQs in secure hands, all in escrow.
Developers & AI Integration
API & MCP for verified partners — Phase 1, read-only.
A REST API and an MCP server that let your business systems — or your AI agent — read your own organization's data across the Sentrick marketplaces. No other organization is ever visible, and nothing can be written.
One API design across all three Sentrick marketplaces: the same read-only endpoints, the same MCP tools and the same security rules. Each marketplace has its own base URL and issues its own tokens — a token only works on the marketplace that issued it, and only for your organization there.
From zero to your first call in a few minutes.
Authorization: Bearer <token>. Start with /api/v1/me to confirm the token works.export SENTRICK_TOKEN="stk_petrochemical_…" # from the API access page # 1. Who am I? curl -H "Authorization: Bearer $SENTRICK_TOKEN" https://www.sentrickpetrochemical.com/api/v1/me # 2. Read your data (endpoints depend on your organization type — see the table below) curl -H "Authorization: Bearer $SENTRICK_TOKEN" https://www.sentrickpetrochemical.com/api/v1/products curl -H "Authorization: Bearer $SENTRICK_TOKEN" https://www.sentrickpetrochemical.com/api/v1/matches
MCP client configuration (remote HTTP server):
{
"mcpServers": {
"sentrick-petrochemical": {
"type": "http",
"url": "https://www.sentrickpetrochemical.com/api/mcp",
"headers": { "Authorization": "Bearer <your token>" }
}
}
}Polling: stay under 60 requests per minute per token. On HTTP 429, wait for the number of seconds in Retry-After before retrying.
Base URL https://www.sentrickpetrochemical.com/api/v1. JSON responses. Only GET is accepted; any other method returns 405.
| Endpoint | Returns | Available to |
|---|---|---|
| GET /api/v1/me | Your organization and token (no other organization is ever visible). | Every verified partner |
| GET /api/v1/products | Your own products, with status and price tiers. | Suppliers, Manufacturers |
| GET /api/v1/matches | Requests routed to your organization — anonymized snapshot only (no requester identity, no counts). | Suppliers, Manufacturers, Logistics providers, Customs brokers |
| GET /api/v1/quotes | Quotes your organization has sent. | Suppliers, Manufacturers, Logistics providers, Customs brokers |
| GET /api/v1/rfqs | Your own RFQs (no supplier identities, no counts of suppliers). | Buyers |
OpenAPI specificationAvailable · OpenAPI 3.1
A machine-readable description of every read-only endpoint above, its responses and errors. Import it into Postman or Insomnia, or generate a client SDK with any OpenAPI generator. Public, no token needed to download — calls still need your token.
Sandbox — test data onlyAvailable
Try the API and MCP server before your organization is verified. Any signed-in user can create a sandbox token on the API access page. Sandbox tokens start with stk_petrochemical_sandbox_ and return fixed, fake sample data for a fictional "Sandbox Demo Supplier" or "Sandbox Demo Buyer" — never any real organization's data.
X-Sentrick-Environment: sandbox; ids start with sbx_ and names with "SANDBOX SAMPLE". Prices in the sample data are placeholders, not market prices.Requests routed to you are returned as the same anonymized snapshot you see in your portal: no requester identity, no contact details, and never a count of suppliers, buyers, logistics providers or customs brokers.
curl -H "Authorization: Bearer $SENTRICK_TOKEN" https://www.sentrickpetrochemical.com/api/v1/me
{ "organizationId": "org_…", "organizationType": "supplier", "platform": "petrochemical", "token": "stk_petrochemical_AbC12x", "access": "read-only" }200 — your data. 401 — missing, invalid, expired or revoked token, or your organization is no longer eligible. 403 — the endpoint is not available for your organization type. 404 — unknown endpoint. 405 — not a GET (read-only). 429 — rate limited. 503 — temporarily unavailable.
New-request notificationsAvailable
Instead of polling GET /api/v1/matches, register an HTTPS endpoint and Sentrick will POST a signed event to it as soon as a request is routed to your organization. Webhooks only notify: they carry the same anonymized data your organization already reads through the API, and they cannot change anything on Sentrick.
whsec_…) — it is shown once. Store it like a password; to replace it, remove the endpoint and add it again."environment": "test", ids starting with sbx_, names starting with "SANDBOX SAMPLE") and check the delivery log.request.matched — a new request was routed to your organization. data.match is exactly one item of GET /api/v1/matches: the anonymized request snapshot, with no requester identity, no contact details and never a count of suppliers, buyers, logistics providers or customs brokers.id (the same id on every retry — use it to ignore duplicates), a createdAt time (UTC) and an environment: live for real events, test for "Send test event".POST https://your-system.example.com/sentrick/webhooks
Content-Type: application/json
User-Agent: Sentrick-Webhooks/1.0
X-Sentrick-Event-Id: evt_3f9c…
X-Sentrick-Event-Type: request.matched
X-Sentrick-Delivery-Id: whd_…
X-Sentrick-Delivery-Attempt: 1
X-Sentrick-Environment: live
X-Sentrick-Signature: t=1796133802,v1=5b0e…
{
"id": "evt_3f9c…",
"type": "request.matched",
"createdAt": "2026-12-01T14:03:22.418Z",
"environment": "live",
"platform": "petrochemical",
"organizationId": "org_…",
"data": {
"match": {
"ref": "BR-7K2M9QXA",
"type": "product_request",
"routedAt": "2026-12-01T14:03:22.395Z",
"request": { "ref": "BR-7K2M9QXA", "category": "bitumen-asphalt", "product": "Bitumen 60/70 in drums",
"quantity": "2,000 MT", "destination": "KE", "postedAt": "2026-12-01" }
}
}
}X-Sentrick-Signature is t=<unix seconds>,v1=<hex>, where v1 is HMAC-SHA256 of <t>.<raw request body> keyed with your signing secret. Compute it over the raw body (before parsing JSON), compare in constant time, and reject events whose t is more than 5 minutes from your clock (replay protection).
// Node.js
import { createHmac, timingSafeEqual } from "node:crypto";
function verify(rawBody, header, secret) {
const p = Object.fromEntries(header.split(",").map((kv) => kv.split("=")));
if (Math.abs(Date.now() / 1000 - Number(p.t)) > 300) return false;
const want = createHmac("sha256", secret).update(`${p.t}.${rawBody}`).digest("hex");
return want.length === p.v1.length && timingSafeEqual(Buffer.from(want), Buffer.from(p.v1));
}id, and use GET /api/v1/matches to reconcile.Keep your ERP or CRM in sync with your Sentrick data using two pieces that are live today: the read-only REST API and webhooks. Data flows one way — from Sentrick into your systems. Sending changes back (products, price tiers, quotes) needs write access, which is coming soon; until then, make those changes on the website. There is no separate connector to install: your integration calls the API directly.
| Data | How | Available to | Status |
|---|---|---|---|
| New requests routed to you → leads / opportunities in your CRM | request.matched webhook, reconciled with GET /api/v1/matches | Suppliers, manufacturers, logistics providers, customs brokers | Live |
| Your products, status and price tiers → items / price lists in your ERP | GET /api/v1/products | Suppliers, manufacturers | Live |
| Quotes you sent → quotes / activities in your CRM | GET /api/v1/quotes | Suppliers, manufacturers, logistics providers, customs brokers | Live |
| Your RFQs (product, grade, quantity, Incoterm, offer validity) → purchase requisitions in your ERP | GET /api/v1/rfqs | Buyers | Live |
| Create products, set price tiers, submit for review — from your ERP / PIM | Write access (catalog) — not available yet | Suppliers, manufacturers | Coming soon |
| Send quotes from your ERP / CRM | Quote submission via API — not available yet | Suppliers, manufacturers, logistics providers, customs brokers | Coming soon |
request.matched). Acknowledge with a 2xx within 10 seconds; each event is attempted up to 6 times until your endpoint answers.ref / id as an external ID on your record and update in place. Re-reading the same data then never creates duplicates, and the webhook and the poll update the same record.Retry-After. On 401 stop and alert someone: the token expired or was revoked, or your organization is no longer verified and active.| Sentrick field | Typical ERP / CRM field | Notes |
|---|---|---|
| matches[].ref | Lead / opportunity external ID (unique key) | Stable reference of the routed request — the same value in the webhook and in GET /matches. |
| matches[].request.* | Lead description fields | Anonymized snapshot: product section, product, quantity, destination, dates. Never a requester name, company or contact. |
| matches[].routedAt | Lead created date | UTC, ISO 8601. |
| products[].id | Item external ID (unique key) | Keep your own item number in a separate field; sku is your code on Sentrick. |
| products[].priceTiers[] | Price list / quantity breaks | minimumQuantity + unitPrice in the product currency — your own list prices, as entered on Sentrick. |
| quotes[].id · quoteId · ref | Quote external ID | id for RFQ quotes, quoteId for service-request quotes, ref + createdAt for product-request quotes. |
| rfqs[].id | Requisition external ID | Buyers only. product, grade and offerValidityDays map to your requisition's item, specification and validity fields. |
Full field lists: the OpenAPI specification. Endpoints per organization type: /products, /matches, /quotes, /rfqs (see REST endpoints).
A complete one-way sync in plain Node.js. erp stands for your own ERP / CRM client — the only part you write.
// sentrick-sync.mjs — one-way sync, Sentrick → your ERP / CRM (Node.js 18+, no dependencies)
const BASE = "https://www.sentrickpetrochemical.com/api/v1";
const TOKEN = process.env.SENTRICK_TOKEN; // a read-only token from /api-access (secret manager, never in code)
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
async function get(path) {
for (;;) {
const res = await fetch(`${BASE}/${path}`, { headers: { Authorization: `Bearer ${TOKEN}` } });
if (res.status === 429) { await sleep(Number(res.headers.get("Retry-After") ?? 60) * 1000); continue; }
if (!res.ok) throw new Error(`${path}: HTTP ${res.status}`); // 401 = token expired / revoked, or org no longer eligible
return res.json();
}
}
// Which endpoints your organization type can call (GET /me tells you).
const ENDPOINTS = {
supplier: ["matches", "products", "quotes"], manufacturer: ["matches", "products", "quotes"],
logistics: ["matches", "quotes"], customs_broker: ["matches", "quotes"], buyer: ["rfqs"],
};
// Every write to YOUR system is an upsert keyed on Sentrick's ids — running the loop twice never creates duplicates.
async function syncOnce(erp) {
const { organizationType } = await get("me");
for (const ep of ENDPOINTS[organizationType]) {
const body = await get(ep); // newest first, at most 200 items
for (const item of body[ep]) {
if (ep === "matches") await erp.upsertLead(item.ref, { type: item.type, routedAt: item.routedAt, ...item.request });
if (ep === "products") await erp.upsertItem(item.id, item);
if (ep === "quotes") await erp.upsertQuote(item.id ?? item.quoteId ?? `${item.ref}@${item.createdAt}`, item);
if (ep === "rfqs") await erp.upsertRequisition(item.id, item);
}
}
}
// Webhooks deliver new requests within seconds; this loop reconciles everything else.
for (;;) { await syncOnce(myErp); await sleep(5 * 60_000); } // e.g. every 5 minutes — well under 60 requests / minute// webhook receiver — new requests reach your CRM as soon as they are routed to you
import http from "node:http";
http.createServer((req, res) => {
let raw = "";
req.on("data", (c) => (raw += c)).on("end", async () => {
// verify() = the signature check from the Webhooks section above (raw body, constant-time compare, 5-minute window)
if (!verify(raw, req.headers["x-sentrick-signature"] ?? "", process.env.SENTRICK_WEBHOOK_SECRET)) return res.writeHead(400).end();
res.writeHead(200).end(); // answer within 10 s, do the work afterwards
const evt = JSON.parse(raw);
if (evt.environment !== "live" || await crm.seenEvent(evt.id)) return; // retries reuse the same event id
const m = evt.data.match; // exactly one GET /matches item
await crm.upsertLead(m.ref, { type: m.type, routedAt: m.routedAt, ...m.request });
});
}).listen(8080); // behind your HTTPS reverse proxy / load balancerThe OpenAPI 3.1 document describes every endpoint and response, so you can generate typed models instead of writing them by hand:
# TypeScript types npx openapi-typescript https://www.sentrickpetrochemical.com/api/v1/openapi.json -o sentrick-api.d.ts # A client in another language (Python, Java, C#, Go, …) npx @openapitools/openapi-generator-cli generate -i https://www.sentrickpetrochemical.com/api/v1/openapi.json -g python -o sentrick-client
Pushing changes from your ERP / CRM back to Sentrick is part of Phase 2 and not available yet — today's tokens cannot write anything. When it is announced it will work like this:
Idempotency-Key header, so a retry from your integration never applies twice. Writes are limited to 10 per minute per token.These operations will be added to the OpenAPI specification when they become available.
Endpoint POST https://www.sentrickpetrochemical.com/api/mcp — JSON-RPC 2.0 over HTTP (protocol 2025-06-18), same token and the same rules as the REST API. Every method, including initialize and tools/list, requires the token. Tools take no arguments and are all read-only:
# list the tools
curl -X POST https://www.sentrickpetrochemical.com/api/mcp \
-H "Authorization: Bearer $SENTRICK_TOKEN" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
# call one
curl -X POST https://www.sentrickpetrochemical.com/api/mcp \
-H "Authorization: Bearer $SENTRICK_TOKEN" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"sentrick_me"}}'In an MCP client, add a remote (HTTP) server with the URL above and the header Authorization: Bearer <token> (see the Integration Guide). The tools only read; an AI agent connected this way cannot send quotes, place orders or change anything.
stk_petrochemical_…, sent as Authorization: Bearer <token> over HTTPS. Shown once when created — Sentrick stores only a SHA-256 hash, so a lost token cannot be recovered, only replaced.Retry-After when exceeded). After 20 failed authentication attempts from one address within 10 minutes, that address is temporarily blocked.If a token leaks, revoke it on the API access page and create a new one.
Shows the live API configuration of this marketplace.
Phase 1 (live now) is read-only access to your own organization's data. Everything below is Phase 2 and not available yet; it will be announced here before it ships.
Tokens that can make changes, not only read. Phase 1 tokens cannot write anything.
Send a quote on a request routed to you from your own system or agent.
Questions, integration help or a suspected security issue: email contact@sentrickpetrochemical.com with the subject "API & MCP support", or use the contact page. Include your token's prefix (for example stk_petrochemical_AbC12x) — never the full token.
The API version is in the path (/api/v1) and the OpenAPI document is the contract. Within v1, changes are additive only — new endpoints, new optional fields, new error codes on new features — so a client that ignores fields it does not know keeps working. A change that would break existing clients is released as a new version (/api/v2); v1 then stays available for at least 6 months, with migration notes on this page and an email to the owners of active tokens. Security fixes may take effect sooner when needed to protect organizations' data.
The API gives read access to data your organization already sees in its Sentrick portal. It does not place orders, send quotes, select providers or move money, and webhooks only send notifications to your own endpoint. Use is subject to the Marketplace Terms and the API & MCP Terms of Service.
Trade on record from A to Z — every document, message and approval kept in one place, from RFQ to delivery.