Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ run = client.run(
**Org-wide subscriptions**: receive webhooks for all runs. Manage in the [dashboard](https://www.subconscious.dev/platform/webhooks) or via the API:

```bash
curl -X POST https://api.subconscious.dev/v1/webhooks/subscriptions \
curl -X POST https://api-legacy.subconscious.dev/v1/webhooks/subscriptions \
-H "Authorization: Bearer $SUBCONSCIOUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
Expand Down
4 changes: 2 additions & 2 deletions subconscious/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ class Subconscious:
def __init__(
self,
api_key: str | None = None,
base_url: str = 'https://api.subconscious.dev/v1',
base_url: str = 'https://api-legacy.subconscious.dev/v1',
):
"""
Initialize the Subconscious client.

Args:
api_key: Your Subconscious API key. If omitted, resolved from
SUBCONSCIOUS_API_KEY env var or ~/.subcon/config.json.
base_url: API base URL (default: https://api.subconscious.dev/v1)
base_url: API base URL (default: https://api-legacy.subconscious.dev/v1)
"""
self._api_key = _resolve_api_key(api_key)
self._base_url = base_url.rstrip('/')
Expand Down
Loading