Skip to main content
GET
/
v1
/
fetch-companies
Fetch companies for authenticated user
curl --request GET \
  --url https://api.salescaptain.com/v1/fetch-companies \
  --header 'Authorization: Bearer <token>'
{
  "message": "Companies fetched successfully!",
  "companies": [
    {
      "company_id": "00000000-0000-0000-0000-000000000000",
      "name": "salescaptain"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Response

Companies fetched successfully

message
string
Example:

"Companies fetched successfully!"

companies
object[]