As detailed in the Merkle API v2 Documentation, clients that wish to make authenticated calls, need to generate bearer authentication tokens, to grant them a session authentication token.
In this project, is a simple example of how to use ethers-rs, base64, hex, tokio, cjson, and a couple others, to generate that token.