API batch | How to cipher scheduling URL

Posted about 1 year ago by Julien Pauthier

  • Pinned Topic
Julien Pauthier
Julien Pauthier Admin

API batches can be used to avoid relying on Agendize IDs when using cipherUrl API to prefill contact data into a short URL to the scheduling widget:



 



POST https://app.agendize.com/api/2.3/batch


{
    "requests": [
        {
            "path": "/api/2.1/scheduling/companies/YOUR_LOCATION_EXTERNAL_ID",
            "method": "GET",
            "name": "get-location"
        },
        {
            "path": "/api/2.3/companies/${result=get-location:$.id}/cipherUrl",
            "method": "POST",
            "body": {
                "url": "https://app.agendize.com/book/${result=get-location:$.id}/?cs=false&firstname=John&lastname=Doe&phone=0766778899&email=j.doe@test.com",
                "shortener": true
            }
        }
    ]
}


0 Votes


0 Comments

Login or Sign up to post a comment