Skip to main content
POST
/
v1
/
voice-agents
/
web-tool
/
version-check
Check for newer versions of Web Tools.
curl --request POST \
  --url https://api.tryhamsa.com/v1/voice-agents/web-tool/version-check \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "webToolIds": [
    "d949f13f-40d2-4e48-ac86-b66633070603",
    "a123b456-78cd-9012-ef34-56789abcdef0"
  ]
}
'
{
  "success": true,
  "message": "Success",
  "data": [
    {
      "webToolId": "d949f13f-40d2-4e48-ac86-b66633070603",
      "currentVersion": "1.0.0",
      "latestVersion": "1.2.0",
      "hasUpdate": true
    }
  ]
}

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Body

application/json
webToolIds
string<uuid>[]
required

Array of web tool UUIDs to check for version updates.

Example:
[
"d949f13f-40d2-4e48-ac86-b66633070603",
"a123b456-78cd-9012-ef34-56789abcdef0"
]

Response

Successful response

success
boolean
Example:

true

message
string
Example:

"Success"

data
object[]