API access is available under every plan.

Prerequisites

  • You will need an API key to access our services.

Generating an API Key:

  1. Register/Login on tapper.ai.
  2. Navigate to the API Keys section.
  3. Click on Create and follow the instructions on the dialog.

Generated API Key

API key will be displayed only ONCE.

Your First API Call

Here’s a simple link creation example to test your API key. It will generate link that will have a single A/B testing rule, and will reidirect 75% of the visitors to example.com/first and remaining 25% to example.com/second.

Replace the <API_KEY> key with your API key, and provide unique name and slug for a link.

curl --request POST \
  --url https://api.tapper.ai/v1/links \
  --header 'Authorization: <API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {
    "name": "LINK_NAME",
    "domain": "itlinks.to",
    "slug": "UNIQUE_SLUG",
    "rules": [
      {
        "name": "Default",
        "url_ratios": [
          {
            "url": "example.com/first",
            "ratio": 0.75
          },
          {
            "url": "example.com/second",
            "ratio": 0.25
          }
        ]
      }
    ]
  }
}'

Next step