[GET] organizations

GET /api/v1/organizations

Retrieves the organizations associated with the authenticated user.

Required Headers:

Authorization: <authentication-token>

Example Request:

curl -X GET "https://app.leanmote.com/api/v1/organizations" \
  -H "Authorization: lm-<your_token>"

Example Response:

{
  "status": "success",
  "data": {
    "organizations": [
      {
        "id_organization": 123,
        "name": "My Company",
        "description": "Company description",
        "website": "https://mycompany.com",
        "email": "[email protected]",
        "phone": "+1234567890",
        "address": "Company address",
        "industry": "Technology",
        "users_number": 50,
        "logo": "path/to/logo.png",
        "agent_enabled": 1,
        "created_at": "2024-01-01 00:00:00"
      }
    ],
    "total_count": 1
  }
}

Error Codes:

  • 401: Invalid or missing token
  • 404: No organizations found
  • 500: Internal server error