Skip to main content
GET
/
v1
/
fetch-all-accounts
Fetch all accounts for authenticated user
curl --request GET \
  --url https://api.salescaptain.com/v1/fetch-all-accounts \
  --header 'Authorization: Bearer <token>'
{
  "message": "Accounts fetched successfully!",
  "accounts": [
    {
      "account_id": "acc-1234-5678-90ab-cdef12345678",
      "access_level": "Administrator",
      "last_login": "2026-03-12T10:30:00.000Z",
      "email": "[email protected]",
      "mobile": "+1234567890",
      "first_name": "John",
      "last_name": "Doe"
    },
    {
      "account_id": "acc-abcd-efgh-ijkl-mnop12345678",
      "access_level": "User",
      "last_login": "2026-03-10T14:45:00.000Z",
      "email": "[email protected]",
      "mobile": "+0987654321",
      "first_name": "Jane",
      "last_name": "Smith"
    }
  ]
}

Authorizations

Authorization
string
header
required

Authentication token required for accessing protected endpoints. The token should be obtained from the main SalesCaptain authentication service.

Response

Accounts fetched successfully

message
string
Example:

"Accounts fetched successfully!"

accounts
object[]