Skip to main content

Documentation Index

Fetch the complete documentation index at: https://second.tech/docs/llms.txt

Use this file to discover all available pages before exploring further.

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.