5 minutes from signup to first successful API call.

#Steps

  1. 1

    Sign up. /auth/sign-up — takes a minute.

  2. 2

    Link your store. First Studio use on a Salla store auto-links it.

  3. 3

    Get an API key. /dashboard/profile → "API keys" → "Generate".

  4. 4

    Make a test call. Copy the curl example below.

#First call (Tracking endpoint)

bash
curl -X POST https://afterads.com/api/track \
  -H "Content-Type: application/json" \
  -H "X-Signature: ${HMAC_SIGNATURE}" \
  -H "X-Timestamp: ${UNIX_TS}" \
  -d '{
    "event": "store_view",
    "store_id": "YOUR_SALLA_STORE_ID",
    "metadata": { "referrer": "google" }
  }'

#Studio calls (rewrite example)

javascript
const response = await fetch('https://afterads.com/api/studio/rewrite', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  credentials: 'include', // Better Auth cookie
  body: JSON.stringify({
    productName: 'Egyptian cotton shirt',
    currentDescription: 'Nice shirt with many colors'
  }),
});

// Server-Sent Events stream
const reader = response.body.getReader();
while (true) {
  const { value, done } = await reader.read();
  if (done) break;
  console.log(new TextDecoder().decode(value));
}

#What's next?

#Need help?

Stuck on an API call? Send us the full curl request + the response at help@afterads.com. We respond in under 4 hours.
"AfterAds