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.
Influencer
Use the dashboard key on the influencer path.
GET /api/v1/affilink/influencer/meconfirms the role.GET /api/v1/affilink/influencer/campaignslists live campaigns and theircommissions.GET /api/v1/affilink/influencer/contentslists active content. Keep acontent_id.POST /api/v1/affilink/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 /api/v1/affilink/influencer/affilinksandGET /api/v1/affilink/influencer/walletto monitor.
curl -sS "$BASE_URL/api/v1/affilink/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 /api/v1/affilink/client/productsandGET /api/v1/affilink/client/campaignsPOST /api/v1/affilink/client/campaigns/{id}/launchor/pausewith an empty body.GET /api/v1/affilink/client/content_destinations?status=pendingPOST /api/v1/affilink/client/content_destinations/{id}/approveor/reject. This does not publish the content.GET /api/v1/affilink/client/conversionsandGET /api/v1/affilink/client/wallet.
Creator
GET /api/v1/affilink/creator/productsandGET /api/v1/affilink/creator/contents- Upload the file in the app. This API does not accept media.
POST /api/v1/affilink/creator/contents/{id}/submitwhen the content is still a draft and the file is already stored.- Read
realised_earningson the content, andGET /api/v1/affilink/creator/wallet.