Skip to main content
POST
/
user-services
Register User Service
curl --request POST \
  --url https://api.zo.computer/user-services/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "protocol": "http",
  "local_port": 123,
  "entrypoint": [
    "<string>"
  ],
  "workdir": "<string>",
  "env_vars": {}
}
'
{
  "service_id": "<string>",
  "label": "<string>",
  "protocol": "http",
  "local_port": 123,
  "entrypoint": [
    "<string>"
  ],
  "workdir": "<string>",
  "env_vars": {},
  "http_url": "<string>",
  "tcp_addr": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Zo API key (zo_sk_...)

Body

application/json
label
string
required
Required string length: 1 - 63
protocol
enum<string>
required
Available options:
http,
tcp
local_port
integer
required
entrypoint
workdir
string | null
env_vars
Env Vars · object

Response

Successful Response

service_id
string
required
label
string
required
protocol
enum<string>
required
Available options:
http,
tcp
local_port
integer
required
entrypoint
workdir
string | null
env_vars
Env Vars · object
http_url
string | null
tcp_addr
string | null
created_at
string<date-time> | null