Log from other apps
Log expenses without opening Pennow. Message our first-party Telegram or Lark bot with text, a receipt photo, or a voice note—or send a sentence from Apple Shortcuts, Android HTTP Shortcuts, n8n, or any HTTP automation tool. Once saved, external entries count toward your totals and are marked for review. You can check or edit them in Pennow. This is a Pennow Pro feature, and AI usage counts toward your Pennow AI credits.
Telegram and Lark bots (no token setup)
Use our built-in messaging bots when you want the fastest setup with zero configuration.
- Sign in to Pennow with an active Pro plan and turn on cloud sync at least once.
- Open Settings > Telegram (or Settings > Lark / Feishu).
- In Telegram, open the bot and press Start, or send the 6-digit code manually. In Feishu (Lark), copy the code in Pennow, open the bot’s private chat, then paste and send it. Opening the chat alone does not connect it. Codes expire after 10 minutes.
- Once connected, message the bot anytime—for example "Lunch 12.50, taxi 8", a receipt photo, or a voice note up to 60 seconds (when cloud transcription is enabled).
The bot parses your message, adds the entries to your review list, and replies with a confirmation containing one-tap Undo (valid for 24 hours before editing or confirming) and Open in Pennow. Original message text and media are cleared immediately after parsing.
Create an integration token (Shortcuts & HTTP)
Use an integration token for Apple Shortcuts, Android HTTP Shortcuts, n8n, Tasker, or your own scripts.
- Open Pennow and go to Settings > External integrations.
- Tap Create token and give it a name you'll recognize, such as "Apple Shortcuts".
- Tap Copy token. You'll only see the token once. If you didn't copy it, revoke it and create a new one.
All Shortcuts and HTTP methods below use this endpoint:
https://api.pennow.app/v1/entries/text?format=text
The Authorization header value is Bearer, a space, then your token:
Authorization: Bearer YOUR_TOKEN
Replies use the language synced from your Pennow account. If no language has synced yet or the token is invalid, you can set a fallback with the optional header below. Use en for English or zh for Chinese. A missing or unsupported language defaults to English. This affects the reply, not the language you can use to log entries.
Apple Shortcuts (iPhone)
- Open the Shortcuts app and tap + to create a shortcut.
- Add the Ask for Input action. Set the prompt to "What did you spend?".
- Add the Get Contents of URL action and paste the endpoint address above.
- Expand the action and set Method to POST. Under Headers, add a header with the key Authorization and the value Bearer, a space, then your token. To set a fallback reply language, add a second header: key
Accept-Language, valueenorzh. - Set Request Body to JSON. Add a Text field with the key text and choose Provided Input as the value.
- Add the Show Result action and choose Contents of URL.
- Name the shortcut "Log expense".
Now say "Log expense" to Siri. Siri asks what you spent, then reads the result, for example "Logged: Food & Drink-Lunch: -45.00 USD". You can also add the shortcut to your Home Screen, the Action button, or Back Tap.
Android: HTTP Shortcuts
- Install the free app HTTP Shortcuts from Google Play.
- Create a Regular Shortcut named "Log expense".
- Set Method to POST and paste the endpoint address above as the URL.
- Under Request Headers, add Authorization with the value Bearer, a space, then your token. To set a fallback reply language, add a second header: key
Accept-Language, valueenorzh. - Set Request Body to Form Parameters and add a parameter named text. For its value, tap the variable button and create a Text Input variable titled "What did you spend?".
- Under Response Handling, show the response for both success and failure.
- Save, then add the shortcut to your home screen.
Tap Log expense on your home screen, type a sentence, and the result pops up.
Other tools (n8n, Tasker, CLI)
Any tool that can send an HTTP request works, including n8n, Tasker, and the command line. Send a POST request with your token in the header and a JSON or form body with a single text field of up to 500 characters.
POST https://api.pennow.app/v1/entries/text
Authorization: Bearer YOUR_TOKEN
Accept-Language: en
Content-Type: application/json
{"text": "Lunch 45, taxi 12"}
The response is JSON. Its message field is a sentence you can show as is:
{"count": 2, "message": "Logged 2 entries:\nFood & Drink-Lunch: -45.00 USD\nTransport-Taxi: -12.00 USD"}
Add ?format=text to the address to receive just the message text.
If your tool retries a request after a timeout, use the optional Idempotency-Key header to avoid duplicate entries:
- Before sending a new request, have your tool generate a random UUID (a unique identifier). Save it with the text you are sending. Alongside Authorization, add a header named Idempotency-Key and use the UUID as its value.
- Suppose you send “Lunch 45” and lose the connection before you see a result. To retry within 24 hours of the first request, send the same text with the same UUID. If the first request succeeded, the retry will not add another entry or charge credits again.
- Generate a fresh UUID the next time you log an expense, even if the text is “Lunch 45” again. Reusing the previous UUID with different text returns 409.
Here is the header format. Have your tool generate its own value for each new request:
Idempotency-Key: 1dd39471-f08a-48af-9809-39e49e98e0cc
Common results:
- 200: Added. Review it in the app.
- 202: Received and still processing. It will appear in your review list shortly.
- 401: The token is invalid, revoked or expired.
- 403: Pennow Pro is required.
- 409: Open Pennow, sign in and sync once. Or the previous request is still processing.
- 422: No amount found, or the sentence couldn't be understood. Try rewording it.
- 429: Too many requests, or you've used today's or this month's AI entries.
Security
- Treat each token like a password. Anyone who has it can add entries to your review list, but they can't see your ledger.
- Sharing a shortcut also shares its token. Remove the token before you share.
- If you think a token has leaked, revoke it in Settings > External integrations. It stops working right away.
- Tokens unused for 90 days stop working. While your Pro is inactive, tokens are paused and resume when you renew.
- Each account can have up to 10 tokens. Use one per device or tool so you can revoke them separately.
- The text, voice, or photo you send is passed through Pennow to an AI provider for parsing, the same way as Pennow AI in the app. See the privacy policy.