Skip to main content
GET
/
socials_works
Get All Social Works
curl --request GET \
  --url https://api.example.com/socials_works
{
  "socialsWorks": [
    {
      "id": 1,
      "name": "OSDE",
      "state": "Activa",
      "address": "Av. Leandro N. Alem 1067, CABA",
      "phone": "+54 11 4310-5555",
      "webpage": "https://www.osde.com.ar"
    },
    {
      "id": 2,
      "name": "Swiss Medical",
      "state": "Activa",
      "address": "Av. Callao 384, CABA",
      "phone": "+54 11 5777-7777",
      "webpage": "https://www.swissmedical.com.ar"
    },
    {
      "id": 3,
      "name": "Galeno",
      "state": "Inactiva",
      "address": "Av. Córdoba 1442, CABA",
      "phone": "0800-444-1200",
      "webpage": "https://www.galeno.com.ar"
    }
  ]
}
Retrieves a list of all social works (health insurance providers) registered in the system.

Authentication

Requires a valid JWT token in the Authorization header.
Authorization: Bearer {token}

Query Parameters

Search filter to find social works by name. Uses partial matching (LIKE query).Example: ?search=OSDE
state
string
Filter social works by state.Allowed values:
  • Activa - Active social work
  • Inactiva - Inactive social work
Example: ?state=Activa

Response

socialsWorks
array
Array of social work objects
{
  "socialsWorks": [
    {
      "id": 1,
      "name": "OSDE",
      "state": "Activa",
      "address": "Av. Leandro N. Alem 1067, CABA",
      "phone": "+54 11 4310-5555",
      "webpage": "https://www.osde.com.ar"
    },
    {
      "id": 2,
      "name": "Swiss Medical",
      "state": "Activa",
      "address": "Av. Callao 384, CABA",
      "phone": "+54 11 5777-7777",
      "webpage": "https://www.swissmedical.com.ar"
    },
    {
      "id": 3,
      "name": "Galeno",
      "state": "Inactiva",
      "address": "Av. Córdoba 1442, CABA",
      "phone": "0800-444-1200",
      "webpage": "https://www.galeno.com.ar"
    }
  ]
}

Code Examples

const token = 'your-jwt-token';

const response = await fetch('https://api.clinicavitalis.com/socials_works?state=Activa', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`
  }
});

const data = await response.json();
console.log(data.socialsWorks);

Notes

  • The search parameter performs a partial match on the social work name
  • Results include all fields for each social work
  • Both active and inactive social works are returned unless filtered by state
  • Returns an empty array if no social works match the filter criteria

Build docs developers (and LLMs) love