Skip to main content
GET
/
v2
/
scopes
List Scopes
curl --request GET \
  --url https://api.glider.fi/v2/scopes \
  --header 'X-API-KEY: <api-key>'
import requests

url = "https://api.glider.fi/v2/scopes"

headers = {"X-API-KEY": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};

fetch('https://api.glider.fi/v2/scopes', 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.glider.fi/v2/scopes",
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;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.glider.fi/v2/scopes"

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))

}
HttpResponse<String> response = Unirest.get("https://api.glider.fi/v2/scopes")
.header("X-API-KEY", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.glider.fi/v2/scopes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "success": true,
  "data": {
    "scopes": [
      {
        "name": "strategies:read",
        "description": "List and view strategies",
        "tier": "default"
      },
      {
        "name": "strategies:write",
        "description": "Create strategies and publish versions",
        "tier": "standard"
      },
      {
        "name": "portfolios:read",
        "description": "List and view user portfolios",
        "tier": "default"
      },
      {
        "name": "portfolios:write",
        "description": "Pause, resume, trigger rebalances, and update portfolio metadata",
        "tier": "standard"
      },
      {
        "name": "enroll:write",
        "description": "Enroll new users into a strategy (creates smart accounts and a portfolio)",
        "tier": "standard"
      }
    ]
  }
}
Returns every scope defined in the system. Use this to discover what permissions are available and how they are granted.
  • Auth: none (public endpoint)
  • Rate limit: global only
Each scope has a tier that determines how it can be granted:
TierMeaning
defaultAuto-granted on every new API key
standardSelf-service via dashboard (if tenant is active)
restrictedAdmin review and manual grant only
{
  "success": true,
  "data": {
    "scopes": [
      {
        "name": "strategies:read",
        "description": "List and view strategies",
        "tier": "default"
      },
      {
        "name": "strategies:write",
        "description": "Create strategies and publish versions",
        "tier": "standard"
      },
      {
        "name": "portfolios:read",
        "description": "List and view user portfolios",
        "tier": "default"
      },
      {
        "name": "portfolios:write",
        "description": "Pause, resume, trigger rebalances, and update portfolio metadata",
        "tier": "standard"
      },
      {
        "name": "enroll:write",
        "description": "Enroll new users into a strategy (creates smart accounts and a portfolio)",
        "tier": "standard"
      }
    ]
  }
}