Skip to content
Skip to Content
Coder Docs

Create workspace proxy

POST
/api/v2/workspaceproxies

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Request Body

Create workspace proxy request

application/json
  1. body
display_name?string
icon?string
name*string

Response Body

Created

application/json
  1. response
created_at?string
Formatdate-time
deleted?boolean
derp_enabled?boolean
derp_only?boolean
display_name?string
healthy?boolean
icon_url?string
id?string
Formatuuid
name?string
path_app_url?string

PathAppURL is the URL to the base path for path apps. Optional unless wildcard_hostname is set. E.g. https://us.example.com

status?

Status is the latest status check of the proxy. This will be empty for deleted proxies. This value can be used to determine if a workspace proxy is healthy and ready to use.

updated_at?string
Formatdate-time
version?string
wildcard_hostname?string

WildcardHostname is the wildcard hostname for subdomain apps. E.g. *.us.example.com E.g. *--suffix.au.example.com Optional. Does not need to be on the same domain as PathAppURL.

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X POST \	"$CODER_URL/api/v2/workspaceproxies" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "name": "string"}'
Example Response201
{  "created_at": "2019-08-24T14:15:22Z",  "deleted": true,  "derp_enabled": true,  "derp_only": true,  "display_name": "string",  "healthy": true,  "icon_url": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "path_app_url": "string",  "status": {    "checked_at": "2019-08-24T14:15:22Z",    "report": {      "errors": [        "string"      ],      "warnings": [        "string"      ]    },    "status": "ok"  },  "updated_at": "2019-08-24T14:15:22Z",  "version": "string",  "wildcard_hostname": "string"}