Skip to main content
GET
/
socials_works
/
:id
Get Social Work by ID
curl --request GET \
  --url https://api.example.com/socials_works/:id
{
  "socialWork": {
    "id": 1,
    "name": "OSDE",
    "state": "Activa",
    "address": "Av. Leandro N. Alem 1067, CABA",
    "phone": "+54 11 4310-5555",
    "webpage": "https://www.osde.com.ar"
  }
}
Retrieves detailed information about a specific social work (health insurance provider) by its ID.

Authentication

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

Path Parameters

id
number
required
The unique identifier of the social work to retrieve

Response

socialWork
object
Social work object containing detailed information
{
  "socialWork": {
    "id": 1,
    "name": "OSDE",
    "state": "Activa",
    "address": "Av. Leandro N. Alem 1067, CABA",
    "phone": "+54 11 4310-5555",
    "webpage": "https://www.osde.com.ar"
  }
}

Code Examples

const token = 'your-jwt-token';
const socialWorkId = 1;

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

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

Notes

  • The ID must be a valid social work identifier in the system
  • Returns complete information including contact details and current state
  • Useful for displaying detailed social work information in the UI
  • Can retrieve both active and inactive social works

Build docs developers (and LLMs) love