Skip to content

Create Service

POST/v1/services

Create a Service that pins a saved Agent version. Idempotency-Key is required: the same key and body return the original Service, and a different body returns 409. schedule and model_provider are not accepted on Services.

Headers

stringIdempotency-Keyrequired

1-128 characters, no leading or trailing whitespace. Reuse the same key and body when retrying; the same key with a different body returns 409.

Request body

Strict JSON object.

stringnamerequired

Up to 200 characters.

stringagent_idrequired

Saved Agent ID. The Agent must be active and ready.

Optional<integer>agent_version

Agent version to pin. Omit to pin the current version at creation time.

Optional<string>input

Default input, up to 256 KiB. Invocations without input use it; the effective input must be non-empty.

Optional<string>description

Up to 16384 characters.

Optional<string>model

Default model override.