Skip to main content
POST
Create Endpoint

Cabeçalhos

Content-Type
string
obrigatório

Allowed value: application/json.

Authorization
string
obrigatório

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

Corpo

application/json
type
enum<string>
obrigatório

Endpoint type. Allowed values: sync, async.

Opções disponíveis:
sync,
async
Exemplo:

"sync"

name
string
obrigatório

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

Exemplo:

"example-endpoint"

product_id
string
obrigatório

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

Exemplo:

"product-id"

image
string
obrigatório

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

Exemplo:

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

worker_config
object
obrigatório

Worker configuration.

app_name
string

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

Exemplo:

"example-app"

registry_auth_id
string

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

Exemplo:

"registry-auth-id"

entrypoint
string

Container entrypoint.

Exemplo:

""

command
string

Startup command.

Exemplo:

""

policy
object

Scheduling / request policy.

volumes
object[]

Mount list.

envs
object[]

Environment variable list.

ports
integer[]

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

Exemplo:
health_check
object

Health check configuration.

region_id
string

Region ID.

Exemplo:

"region-id"

Resposta

200 - application/json

OK

id
string

ID of the created Endpoint

Exemplo:

"endpoint-id"

Última modificação em 10 de agosto de 2026