Skip to main content
POST
Register an agent target (atomic prove-then-persist)

Headers

Authorization
string | null

Bearer token with API key

Body

application/json

Request body for POST /api/v1/model (register an agent target).

name
string
required

Display name for the target.

Required string length: 1 - 200
config
ApiAgentConfig · object
required

Endpoint transport/parsing config (endpoint_url, response_field dot-path, transport, ...). Use request_timeout (<=180); ws_timeout is ignored here.

environment
enum<string>
default:staging
Available options:
prod,
staging,
dev
auth_type
enum<string>
default:none

bearer='Authorization: Bearer ', api_key='x-api-key: ', basic=HTTP Basic with the credential as 'user:password'. No enterprise auth.

Available options:
none,
bearer,
api_key,
basic
credential
string | null

Required for bearer/api_key/basic; omit for none. Stored encrypted, never returned.

Minimum string length: 5

Response

Successful Response

Response for POST /api/v1/model (201).

Lean by contract: the inventory id + the connection verdict only. Never echoes the config (it may hold a customer-embedded header secret), the credential, or any part of the target's reply.

model_id
string
required

Inventory model id — use directly as model_id in POST /api/v1/run.

connected
boolean
required

Always true: the target is persisted only after a successful probe.