Get Stack
curl --request GET \
--url https://api.stax.ai/stack/get \
--cookie authToken=import requests
url = "https://api.stax.ai/stack/get"
headers = {"cookie": "authToken="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'authToken='}};
fetch('https://api.stax.ai/stack/get', 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.stax.ai/stack/get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "authToken=",
]);
$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.stax.ai/stack/get"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "authToken=")
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.stax.ai/stack/get")
.header("cookie", "authToken=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stax.ai/stack/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'authToken='
response = http.request(request)
puts response.read_body{
"success": true,
"stack": {
"_id": "<string>",
"path": "<string>",
"template": "<string>",
"team": "<string>",
"baseName": "<string>",
"base": "<string>",
"restrict": true,
"access": [
"<string>"
],
"pinned": true,
"hideHint": true,
"enabled": true,
"lastModified": "2023-11-07T05:31:56Z",
"numDocuments": 123,
"numUnread": 123,
"keys": [
"<string>"
],
"dataTypes": [
{
"key": "<string>"
}
],
"rules": {
"enabled": true,
"match": {
"source": [
"<string>"
],
"name": [
"<string>"
],
"phrases": [
"<string>"
]
}
},
"trainer": {
"manualTrigger": true,
"isTraining": true,
"lastTrained": "2023-11-07T05:31:56Z"
},
"numMovedFiles": 123,
"pipeline": [
{
"module": "<string>",
"config": [
{
"label": "<string>",
"value": {}
}
],
"locked": true,
"trainer": {
"usage": 123,
"lastTrained": "2023-11-07T05:31:56Z",
"training": true,
"config": [
{
"label": "<string>",
"value": {}
}
],
"data": {}
},
"usage": 123,
"limit": 123,
"history": [
{
"timestamp": "2023-11-07T05:31:56Z",
"modifiedBy": "<string>",
"labels": [
"<string>"
]
}
]
}
],
"locked": true,
"forms": [
"<string>"
],
"tags": [
"<string>"
]
}
}{
"success": false,
"error": "<string>",
"authError": true
}Stack
Get Stack
Get stack information by ID or tag
GET
/
stack
/
get
Get Stack
curl --request GET \
--url https://api.stax.ai/stack/get \
--cookie authToken=import requests
url = "https://api.stax.ai/stack/get"
headers = {"cookie": "authToken="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'authToken='}};
fetch('https://api.stax.ai/stack/get', 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.stax.ai/stack/get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "authToken=",
]);
$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.stax.ai/stack/get"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "authToken=")
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.stax.ai/stack/get")
.header("cookie", "authToken=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stax.ai/stack/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'authToken='
response = http.request(request)
puts response.read_body{
"success": true,
"stack": {
"_id": "<string>",
"path": "<string>",
"template": "<string>",
"team": "<string>",
"baseName": "<string>",
"base": "<string>",
"restrict": true,
"access": [
"<string>"
],
"pinned": true,
"hideHint": true,
"enabled": true,
"lastModified": "2023-11-07T05:31:56Z",
"numDocuments": 123,
"numUnread": 123,
"keys": [
"<string>"
],
"dataTypes": [
{
"key": "<string>"
}
],
"rules": {
"enabled": true,
"match": {
"source": [
"<string>"
],
"name": [
"<string>"
],
"phrases": [
"<string>"
]
}
},
"trainer": {
"manualTrigger": true,
"isTraining": true,
"lastTrained": "2023-11-07T05:31:56Z"
},
"numMovedFiles": 123,
"pipeline": [
{
"module": "<string>",
"config": [
{
"label": "<string>",
"value": {}
}
],
"locked": true,
"trainer": {
"usage": 123,
"lastTrained": "2023-11-07T05:31:56Z",
"training": true,
"config": [
{
"label": "<string>",
"value": {}
}
],
"data": {}
},
"usage": 123,
"limit": 123,
"history": [
{
"timestamp": "2023-11-07T05:31:56Z",
"modifiedBy": "<string>",
"labels": [
"<string>"
]
}
]
}
],
"locked": true,
"forms": [
"<string>"
],
"tags": [
"<string>"
]
}
}{
"success": false,
"error": "<string>",
"authError": true
}Authorizations
cookieAuthbearerAuth
Cookie-based authentication using userId and authToken cookies
Query Parameters
Stack ID MongoDB ObjectId
Pattern:
^[0-9a-fA-F]{24}$Stack tag
⌘I