跳至主要內容
登入
Apus Platform
文件目錄

Quickstart

Make your first call in three steps: (1) create an API client in the Account Console to get a client_id and client_secret; (2) exchange them for a short-lived access token; (3) call any endpoint with that token as a Bearer credential.

The example below authenticates and lists products. Once it returns 200, you are connected — every other endpoint follows the same shape.

# 1. Get a token
TOKEN=$(curl -s -X POST https://api.apusplatform.com/v1/oauth/token \
  -H "Content-Type: application/json" \
  -d '{ "grant_type": "client_credentials", "client_id": "cli_a1b2c3", "client_secret": "sk_live_..." }' \
  | jq -r .access_token)

# 2. Call the API
curl https://api.apusplatform.com/v1/products?limit=5 \
  -H "Authorization: Bearer $TOKEN"
noindex