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.
GET
/v2/ users/ me/ accountsResponse
The user’s accounts.
Errors
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 GET 'https://api.sendstreak.com/v2/users/me/accounts' \
--header 'Authorization: Bearer YOUR_API_TOKEN'
const res = await fetch('https://api.sendstreak.com/v2/users/me/accounts', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.SENDSTREAK_TOKEN}`
}
});
import os, requests
res = requests.get(
'https://api.sendstreak.com/v2/users/me/accounts',
headers={'Authorization': f"Bearer {os.environ['SENDSTREAK_TOKEN']}"},
)
{
"start": 0,
"limit": 25,
"items": [
{
"_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"
}
}
]
}