REST API
API Reference
The ArtaMail API is organized around REST. All requests should be made over HTTPS.
Base URL
BASE
https://artamail.artatol.com/api/v1Authentication
All API requests require authentication using an API key in the Authorization header.
Terminal
curl -X GET https://artamail.artatol.com/api/v1/templates \ -H "Authorization: Bearer am_live_sk_your_key_here"Request Format
- Use
Content-Type: application/json - Request bodies should be JSON encoded
- All timestamps are in ISO 8601 format
Response Format
All responses are JSON. Successful responses return the requested data with appropriate HTTP status codes.
Success Response
json
{ "id": "email-uuid", "status": "queued", "queued_at": "2024-01-15T10:30:00Z", "test_mode": false}Error Response
json
{ "message": "Invalid email address", "code": "VALIDATION_ERROR", "details": { "field": "to", "reason": "invalid_format" }}Status Codes
| Code | Description |
|---|---|
200 | Success |
201 | Created |
204 | No Content (successful deletion) |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing API key |
404 | Not Found - Resource doesn't exist |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error |
Test Mode
Test API Keys
When using test API keys (
am_test_sk_*), requests are processed but no side effects occur: emails are not sent, contacts are not persisted, and responses include test_mode: true.Endpoints
Rate Limits
API requests are rate limited per organization:
100
requests/second for emails
10
requests/second for batch
1000
max emails per batch
Rate Limit Headers
bash
X-RateLimit-Limit: 100X-RateLimit-Remaining: 95X-RateLimit-Reset: 1705312800