Get a list of your subscriptions to MailChannels Inbound
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.mailchannels.net/inbound/v1/subscriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.mailchannels.net/inbound/v1/subscriptions"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mailchannels.net/inbound/v1/subscriptions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://api.mailchannels.net/inbound/v1/subscriptions \
--header 'X-API-Key: <api-key>'[
{
"handle": "<string>",
"active": true,
"plan": {
"handle": "<string>",
"name": "<string>"
},
"limits": [
{
"featureHandle": "<string>",
"value": "<string>"
}
],
"activeAccountsCount": 123
}
]{
"errors": [
"<string>"
],
"code": 123,
"message": "<string>"
}{
"errors": [
"<string>"
],
"code": 123,
"message": "<string>"
}Get a list of your subscriptions to MailChannels Inbound
GET
/
subscriptions
Get a list of your subscriptions to MailChannels Inbound
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.mailchannels.net/inbound/v1/subscriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.mailchannels.net/inbound/v1/subscriptions"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mailchannels.net/inbound/v1/subscriptions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://api.mailchannels.net/inbound/v1/subscriptions \
--header 'X-API-Key: <api-key>'[
{
"handle": "<string>",
"active": true,
"plan": {
"handle": "<string>",
"name": "<string>"
},
"limits": [
{
"featureHandle": "<string>",
"value": "<string>"
}
],
"activeAccountsCount": 123
}
]{
"errors": [
"<string>"
],
"code": 123,
"message": "<string>"
}{
"errors": [
"<string>"
],
"code": 123,
"message": "<string>"
}Authorizations
Response
Success, a list of subscriptions is returned
A unique identifier for this subscription. This is used to refer to this subscription in other API calls.
If true, this subscription is currently enabled.
Show child attributes
Show child attributes
A list of limits associated with this subscription. Limits are things like the maximum number of domains that can be provisioned against this subscription, or whether some features are enabled.
Show child attributes
Show child attributes
The number of domains currently provisioned against this subscription.
Was this page helpful?

