Create an app

Create an app. The hostname is {slug}-{shortId}.runtype.run; a client token scoped to that origin is auto-provisioned. Upload a version and activate it to start serving.

Authentication

AuthorizationBearer
API key or Clerk session token

Request

This endpoint expects an object.
namestringRequired1-255 characters
slugstringRequired1-40 characters

Hostname slug: lowercase letters, digits, and hyphens; must start with a letter. The app serves at {slug}-{shortId}.runtype.run.

descriptionstringOptional<=2000 characters
visibilityenumOptionalDefaults to unlisted
Allowed values:

Response

App created
activeVersionIdstring or null
clientTokenIdstring or null
createdAtstring
descriptionstring or null
hostnamestring
idstring
namestring
shortIdstring
slugstring
statusenum
updatedAtstring
urlstring
visibilityenum

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
500
Internal Server Error