Skip to main content

instantlyai

PyPI version CI License Python versions

A typed, importable Python client for the Instantly.ai V2 API.

  • A clean, resource-based client: client.campaigns.list(...), client.leads.create(...).
  • Full end-to-end typing, generated from Instantly's OpenAPI spec -- real editor and type-checker support.
  • Sync and async clients from a single codebase (Instantly / AsyncInstantly).
  • Typed exceptions, auto-retry with backoff, and auto-paginating list methods.

Status: pre-1.0 (0.x). Minor version bumps may include breaking changes until 1.0.0 -- pin accordingly. See the changelog.

Install

pip install instantlyai

Quickstart

Set INSTANTLY_API_KEY in your environment, or pass api_key=... explicitly.

"""Quickstart: authenticate and list your campaigns.

Runnable as-is once ``INSTANTLY_API_KEY`` is set in the environment. Also
executed in CI (see ``tests/test_examples.py``) against a mocked API, so this
file can never drift from what actually works.
"""

from __future__ import annotations

import instantlyai


def main(client: instantlyai.Instantly) -> None:
    for campaign in client.campaigns.list(limit=10):
        print(campaign.id, campaign.name)


if __name__ == "__main__":
    with instantlyai.Instantly() as client:  # reads INSTANTLY_API_KEY from the environment
        main(client)

Async usage is the same shape, with AsyncInstantly and await/async for.

Docs

Full documentation, including the tutorial and API reference, lives at https://exprtec.github.io/instantlyai-python-sdk.

Contributing

See CONTRIBUTING.md.

Metadata

Release files for instantlyai 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for instantlyai 0.4.0
File Size Uploaded
instantlyai-0.4.0.tar.gz 172.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for instantlyai 0.4.0
File Interpreter ABI Platform
instantlyai-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 263.7 kB

Release files / instantlyai-0.4.0.tar.gz

Download URL instantlyai-0.4.0.tar.gz
Size 172.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a248b6e6d74ee875f2ebae2407a4ae47d7214755ca63cdca3e6ca3b9be84518a
BLAKE2b-256 checksum
How to use checksums
ff8292d6062467296fc6241fbd776c66bdf187a4cc48a679a771b9e719fdaa64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / instantlyai-0.4.0-py3-none-any.whl

Download URL instantlyai-0.4.0-py3-none-any.whl
Size 91.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebdbc2c85cd83e74f84dad014a18b8f76f71cafc3b382401c41ef3e0e81e3b31
BLAKE2b-256 checksum
How to use checksums
6ae53dc51f5f9e230a1e7f723f28b55231ca94fd5b7eb383e597616d85cb6f8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page