Skip to main content
modiva.ai
Sign In
Java logo

Java · Java 17+

Java SDK for the Modiva API

A typed Java client (Maven / Gradle) 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

ai.modiva:sdk:0.1.0

Requires Java 17+. 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.

import ai.modiva.sdk.Modiva;
import ai.modiva.sdk.models.Connection;
import ai.modiva.sdk.models.CreatePostParams;
import java.util.List;

Modiva modiva = Modiva.builder().build(); // reads MODIVA_API_KEY

// List connected accounts
List<Connection> connections = modiva.connections().list();

// Publish a post (idempotent — safe to retry)
modiva.social().posts().create(
    CreatePostParams.builder(connections.get(0).id())
        .text("Hello from the Modiva Java SDK 👋")
        .build());

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 Java SDK?
Run `ai.modiva:sdk:0.1.0`. It requires Java 17+. Then set MODIVA_API_KEY in your environment (create a key in the dashboard) and instantiate the client.
Is the Java SDK free and open source?
Yes — it's MIT-licensed and published on GitHub at modiva-dev/modiva-java. Read the source, file issues and contribute.
Which integrations does the Java 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 / TypeScriptPythonGoRubyPHP.NET / C#Rust

← All Modiva SDKs

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