List your stacks
curl --request GET \
--url https://api-staging.mystacks.ai/manager/stacks \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-staging.mystacks.ai/manager/stacks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-staging.mystacks.ai/manager/stacks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "bf4bc5e9-0d9e-454c-bc1c-30abc120b074",
"current_revision_id": "e137435f-83ce-4b3c-86ae-75d6462487b6",
"name": "Example stack",
"allocation": [
{
"token_address": "0x117cc2133c37b721f49de2a7a74833232b3b4c0c",
"weight_bps": 6000
},
{
"token_address": "0xd0601ce157db5bdc3162bbac2a2c8af5320d9eec",
"weight_bps": 4000
}
],
"schedule": {
"preset": "daily"
}
}
],
"next_cursor": null
}{
"code": "invalid_request",
"message": "invalid request body",
"request_id": "d28e1ad4-2ca8-4f35-b590-8bf3b53abc81"
}{
"code": "unauthorized",
"message": "invalid manager credential",
"request_id": "d28e1ad4-2ca8-4f35-b590-8bf3b53abc81"
}{
"code": "rate_limited",
"message": "manager verification rate limited",
"request_id": "d28e1ad4-2ca8-4f35-b590-8bf3b53abc81"
}{
"code": "internal_error",
"message": "an unexpected error occurred",
"request_id": "d28e1ad4-2ca8-4f35-b590-8bf3b53abc81"
}{
"code": "service_unavailable",
"message": "manager verification is unavailable",
"request_id": "d28e1ad4-2ca8-4f35-b590-8bf3b53abc81"
}Stacks
List stacks
List your stacks with cursor pagination.
GET
/
manager
/
stacks
List your stacks
curl --request GET \
--url https://api-staging.mystacks.ai/manager/stacks \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-staging.mystacks.ai/manager/stacks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-staging.mystacks.ai/manager/stacks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "bf4bc5e9-0d9e-454c-bc1c-30abc120b074",
"current_revision_id": "e137435f-83ce-4b3c-86ae-75d6462487b6",
"name": "Example stack",
"allocation": [
{
"token_address": "0x117cc2133c37b721f49de2a7a74833232b3b4c0c",
"weight_bps": 6000
},
{
"token_address": "0xd0601ce157db5bdc3162bbac2a2c8af5320d9eec",
"weight_bps": 4000
}
],
"schedule": {
"preset": "daily"
}
}
],
"next_cursor": null
}{
"code": "invalid_request",
"message": "invalid request body",
"request_id": "d28e1ad4-2ca8-4f35-b590-8bf3b53abc81"
}{
"code": "unauthorized",
"message": "invalid manager credential",
"request_id": "d28e1ad4-2ca8-4f35-b590-8bf3b53abc81"
}{
"code": "rate_limited",
"message": "manager verification rate limited",
"request_id": "d28e1ad4-2ca8-4f35-b590-8bf3b53abc81"
}{
"code": "internal_error",
"message": "an unexpected error occurred",
"request_id": "d28e1ad4-2ca8-4f35-b590-8bf3b53abc81"
}{
"code": "service_unavailable",
"message": "manager verification is unavailable",
"request_id": "d28e1ad4-2ca8-4f35-b590-8bf3b53abc81"
}Returns only stacks owned by the manager identified by your API key.
Each item contains its current complete configuration.
Pagination
Stacks are ordered by creation time descending, then stack ID descending. Ifnext_cursor is a string, pass it unchanged as the next request’s cursor.
URL-encode it rather than building the query by hand.
Stop when next_cursor is null.
Do not decode or construct cursors.
Each page reads current configurations.
Pagination does not freeze stack contents across requests.
Unknown query parameters and repeated parameters return 400 invalid_request.
Empty or malformed cursors also return 400.
The limit accepts decimal digits within the allowed range.
Fractions, signed values, and exponential notation are invalid.
See shared errors for authentication and service failures.Authorizations
Enter the API key supplied by MyStacks. The playground adds the Authorization: Bearer prefix for you.
Headers
Optional request trace ID. A nonempty value is echoed in the response. Missing or empty values cause a UUID to be generated.
Query Parameters
Opaque next_cursor from a previous response. Omit it for the first page. Empty or malformed values are invalid.
Minimum string length:
1Page size. Send an integer from 1 through 100 using decimal digits only.
Required range:
1 <= x <= 100Response
One page of manager-owned stacks.
Only stacks owned by the authenticated manager. Ordered by creation time descending, then stack ID descending.
Show child attributes
Show child attributes
Opaque cursor to pass unchanged to the next list request. Null marks the last page.
Minimum string length:
1Example:
null