Skip to main content
POST
Create Endpoint

Headers

Content-Type
string
vereist

Allowed value: application/json.

Authorization
string
vereist

Bearer authentication format, e.g.: Bearer {{API_KEY}}.

Body

application/json
type
enum<string>
vereist

Endpoint type. Allowed values: sync, async.

Beschikbare opties:
sync,
async
Voorbeeld:

"sync"

name
string
vereist

Endpoint name. String, length: 1-255 characters.

Voorbeeld:

"example-endpoint"

product_id
string
vereist

Serverless product ID. String, length: 1-255 characters.

Voorbeeld:

"product-id"

image
string
vereist

Image address. String, length: 1-500 characters.

Voorbeeld:

"registry.example.com/namespace/image:tag"

worker_config
object
vereist

Worker configuration.

app_name
string

Application name. String, length: 0-255 characters.

Voorbeeld:

"example-app"

registry_auth_id
string

Saved registry authentication ID. String, length: 0-255 characters.

Voorbeeld:

"registry-auth-id"

entrypoint
string

Container entrypoint.

Voorbeeld:

""

command
string

Startup command.

Voorbeeld:

""

policy
object

Scheduling / request policy.

volumes
object[]

Mount list.

envs
object[]

Environment variable list.

ports
integer[]

Port list. Each value in range: [1, 65535].

Voorbeeld:
health_check
object

Health check configuration.

region_id
string

Region ID.

Voorbeeld:

"region-id"

Respons

200 - application/json

OK

id
string

ID of the created Endpoint

Voorbeeld:

"endpoint-id"

Laatst gewijzigd op 10 augustus 2026