To enable the Diagnostics API, specify an API token in your PowerSync YAML file:
powersync.yaml
Copy
Ask AI
api: tokens: - YOUR_API_TOKEN
Make sure to use a secure API token as part of this configuration
Restart the PowerSync service.
Once configured, send an HTTP request to your PowerSync Service Diagnostics API endpoint. Include the API token set in step 1 as a Bearer token in the Authorization header.