Skip to main content
All REST calls to barkd must include a bearer token. barkd generates one automatically on first start and stores it in the datadir.
1

Show the token

Print the current bearer token:
barkd --datadir <path-to-bark-data> secret show
2

Rotate the token

To rotate the token, run:
barkd --datadir <path-to-bark-data> secret refresh
You can also supply your own token instead of letting barkd generate one:
barkd --datadir <path-to-bark-data> secret refresh --secret <token>

Next steps

With the daemon running and a token in hand, you can start driving barkd over its REST API.

REST API

Full reference for every barkd REST endpoint.