Tracking links
Create links via the API
Issue tracking links programmatically with one POST request.
- 1Authenticate with your API key.Send it as a bearer token: Authorization: Bearer YOUR_API_KEY.
- 2POST /v1/links with the end-user ID and merchant UUID in the JSON body.fetch('https://api.capitis.app/v1/links', { method: 'POST', headers: { Authorization: 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ end_user: 'user_42', merchant_id: '<merchant uuid from GET /v1/merchants>', campaign: 'summer25' }) })
- 3The response contains the tracking URL and its token.Publish the URL; store the token if you want to look the link up later or tie clicks back to your own records.
- 4See capitis.app/docs/api for the full request/response schema.
Was this helpful?
Still stuck? Ask the assistant (bottom right) or email support@capitis.app