Skip to main content
POST
Create API template.

Authorizations

Authorization
string
header
required

Bearer JWT token or API Key (sk-*).

Body

application/json
name
string
required

Name.

path
string
required

Normalized path (e.g. /api/v1/users/:userId, /_/auth, or /users/@)

Maximum string length: 1024
method
enum<string>
required

Method.

Available options:
GET,
POST,
PUT,
PATCH,
DELETE
executionPolicy
object | null

Saved permission and current-user policy. Omit or clear to inherit the instance endpoint defaults.

Example:
active
boolean
default:true

Whether the endpoint is active immediately after creation. Set false for validate-before-activate rollouts.

category
string

Category.

desc
string

Description.

metadata
object | null

Optional resource metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use.

componentId
string

Component identifier.

componentDigest
string

Portable exact component revision identity. Omit it to follow the latest active revision. CUSTOM_NODEJS endpoints must omit it.

timeout
number
default:60

Endpoint execution timeout in seconds. The effective maximum is resolved at runtime from the current instance quota.

Required range: x >= 1
Example:

60

options
object

Endpoint runtime options. Custom low-code values live only under "input". For a new component-backed endpoint with a body, prefer popResult and set it to one exact visible output key for its raw value; use the complete visible result map only when explicitly required, or set noResult for an empty body. legacyResults is deprecated and must not be used for new endpoints.

Response

Job scheduled.