Get an email
Retrieve one email with its latest status.
GET
https://app.usenotix.dev/api/v1/emails/{emailId}Full access and sending access keys can call this. Key permissions lists the extra rules some calls have.
Retrieve one email with its latest status. A sending access key can read only the emails it sent.
Path parameters
emailIdstringrequired
Headers
Authorizationstringrequired
Bearer followed by your API key.
curl -X GET "https://app.usenotix.dev/api/v1/emails/<emailId>" \
-H "Authorization: Bearer $NOTIX_API_KEY"
import { Notix } from "notix-js";
const notix = new Notix(process.env.NOTIX_API_KEY);
const { data, error } = await notix.emails.get("email_123");
from notix import Notix
notix = Notix() # reads NOTIX_API_KEY
data, _ = notix.emails.get("email_123")
use Notix\Notix;
$notix = new Notix(getenv('NOTIX_API_KEY'));
$email = $notix->emails->get('email_123');
Response200
{
"id": "cm1x8f3k20001qz7v5b9d2e4a",
"teamId": 1,
"to": "customer@example.com",
"from": "Acme <receipts@acme.com>",
"subject": "Your receipt for order 4471",
"html": "<p>Thanks for your order.</p>",
"text": "Thanks for your order.",
"createdAt": "string",
"updatedAt": "string",
"emailEvents": [
{
"emailId": "cm1x8f3k20001qz7v5b9d2e4a",
"status": "SCHEDULED",
"createdAt": "string"
}
]
}