Generate a Link

Shell

xxxxxxxxxx

curl https://api.usebutton.com/v1/links \ 
  -X POST \ 
  -u YOUR_API_KEY: \ 
  -H "Content-Type: application/json" \ 
  -d '{
    "url": "https://www.brand123.com",
    "experience": {
      "btn_pub_user": "your-user-id",
      "btn_pub_ref":"your-publisher-reference"
    }
  }'

Choose an example:

application/json

200 - Result
401 - Result
403 - Result
404 - Result