Business Agent
Create a connector
Base URL plus how to authenticate (OAuth client credentials, API key or none). Names are unique per number. Not idempotent.
post/v1/accounts/{accountId}/business-agent/connectors
Path parameters
accountIdstring required
WhatsApp social account id (the number must be managed through the Cloud API).
Request body
Example request
{
"connector_protocol": "HTTP",
"auth_config": {
"oauth2_client_credentials": {
"token_request_content_type": "application/x-www-form-urlencoded"
}
},
"user_auth_injection_config": {
"location": "headers"
}
}Response
Connector created
Example response
{
"connector_protocol": "HTTP",
"auth_config": {
"oauth2_client_credentials": {
"token_request_content_type": "application/x-www-form-urlencoded"
}
},
"user_auth_injection_config": {
"location": "headers"
}
}