API Reference / Legacy proxy pools
List a legacy pool's proxies
Returns the ids of proxies belonging to a legacy proxy pool. Results are bare ids rather than fully hydrated proxies, and the legacy Proxy type has no by-id fetch RPC to resolve them against - ListProxies only returns a proportional range across the whole workspace's proxy list, not a lookup by id. Results are paginated. Pass an empty cursor for the first page and follow the returned cursor for subsequent pages.
/ proxies. v1. Proxies/ ListPoolProxiesRequest body
application/jsonRequired
Request for one page of the identifiers of the legacy proxies in a legacy proxy pool.
cursor?stringOpaque pagination cursor from a previous ListPoolProxiesResponse. Empty for the first page.
limit?integerMaximum number of proxy ids to return. Server caps this at a service-defined upper bound.
Format"int32"
poolId?stringThe pool to list member proxy ids for.
Format"byte" base64
Response body
application/json
Success
nextCursor?stringCursor to pass to fetch the next page. Empty when there are no more results.
proxyIds?array<string>Ids of proxies belonging to the pool for this page, in the server's stable sort order. Bare ids only. The legacy Proxy type has no by-id fetch RPC, so these ids cannot be resolved to full proxies through any targeted lookup - ListProxies only returns a proportional range across the whole workspace's proxy list, not a lookup by id.
application/json
The request was malformed, such as a missing required field or an unparseable cursor. The request cannot be carried out in the current system state.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
The request lacks a valid API key in the Authorization header.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
The API key is not allowed to perform this action on this workspace.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
The requested resource does not exist in this workspace.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
The request was rate limited. Slow down and retry later.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
An internal server error occurred.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
application/json
The service is temporarily unavailable. Retry with backoff.
codestringThe Connect error code, such as "not_found".
details?array<object>Optional machine-readable error details.
messagestringA human-readable description of the error.
curl -X POST "https://api.goldmine.to/proxies.v1.Proxies/ListPoolProxies" \
-H "Authorization: Bearer $CSTRADER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"poolId": "bGVnYWN5cG9vbDAwMDEAAA==",
"limit": 50
}'const res = await fetch("https://api.goldmine.to/proxies.v1.Proxies/ListPoolProxies", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CSTRADER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"poolId": "bGVnYWN5cG9vbDAwMDEAAA==",
"limit": 50
}),
});
const data = await res.json();body := strings.NewReader(`{
"poolId": "bGVnYWN5cG9vbDAwMDEAAA==",
"limit": 50
}`)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, "https://api.goldmine.to/proxies.v1.Proxies/ListPoolProxies", body)
if err != nil {
return err
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("CSTRADER_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)import os, requests
res = requests.post(
"https://api.goldmine.to/proxies.v1.Proxies/ListPoolProxies",
headers={"Authorization": f"Bearer {os.environ['CSTRADER_API_KEY']}"},
json={
"poolId": "bGVnYWN5cG9vbDAwMDEAAA==",
"limit": 50
},
)
data = res.json(){
"proxyIds": [
"bGVnYWN5cHJveHkwMDEAAA==",
"bGVnYWN5cHJveHkwMDIAAA=="
],
"nextCursor": "eyJvZmZzZXQiOjUwfQ=="
}{
"code": "failed_precondition",
"message": "The request cannot be carried out in the current system state."
}{
"code": "unauthenticated",
"message": "The request lacks a valid API key in the Authorization header."
}{
"code": "permission_denied",
"message": "The API key is not allowed to perform this action on this workspace."
}{
"code": "not_found",
"message": "The requested resource does not exist in this workspace."
}{
"code": "resource_exhausted",
"message": "The request was rate limited. Slow down and retry later."
}{
"code": "internal",
"message": "An internal server error occurred."
}{
"code": "unavailable",
"message": "The service is temporarily unavailable. Retry with backoff."
}