qapla-api

A set of instructions for connecting software to Qapla’s public REST API, a service that manages e-commerce shipping, tracking, labels, courier quotes, and pickup points.

In plain words
What is it for?
Use it to send shipments or orders, create and confirm carrier labels, track parcels, get shipping quotes, find pickup points, verify addresses, and handle webhooks.
Why use it?
It gives an agent the required API background and directs it to the right reference before making calls. This reduces mistakes with authentication, versions, statuses, and endpoint choice.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/qapla/qapla-api-skill/qapla-api
Clone the repo
git clone --depth 1 https://github.com/Qapla/qapla-api-skill

Made for: Cursor.

Per session 112 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 667 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00112 $0.00667
Opus 5 $0.00056 $0.00333
Sonnet 5 $0.00022 $0.00133
Haiku 4.5 $0.00011 $0.00067

Measured yesterday against content hash 06964da3c6b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

qapla-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/qapla-api.mdc · 50 lines

What it actually says

Qapla' Public API (v1.3)

This rule covers integrating with the public REST API of Qapla', a SaaS platform for e-commerce logistics (multi-carrier shipping, tracking, label printing, transactional notifications).

To work on a Qapla' task:

  1. Read references/overview.md first — the canonical orientation: core facts (base URL, auth, response envelope, rate limit, sandbox, versions), the domain model, and the "which endpoint do I need?" decision rule.
  2. Then references/conventions.md and references/authentication.md — they apply to every call.
  3. Pick the endpoint from references/endpoints.md (full catalog) or the per-endpoint deep-dives: references/pushshipment.md, pushorder.md, createlabel.md, getquotes.md, getpudos.md, trackingbytimeframe.md (the pull alternative to webhooks), apivirtual.md (virtual courier). For outbound event callbacks (Pillar 2), see references/webhooks.md. To interpret tracking statuses, see references/statuses.md (branch on the canonical id, never the label). For the version policy and the separate v2 generation, see references/versioning.md; to upgrade a legacy integration, see references/migration.md.
  4. Use the sample payloads in references/examples/ and the dependency-free reference client in scripts/qapla_client.py when writing code.
  5. For the v2 API (Bearer/JWT auth, RESTful resources, async jobs), start at references/v2/overview.md and the deep-dives references/v2/{authentication,parcels,sandbox,couriers,stock-release,endpoints}.md. Most integrations still target v1.3; use v2 when you need a resource it exposes (e.g. parcels).

Guardrails: documents the public API only — do not invent endpoints, parameters, or fields. The live docs at https://api.qapla.dev/1.3/ are the source of truth; if anything here drifts, trust them.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 50 lines · 112 tokens per session scan A 06964da3c6b9

Subscribe to this mod's changes

qapla-api is a cursor rule published in the GitHub repository Qapla/qapla-api-skill (3 stars, last pushed 1mo ago), licensed MIT. It adds 112 tokens to every session and 667 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other cursor rules, from other repositories

shopify-theme-builder

Build production-grade Online Store 2.0 Shopify themes (interview-first, 100% theme-editor controllable, token-driven, theme-check clean, bilingual/RTL). Apply when building, generating, scaffolding, or designing a Shopify theme, sections, JSON templates, or Liquid.

moVictor99/shopify-theme-builder · 58 tokens

formengine

Generate FormEngine-shaped React forms from a screenshot, PDF, HTML, or text description. Use whenever the user asks to build, generate, scaffold, or convert a React form — especially mentioning FormEngine, JSON schema form, signup/login/contact/onboarding/checkout/survey forms, or alternatives to Formik / React Hook…

lukinov/ai-form-builder · 0 tokens

cursor

You are working on the checkout service. Preserve transaction integrity and auditability.

mrwogu/promptscript · 53 tokens

release-notes

Generate changelog entries and GitHub releases from git history. Categorizes commits into features, fixes, breaking changes, and docs. Supports conventional commits, PR-based grouping, and semantic versioning. Creates formatted CHANGELOG.md entries and GitHub releases.

thatrebeccarae/claude-marketing · 50 tokens

paddle-integration

Conventions for Paddle integration code.

PaddleHQ/paddle-agent-skills · 380 tokens

faststore-faststore-storefront-ref-project-structure-routes-and-config

FastStore project structure, routes, CLI build pipeline, store configuration (discovery.config.js), and naming conventions. Use when understanding how a FastStore project is organized, how the @faststore/cli works, what files to create or modify, how routing works, or how to configure store settings like SEO, API…

vtex/skills · 70 tokens