> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.yanet.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Access the API

### Overview
Use API Access to let other apps or your own systems read tracking data from Yanet Order Tracking. You turn on the endpoints you need, then authenticate each request with your Client ID and Client Secret.

### Available Endpoints
* **Get order** (GET) – Fetches order and shipment details by token or identifiers.
  Endpoint: `https://ordertracking.yanet.io/api/public/v1/get-order`
* **Check order** (POST) – Validates the lookup input and returns a tracking session token.
  Endpoint: `https://ordertracking.yanet.io/api/public/v1/check-order`
* **Get settings** (GET) – Reads the public tracking page settings for the shop.
  Endpoint: `https://ordertracking.yanet.io/api/public/v1/get-settings`

**Step 1** Go to **Integrations** and open **API Access**.

**Step 2** Turn on the switch next to each endpoint you want to use. All endpoints are off by default.
![](https://storage.crisp.chat/users/helpdesk/website/-/3/7/f/d/37fde77105fa8400/image_m2owdy.png)

**Step 3** Check the **Credentials** card on the right. It shows **Off** until credentials are active. 

**Step 4** Click the copy icon next to **Client ID** and **Client Secret** to copy them. The Client Secret is hidden and only the copy button is shown.

**Step 5** In your system, send the Client ID and Client Secret as headers in every request to authenticate it. 

**Step 6** Send a request to the endpoint, for example a GET request to the **Get settings** endpoint, and check that it returns a response.

### Result
Your system can read order, shipment and tracking page data from Yanet Order Tracking through the endpoints you turned on.
| Note
* Turn on only the endpoints you need.
* Keep your Client Secret private. Do not share it or add it to code that customers can see, such as your storefront theme.
* The three endpoints use the shop’s public API under `/api/public/v1/`.
* You do not need the API to start tracking orders. Set up order sync, the tracking page, notifications and analytics first.