Skip to main content
modiva.ai
Sign In
Rust logo

Rust · async / Tokio

Rust SDK for the Modiva API

A typed, async (Tokio) Rust client for the unified Modiva API. One typed client reaches all 24 integrations and 280+ tools across social, ads, CRM and e-commerce — auth, retries, pagination and idempotency handled for you.

Get your API keyView on GitHubRead the docs

Install

cargo add modiva

Requires async / Tokio. Set MODIVA_API_KEY in your environment — the client reads it automatically.

Quickstart

Connect an account in the dashboard, create an API key, then publish in a few lines.

use modiva::{CreatePost, Modiva};

#[tokio::main]
async fn main() -> Result<(), modiva::ModivaError> {
    let modiva = Modiva::from_env()?; // reads MODIVA_API_KEY

    let connections = modiva.connections().list().await?;

    if let Some(conn) = connections.first() {
        let post = CreatePost::new(&conn.id)
            .text("Hello from the Modiva Rust SDK!");
        modiva.social().posts().create(&post).await?;
    }

    Ok(())
}

What you get

  • One client for all 24 integrations — no library per platform.
  • Typed methods for posts, comments, DMs and analytics, plus a generic tool surface for every one of the 280+ tools.
  • Bearer-key auth from MODIVA_API_KEY; provider OAuth and token refresh handled server-side.
  • Automatic retries with backoff, idempotent creates, and built-in pagination.
  • MIT-licensed and open source on GitHub.

Frequently asked questions

How do I install the Modiva Rust SDK?
Run `cargo add modiva`. It requires async / Tokio. Then set MODIVA_API_KEY in your environment (create a key in the dashboard) and instantiate the client.
Is the Rust SDK free and open source?
Yes — it's MIT-licensed and published on GitHub at modiva-dev/modiva-rust. Read the source, file issues and contribute.
Which integrations does the Rust SDK support?
All of them. One client reaches every one of the 24 integrations — Instagram, TikTok, Google Ads, HubSpot, Shopify and more — through the same typed methods and a generic tool surface.

Other languages

Node.js / TypeScriptPythonGoRubyJavaPHP.NET / C#

← All Modiva SDKs

Start building with Rust
Free to start · First 3 connected accounts free · API key in one click
Create free account