List available credit purchase tiers
curl --request GET \
--url https://api.platform.dakota.xyz/self-serve/credits/tiers \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.platform.dakota.xyz/self-serve/credits/tiers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.platform.dakota.xyz/self-serve/credits/tiers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.platform.dakota.xyz/self-serve/credits/tiers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"tiers": [
{
"price_cents": 5000,
"transfer_capacity_cents": 1000000
},
{
"price_cents": 10000,
"transfer_capacity_cents": 2000000
},
{
"price_cents": 25000,
"transfer_capacity_cents": 5000000
}
]
}{
"type": "https://docs.dakota.xyz/api-reference/errors#authentication-error",
"title": "Authentication Required",
"status": 401,
"detail": "Missing or invalid authentication credentials."
}{
"type": "https://docs.dakota.xyz/api-reference/errors#forbidden",
"title": "Forbidden",
"status": 403,
"detail": "Credit management is only available for self-serve customers."
}Self Serve
List available credit purchase tiers
Returns the available prepaid credit tiers with transfer capacity calculated for the authenticated self-serve client.
GET
/
self-serve
/
credits
/
tiers
List available credit purchase tiers
curl --request GET \
--url https://api.platform.dakota.xyz/self-serve/credits/tiers \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.platform.dakota.xyz/self-serve/credits/tiers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.platform.dakota.xyz/self-serve/credits/tiers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.platform.dakota.xyz/self-serve/credits/tiers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"tiers": [
{
"price_cents": 5000,
"transfer_capacity_cents": 1000000
},
{
"price_cents": 10000,
"transfer_capacity_cents": 2000000
},
{
"price_cents": 25000,
"transfer_capacity_cents": 5000000
}
]
}{
"type": "https://docs.dakota.xyz/api-reference/errors#authentication-error",
"title": "Authentication Required",
"status": 401,
"detail": "Missing or invalid authentication credentials."
}{
"type": "https://docs.dakota.xyz/api-reference/errors#forbidden",
"title": "Forbidden",
"status": 403,
"detail": "Credit management is only available for self-serve customers."
}Was this page helpful?
⌘I

