List Networks
const url = 'https://api-dev.mindflow.io/v1/organizations/%24CURRENT_ORGANIZATION_ID/relay/networks?limit=100&cursor=eyJvZmZzZXQiOjEwMH0%3D';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api-dev.mindflow.io/v1/organizations/%24CURRENT_ORGANIZATION_ID/relay/networks?limit=100&cursor=eyJvZmZzZXQiOjEwMH0%3D' \ --header 'Authorization: Bearer <token>'Lists Relay networks for the caller’s organization, sorted by name. Omit cursor for the first page and follow
pagination.nextCursor until it is null.
Requires Authorization: Bearer <token> (user access token with org-admin access). Missing or invalid
token → 401 MISSING_OR_INVALID_TOKEN. Organization API keys are not accepted on Relay routes. A user
token without org-admin access for the organization → 403 FORBIDDEN.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Opaque id of the organization that owns the resource. In a playbook step this can be filled from the current organization when the caller leaves it unset.
Example
ORGA-57b858ed-ec60-4507-b2ef-ea58244ac742Opaque id of the organization. Pass it unchanged.
Query Parameters
Section titled “Query Parameters”Maximum number of items in this page. Omit it to use 100. The value must be from 1 to 1000.
A smaller page returns faster. A larger page needs fewer round trips. Some lists can return fewer items than
limit when the caller cannot see every row.
Example
100Opaque token from the previous response pagination.nextCursor. Omit it to read the first page.
Send the token unchanged. Do not combine it with before or after on audit logs.
An unknown or altered token is 400 BAD_REQUEST.
Example
eyJvZmZzZXQiOjEwMH0=Responses
Section titled “Responses”One page of networks for this organization.
object
Networks on this page.
A Relay network in the caller’s organization, including name, status, and site CIDR.
object
Stable Relay network id. Credentials store this value as relayNetworkId.
Opaque id of the organization that owns the resource. In a playbook step this can be filled from the current organization when the caller leaves it unset.
Human-readable name for this Relay network within the organization. Required when creating a network. Used in the platform-assigned display name. Choose a stable label operators will recognize (for example a site or customer code).
Allowed characters: lowercase letters, digits, and hyphens. Must start and end with an alphanumeric character.
Lifecycle state of the Relay network.
provisioning: Network creation in progress (enroll pending).ready: Network is ready; auth key was issued; gateway enrolled.enroll_failed: Gateway enroll failed; Create may replace this binding after cleanup.degraded: Network exists but cleanup or health checks reported a problem.unbound: No active network for this organization.
Mindflow deployment prefix embedded in the platform-assigned network name.
Stable identifier of the API-only Tailnet created for this Environment. Opaque to callers; used for day-2 operations and delete.
Platform-assigned network display name. Format:
mf-relay-{deploymentPrefix}-{name}. Callers cannot set this directly.
IPv4 CIDR advertised by the site subnet router (for example 10.203.250.0/24).
Must be a valid IPv4 network prefix; host bits must be zero.
SOCKS listener port on the management NLB for this Ready mesh (1055–2054).
Customer DNS resolvers that Via Relay queries through the tunnel (DNS over TCP/53) to resolve
hostname targets. Each address must sit inside the network cidr. An empty list means Via Relay
only dials IP targets.
When the network was first created.
When the network was last updated.
Tells the caller how to fetch the next page. Pass nextCursor as the cursor query parameter.
A null nextCursor means this page is the last one. Do not decode the cursor.
object
Opaque token for the next page. Send it unchanged as cursor. Null when there are no further items.
The token can be longer than this example and is not a stable document format.
Example
{ "networks": [ { "organizationId": "$CURRENT_ORGANIZATION_ID", "name": "acme-prod", "status": "provisioning", "deploymentPrefix": "sandbox", "tailnetId": "T123456CNTRL", "tailnetName": "mf-relay-sandbox-acme-prod", "cidr": "10.203.250.0/24", "dnsServers": [ "10.203.250.53" ] } ], "pagination": { "nextCursor": "eyJvZmZzZXQiOjEwMH0=" }}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
The request was invalid. Common causes include:
- Invalid timestamp format.
- Using
cursorwithbeforeorafter. - Missing
limitwhen usingbeforeorafter. - Invalid field names in the
fieldsparameter.
See the error response for specific details about what went wrong.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always BAD_REQUEST on this response. Read detail for which value to change, then send a corrected request.
Example
{ "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "The request body or query is invalid.", "code": "BAD_REQUEST"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Authentication failed. The request lacks valid credentials or the provided credentials are invalid.
Ensure you have:
- A valid API key or token.
- Proper authentication headers.
- Required permissions.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always MISSING_OR_INVALID_TOKEN on this response. Branch on this value, not on detail.
Example
{ "type": "about:blank", "title": "Unauthorized", "status": 401, "detail": "The bearer token is missing or invalid.", "code": "MISSING_OR_INVALID_TOKEN"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Forbidden. The server understood the request but refuses to authorize it.
For connector APIs, this often indicates insufficient permissions on the remote system (for example SFTP write access denied).
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always FORBIDDEN on this response. The token was accepted and the action is not allowed.
Example
{ "type": "about:blank", "title": "Forbidden", "status": 403, "detail": "You cannot perform this action.", "code": "FORBIDDEN"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Too many requests. The request rate limit has been exceeded.
Please wait until the rate limit window resets before making additional requests.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always RATE_LIMIT_EXCEEDED on this response. Wait Retry-After seconds before retrying.
Example
{ "type": "about:blank", "title": "Too Many Requests", "status": 429, "detail": "The request rate limit has been exceeded.", "code": "RATE_LIMIT_EXCEEDED"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Internal server error. The server encountered an unexpected condition that prevented it from fulfilling the request.
Please try again later or contact support if the problem persists.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always INTERNAL_ERROR on this response. Retry later. Do not retry a create in a tight loop.
Example
{ "type": "about:blank", "title": "Internal Server Error", "status": 500, "detail": "The request could not be completed.", "code": "INTERNAL_ERROR"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.