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": "a92ee7d7-fa59-4f18-a0d0-04b1344a9105",
  "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>a92ee7d7-fa59-4f18-a0d0-04b1344a9105</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": "c0166bc6-b592-48e2-b4ca-e7ef005dfa67",
    "PartnerID": "809eae16-e165-4d3f-a03a-638732033063",
    "ProviderType": 3,
    "ProviderUserID": "sample string 4",
    "FirstName": "sample string 5",
    "LastName": "sample string 6",
    "BirthDate": "2026-02-28T15:32:11.737081+03:00",
    "GenderID": "760e135f-a90a-4065-959d-52ebf6fd8128",
    "BloodTypeID": "0f60d340-7cc1-4dc9-bf10-4c07536b13c8",
    "MaritalStatusID": "ab1d2071-8ce2-480c-8f33-ec7c905cc489",
    "Phone": "sample string 7",
    "LanguageID": "d2c536fb-ad2d-4411-ad9b-b696d059d490",
    "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": "99137b32-ce6a-4e70-992b-fdee5dddb18c",
    "PhoneCountryID": "ab65dfc1-4c05-440c-85c0-a5124609dc60",
    "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-02-28T15:32:11.737081+03:00</BirthDate>
    <BloodTypeID>0f60d340-7cc1-4dc9-bf10-4c07536b13c8</BloodTypeID>
    <CountryID>99137b32-ce6a-4e70-992b-fdee5dddb18c</CountryID>
    <FirstName>sample string 5</FirstName>
    <GenderID>760e135f-a90a-4065-959d-52ebf6fd8128</GenderID>
    <Height>1</Height>
    <LanguageID>d2c536fb-ad2d-4411-ad9b-b696d059d490</LanguageID>
    <LastName>sample string 6</LastName>
    <MaritalStatusID>ab1d2071-8ce2-480c-8f33-ec7c905cc489</MaritalStatusID>
    <NationalID>sample string 8</NationalID>
    <PartnerID>809eae16-e165-4d3f-a03a-638732033063</PartnerID>
    <PatientID>c0166bc6-b592-48e2-b4ca-e7ef005dfa67</PatientID>
    <Phone>sample string 7</Phone>
    <PhoneCountryID>ab65dfc1-4c05-440c-85c0-a5124609dc60</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>