From b3a5cd4c5b08db43d4380fa9be419060988171b2 Mon Sep 17 00:00:00 2001 From: Kacper Kwapisz Date: Mon, 23 Mar 2026 16:38:53 +0100 Subject: [PATCH] Switch webhook endpoint to Poke SDK's /inbound/api-message --- README.md | 2 +- config.example.yml | 2 +- src/server.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 04b0f1d..90a68a4 100755 --- a/README.md +++ b/README.md @@ -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: diff --git a/config.example.yml b/config.example.yml index 80b99f1..477bd02 100644 --- a/config.example.yml +++ b/config.example.yml @@ -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) diff --git a/src/server.py b/src/server.py index 5529333..22fb445 100755 --- a/src/server.py +++ b/src/server.py @@ -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()