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.
GET /affilink/v1/influencer/meconfirms the role.GET /affilink/v1/influencer/campaignslists live campaigns and theircommissions.GET /affilink/v1/influencer/contentslists active content. Keep acontent_id.POST /affilink/v1/influencer/affilinkswith{ "content_id": "..." }. Optionalcampaign_idspicks campaigns. Otherwise the default live campaign is used.- Share the returned
url. Each POST creates a new link. GET /affilink/v1/influencer/affilinksandGET /affilink/v1/influencer/walletto 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.
GET /affilink/v1/client/productsandGET /affilink/v1/client/campaignsPOST /affilink/v1/client/campaigns/{id}/launchor/pausewith an empty body.GET /affilink/v1/client/content_destinations?status=pendingPOST /affilink/v1/client/content_destinations/{id}/approveor/reject. This does not publish the content.GET /affilink/v1/client/conversionsandGET /affilink/v1/client/wallet.
Creator
GET /affilink/v1/creator/productsandGET /affilink/v1/creator/contents- Upload the file in the app. This API does not accept media.
POST /affilink/v1/creator/contents/{id}/submitwhen the content is still a draft and the file is already stored.- Read
realised_earningson the content, andGET /affilink/v1/creator/wallet.