Import the Postman collection
Import Samva's official email API collection into Postman and authenticate requests with an API key.
Import Samva's official collection to test and explore the email API from Postman. The collection is derived from the same public email API contract as the API reference and SDK.
A Postman import creates a snapshot. Reimport the collection when you need the latest API surface.
Import the collection
- Open Postman.
- Click Import in the top left.
- Select the Link tab.
- Enter
https://api.samva.dev/v1/postman.json. - Click Continue, then Import.
Authenticate the collection
The collection already sends x-api-key from its apiKey variable. Set the variable once so every request inherits it.
- Click the collection name in the sidebar.
- Go to the Variables tab.
- Add a variable named
apiKeyand set its value to your API key. - Click Save.
Requests authenticate with the x-api-key header. See API keys for details on creating and scoping keys.
Set up environments
Use a Postman environment so requests reference variables instead of hardcoded values.
// Production
{
"baseUrl": "https://api.samva.dev",
"apiKey": "samva_sk_live_your_api_key",
"recipientEmail": "ada@example.com"
}Send a test request
Start with the read-only GET /v1/organizations/current request. A 200 response confirms the base URL and API key without changing data.
When you are ready to send a real email:
-
Open the request for
POST /v1/messages. -
Set the body to an email send payload:
{ "to": [{ "email": "ada@example.com" }], "channel": "email", "email": { "subject": "Welcome to Samva", "html": "<h1>Welcome!</h1>" } } -
Confirm the recipient and sender setup. This request creates a message and can send a real email.
-
Click Send and check the response.