Skip to main content
POST
Create an exit

Authorizations

Authorization
string
header
required

An API key (zode_tok_...). Create one in the console under API keys (https://console.zode.dev/tokens), or with zode login.

Body

application/json
name
string
required
Pattern: ^[a-z0-9-]{1,32}$
Example:

"home"

offline
enum<string>

what routes through it do while it is offline; direct when absent

Available options:
direct,
block

Response

Created

id
string
required
Example:

"ex_abcdefghijklmnop"

name
string
required
Example:

"home"

route_url
string
required

what an egress route names

Example:

"exit://ex_abcdefghijklmnop"

online
boolean
required
created_at
string<date-time>
required
last_seen_at
string<date-time>
last_ip
string

the address the agent last connected from; sites see it

agent_version
string
created_by
string
offline
enum<string>

direct: routes fall back to direct after three minutes offline; block: they fail until it is back

Available options:
direct,
block
fallen_back
boolean

sandboxes are leaving direct now because this exit is offline

token
string

zx_...; shown once, kept only as a hash

command
string
Example:

"zode exit run zx_..."