Skip to main content
GET
/
workspace
/
{workspace_id}
/
apigroup
Retrieve a list of API groups inside of a workspace. Use the optional filtering and sorting parameters for more granular returns.
curl --request GET \
  --url https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/apigroup \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/apigroup"

headers = {"Authorization": "Bearer <token>"}

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

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/apigroup', 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://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/apigroup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$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://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/apigroup"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/apigroup")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://x8ki-letl-twmt.n7.xano.io/api:meta/workspace/{workspace_id}/apigroup")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "curPage": 123,
  "nextPage": 123,
  "prevPage": 123,
  "items": [
    {
      "id": 1,
      "created_at": "2023-04-19 21:01:32+0000",
      "updated_at": "2023-04-19 21:01:32+0000",
      "name": "API Group Test",
      "description": "My API groups description",
      "docs": "Documentation",
      "guid": "YE1fwVhQ-enRlc6Sb42Gqru58-0",
      "canonical": "FRzyRdY0",
      "branch": "v1",
      "tag": [
        "example tag"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
integer<int64>
required

Query Parameters

branch
string
default:""
page
integer<int64>
default:1
per_page
integer<int64>
default:50
sort
enum<string>
default:created_at
Available options:
created_at,
updated_at,
name
order
enum<string>
default:desc
Available options:
asc,
desc

Response

Success!

curPage
integer<int64>
nextPage
integer<int64> | null
prevPage
integer<int64> | null
items
object[]