Skip to main content
GET
/
v1
/
fetch-all-accounts
/
{company_id}
Fetch all accounts for authenticated user
curl --request GET \
  --url https://api.salescaptain.com/v1/fetch-all-accounts/{company_id} \
  --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": "john.doe@example.com",
      "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": "jane.smith@example.com",
      "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.

Path Parameters

company_id
string<uuid>
required

Unique identifier for the company

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

Response

Accounts fetched successfully

message
string
Example:

"Accounts fetched successfully!"

accounts
object[]