cURL
curl --request POST \
--url http://127.0.0.1:3333/v3/workspaces/{workspaceId}/whatsapp/connections/{connectionId} \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:3333/v3/workspaces/{workspaceId}/whatsapp/connections/{connectionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:3333/v3/workspaces/{workspaceId}/whatsapp/connections/{connectionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Additional Endpoints
Get Connections
Get Connections with the Sendbot API v3.
POST
/
v3
/
workspaces
/
{workspaceId}
/
whatsapp
/
connections
/
{connectionId}
cURL
curl --request POST \
--url http://127.0.0.1:3333/v3/workspaces/{workspaceId}/whatsapp/connections/{connectionId} \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:3333/v3/workspaces/{workspaceId}/whatsapp/connections/{connectionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:3333/v3/workspaces/{workspaceId}/whatsapp/connections/{connectionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));