Scan your whole stack
From OX Research Newsroom
Are you using autumn-sdk?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.3.70
autumn-sdk was last scanned on 27 Nov 2026 at version 1.3.70. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.3.70 LATEST | 27 Nov 2026 | No rules fired |
| 1.3.69 | 26 Nov 2026 | No rules fired |
| 1.3.68 | 26 Nov 2026 | No rules fired |
| 1.3.67 | 26 Nov 2026 | Not shown |
| 1.3.66 | 26 Nov 2026 | Not shown |
Findings for v1.3.70. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.3.70; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The official Python SDK for the Autumn billing API.
[!TIP] To finish publishing your SDK to PyPI you must run your first generation action.
[!NOTE] Python version upgrade policy
Once a Python version reaches its official end of life date, a 3-month grace period is provided for users to upgrade. Following this grace period, the minimum python version supported in the SDK will be updated.
The SDK can be installed with uv, pip, or poetry package managers.
uv is a fast Python package installer and resolver, designed as a drop-in replacement for pip and pip-tools. It's recommended for its speed and modern Python tooling capabilities.
uv add git+<UNSET>.git
PIP is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.
pip install git+<UNSET>.git
Poetry is a modern tool that simplifies dependency management and package publishing by using a single pyproject.toml file to handle project metadata and dependencies.
poetry add git+<UNSET>.git
uvYou can use this SDK in a Python shell with uv and the uvx command that comes with it like so:
uvx --from autumn-sdk python
It's also possible to write a standalone Python script without needing to set up a whole project like so:
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "autumn-sdk",
# ]
# ///
from autumn_sdk import Autumn
sdk = Autumn(
# SDK arguments
)
# Rest of script here...
Once that is saved to a file, you can run it with uv run script.py where
script.py can be replaced with the actual file name.
Generally, the SDK will work well with most IDEs out of the box. However, when using PyCharm, you can enjoy much better integration with Pydantic by installing an additional plugin.
# Synchronous Example
from autumn_sdk import Autumn
with Autumn(
x_api_version="2.6.0",
secret_key="<YOUR_BEARER_TOKEN_HERE>",
) as autumn:
res = autumn.check(customer_id="cus_123", feature_id="messages")
# Handle response
print(res)
The same SDK client can also be used to make asynchronous requests by importing asyncio.
# Asynchronous Example
import asyncio
from autumn_sdk import Autumn
async def main():
async with Autumn(
x_api_version="2.6.0",
secret_key="<YOUR_BEARER_TOKEN_HERE>",
) as autumn:
res = await autumn.check_async(customer_id="cus_123", feature_id="messages")
# Handle response
print(res)
asyncio.run(main())
This SDK supports the following security scheme globally:
| Name | Type | Scheme |
|---|---|---|
secret_key |
http | HTTP Bearer |
To authenticate with the API the secret_key parameter must be set when initializing the SDK client instance. For example:
from autumn_sdk import Autumn
with Autumn(
secret_key="<YOUR_BEARER_TOKEN_HERE>",
x_api_version="2.6.0",
) as autumn:
res = autumn.check(customer_id="cus_123", feature_id="messages")
# Handle response
print(res)
Use this to gate access before a feature action. Enable sendEvent when you want to check and consume balance atomically in one request.
Use this after an action happens to decrement usage, or send a negative value to credit balance back.
Use this after an LLM request when you have input and output token counts. Autumn converts token usage to a dollar amount using the configured model pricing and markup, then tracks that value against the customer's AI credit system.
account_id, or by the customer_id of any customer linked to it. Accounts only organize customers — each customer keeps its own plans, billing and Stripe customer.account_id or by any linked customer's customer_id; when that customer has no account yet, linking customers to it creates one. Linking a customer that is already in another account fails unless you pass move: true. Removing the last customer deletes the account and returns null.allow is true (always allowed), false (never allowed) or an object of conditions that must all match. Problems with the rule come back as invalid_approval_rule with every issue under details.issues. Rules apply in live only. Only owners and admins (an OAuth token also needs organisation:write consent) and live secret keys with every scope can call it. Anyone else, whatever their scopes and including any sandbox key, gets 403 approval_rule_editor_required.actions re-checks the conditions in allow. Sending allow replaces it, so switching between true, false and conditions is one field. Only owners and admins (an OAuth token also needs organisation:write consent) and live secret keys with every scope can call it. Anyone else, whatever their scopes and including any sandbox key, gets 403 approval_rule_editor_required.approval_rules.versions.list. Only owners and admins (an OAuth token also needs organisation:write consent) and live secret keys with every scope can call it. Anyone else, whatever their scopes and including any sandbox key, gets 403 approval_rule_editor_required.scope when their scope allows it and no rule rules it out, blocked when a rule never allows it, and none when they lack the action's scope. A conditional rule can still deny a given request; preview it to see. Alias actions such as billing.multi_attach are read as the action they're checked as.am_wit_ access token, following RFC 8693. The token must match a trust rule in your organization; the access token carries that rule's scopes. Send it as a form body or JSON; no secret key is needed.limit rows while has_more is true.Use this endpoint to subscribe a customer to a plan, upgrade/downgrade between plans, or add an add-on product.
Use this endpoint to schedule future plan changes (e.g. switch from a trial plan to a paid plan on a specific date) or to define a sequence of plans that should activate over time.
Use this endpoint when you need to subscribe a customer to multiple plans at once, such as a base plan plus add-ons, or to create a bundle of products.
Use this endpoint to show customers what they will be charged before confirming a subscription change.
Use this endpoint to show customers what they will be charged before confirming a multi-plan subscription.
Use this endpoint to update prepaid quantities, cancel a subscription (immediately or at end of cycle), or modify subscription settings.
Use this endpoint to show customers prorated charges or refunds before confirming subscription modifications.
Use this endpoint to cancel or uncancel several plans atomically in one call — for example canceling a main plan together with its add-ons, or plans across multiple entities.
Use this endpoint to show customers the credits and next-cycle changes of canceling multiple plans before confirming.
Use this endpoint to audit that a customer's Stripe subscriptions, items, quantities, prices, schedules and cancellation state match what Autumn expects, for example after a migration or a manual change in Stripe.
Use this as the primary entrypoint before billing operations so the customer record is always present and up to date.
Use this when you know the customer exists or assert they exist without creating them.
start_cursor: "" (or omit) for the first page; use next_cursor from a prior response for subsequent pages.limit rows while has_more is true.limit rows while has_more is true.Use entities when usage and access must be scoped to sub-resources (for example seats, projects, or workspaces) instead of only the customer.
Use this to read one entity's current state. Pass customerId when you want to scope the lookup to a specific customer.
Use this to page through entities globally, including filtering by plans inherited from parent customers or attached directly to entities.
Use this to change entity billing controls or other mutable entity fields after the entity has already been created.
Use this when the underlying resource is removed and you no longer want entity-scoped balances or subscriptions tracked for it.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.