Skip to main content

Official SDKs

We provide official SDKs for the most popular programming languages. All SDKs are open source and actively maintained.

Features

All our SDKs include:
Full type definitions for TypeScript, Python type hints, and Java generics. Catch errors at compile time, not runtime.
Typed exception classes for different error scenarios: authentication, rate limits, validation, and server errors.
Built-in retry logic with exponential backoff for transient errors and rate limits.
Helper methods to verify webhook signatures and prevent spoofing.

Quick Comparison

FeatureNode.jsPythonJavaPHP
Async supportPromiseasync/awaitCompletableFuture-
Type safetyTypeScriptType hintsGenerics-
Min versionNode 16+Python 3.8+Java 11+PHP 8.0+
Package managernpm/yarnpipMaven/GradleComposer

Quick Start Examples

import { EnviaAI } from '@enviaai/sdk';

const client = new EnviaAI({ apiKey: 'your-api-key' });

const response = await client.messages.send({
  instanceId: 'inst_abc123',
  to: '5511999999999',
  message: 'Hello from EnviaAI!'
});

Installation

# npm
npm install @enviaai/sdk

# yarn
yarn add @enviaai/sdk

# pnpm
pnpm add @enviaai/sdk

Using Raw HTTP

If you prefer not to use an SDK, you can call the API directly:
cURL
curl -X POST https://api.enviaai.app/v1/messages/send \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "instanceId": "inst_abc123",
    "to": "5511999999999",
    "message": "Hello from EnviaAI!"
  }'

Contributing

Our SDKs are open source! Contributions are welcome:

Support