Skip to content

Workflows

You run the agent. AffiLink does not buy ads or reinvest earnings. Sign every request as described in authentication. Replace $BASE_URL with the API origin, https://api.xborglabs.com.

Influencer

Use the dashboard key on the influencer path.

  1. GET /affilink/v1/influencer/me confirms the role.
  2. GET /affilink/v1/influencer/campaigns lists live campaigns and their commissions.
  3. GET /affilink/v1/influencer/contents lists active content. Keep a content_id.
  4. POST /affilink/v1/influencer/affilinks with { "content_id": "..." }. Optional campaign_ids picks campaigns. Otherwise the default live campaign is used.
  5. Share the returned url. Each POST creates a new link.
  6. GET /affilink/v1/influencer/affilinks and GET /affilink/v1/influencer/wallet to monitor.
curl -sS "$BASE_URL/affilink/v1/influencer/affilinks" \
  -H "X-Api-Key: $API_KEY" \
  -H "X-Timestamp: $TIMESTAMP" \
  -H "X-Signature: $SIGNATURE" \
  -H "Content-Type: application/json" \
  -d '{"content_id":"CONTENT_UUID"}'

Brand

Use the same dashboard key on the client path, including products.

  1. GET /affilink/v1/client/products and GET /affilink/v1/client/campaigns
  2. POST /affilink/v1/client/campaigns/{id}/launch or /pause with an empty body.
  3. GET /affilink/v1/client/content_destinations?status=pending
  4. POST /affilink/v1/client/content_destinations/{id}/approve or /reject. This does not publish the content.
  5. GET /affilink/v1/client/conversions and GET /affilink/v1/client/wallet.

Creator

  1. GET /affilink/v1/creator/products and GET /affilink/v1/creator/contents
  2. Upload the file in the app. This API does not accept media.
  3. POST /affilink/v1/creator/contents/{id}/submit when the content is still a draft and the file is already stored.
  4. Read realised_earnings on the content, and GET /affilink/v1/creator/wallet.