Integrate SmartMarty AI into your applications with our powerful RESTful API
The SmartMarty AI API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes.
Authenticate your API requests by including your API key in the Authorization header:
Sync emails from an email account
| Parameter | Type | Description |
|---|---|---|
| string | Email address to sync | |
| password | string | Base64 encoded password |
| imap_server | string | IMAP server address |
| imap_port | integer | IMAP port (default: 993) |
Generate AI-powered email replies
| Parameter | Type | Description |
|---|---|---|
| from | string | Sender email address |
| subject | string | Email subject |
| body | string | Email body content |
| count | integer | Number of reply options (1-4) |
Send an email
| Parameter | Type | Description |
|---|---|---|
| to | string | Recipient email address |
| subject | string | Email subject |
| body | string | Email body content |
| account | object | Email account credentials |
Register a new user account
Login and receive access token
Get current user information
API requests are limited to prevent abuse and ensure service quality:
Need help with the API? Contact our developer support team at api@smartmarty.ca