Skip to main content
POST
/
projects
/
{id}
/
publish
Publish project with custom subdomain
curl --request POST \
  --url https://api.workser.ai/projects/{id}/publish \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "hostname": "my-app.workser.app"
}'
{
  "status": "success",
  "message": [
    "Project published successfully",
    "Error message ..."
  ]
}

Authorizations

x-api-key
string
header
required

API key for authentication

Path Parameters

id
string
required

Project ID

Example:

"550e8400-e29b-41d4-a716-446655440000"

Body

application/json
hostname
string
required

Hostname of the sub domain in format {sub_domain}.workser.app to publish the project. Custom domain of your own domain or user domain coming soon.

Example:

"my-app.workser.app"

Response

Project published successfully

status
enum<string>
required

Status of the publish project

Available options:
success,
failed
Example:

"success"

message
string
required

Message

Example:
[
"Project published successfully",
"Error message ..."
]