Switch webhook endpoint to Poke SDK's /inbound/api-message
This commit is contained in:
@@ -25,7 +25,7 @@ cp config.example.yml config.yml
|
||||
Edit `config.yml` with your email credentials:
|
||||
|
||||
```yaml
|
||||
webhook_url: https://poke.com/api/v1/inbound-sms/webhook
|
||||
webhook_url: https://poke.com/api/v1/inbound/api-message
|
||||
poke_api_key: your-api-key # from https://poke.com/settings/advanced
|
||||
|
||||
accounts:
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# poke-mail configuration
|
||||
# Copy this file to config.yml and fill in your credentials
|
||||
|
||||
webhook_url: "https://poke.com/api/v1/inbound-sms/webhook"
|
||||
webhook_url: "https://poke.com/api/v1/inbound/api-message"
|
||||
poke_api_key: "your-api-key-here"
|
||||
|
||||
# MCP_API_KEY is set via environment variable (not in this file)
|
||||
|
||||
+1
-1
@@ -452,7 +452,7 @@ async def lifespan(server: FastMCP):
|
||||
accounts = parse_accounts(config)
|
||||
webhook_url = os.environ.get(
|
||||
"POKE_WEBHOOK_URL",
|
||||
config.get("webhook_url", "https://poke.com/api/v1/inbound-sms/webhook"),
|
||||
config.get("webhook_url", "https://poke.com/api/v1/inbound/api-message"),
|
||||
)
|
||||
api_key = os.environ.get("POKE_API_KEY", config.get("poke_api_key", ""))
|
||||
stop_event = asyncio.Event()
|
||||
|
||||
Reference in New Issue
Block a user