curl --request POST \
--url https://api.z-api.io/instances/{instanceId}/token/{token}/integrator/on-demand/subscription \
--header 'Authorization: Bearer <Partner-Token>' \
--header 'Content-Type: application/json' \
--data '
{
"withCalls": false
}
'
{
"withCalls": false
}
Partners
Subscribing an instance
Subscribes a partner integrator instance
POST
/
instances
/
{instanceId}
/
token
/
{token}
/
integrator
/
on-demand
/
subscription
curl --request POST \
--url https://api.z-api.io/instances/{instanceId}/token/{token}/integrator/on-demand/subscription \
--header 'Authorization: Bearer <Partner-Token>' \
--header 'Content-Type: application/json' \
--data '
{
"withCalls": false
}
'
{
"withCalls": false
}
Overview
Method used to subscribe an instance.To use Partner endpoints, provide the Partner Token in the Authorization field using the following format:
Bearer <Partner-Token>It is not necessary to send the Client-Token in these requests.Attributes
Optional
boolean
Defines whether the instance will be created with call support
The withCalls attribute is optional. If not sent, the request will continue to work normally with the default behavior. This feature is only available for accounts with call functionality enabled.
curl --request POST \
--url https://api.z-api.io/instances/{instanceId}/token/{token}/integrator/on-demand/subscription \
--header 'Authorization: Bearer <Partner-Token>' \
--header 'Content-Type: application/json' \
--data '
{
"withCalls": false
}
'
{
"withCalls": false
}
Request Body
{
"withCalls": false
}