curl --request GET \
--url https://api-staging.mystacks.ai/manager/stacks/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-staging.mystacks.ai/manager/stacks/{id}', 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/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"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"
}
}{
"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": "not_found",
"message": "stack not found",
"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"
}Get a stack
Read a stack’s current configuration and revision.
curl --request GET \
--url https://api-staging.mystacks.ai/manager/stacks/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-staging.mystacks.ai/manager/stacks/{id}', 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/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"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"
}
}{
"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": "not_found",
"message": "stack not found",
"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"
}current_revision_id in ETag.
A stack owned by another manager returns the same 404 as a missing stack.
This route does not read historical revisions or subscriber holdings.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.
Path Parameters
UUID of a stack owned by this manager. Missing or unowned stacks return 404. Invalid UUIDs return 400.
Response
Current complete stack configuration.
Current complete configuration. No subscriber, balance, performance, or execution data is included.
Stable stack identifier.
"bf4bc5e9-0d9e-454c-bc1c-30abc120b074"
Identifier of this complete saved configuration revision.
"e137435f-83ce-4b3c-86ae-75d6462487b6"
Must contain non-whitespace text and must not contain U+0000. Accepted names retain their exact whitespace. No separate name-length limit applies within the body size limit.
1^(?![\s\S]*\u0000)[\s\S]*\S[\s\S]*$"Example stack"
Complete saved allocation. Addresses are lowercase, unique, and ordered by token address. Weights total exactly 10000.
1 - 30 elementsShow child attributes
Show child attributes
[
{
"token_address": "0x117cc2133c37b721f49de2a7a74833232b3b4c0c",
"weight_bps": 6000
},
{
"token_address": "0xd0601ce157db5bdc3162bbac2a2c8af5320d9eec",
"weight_bps": 4000
}
]
Schedule configuration only. Saving a preset does not execute trades.
Show child attributes
Show child attributes
{ "preset": "daily" }