Quick Start
Send your first API request in under 5 minutes.
This guide walks you through creating an account, generating an API key, and sending your first transactional email.
Step 1: Create an account
Sign up at platformxe.com/portal/register. You will receive a confirmation email to verify your address.
Step 2: Generate an API key
- Log in to the Tenant Portal.
- Navigate to Settings > API Keys.
- Click Create API Key.
- Select the scopes you need (start with
messaging:send). - Copy the key — it is only shown once.
Store your API key securely. It cannot be retrieved after creation. If lost, rotate the key and generate a new one.
Step 3: Install the SDK
npm install @caldera/platformxe-sdk
Step 4: Send your first email
Until your organisation has a verified sending domain, email goes only to verified members of your organisation: people on your team in the portal who have signed in with an emailed code, accepted an invitation, or signed in through single sign-on. Send this first email to your own address, after you have signed in to the portal once. On the free plan an organisation sends at most 6 emails in any 24 hours, to only. See Sender address and Free plan.
Using curl
curl -X POST https://api.platformxe.com/api/v1/messaging/email/send \
-H "Content-Type: application/json" \
-H "x-api-key: pxk_live_your_api_key_here" \
-d '{
"to": [{ "email": "you@your-company.com", "name": "Your Name" }],
"subject": "Hello from PlatformXe",
"html": "<h1>Welcome</h1><p>Your first transactional email.</p>"
}'
Using the SDK
import { PlatformXeClient } from '@caldera/platformxe-sdk';
const px = new PlatformXeClient({
apiKey: 'pxk_live_your_api_key_here',
});
const result = await px.email.send({
to: [{ email: 'you@your-company.com', name: 'Your Name' }],
subject: 'Hello from PlatformXe',
html: '<h1>Welcome</h1><p>Your first transactional email.</p>',
});
console.log(result.data.messageId);
Step 5: Check the response
A successful response returns:
{
"success": true,
"data": {
"messageId": "msg_abc123def456",
"status": "queued"
}
}
If something goes wrong, the response includes an error code and message:
{
"success": false,
"error": {
"code": "BAD_REQUEST",
"message": "Field 'to' is required and must be a non-empty array."
}
}
Next steps
- Authentication — learn about API key scopes and rate limits
- SDKs — configure the TypeScript SDK
- Error Handling — understand the response envelope and error codes