{"id":"msg.external-api","app":"msg","title":"MSG API tokens and email integration","summary":"Use account-scoped server-to-server credentials to list automations and send email.","url":"https://www.simultem-apps.com/wiki/msg#external-api","apiUrl":"https://www.simultem-apps.com/api/wiki/v1/articles/msg.external-api","resourceUri":"wiki://msg/external-api","revision":"2026-11-02.1","lastReviewedAt":"2026-11-02","keywords":["API","bearer","token","revoke","resource","rate limit"],"sections":[{"title":"Create and revoke credentials","steps":["Open MSG in account context, then Advanced tools → MSG API.","Enter an integration name and create a token. Copy it immediately and store it in your server-side secret manager.","Review active tokens, created/last-used times and prefixes.","Revoke a token when the integration is retired or its credential needs replacement."],"notes":[]},{"title":"Call the API","steps":["Use the endpoint displayed by the running app, ending in /api/msg/api.","Send Authorization: Bearer YOUR_TOKEN.","Use GET with resource=automations to list automations.","Use POST with resource=messages, to, subject and html to send through the configured account sender.","Respect the published limits and retry guidance: 120 reads/minute and 10 sends/minute per token, up to 10 active tokens, 10 recipients and 250 kB HTML per send."],"notes":[],"example":"{\"resource\":\"messages\",\"to\":[\"guest@example.com\"],\"subject\":\"Welcome\",\"html\":\"<p>Hello</p>\"}"}],"text":"# MSG: MSG API tokens and email integration\n\nUse account-scoped server-to-server credentials to list automations and send email.\n\n## Create and revoke credentials\n\n1. Open MSG in account context, then Advanced tools → MSG API.\n\n2. Enter an integration name and create a token. Copy it immediately and store it in your server-side secret manager.\n\n3. Review active tokens, created/last-used times and prefixes.\n\n4. Revoke a token when the integration is retired or its credential needs replacement.\n\n## Call the API\n\n1. Use the endpoint displayed by the running app, ending in /api/msg/api.\n\n2. Send Authorization: Bearer YOUR_TOKEN.\n\n3. Use GET with resource=automations to list automations.\n\n4. Use POST with resource=messages, to, subject and html to send through the configured account sender.\n\n5. Respect the published limits and retry guidance: 120 reads/minute and 10 sends/minute per token, up to 10 active tokens, 10 recipients and 250 kB HTML per send.\n\nExample:\n\n```text\n\n{\"resource\":\"messages\",\"to\":[\"guest@example.com\"],\"subject\":\"Welcome\",\"html\":\"<p>Hello</p>\"}\n\n```","related":[{"id":"msg.channels","app":"msg","title":"Email, SMS, WhatsApp and Slack channels","summary":"Configure provider-specific delivery and verify the sender and recipient.","url":"https://www.simultem-apps.com/wiki/msg#channels","apiUrl":"https://www.simultem-apps.com/api/wiki/v1/articles/msg.channels","resourceUri":"wiki://msg/channels","revision":"2026-11-02.1","lastReviewedAt":"2026-11-02"},{"id":"platform.wiki-api","app":"platform","title":"Connect an external AI tool to the wiki API","summary":"Discover apps, search articles and fetch authoritative instructions using a public read-only API.","url":"https://www.simultem-apps.com/wiki/platform#wiki-api","apiUrl":"https://www.simultem-apps.com/api/wiki/v1/articles/platform.wiki-api","resourceUri":"wiki://platform/wiki-api","revision":"2026-11-02.1","lastReviewedAt":"2026-11-02"}]}