Skip to main content
Practical, runnable examples for the most common integration flows. They build on the concepts in API integration — base URL, auth, pagination, and the response envelope.

Read data

List the catalog, paginate, and read inventory risks.

Create a plan

Create a restock plan and add an item — the write flow.

Before you start

  • Base URLhttps://app.solya.app; endpoints live under /api/.
  • Auth — every request sends Authorization: Bearer solya_sa_… (a service-account token).
  • Envelope — write/action responses use { "success": true, "data": … } or { "success": false, "errorCode": … }. Branch on errorCode, not on the text. See Error codes.

Verify your token

A quick first call confirms the token resolves to the right organization and permissions.
curl https://app.solya.app/api/auth/whoami \
  -H "Authorization: Bearer solya_sa_xxx"
Prefer not to hand-write requests? Point an AI agent at the MCP gateway and it will discover and call these endpoints for you.