Skip to main content

Installation

Install the Respectify SDK for your language and set up authentication.

Installation

pip install respectify

Or with uv:

uv add respectify

Requirements: Python 3.9+

Getting Your API Key

  1. Sign up at respectify.ai
  2. Go to your API Keys in the dashboard
  3. Create a new API key
Security

Treat your API key like a password. Never hardcode it in source code. Use environment variables or a secrets manager.

Client Setup

Network calls take time. The async client lets your code do other things while waiting, via other coroutines. The blocking client is simpler for straightforward code where parallel requests, or waiting for network responses, isn't an issue. If you're unsure, start with the blocking client.

import os
from respectify import RespectifyClient

client = RespectifyClient(
email=os.environ['RESPECTIFY_EMAIL'],
api_key=os.environ['RESPECTIFY_API_KEY']
)

Verifying Credentials

Test that your credentials work and check your subscription status:

result = client.check_user_credentials()
print(f"Active: {result.active}")
print(f"Plan: {result.plan_name}")
print(f"Endpoints: {result.allowed_endpoints}")