agentmail-rs 0.3.0

Unofficial typed Rust client for AgentMail (agentmail.to), the email API for agents.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::client::NoBody;
use crate::{Client, Error, types::*};

impl Client {
    /// GET /v0/auth/me, the [`Identity`] the current API key authenticates as.
    pub async fn auth_me(&self) -> Result<Identity, Error> {
        self.request(reqwest::Method::GET, "/v0/auth/me", &[], None::<&NoBody>)
            .await
    }
}