Skip to main content

agentmail/client/
organizations.rs

1use crate::client::NoBody;
2use crate::{Client, Error, types::*};
3
4impl Client {
5    /// GET /v0/organizations, the organization the current key belongs to,
6    /// including its resource counts and plan limits.
7    pub async fn get_organization(&self) -> Result<Organization, Error> {
8        self.request(
9            reqwest::Method::GET,
10            "/v0/organizations",
11            &[],
12            None::<&NoBody>,
13        )
14        .await
15    }
16}