Docs

API reference · Origins and routes

Add an origin

POST/v1/orgs/{org}/zones/{zone}/origins

Add an origin. Public addresses only; private networks are reached through a tunnel

Permission
origins.origins.manage
Audit log
origins.origin.create
Operation
origins.origins.create

Parameters

NameInTypeRequiredNotes
orgpathstringyesfor example "org_01h455vb4pex5vsknk084sn02q"
zonepathstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
Idempotency-KeyheaderstringnoOne key per intended mutation. A retry with the key replays the recorded response instead of executing again; the key with another request answers 422 idempotency_key_reused. For example "01h455vb4pex5vsknk084sn02q"
x-obhut-management-assignmentheaderstringnoSelect one staff assignment. Direct membership remains the default. Bound API tokens use their stored source and ignore this selector. For example "masg_01h455vb4pex5vsknk084sn02q"

Request body

FieldTypeRequiredNotes
namestringyes1 to 64 characters
targetobject or object or object or object or objectyes
target.kind"address"yes
target.hoststringyes1 to 253 characters
target.schemestringnoone of "https", "http"; default "https"
target.tlsVerifybooleannodefault true
target.tlsServerNamestring or nullnodefault null
target.hostHeaderstring or nullnodefault null
target.portintegerno1 to 65535
target.connectorstringyesfor example "conn_01h455vb4pex5vsknk084sn02q"
target.servicestringyes

Response 201

FieldTypeRequiredNotes
idstringyesfor example "origin_01h455vb4pex5vsknk084sn02q"
zoneIdstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
namestringyes
targetobject or object or object or object or objectyes
target.kind"address"yes
target.hoststringyes1 to 253 characters
target.schemestringyesone of "https", "http"; default "https"
target.tlsVerifybooleanyesdefault true
target.tlsServerNamestring or nullyesdefault null
target.hostHeaderstring or nullyesdefault null
target.portintegeryes1 to 65535
target.connectorstringyesfor example "conn_01h455vb4pex5vsknk084sn02q"
target.servicestringyes
target.deploymentstring or nullyes
target.allOrganizationsbooleanyes
protectionRequiredbooleanyes
revisionstringyesOpaque revision: dot-joined counters.
createdAtstring (date-time)yesUTC, ISO 8601.
updatedAtstring (date-time)yesUTC, ISO 8601.