POST api/Security/Login

Request Information

URI Parameters

None.

Body Parameters

LoginRequest
NameDescriptionTypeAdditional information
PatientData

PatientLogin

None.

PatientID

globally unique identifier

None.

WebApiVersion

integer

None.

Language

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PatientData": {
    "Provider": 1,
    "ProviderUserID": "sample string 2",
    "DeviceID": "sample string 3",
    "DeviceToken": "sample string 4",
    "Platform": 5,
    "PhotoLink": "sample string 6"
  },
  "PatientID": "7b10fcde-ef68-4fc5-b8cd-30c9687ef657",
  "WebApiVersion": 2,
  "Language": "sample string 3"
}

application/xml, text/xml

Sample:
<LoginRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SehatukaAPI.DTO">
  <Language>sample string 3</Language>
  <PatientID>7b10fcde-ef68-4fc5-b8cd-30c9687ef657</PatientID>
  <WebApiVersion>2</WebApiVersion>
  <PatientData>
    <DeviceID>sample string 3</DeviceID>
    <DeviceToken>sample string 4</DeviceToken>
    <PhotoLink>sample string 6</PhotoLink>
    <Platform>5</Platform>
    <Provider>1</Provider>
    <ProviderUserID>sample string 2</ProviderUserID>
  </PatientData>
</LoginRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LoginResponse
NameDescriptionTypeAdditional information
Patient

Patient

None.

Token

TupleOfStringAndString

None.

WebApiVersion

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Patient": {
    "PatientID": "19543d37-dd64-4e8d-acd4-c895b4885cfd",
    "PartnerID": "296c5e6d-e2b5-4bcc-8bbf-20bce308fa95",
    "ProviderType": 3,
    "ProviderUserID": "sample string 4",
    "FirstName": "sample string 5",
    "LastName": "sample string 6",
    "BirthDate": "2026-06-18T12:14:56.1661083+03:00",
    "GenderID": "fe4fb214-5c40-4466-befb-0e068c0e9581",
    "BloodTypeID": "0e2ba44c-20b4-4b39-b0b0-e4fd5ce0713d",
    "MaritalStatusID": "ebfdd608-8cb5-4d38-b4c2-ac1412b32af3",
    "Phone": "sample string 7",
    "LanguageID": "9901f3e1-5392-451e-8f9e-6a34428f235c",
    "NationalID": "sample string 8",
    "BirthCity": "sample string 9",
    "BirthCountry": "sample string 10",
    "Height": 1.0,
    "AddressStreet": "sample string 11",
    "AddressCity": "sample string 12",
    "AddressState": "sample string 13",
    "AddressCountry": "sample string 14",
    "AddressZipCode": "sample string 15",
    "CountryID": "33394bfd-c367-4bbf-9c38-d139cb6eed8a",
    "PhoneCountryID": "b331247c-1a4f-4f74-aa30-80cc3fa7f629",
    "PhotoLink": "sample string 16"
  },
  "Token": {
    "m_Item1": "sample string 1",
    "m_Item2": "sample string 2"
  },
  "WebApiVersion": 1
}

application/xml, text/xml

Sample:
<LoginResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SehatukaAPI.DTO">
  <WebApiVersion>1</WebApiVersion>
  <Patient>
    <AddressCity>sample string 12</AddressCity>
    <AddressCountry>sample string 14</AddressCountry>
    <AddressState>sample string 13</AddressState>
    <AddressStreet>sample string 11</AddressStreet>
    <AddressZipCode>sample string 15</AddressZipCode>
    <BirthCity>sample string 9</BirthCity>
    <BirthCountry>sample string 10</BirthCountry>
    <BirthDate>2026-06-18T12:14:56.1661083+03:00</BirthDate>
    <BloodTypeID>0e2ba44c-20b4-4b39-b0b0-e4fd5ce0713d</BloodTypeID>
    <CountryID>33394bfd-c367-4bbf-9c38-d139cb6eed8a</CountryID>
    <FirstName>sample string 5</FirstName>
    <GenderID>fe4fb214-5c40-4466-befb-0e068c0e9581</GenderID>
    <Height>1</Height>
    <LanguageID>9901f3e1-5392-451e-8f9e-6a34428f235c</LanguageID>
    <LastName>sample string 6</LastName>
    <MaritalStatusID>ebfdd608-8cb5-4d38-b4c2-ac1412b32af3</MaritalStatusID>
    <NationalID>sample string 8</NationalID>
    <PartnerID>296c5e6d-e2b5-4bcc-8bbf-20bce308fa95</PartnerID>
    <PatientID>19543d37-dd64-4e8d-acd4-c895b4885cfd</PatientID>
    <Phone>sample string 7</Phone>
    <PhoneCountryID>b331247c-1a4f-4f74-aa30-80cc3fa7f629</PhoneCountryID>
    <PhotoLink>sample string 16</PhotoLink>
    <ProviderType>3</ProviderType>
    <ProviderUserID>sample string 4</ProviderUserID>
  </Patient>
  <Token xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:m_Item1>sample string 1</d2p1:m_Item1>
    <d2p1:m_Item2>sample string 2</d2p1:m_Item2>
  </Token>
</LoginResponse>