List subscriptions
curl --request GET \
--url https://api.omnistrate.cloud/2022-09-01-00/subscription \
--header 'Cookie: <cookie>'import requests
url = "https://api.omnistrate.cloud/2022-09-01-00/subscription"
headers = {"Cookie": "<cookie>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Cookie: '<cookie>'}};
fetch('https://api.omnistrate.cloud/2022-09-01-00/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.omnistrate.cloud/2022-09-01-00/subscription",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Cookie: <cookie>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.omnistrate.cloud/2022-09-01-00/subscription"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Cookie", "<cookie>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.omnistrate.cloud/2022-09-01-00/subscription")
.header("Cookie", "<cookie>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omnistrate.cloud/2022-09-01-00/subscription")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Cookie"] = '<cookie>'
response = http.request(request)
puts response.read_body{
"ids": [
"<string>"
],
"subscriptions": [
{}
],
"nextPageToken": "<string>"
}Subscriptions
List subscriptions
List the subscriptions your account belongs to.
GET
/
2022-09-01-00
/
subscription
List subscriptions
curl --request GET \
--url https://api.omnistrate.cloud/2022-09-01-00/subscription \
--header 'Cookie: <cookie>'import requests
url = "https://api.omnistrate.cloud/2022-09-01-00/subscription"
headers = {"Cookie": "<cookie>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Cookie: '<cookie>'}};
fetch('https://api.omnistrate.cloud/2022-09-01-00/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.omnistrate.cloud/2022-09-01-00/subscription",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Cookie: <cookie>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.omnistrate.cloud/2022-09-01-00/subscription"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Cookie", "<cookie>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.omnistrate.cloud/2022-09-01-00/subscription")
.header("Cookie", "<cookie>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omnistrate.cloud/2022-09-01-00/subscription")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Cookie"] = '<cookie>'
response = http.request(request)
puts response.read_body{
"ids": [
"<string>"
],
"subscriptions": [
{}
],
"nextPageToken": "<string>"
}Lists every subscription your user has access to, either as the owner or as an invited user. The subscription ID is what you pass as
subscriptionId when managing deployment instances.
Authorization
Query parameters
string
Only return subscriptions for this service, for example
service-12345678.string
Environment type to filter by, for example
PROD.boolean
Include suspended, cancelled, and terminated subscriptions. Defaults to
false.Response
string[]
required
IDs of the matching subscriptions.
object[]
The subscriptions. See Describe subscription for the full field list.
string
Token to use to fetch the next page of results.
200 OK
{
"ids": ["sub-abc123"],
"subscriptions": [
{
"id": "sub-abc123",
"serviceId": "s-123456",
"serviceName": "FalkorDB",
"productTierId": "pt-123456",
"productTierName": "Pro",
"roleType": "root",
"status": "ACTIVE",
"defaultSubscription": true,
"cloudProviderNames": ["aws", "gcp"],
"createdAt": "2025-01-15T10:04:22Z"
}
]
}
Errors
See Error for the error response shape.Was this page helpful?