Admin API reference
Every endpoint of the OrbitMQ admin REST API, generated from its OpenAPI document.
Endpoints
| Method | Path | Summary |
|---|---|---|
GET | /metrics | Prometheus metrics |
GET | /api/v1/status | Node status |
GET | /api/v1/clients | List sessions (connected and stored), sorted by client identifier |
GET | /api/v1/clients/{id} | Session details, including subscriptions |
DELETE | /api/v1/clients/{id} | Disconnect the client (kick) |
DELETE | /api/v1/sessions/{id} | Delete a stored session |
GET | /api/v1/subscriptions | List subscriptions, sorted by topic filter then client identifier |
GET | /api/v1/retained | List retained messages, sorted by topic |
GET | /api/v1/config | Effective configuration |
GET | /api/v1/alarms | Active and recently cleared alarms |
POST | /api/v1/alarms/{id}/ack | Acknowledge an active alarm |
GET | /api/v1/logs | Stream recent and new broker log lines (server-sent events) |
GET | /api/v1/metrics/stream | Live node metrics, one JSON sample per second (server-sent events) |
GET | /api/v1/rules | SQL rules |
POST | /api/v1/rules | Create a rule |
POST | /api/v1/rules/test | Evaluate SQL against a sample message |
GET | /api/v1/rules/{id} | One rule |
PUT | /api/v1/rules/{id} | Replace a rule |
DELETE | /api/v1/rules/{id} | Delete a rule |
GET | /api/v1/rules/{id}/metrics | Counters of a rule and its actions |
GET | /api/v1/connectors | Connectors used by rule actions |
GET | /dashboard/{path} | The embedded dashboard (no authentication) |
GET | /licenses.txt | Third-party licence notices (no authentication) |
GET | /api/v1/auth/{chain} | An authentication or authorization chain |
PUT | /api/v1/auth/{chain}/order | Reorder a chain |
POST | /api/v1/auth/{chain}/sources | Add a source |
PUT | /api/v1/auth/{chain}/sources/{name} | Replace a source's configuration |
PATCH | /api/v1/auth/{chain}/sources/{name} | Enable or disable a source |
DELETE | /api/v1/auth/{chain}/sources/{name} | Remove a source |
Every request needs Authorization: Bearer <token> unless the API runs with insecure = true on loopback. Errors use the JSON body {"error": "<code>", "message": "<text>"}. A task-oriented introduction with curl examples is in the Admin REST API guide. The interactive reference below is generated from the broker's OpenAPI document.
Prometheus text exposition (format 0.0.4) of the node's metrics (prefix orbitmq_).
bearerAuthorizationBearer <token>Metrics.
response?stringtext/plaincurl -X GET 'http://127.0.0.1:18083/metrics'"string"bearerAuthorizationBearer <token>Version, uptime, cores, listeners and the I/O backend.
application/json- response
version*stringuptime_seconds*integer0 <= valuestarted_at*integerUnix time in seconds.
cores*integer1 <= valuelisteners*array<>io_backend*stringData-plane I/O backend the cores run on. Linux uses io_uring when the kernel and the seccomp profile allow it and falls back to epoll; macOS uses kqueue.
"io_uring""epoll""kqueue""iocp""poll""mixed"io_uring_unavailable*|On Linux without io_uring, why it is not in use (e.g. io_uring_setup returned EPERM: blocked by seccomp (container default profile)); null otherwise.
curl -X GET 'http://127.0.0.1:18083/api/v1/status'{ "version": "string", "uptime_seconds": 0, "started_at": 0, "cores": 1, "listeners": [ { "name": "string", "kind": "tcp", "address": "0.0.0.0:1883" } ], "io_backend": "io_uring", "io_uring_unavailable": "string"}bearerAuthorizationBearer <token>limit?integerPage size (1 to 1000).
1 <= value <= 1000100cursor?stringThe next_cursor of the previous page.
client_id_prefix?stringOnly client identifiers starting with this prefix.
One page.
application/json- response
data*array<>next_cursor*|Pass as cursor for the next page; null on the last page.
curl -X GET 'http://127.0.0.1:18083/api/v1/clients'{ "data": [ { "client_id": "string", "connected": true, "core": 0, "protocol": "3.1", "listener": "string", "peer": "string", "username": "string", "session_expiry_interval": 0, "expires_in": 0, "subscription_count": 0, "inflight": 0, "queued": 0, "dropped": 0, "subscriptions": [ { "client_id": "string", "topic_filter": "string", "qos": 0, "no_local": true, "retain_as_published": true, "retain_handling": 0, "subscription_identifier": 0, "share_group": "string" } ] } ], "next_cursor": "string"}bearerAuthorizationBearer <token>id*stringClient identifier (percent-encoded).
The session.
application/json- response
client_id*stringconnected*booleancore*integerData-plane core holding the session.
protocol*|Protocol version of the attached connection.
"3.1""3.1.1""5.0"nulllistener*string|nullpeer*stringAddress of the (last) connection.
username*|Authenticated user name.
session_expiry_interval*integerSeconds; 4294967295 = never expires.
expires_in*|Seconds until a disconnected session expires.
subscription_count*integerinflight*integerUnacknowledged outgoing QoS 1/2 messages.
queued*integerMessages waiting in the session queue.
dropped*integerMessages dropped for this session so far.
subscriptions?array<>Only in GET /api/v1/clients/{id}.
curl -X GET 'http://127.0.0.1:18083/api/v1/clients/string'{ "client_id": "string", "connected": true, "core": 0, "protocol": "3.1", "listener": "string", "peer": "string", "username": "string", "session_expiry_interval": 0, "expires_in": 0, "subscription_count": 0, "inflight": 0, "queued": 0, "dropped": 0, "subscriptions": [ { "client_id": "string", "topic_filter": "string", "qos": 0, "no_local": true, "retain_as_published": true, "retain_handling": 0, "subscription_identifier": 0, "share_group": "string" } ]}Closes the client's connection. MQTT 5.0 clients first receive DISCONNECT with reason code
0x98 (Administrative action). The session then follows its expiry rules (a session with a
non-zero Session Expiry Interval is kept; use DELETE /api/v1/sessions/{id} to remove it).
The Will Message is published as for any server-initiated disconnect.
bearerAuthorizationBearer <token>id*stringClient identifier (percent-encoded).
Disconnected.
curl -X DELETE 'http://127.0.0.1:18083/api/v1/clients/string'Deletes the stored session of a client that is not connected: its subscriptions, queued and in-flight messages (MQTT 3.1 §2.2 administrative deletion; also used for 3.1.1 / 5.0 persistent sessions). A pending Will Message is published, as when a session ends.
bearerAuthorizationBearer <token>id*stringClient identifier (percent-encoded).
Deleted.
curl -X DELETE 'http://127.0.0.1:18083/api/v1/sessions/string'bearerAuthorizationBearer <token>topic_filter_prefix?stringOnly filters (as subscribed, including $share/{group}/) starting with this prefix.
limit?integer1 <= value <= 1000100Subscriptions.
application/json- response
data*array<>truncated*booleanMore entries matched than limit.
curl -X GET 'http://127.0.0.1:18083/api/v1/subscriptions'{ "data": [ { "client_id": "string", "topic_filter": "string", "qos": 0, "no_local": true, "retain_as_published": true, "retain_handling": 0, "subscription_identifier": 0, "share_group": "string" } ], "truncated": true}bearerAuthorizationBearer <token>topic_prefix?stringlimit?integer1 <= value <= 1000100Retained messages (metadata only).
application/json- response
data*array<>truncated*booleancurl -X GET 'http://127.0.0.1:18083/api/v1/retained'{ "data": [ { "topic": "string", "qos": 0, "payload_size": 0, "expires_in": 0, "content_type": "string" } ], "truncated": true}The node's configuration after environment overrides, with the keys of orbitmq.toml
(listener and auth.backend are arrays). Secrets are never returned: admin tokens and
inline backend secrets read "<redacted>", secrets given by reference read
{"env": "NAME"} or {"file": "/path"}, and user information and query strings of
backend URLs are redacted.
bearerAuthorizationBearer <token>The configuration.
application/json- response
[key: string]?anycurl -X GET 'http://127.0.0.1:18083/api/v1/config'{}Evaluated every 5 seconds from the cores' metrics, with hysteresis:
connection_limit(subject: listener name, ornode): raised at 95% of the listener'smax_connections(ormqtt.max_connections) or when the limit refused a CONNECT (critical at the limit); value = connections, threshold = the limit; cleared at 85% after 30 s without refusals.queue_memory_budget(subjectnode): queued messages were shed because the node's memory budget was exceeded; value = messages shed in the last 5 s; cleared after 30 s without shedding.tls_cert_expiring(subject: listener name): the listener's certificate expires within 30 days (critical within 7, or expired); value = days left (negative when expired), threshold = 30; cleared above 31 days.auth_backend_errors(subject: backend name): errors, timeouts or overload refusals of an[[auth.backend]](critical when every check failed); value = errors in the last 5 s; cleared after 30 s without errors.
Active alarms come first (newest first), then up to 100 cleared ones (newest first).
bearerAuthorizationBearer <token>Alarms.
application/json- response
data*array<>curl -X GET 'http://127.0.0.1:18083/api/v1/alarms'{ "data": [ { "id": "connection_limit:default", "kind": "connection_limit", "subject": "string", "severity": "warning", "state": "active", "message": "string", "value": 0, "threshold": 0, "raised_at": 0, "cleared_at": 0, "acknowledged": true, "acknowledged_at": 0 } ]}Idempotent. An escalation to critical clears the acknowledgement.
bearerAuthorizationBearer <token>id*stringAlarm id (kind:subject, percent-encoded).
Acknowledged.
curl -X POST 'http://127.0.0.1:18083/api/v1/alarms/string/ack'Starts with up to backlog recent lines, then follows new ones. Each event has
id: <seq> and a JSON LogLine as data; a Last-Event-ID header resumes after that
line instead of sending the backlog. Keep-alive comments every 15 s. The node keeps the
last 1000 lines that pass its log filter (log); configured secrets are replaced by
<redacted>.
bearerAuthorizationBearer <token>level?stringLeast severity sent.
"trace""trace""debug""info""warn""error"backlog?integerRecent lines sent first.
0 <= value <= 1000200Last-Event-ID?integerAn event stream of LogLine objects.
text/event-stream- response
seq*integerIncreasing sequence number (the event id).
ts*integerUnix time in milliseconds.
level*string"TRACE""DEBUG""INFO""WARN""ERROR"target*stringModule that logged the line.
message*stringMessage, then its fields as key=value.
curl -X GET 'http://127.0.0.1:18083/api/v1/logs'{ "seq": 0, "ts": 0, "level": "TRACE", "target": "string", "message": "string"}One sampler serves every stream. Rates are per second over the interval since the previous sample. Keep-alive comments every 15 s.
bearerAuthorizationBearer <token>An event stream of MetricsSample objects.
text/event-stream- response
ts*integerUnix time in milliseconds.
uptime_seconds*integerconnections*integerConnected clients.
sessions*integerSessions
subscriptions*integerretained*integerRetained messages.
queued*integerMessages waiting in session queues.
inflight*integerUnacknowledged outgoing QoS 1/2 messages.
messages_in_per_sec*numbermessages_out_per_sec*numberbytes_in_per_sec*numberbytes_out_per_sec*numberdropped_per_sec*numberdeliver_latency_p99_ms*|99th percentile of cross-core publish-to-delivery latency in the interval (bucket upper bound); null without such deliveries.
core_busy*numberMean share of time the cores spent in event handlers (0 to 1).
curl -X GET 'http://127.0.0.1:18083/api/v1/metrics/stream'{ "ts": 0, "uptime_seconds": 0, "connections": 0, "sessions": 0, "subscriptions": 0, "retained": 0, "queued": 0, "inflight": 0, "messages_in_per_sec": 0, "messages_out_per_sec": 0, "bytes_in_per_sec": 0, "bytes_out_per_sec": 0, "dropped_per_sec": 0, "deliver_latency_p99_ms": 0, "core_busy": 0}Every rule, sorted by id: those from [[rule]] in orbitmq.toml
(source: config, read-only here) and those created through this API (source: api).
persisted is false without a state file ([rules] state_file, by default
orbitmq.rules-state.toml next to the configuration file): API changes are then lost on
restart. Webhook header values written inline read back as ******.
bearerAuthorizationBearer <token>Rules.
application/json- response
rules*array<>persisted*booleancurl -X GET 'http://127.0.0.1:18083/api/v1/rules'{ "rules": [ { "id": "string", "description": "string", "sql": "string", "enabled": true, "actions": [ { "type": "republish", "topic": "string", "qos": 0, "retain": true, "payload": "string", "url": "string", "method": "POST", "headers": {}, "body": "string", "timeout_ms": 0, "allow_http": true, "connector": "string", "key": "string", "value": "string", "batch_max": 0, "linger_ms": 0, "max_retries": 0, "dead_letter_topic": "string" } ], "source": "config", "from": [ "string" ], "metrics": { "matched": 0, "passed": 0, "failed": 0, "dropped": 0 } } ], "persisted": true}The rule takes effect at once on every core. Its SQL, templates and connector references are validated first.
bearerAuthorizationBearer <token>application/json- body
id?stringRequired on create.
^[A-Za-z0-9_-]{1,64}$description?stringsql*stringSELECT … FROM "topic/filter" [WHERE …]
enabled?booleantrueactions?array<>The created rule.
application/json- response
id*stringRequired on create.
^[A-Za-z0-9_-]{1,64}$description?stringsql*stringSELECT … FROM "topic/filter" [WHERE …]
enabled?booleantrueactions?array<>source*string"config""api"from*array<string>The FROM topic filters.
metrics*curl -X POST 'http://127.0.0.1:18083/api/v1/rules' \ -H 'Content-Type: application/json' \ -d '{ "sql": "string"}'{ "id": "string", "description": "string", "sql": "string", "enabled": true, "actions": [ { "type": "republish", "topic": "string", "qos": 0, "retain": true, "payload": "string", "url": "string", "method": "POST", "headers": {}, "body": "string", "timeout_ms": 0, "allow_http": true, "connector": "string", "key": "string", "value": "string", "batch_max": 0, "linger_ms": 0, "max_retries": 0, "dead_letter_topic": "string" } ], "source": "config", "from": [ "string" ], "metrics": { "matched": 0, "passed": 0, "failed": 0, "dropped": 0 }}Nothing is stored and no action runs. The id test is reserved for this path.
bearerAuthorizationBearer <token>application/json- body
sql*stringcontext?The outcome.
application/json- response
matched*booleanWhether the topic matches a FROM filter.
passed*booleanWhether WHERE is true.
output*|The SELECT output.
curl -X POST 'http://127.0.0.1:18083/api/v1/rules/test' \ -H 'Content-Type: application/json' \ -d '{ "sql": "string"}'{ "matched": true, "passed": true, "output": {}}bearerAuthorizationBearer <token>id*stringThe rule.
application/json- response
id*stringRequired on create.
^[A-Za-z0-9_-]{1,64}$description?stringsql*stringSELECT … FROM "topic/filter" [WHERE …]
enabled?booleantrueactions?array<>source*string"config""api"from*array<string>The FROM topic filters.
metrics*curl -X GET 'http://127.0.0.1:18083/api/v1/rules/string'{ "id": "string", "description": "string", "sql": "string", "enabled": true, "actions": [ { "type": "republish", "topic": "string", "qos": 0, "retain": true, "payload": "string", "url": "string", "method": "POST", "headers": {}, "body": "string", "timeout_ms": 0, "allow_http": true, "connector": "string", "key": "string", "value": "string", "batch_max": 0, "linger_ms": 0, "max_retries": 0, "dead_letter_topic": "string" } ], "source": "config", "from": [ "string" ], "metrics": { "matched": 0, "passed": 0, "failed": 0, "dropped": 0 }}bearerAuthorizationBearer <token>id*stringDeleted; messages already queued for its actions are still delivered.
curl -X DELETE 'http://127.0.0.1:18083/api/v1/rules/string'The body is a RuleInput (an id, if present, must match the path; the view's read-only
fields are ignored). A webhook header value sent as ****** keeps the stored value.
The rule's counters are kept; its actions restart with fresh queues and counters.
bearerAuthorizationBearer <token>id*stringapplication/json- body
id?stringRequired on create.
^[A-Za-z0-9_-]{1,64}$description?stringsql*stringSELECT … FROM "topic/filter" [WHERE …]
enabled?booleantrueactions?array<>The updated rule.
application/json- response
id*stringRequired on create.
^[A-Za-z0-9_-]{1,64}$description?stringsql*stringSELECT … FROM "topic/filter" [WHERE …]
enabled?booleantrueactions?array<>source*string"config""api"from*array<string>The FROM topic filters.
metrics*curl -X PUT 'http://127.0.0.1:18083/api/v1/rules/string' \ -H 'Content-Type: application/json' \ -d '{ "sql": "string"}'{ "id": "string", "description": "string", "sql": "string", "enabled": true, "actions": [ { "type": "republish", "topic": "string", "qos": 0, "retain": true, "payload": "string", "url": "string", "method": "POST", "headers": {}, "body": "string", "timeout_ms": 0, "allow_http": true, "connector": "string", "key": "string", "value": "string", "batch_max": 0, "linger_ms": 0, "max_retries": 0, "dead_letter_topic": "string" } ], "source": "config", "from": [ "string" ], "metrics": { "matched": 0, "passed": 0, "failed": 0, "dropped": 0 }}bearerAuthorizationBearer <token>id*stringCounters since start-up (or since the rule was created).
application/json- response
id*stringmatched*integerMessages whose topic matched FROM.
passed*integerMessages for which WHERE was true.
filtered*integerMessages for which WHERE was not true.
failed*integerEvaluation errors.
dropped*integerDropped because a core's rules queue was full.
actions*array<>curl -X GET 'http://127.0.0.1:18083/api/v1/rules/string/metrics'{ "id": "string", "matched": 0, "passed": 0, "filtered": 0, "failed": 0, "dropped": 0, "actions": [ { "index": 0, "type": "string", "success": 0, "failed": 0, "dropped": 0, "retried": 0, "dead_lettered": 0, "queued": 0 } ]}The [[connector]] tables of orbitmq.toml with their status (no credentials).
bearerAuthorizationBearer <token>Connectors.
application/json- response
connectors*array<>curl -X GET 'http://127.0.0.1:18083/api/v1/connectors'{ "connectors": [ { "name": "string", "kind": "kafka", "target": "string", "status": "connected", "last_error": "string", "success": 0, "failed": 0, "queued": 0 } ]}Static files of the dashboard compiled into the binary. Paths without a file extension
outside assets/ return index.html (single-page app routes). Hashed files under
assets/ are cached for a year (immutable), everything else is no-cache with an
ETag. gzip or Brotli encoding per Accept-Encoding. / and /dashboard redirect
here. Absent when [admin] dashboard = false.
path*stringFile below /dashboard/ (empty for index.html).
The file.
curl -X GET 'http://127.0.0.1:18083/dashboard/string'The licence texts and notices of the third-party software compiled into this binary
(Rust crates and the embedded dashboard's packages), as plain text. The same text as
orbitmq --licenses and the THIRD_PARTY_NOTICES.txt shipped with the source.
The notices.
response?stringtext/plaincurl -X GET 'http://127.0.0.1:18083/licenses.txt'"string"The sources of the chain in priority order, each with its kind, state,
redacted configuration and counters, plus the chain-end settings and the revision to
send back with a change. Secrets are never returned.
bearerAuthorizationBearer <token>chain*stringThe chain.
"authentication""authorization"The chain.
application/json- response
chain*string"authentication""authorization"revision*integerChanges so far; send it back to detect concurrent edits.
persisted*booleanWhether changes are written to the auth state file.
state_file?string|nullfrom_state_file?booleanThe chains were loaded from the state file at start-up.
allow_anonymous?booleanAuthentication chain end for clients without a user name, as in force: the configured value or, when unset, whether the chain has no source.
no_match?stringAuthorization chain end.
"allow""deny""ignore"sources*array<>curl -X GET 'http://127.0.0.1:18083/api/v1/auth/authentication'{ "chain": "authentication", "revision": 0, "persisted": true, "state_file": "string", "from_state_file": true, "allow_anonymous": true, "no_match": "allow", "sources": [ { "name": "string", "kind": "password_file", "enabled": true, "position": 0, "status": "active", "config": {}, "metrics": { "allow": 0, "deny": 0, "ignore": 0, "checks": 0, "errors": 0, "cache_hits": 0, "last_error_at": 0 } } ]}Sets the priority order. order must name every source of the chain exactly once.
Connections authenticating while the order changes finish on the order they started
with; the change is persisted to the auth state file when one is configured.
bearerAuthorizationBearer <token>chain*stringThe chain.
"authentication""authorization"application/json- body
order*array<string>revision?integerRefuse with 409 if the chains changed since.
The chain after the change.
application/json- response
chain*string"authentication""authorization"revision*integerChanges so far; send it back to detect concurrent edits.
persisted*booleanWhether changes are written to the auth state file.
state_file?string|nullfrom_state_file?booleanThe chains were loaded from the state file at start-up.
allow_anonymous?booleanAuthentication chain end for clients without a user name, as in force: the configured value or, when unset, whether the chain has no source.
no_match?stringAuthorization chain end.
"allow""deny""ignore"sources*array<>curl -X PUT 'http://127.0.0.1:18083/api/v1/auth/authentication/order' \ -H 'Content-Type: application/json' \ -d '{ "order": [ "string" ]}'{ "chain": "authentication", "revision": 0, "persisted": true, "state_file": "string", "from_state_file": true, "allow_anonymous": true, "no_match": "allow", "sources": [ { "name": "string", "kind": "password_file", "enabled": true, "position": 0, "status": "active", "config": {}, "metrics": { "allow": 0, "deny": 0, "ignore": 0, "checks": 0, "errors": 0, "cache_hits": 0, "last_error_at": 0 } } ]}source holds the keys of a [[authentication]] / [[authorization]] table (for
example {"kind": "postgres", "name": "pg", "url": {"env": "PG_URL"}, "acl_query": "..."}). Network connections are opened lazily, so an unreachable database does not
fail the request.
bearerAuthorizationBearer <token>chain*stringThe chain.
"authentication""authorization"application/json- body
source*position?integer0-based; default: the end.
0 <= valuerevision?integerThe chain after the change.
application/json- response
chain*string"authentication""authorization"revision*integerChanges so far; send it back to detect concurrent edits.
persisted*booleanWhether changes are written to the auth state file.
state_file?string|nullfrom_state_file?booleanThe chains were loaded from the state file at start-up.
allow_anonymous?booleanAuthentication chain end for clients without a user name, as in force: the configured value or, when unset, whether the chain has no source.
no_match?stringAuthorization chain end.
"allow""deny""ignore"sources*array<>curl -X POST 'http://127.0.0.1:18083/api/v1/auth/authentication/sources' \ -H 'Content-Type: application/json' \ -d '{ "source": {}}'{ "chain": "authentication", "revision": 0, "persisted": true, "state_file": "string", "from_state_file": true, "allow_anonymous": true, "no_match": "allow", "sources": [ { "name": "string", "kind": "password_file", "enabled": true, "position": 0, "status": "active", "config": {}, "metrics": { "allow": 0, "deny": 0, "ignore": 0, "checks": 0, "errors": 0, "cache_hits": 0, "last_error_at": 0 } } ]}bearerAuthorizationBearer <token>chain*stringThe chain.
"authentication""authorization"name*stringThe source's name.
application/json- body
enabled*booleanrevision?integerThe chain after the change.
application/json- response
chain*string"authentication""authorization"revision*integerChanges so far; send it back to detect concurrent edits.
persisted*booleanWhether changes are written to the auth state file.
state_file?string|nullfrom_state_file?booleanThe chains were loaded from the state file at start-up.
allow_anonymous?booleanAuthentication chain end for clients without a user name, as in force: the configured value or, when unset, whether the chain has no source.
no_match?stringAuthorization chain end.
"allow""deny""ignore"sources*array<>curl -X PATCH 'http://127.0.0.1:18083/api/v1/auth/authentication/sources/string' \ -H 'Content-Type: application/json' \ -d '{ "enabled": true}'{ "chain": "authentication", "revision": 0, "persisted": true, "state_file": "string", "from_state_file": true, "allow_anonymous": true, "no_match": "allow", "sources": [ { "name": "string", "kind": "password_file", "enabled": true, "position": 0, "status": "active", "config": {}, "metrics": { "allow": 0, "deny": 0, "ignore": 0, "checks": 0, "errors": 0, "cache_hits": 0, "last_error_at": 0 } } ]}Refused with 409 last_source for the last authentication source while allow_anonymous is unset, because the broker would then accept anonymous clients; disabling it is allowed.
bearerAuthorizationBearer <token>chain*stringThe chain.
"authentication""authorization"name*stringThe source's name.
revision?integerThe chain after the change.
application/json- response
chain*string"authentication""authorization"revision*integerChanges so far; send it back to detect concurrent edits.
persisted*booleanWhether changes are written to the auth state file.
state_file?string|nullfrom_state_file?booleanThe chains were loaded from the state file at start-up.
allow_anonymous?booleanAuthentication chain end for clients without a user name, as in force: the configured value or, when unset, whether the chain has no source.
no_match?stringAuthorization chain end.
"allow""deny""ignore"sources*array<>curl -X DELETE 'http://127.0.0.1:18083/api/v1/auth/authentication/sources/string'{ "chain": "authentication", "revision": 0, "persisted": true, "state_file": "string", "from_state_file": true, "allow_anonymous": true, "no_match": "allow", "sources": [ { "name": "string", "kind": "password_file", "enabled": true, "position": 0, "status": "active", "config": {}, "metrics": { "allow": 0, "deny": 0, "ignore": 0, "checks": 0, "errors": 0, "cache_hits": 0, "last_error_at": 0 } } ]}The source keeps its position. Secrets must be restated (or referenced with {"env": ...} / {"file": ...}): the API never returns them. Sessions connected before the
change keep the ACLs they loaded from the old configuration until they reconnect.
bearerAuthorizationBearer <token>chain*stringThe chain.
"authentication""authorization"name*stringThe source's name.
application/json- body
source*revision?integerThe chain after the change.
application/json- response
chain*string"authentication""authorization"revision*integerChanges so far; send it back to detect concurrent edits.
persisted*booleanWhether changes are written to the auth state file.
state_file?string|nullfrom_state_file?booleanThe chains were loaded from the state file at start-up.
allow_anonymous?booleanAuthentication chain end for clients without a user name, as in force: the configured value or, when unset, whether the chain has no source.
no_match?stringAuthorization chain end.
"allow""deny""ignore"sources*array<>curl -X PUT 'http://127.0.0.1:18083/api/v1/auth/authentication/sources/string' \ -H 'Content-Type: application/json' \ -d '{ "source": {}}'{ "chain": "authentication", "revision": 0, "persisted": true, "state_file": "string", "from_state_file": true, "allow_anonymous": true, "no_match": "allow", "sources": [ { "name": "string", "kind": "password_file", "enabled": true, "position": 0, "status": "active", "config": {}, "metrics": { "allow": 0, "deny": 0, "ignore": 0, "checks": 0, "errors": 0, "cache_hits": 0, "last_error_at": 0 } } ]}