PATCH https://examplebaseURL.com/v1/api/apps/{appID}/inquiry-label-event-sub
| Parameter | Type | Description |
|---|---|---|
| code | Number | Refer to Success and Error Code |
| enabled | Boolean | true if subscription is active, false if disabled |
| url | String | The webhook URL |
| updatedAt | String | The label updated day and time |
🚧 Webhook URL Requirement:
The webhook URL needs to be verified. You will get a POST request with an Action, and are required to set the response in JSON format as below:
Note that the JsonResponse.Result is JSON encoding of the ActionEndpointResponse
ActionEndpointRequest {
+ Challenge string json:"challenge"
+ }ActionEndpointResponse {
+ Challenge string json:"challenge"
+ }JsonResponse {
+ Code int json:"code"
+ Result json.RawMessage json:"result"
+ }
appID string required
App ID
enabled
boolean(required)
Set totrueto create or update the subscription.
Set tofalseto disable or delete the subscription.
url
string(required)
The webhook callback URL. CINNOX sends a verification request to this URL when registering.
Content-Type string
application/jsonAuthorization string
Bearer AppToken
200 - Success
Response body: application/json400 - Bad Request
Response body
object
code integer Defaults to 0
message string
LANGUAGE: Shell
curl --request PATCH \
--url https://examplebaseurl.com/v1/api/apps/appID/inquiry-label-event-sub \
--header 'Authorization: Bearer AppToken' \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--data '{
"enabled": true,
"url": "https://your-webhook.example.com/"
}'
LANGUAGE: Node.js (Axios or fetch)
// --- Axios Example ---
import axios from 'axios';
axios.patch('https://examplebaseurl.com/v1/api/apps/appID/inquiry-label-event-sub', {
enabled: true,
url: "https://your-webhook.example.com/"
}, {
headers: {
'accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': 'Bearer AppToken'
}
})
.then(res => console.log(res.data))
.catch(err => console.error(err));
// --- fetch Example ---
const url = 'https://examplebaseurl.com/v1/api/apps/appID/inquiry-label-event-sub';
fetch(url, {
method: 'PATCH',
headers: {
accept: 'application/json',
'Content-Type': 'application/json',
Authorization: 'Bearer AppToken'
},
body: JSON.stringify({ enabled: true, url: "https://your-webhook.example.com/" })
})
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));
LANGUAGE: JavaScript fetch (Browser)
fetch('https://examplebaseurl.com/v1/api/apps/appID/inquiry-label-event-sub', {
method: 'PATCH',
headers: {
accept: 'application/json',
'Content-Type': 'application/json',
Authorization: 'Bearer AppToken'
},
body: JSON.stringify({ enabled: true, url: "https://your-webhook.example.com/" })
})
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
enabled: true to create or update the subscription.enabled: false to disable the subscription.application/json. Your endpoint must return a 2xx response to acknowledge successful delivery.SUCCESS RESPONSE: 200-Result
{
"code": 0,
"result": {
"enabled": true,
"url": "<YOUR_WEBHOOK_URL>",
"updatedAt": "2026-02-24T03:12:45.123Z"
}
}
ERROR RESPONSE: 400-Result
{
"code": 400,
"message": "The error message from the server. Please refer to the error table."
}