Skip to content
SendeYok — Try free for 7 days; no card needed.

SENDEYOK API · v1

Developer portal

Read your store data with secure keys and scopes, and automate your workflows with webhooks.

Get started in 3 steps

Your first request

  1. 1. Get a sandbox store

    The sandbox form takes your developer email and creates a 30-day trial store just for you, plus a syk_test_ key. Experiment safely with a synthetic catalog.

    Request a sandbox
  2. 2. Keep the key safe

    The key is shown only once. Keep it in a secret environment variable on the server side; never put it in browser code or version control.

    export API_BASE="$(jq -r '.servers[0].url' openapi.json)"
  3. 3. Read your products

    curl "$API_BASE/api/vitrin/eklenti/api_anahtarlari/v1/products" \
      -H "Authorization: Bearer syk_test_…" \
      -H "X-Store-Id: <sandbox-mağaza-kimliği>"

    A successful response returns the products in the data field of the JSON. A live API key works only in your own store. Live API keys are available on the Pro and Premium plans; no plan is needed to try the sandbox.

Access security

Authentication and scopes

Send the Authorization: Bearer syk_… header with every request. API keys are tied to a store; another store’s key will not match. Sandbox keys start with syk_test_, live keys start with syk_, and neither is accepted in the other environment.

ScopePermission
products:readRead products and a single product
products:writeUpdate product prices
categories:readRead the category tree
stock:read / stock:writeRead / update stock
orders:read / orders:writeRead orders / update notes and tracking info
shipments:readRead shipping and tracking status
webhooks:read / webhooks:writeList / add / delete webhook endpoints

Pick only the scopes your job needs. The customers:read scope is not offered. Partner OAuth app registration is not available in this version.

Rate limits

Each API key has a per-minute limit that follows the key settings. Responses report the limit with the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers. On a 429 response, wait for the Retry-After duration and retry with exponential backoff.

Versioning and deprecation

REST paths are versioned with /v1. Breaking changes ship in a new major version. Deprecated endpoints announce a date through the Deprecation and Sunset headers; the response body and the portal changelog explain the migration path.

OpenAPI schema and request/response examples: openapi.json.

API reference

This table is built from openapi.json without adding any dependencies. That keeps the portal small on the client side; the full OpenAPI document can be fetched directly.

Loading API endpoints… Open the OpenAPI JSON.

Event-driven integration

Webhook events

  • product.created
  • product.deleted
  • product.changed
  • stock.changed
  • order.created
  • order.paid
  • order.shipped
  • order.status_changed
  • refund.created, refund.approved, refund.rejected

Webhooks are managed with an API key through GET /webhooks, POST /webhooks and DELETE /webhooks/{id}. Delivery headers: X-SendeYok-Event, X-SendeYok-Delivery, X-SendeYok-Timestamp, X-SendeYok-Signature.

Verify the signature against the raw request body, without parsing the JSON first. The signed string is timestamp + "." + raw_body; the HMAC-SHA256 hex value carries the sha256= prefix. The timestamp may be at most 5 minutes old; never process the same delivery ID twice.

PHP verification example
<?php
$hamGövde = file_get_contents('php://input');
$zaman = $_SERVER['HTTP_X_SENDEYOK_TIMESTAMP'] ?? '';
$imza = $_SERVER['HTTP_X_SENDEYOK_SIGNATURE'] ?? '';
if (abs(time() - (int) $zaman) > 300) { http_response_code(401); exit; }
$beklenen = 'sha256=' . hash_hmac('sha256', $zaman . '.' . $hamGövde, $gizliAnahtar);
if (!hash_equals($beklenen, $imza)) { http_response_code(401); exit; }
http_response_code(200);
JavaScript verification example
import { createHmac, timingSafeEqual } from "node:crypto";
const zaman = request.headers.get("x-sendeyok-timestamp") ?? "";
const gelen = request.headers.get("x-sendeyok-signature") ?? "";
const hamGövde = await request.text(); // JSON.parse öncesi ham bayt dizgesi
if (Math.abs(Date.now() / 1000 - Number(zaman)) > 300) throw new Error("Eski istek");
const beklenen = "sha256=" + createHmac("sha256", gizliAnahtar).update(zaman + "." + hamGövde).digest("hex");
if (gelen.length !== beklenen.length || !timingSafeEqual(Buffer.from(gelen), Buffer.from(beklenen))) throw new Error("Geçersiz imza");
Python verification example
import hmac, hashlib, time
zaman = request.headers.get("X-SendeYok-Timestamp", "")
gelen = request.headers.get("X-SendeYok-Signature", "")
ham_govde = request.get_data(cache=True)  # JSON çözümlemesinden önceki ham gövde
if abs(time.time() - int(zaman)) > 300:
    abort(401)
beklenen = "sha256=" + hmac.new(gizli_anahtar.encode(), zaman.encode() + b"." + ham_govde, hashlib.sha256).hexdigest()
if not hmac.compare_digest(gelen, beklenen):
    abort(401)

Connect to any platform

Automation and AI tools

Zapier

Connect your store’s API key; build flows with order, product and stock triggers.

Make

Pick a trigger or action in the ready-made SendeYok module; use your key in the connection.

n8n

Store your API key in the community node and carry events into your workflows.

MCP

Register the store MCP server of the mcp_ve_cli plugin in your client; write actions require store approval.

Zapier/Make/n8n setup details follow the guidance of the integration plugin already in your store. The MCP connection requires installing the relevant plugin.

Frequently asked questions

Can a sandbox key reach live data?

No. A test key is accepted only in the sandbox environment; a live key only in the live store.

I lost my key. Can I see it again?

For security, a generated key is never shown again. Revoke the old one and create a new key.

Can I read customer information?

No. The customers:read scope is not offered; the API does not expose order customers’ contact details.

What should I do if I hit the rate limit?

Wait for the Retry-After duration, watch the remaining-requests header and retry with a delay.

How long does an old API version stay available?

The deprecation date is announced in the Sunset header. Follow the portal changelog for the migration.

Choose your cookie preference

Essential cookies are always on. Analytics and advertising cookies load only if you allow them. Cookie policy