Create an account
Creates a new account (workspace) owned by the authenticated user, pre-loaded with the same starter data as a dashboard signup: sample email templates, a sample automation, and the default announcement topics.
/v2/ accountsRequest body
namestringrequired
The account (workspace) name, shown across the dashboard and in team invitations.
clickTrackingbooleanoptional
Set true to rewrite links in this account’s outbound mail for click tracking. Off by default - tracking is opt-in. A template setting of the same name overrides it.
openTrackingbooleanoptional
Set true to add an open-tracking pixel to the HTML body of this account’s outbound mail. Off by default - tracking is opt-in. A template setting of the same name overrides it.
Response
The created account.
Errors
400
The request body or parameters failed validation.
401
Missing or invalid token, or the token is not authorized for this account/user.
See Errors and rate limits for what error responses look like.
curl --location --request POST 'https://api.sendstreak.com/v2/accounts' \
--header 'Authorization: Bearer YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Example name",
"clickTracking": false,
"openTracking": false
}'
const res = await fetch('https://api.sendstreak.com/v2/accounts', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SENDSTREAK_TOKEN}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"name": "Example name",
"clickTracking": false,
"openTracking": false
})
});
import os, requests
res = requests.post(
'https://api.sendstreak.com/v2/accounts',
headers={'Authorization': f"Bearer {os.environ['SENDSTREAK_TOKEN']}"},
json={
"name": "Example name",
"clickTracking": False,
"openTracking": False
},
)
{
"_id": "665f0a2b1c9d440012ab34cd",
"name": "Example name",
"clickTracking": false,
"openTracking": false,
"webhooks": {
"authType": "basic",
"events": [
"contact.bounced"
],
"passwordOrToken": "webhook-bearer-token",
"signingSecret": "whsec_9f8e7d6c5b4a39281706",
"url": "https://example.com/webhooks/sendstreak",
"username": "smtp-user"
}
}