Skip to main content
POST
Register a component

Body

application/json
name
string
required

Evidence-backed component name to register.

Minimum string length: 1
projectId
string<uuid>

Project to register the component in. Auto-filled from CLI and SDK context when omitted.

slug
string

Canonical machine identifier for the component, e.g. the deploy or app-directory name (payments-api) or a vendor slug (postgres). Registration also matches an existing component whose name normalises to this slug.

Maximum string length: 120
Pattern: ^[a-z0-9][a-z0-9._-]*$
description
string

Optional component description.

Minimum string length: 1
requestId
string<uuid>

Project-scoped idempotency key. Reuse only for an identical registration request.

origin
enum<string>

Machine provenance of this registration: 'code_detected' when the component was inferred from repository or code analysis, 'log_observed' (the default) when inferred from telemetry. Only applies to machine (secret-key) callers; human registrations are always recorded as 'user_declared' and ignore this field.

Available options:
code_detected,
log_observed

Response

200 - application/json

OK

component
object
required