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.

POST/v2/accounts

Base URL https://api.sendstreak.com. All v2 endpoints require a bearer token - see Authentication.

Request 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
}'
response200application/json
{
  "_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"
  }
}