Skip to content

AffiLink API

{role} is client, influencer, or creator. Paths are on the API origin. A single resource is wrapped in data. Lists also return next_cursor when more rows exist. Detail routes use the same path with {id} for products, campaigns, contents, and conversions.

MethodPathWhoWhat it does
GET/api/v1/affilink/{role}/meEach roleProduct, role, account id, sub-account id, and display name.
GET/api/v1/affilink/{role}/productsEach roleThe client path sees that brand. Influencer and creator paths see active brands.
GET/api/v1/affilink/{role}/campaignsEach roleThe client path includes drafts. Other paths see live campaigns, with commission rows and no discount codes.
POST/api/v1/affilink/client/campaigns/{id}/launchClientDraft to live. Empty body.
POST/api/v1/affilink/client/campaigns/{id}/pauseClientLive to paused. A default campaign cannot be paused.
GET/api/v1/affilink/{role}/contentsEach roleClient path sees the brand. Creator path sees their own. Influencer path sees active content they can link.
POST/api/v1/affilink/creator/contents/{id}/submitCreatorDraft with uploaded media becomes approval pending. New files are uploaded in the app.
GET/api/v1/affilink/client/content_destinationsClientOptional status pending, active, or rejected.
POST/api/v1/affilink/client/content_destinations/{id}/approveClientApproves one product-page destination. It does not publish the content.
POST/api/v1/affilink/client/content_destinations/{id}/rejectClientRejects a pending destination.
GET/api/v1/affilink/influencer/affilinksInfluencerThat influencer’s links, including code, public URL, and earnings.
POST/api/v1/affilink/influencer/affilinksInfluencerBody content_id and optional campaign_ids. Each call creates a new link.
GET/api/v1/affilink/{role}/walletEach roleINR account balance and this role’s other holdings, such as XP.
GET/api/v1/affilink/client/conversionsClientOrder and event triggers for the brand. Optional status. No customer contact data.

Earnings on an affilink or a piece of content are realised_earnings, unrealised_earnings, and lost_earnings. Campaign commissions list the active reward rows. See the workflows for the order to call them.