Create an endpoint
const url = 'https://example.com/api/v1/endpoints';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"component":"example","driver":"example","inputs":{"additionalProperty":"example"},"label":"example","out_of_band":true,"outpost":"example","params":"example","transport":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/endpoints \ --header 'Content-Type: application/json' \ --data '{ "component": "example", "driver": "example", "inputs": { "additionalProperty": "example" }, "label": "example", "out_of_band": true, "outpost": "example", "params": "example", "transport": "example" }'Creates an endpoint owned by a component (or a server-hosted one, which needs an all-scoped grant), named by its transport; the optional label is the only identity string an operator types, and is where what the connection is FOR goes. A secret input hands that credential to the endpoint’s host, so it takes secret:bind on the secret: one the caller cannot read is a 422, one it can read but not bind a 403. The create scope cascades through the owning component. Gated by endpoint:create.
Request Bodyrequired
Section titled “ Request Bodyrequired ”object
A URL to the JSON Schema for this object.
Owning component, by name or id; omit for a server-hosted endpoint (needs an all-scoped grant)
Attach this driver (by name or id): the spec derives the transport and params, and the endpoint’s tasks derive from the spec’s functions
What an operator reads in lists (Control processor). Settable here because the name is derived from the transport, so it says how the device is reached and never what the connection is for
Mark the endpoint a management path (a BMC, a management port) that answers through a reboot of its device, so a reboot’s hold leaves its gate open
Outpost placement, by name or id
Address/target settings (jsonb): set target as host[:port] (host and port keys are refused); timeout, count (icmp), tls-mode (tls, https, wss); an attach derives them from the inputs instead
A transport name from the built-in transports (GET /transports); the endpoint is named by it, unique within the component. Exactly one of transport (a bare probe endpoint) or driver (an attach) is set
Responses
Section titled “ Responses ”Created
A connection to a component over one transport, the API Omniglass reaches it through.
object
A URL to the JSON Schema for this object.
The owning component name; absent for a server-hosted endpoint
The owning component’s id; the stable form of component
The driver this endpoint was attached through (#813); absent for a bare probe endpoint
The attached driver’s id; the stable form of driver
The endpoint’s uuid, the stable handle;
The effective inputs supplied at attach, defaults baked; secret inputs are reference names, never values
The friendly string an operator reads, and the only identity string an operator types here: the name is derived from the transport. Absent when unset, and a surface with none renders the name verbatim
The derived name (its transport), unique within the owning component
A management path to the device (a BMC, a management port) that answers through a reboot of it: a reboot’s hold leaves this endpoint’s gate open. A power command on the outlet feeding the device still holds it
The outpost placement name, if assigned
The placed outpost’s id; the stable form of outpost
The address/target settings (jsonb): set target as host[:port] (host and port keys are refused); timeout, count (icmp), tls-mode (tls, https, wss)
The transport name (the wire this endpoint speaks over), from the built-in transports
A webhook endpoint’s own block (#1024): where a sender posts, the scheme that checks it, and what the scheme has refused; absent on every other transport, and on a list
object
When the token was minted or last rotated
The path a sender posts to, under the server’s /api/v1 base, its token masked: reveal the token through secret (gated by secret:reveal, audited)
What the scheme has refused: the count, and the latest one’s time, source and reason (never the credential); absent until one is
object
When the latest was refused, flushed once per tick
Posts the scheme refused, each answered 401
Why the latest was refused: a missing or mismatched signature, a timestamp outside the window, a mismatched token or login
The latest refused sender’s address
The scheme the driver declares: hmac, token, basic, or none for a bare endpoint or a driver that checks nothing
The secret holding the token,
False when the scheme is none: the endpoint reads unsigned, anyone holding its URL can post, and there is no replay protection
Example
{ "$schema": "/api/v1/schemas/EndpointBody.json"}default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{ "$schema": "/api/v1/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "about:blank"}