agentmail/client/auth.rs
1use crate::client::NoBody;
2use crate::{Client, Error, types::*};
3
4impl Client {
5 /// GET /v0/auth/me, the [`Identity`] the current API key authenticates as.
6 pub async fn auth_me(&self) -> Result<Identity, Error> {
7 self.request(reqwest::Method::GET, "/v0/auth/me", &[], None::<&NoBody>)
8 .await
9 }
10}