تخطَّ إلى المحتوى الرئيسي

Developer guide

Connect your system to Cortex: read sales, products, customers and bookings, create sales orders and bookings, and receive events as they happen.

The Cortex API is a versioned REST API at https://dashboard.xodata.ninja/api/public/v1. Every request carries a token in the Authorization header; every answer is JSON.

Two ways in

  • A business API key: the owner creates it in «المطوّرون وواجهة API» in the dashboard, for an integration of their own business.
  • An OAuth app, for partners serving many businesses: the owner approves the scopes on the consent page, and your app receives a token for that business only.

First call

curl https://dashboard.xodata.ninja/api/public/v1/me \
  -H "Authorization: Bearer cpk_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

The answer names the business and the scopes your key holds. Continue with Authentication, then Scopes; every endpoint is in the Reference.

The API never returns secrets, passwords or internal notes, and every read is limited to the branches the credential covers.