SendStreak logo
menu

List the current user's accounts

Lists the accounts (workspaces) the token can act on - the discovery call for the accountId used in every account-scoped path. Webhook signing secrets are masked.

Endpoint

GET https://api.sendstreak.com/v2/users/me/accounts

All v2 endpoints require a bearer token - see Authentication.

Response

The user’s accounts.

{
  "start": 0,
  "limit": 25,
  "items": [
    {
      "_id": "665f0a2b1c9d440012ab34cd",
      "name": "Example name",
      "webhooks": {
        "authType": "basic",
        "events": [
          "message_bounced"
        ],
        "passwordOrToken": "webhook-bearer-token",
        "signingSecret": "whsec_9f8e7d6c5b4a39281706",
        "url": "https://example.com/webhooks/sendstreak",
        "username": "smtp-user"
      }
    }
  ]
}

Errors

Status Description
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 example

curl --location --request GET 'https://api.sendstreak.com/v2/users/me/accounts' \
--header 'Authorization: Bearer YOUR_API_TOKEN'
Try SendStreak for Free now!