Introduction
Powerful WhatsApp Business API for sending messages, managing contacts, and automating conversations.
Welcome to the SamparkPro WhatsApp API documentation. This API allows you to integrate WhatsApp Business messaging into your applications.
Features
- Send text, media, template, and interactive messages
- Manage contacts and conversations
- Receive real-time webhooks for incoming messages
- Full message status tracking
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer YOUR_API_TOKEN".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can generate API tokens by logging into your vendor dashboard at /console/api-tokens. Include the token in the Authorization header as a Bearer token.
WhatsApp Accounts
Manage and list WhatsApp Business Accounts
List all WhatsApp accounts
requires authentication
Get all WhatsApp Business Accounts connected to your vendor account.
Example request:
curl --request GET \
--get "https://samparkpro.com/api/v1/whatsapp-accounts" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://samparkpro.com/api/v1/whatsapp-accounts"
);
const headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://samparkpro.com/api/v1/whatsapp-accounts';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://samparkpro.com/api/v1/whatsapp-accounts'
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200):
{
"success": true,
"message": "WhatsApp accounts retrieved successfully",
"data": [
{
"id": 1,
"display_phone_number": "+1234567890",
"verified_name": "My Business",
"nickname": "US Sales Number",
"is_primary": true,
"status": "active",
"account_mode": "live"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
WhatsApp Messages
API endpoints for sending WhatsApp messages
Send text message
requires authentication
Example request:
curl --request POST \
"https://samparkpro.com/api/v1/messages/text" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"whatsapp_account_id\": 5,
\"to\": \"+1234567890\",
\"message\": \"Hello from SamparkPro!\",
\"preview_url\": true
}"
const url = new URL(
"https://samparkpro.com/api/v1/messages/text"
);
const headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"whatsapp_account_id": 5,
"to": "+1234567890",
"message": "Hello from SamparkPro!",
"preview_url": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://samparkpro.com/api/v1/messages/text';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'whatsapp_account_id' => 5,
'to' => '+1234567890',
'message' => 'Hello from SamparkPro!',
'preview_url' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://samparkpro.com/api/v1/messages/text'
payload = {
"whatsapp_account_id": 5,
"to": "+1234567890",
"message": "Hello from SamparkPro!",
"preview_url": true
}
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Send image message
requires authentication
Example request:
curl --request POST \
"https://samparkpro.com/api/v1/messages/image" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"whatsapp_account_id\": 5,
\"to\": \"+1234567890\",
\"caption\": \"consequatur\",
\"image_url\": \"https:\\/\\/example.com\\/image.jpg\"
}"
const url = new URL(
"https://samparkpro.com/api/v1/messages/image"
);
const headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"whatsapp_account_id": 5,
"to": "+1234567890",
"caption": "consequatur",
"image_url": "https:\/\/example.com\/image.jpg"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://samparkpro.com/api/v1/messages/image';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'whatsapp_account_id' => 5,
'to' => '+1234567890',
'caption' => 'consequatur',
'image_url' => 'https://example.com/image.jpg',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://samparkpro.com/api/v1/messages/image'
payload = {
"whatsapp_account_id": 5,
"to": "+1234567890",
"caption": "consequatur",
"image_url": "https:\/\/example.com\/image.jpg"
}
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Send audio message
requires authentication
Example request:
curl --request POST \
"https://samparkpro.com/api/v1/messages/audio" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"whatsapp_account_id\": 5,
\"to\": \"+1234567890\",
\"caption\": \"Check out this image!\",
\"audio_url\": \"https:\\/\\/example.com\\/audio.mp3\"
}"
const url = new URL(
"https://samparkpro.com/api/v1/messages/audio"
);
const headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"whatsapp_account_id": 5,
"to": "+1234567890",
"caption": "Check out this image!",
"audio_url": "https:\/\/example.com\/audio.mp3"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://samparkpro.com/api/v1/messages/audio';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'whatsapp_account_id' => 5,
'to' => '+1234567890',
'caption' => 'Check out this image!',
'audio_url' => 'https://example.com/audio.mp3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://samparkpro.com/api/v1/messages/audio'
payload = {
"whatsapp_account_id": 5,
"to": "+1234567890",
"caption": "Check out this image!",
"audio_url": "https:\/\/example.com\/audio.mp3"
}
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Send video message
requires authentication
Example request:
curl --request POST \
"https://samparkpro.com/api/v1/messages/video" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"whatsapp_account_id\": 5,
\"to\": \"+1234567890\",
\"caption\": \"consequatur\",
\"video_url\": \"https:\\/\\/example.com\\/video.mp4\"
}"
const url = new URL(
"https://samparkpro.com/api/v1/messages/video"
);
const headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"whatsapp_account_id": 5,
"to": "+1234567890",
"caption": "consequatur",
"video_url": "https:\/\/example.com\/video.mp4"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://samparkpro.com/api/v1/messages/video';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'whatsapp_account_id' => 5,
'to' => '+1234567890',
'caption' => 'consequatur',
'video_url' => 'https://example.com/video.mp4',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://samparkpro.com/api/v1/messages/video'
payload = {
"whatsapp_account_id": 5,
"to": "+1234567890",
"caption": "consequatur",
"video_url": "https:\/\/example.com\/video.mp4"
}
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Send document message
requires authentication
Example request:
curl --request POST \
"https://samparkpro.com/api/v1/messages/document" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"whatsapp_account_id\": 5,
\"to\": \"+1234567890\",
\"caption\": \"consequatur\",
\"document_url\": \"https:\\/\\/example.com\\/doc.pdf\",
\"filename\": \"invoice.pdf\"
}"
const url = new URL(
"https://samparkpro.com/api/v1/messages/document"
);
const headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"whatsapp_account_id": 5,
"to": "+1234567890",
"caption": "consequatur",
"document_url": "https:\/\/example.com\/doc.pdf",
"filename": "invoice.pdf"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://samparkpro.com/api/v1/messages/document';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'whatsapp_account_id' => 5,
'to' => '+1234567890',
'caption' => 'consequatur',
'document_url' => 'https://example.com/doc.pdf',
'filename' => 'invoice.pdf',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://samparkpro.com/api/v1/messages/document'
payload = {
"whatsapp_account_id": 5,
"to": "+1234567890",
"caption": "consequatur",
"document_url": "https:\/\/example.com\/doc.pdf",
"filename": "invoice.pdf"
}
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Send template message
requires authentication
Send a pre-approved WhatsApp message template with dynamic parameters.
Example request:
curl --request POST \
"https://samparkpro.com/api/v1/messages/template" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"whatsapp_account_id\": 5,
\"to\": \"+919876543210\",
\"template_name\": \"welcome_message\",
\"language\": \"en\",
\"components\": [
\"consequatur\"
]
}"
const url = new URL(
"https://samparkpro.com/api/v1/messages/template"
);
const headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"whatsapp_account_id": 5,
"to": "+919876543210",
"template_name": "welcome_message",
"language": "en",
"components": [
"consequatur"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://samparkpro.com/api/v1/messages/template';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'whatsapp_account_id' => 5,
'to' => '+919876543210',
'template_name' => 'welcome_message',
'language' => 'en',
'components' => [
'consequatur',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://samparkpro.com/api/v1/messages/template'
payload = {
"whatsapp_account_id": 5,
"to": "+919876543210",
"template_name": "welcome_message",
"language": "en",
"components": [
"consequatur"
]
}
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Example response (201):
{
"success": true,
"message": "Template sent successfully",
"data": {
"id": 123,
"type": "template",
"template_name": "welcome_message",
"status": "sent"
}
}
Example response (400):
{
"success": false,
"message": "Failed to send template"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Webhooks
Manage webhook subscriptions for event notifications
List all webhooks
requires authentication
Example request:
curl --request GET \
--get "https://samparkpro.com/api/v1/webhooks" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://samparkpro.com/api/v1/webhooks"
);
const headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://samparkpro.com/api/v1/webhooks';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://samparkpro.com/api/v1/webhooks'
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200):
{
"success": true,
"message": "Success",
"data": [
{
"id": 1,
"event_types": [
"message.received",
"message.sent"
],
"url": "https://example.com/webhook",
"is_active": true
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Test webhook
requires authentication
Example request:
curl --request GET \
--get "https://samparkpro.com/api/v1/webhooks/17" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://samparkpro.com/api/v1/webhooks/17"
);
const headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://samparkpro.com/api/v1/webhooks/17';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://samparkpro.com/api/v1/webhooks/17'
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (200):
{
"success": true,
"message": "Test webhook sent"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create webhook
requires authentication
Example request:
curl --request POST \
"https://samparkpro.com/api/v1/webhooks" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"event_types\": [
\"message.received\",
\"message.sent\"
],
\"url\": \"https:\\/\\/example.com\\/webhook\",
\"secret_key\": \"consequatur\",
\"account_filters\": {
\"whatsapp\": [
17
]
}
}"
const url = new URL(
"https://samparkpro.com/api/v1/webhooks"
);
const headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"event_types": [
"message.received",
"message.sent"
],
"url": "https:\/\/example.com\/webhook",
"secret_key": "consequatur",
"account_filters": {
"whatsapp": [
17
]
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://samparkpro.com/api/v1/webhooks';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'event_types' => [
'message.received',
'message.sent',
],
'url' => 'https://example.com/webhook',
'secret_key' => 'consequatur',
'account_filters' => [
'whatsapp' => [
17,
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://samparkpro.com/api/v1/webhooks'
payload = {
"event_types": [
"message.received",
"message.sent"
],
"url": "https:\/\/example.com\/webhook",
"secret_key": "consequatur",
"account_filters": {
"whatsapp": [
17
]
}
}
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Example response (201):
{
"success": true,
"message": "Webhook created successfully",
"data": {
"id": 1,
"event_types": [
"message.received",
"message.sent"
],
"url": "https://example.com/webhook",
"secret_key": "wh_secret_abc123..."
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update webhook
requires authentication
Example request:
curl --request PUT \
"https://samparkpro.com/api/v1/webhooks/17" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"event_types\": [
\"consequatur\"
],
\"url\": \"http:\\/\\/kunze.biz\\/iste-laborum-eius-est-dolor.html\",
\"account_filters\": {
\"whatsapp\": [
17
]
},
\"is_active\": false
}"
const url = new URL(
"https://samparkpro.com/api/v1/webhooks/17"
);
const headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"event_types": [
"consequatur"
],
"url": "http:\/\/kunze.biz\/iste-laborum-eius-est-dolor.html",
"account_filters": {
"whatsapp": [
17
]
},
"is_active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://samparkpro.com/api/v1/webhooks/17';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'event_types' => [
'consequatur',
],
'url' => 'http://kunze.biz/iste-laborum-eius-est-dolor.html',
'account_filters' => [
'whatsapp' => [
17,
],
],
'is_active' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://samparkpro.com/api/v1/webhooks/17'
payload = {
"event_types": [
"consequatur"
],
"url": "http:\/\/kunze.biz\/iste-laborum-eius-est-dolor.html",
"account_filters": {
"whatsapp": [
17
]
},
"is_active": false
}
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete webhook
requires authentication
Example request:
curl --request DELETE \
"https://samparkpro.com/api/v1/webhooks/17" \
--header "Authorization: Bearer YOUR_API_TOKEN" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://samparkpro.com/api/v1/webhooks/17"
);
const headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://samparkpro.com/api/v1/webhooks/17';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR_API_TOKEN',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://samparkpro.com/api/v1/webhooks/17'
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.