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": "4c2f9357-3d3e-480d-a438-e1070ecc86e4",
  "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>4c2f9357-3d3e-480d-a438-e1070ecc86e4</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": "c114deee-6011-422d-91d6-f60cf9bbce7e",
    "PartnerID": "49d628f8-0cb2-44ac-9ce0-a7003f5f1970",
    "ProviderType": 3,
    "ProviderUserID": "sample string 4",
    "FirstName": "sample string 5",
    "LastName": "sample string 6",
    "BirthDate": "2026-04-24T14:20:07.9923535+03:00",
    "GenderID": "d7f2ad98-ab4d-4ad9-b06f-97bb16608bb1",
    "BloodTypeID": "9cf00193-044a-4c3f-806e-dbe603c7fcaf",
    "MaritalStatusID": "4f8ae425-9627-41e3-8597-909452fb8e86",
    "Phone": "sample string 7",
    "LanguageID": "6b75dd1a-550d-444f-ba60-55ff131bf15e",
    "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": "cd58bd35-7d54-4746-ab6e-6faed6d34393",
    "PhoneCountryID": "ca14cc99-4270-447e-84e5-eb2c47d209af",
    "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-04-24T14:20:07.9923535+03:00</BirthDate>
    <BloodTypeID>9cf00193-044a-4c3f-806e-dbe603c7fcaf</BloodTypeID>
    <CountryID>cd58bd35-7d54-4746-ab6e-6faed6d34393</CountryID>
    <FirstName>sample string 5</FirstName>
    <GenderID>d7f2ad98-ab4d-4ad9-b06f-97bb16608bb1</GenderID>
    <Height>1</Height>
    <LanguageID>6b75dd1a-550d-444f-ba60-55ff131bf15e</LanguageID>
    <LastName>sample string 6</LastName>
    <MaritalStatusID>4f8ae425-9627-41e3-8597-909452fb8e86</MaritalStatusID>
    <NationalID>sample string 8</NationalID>
    <PartnerID>49d628f8-0cb2-44ac-9ce0-a7003f5f1970</PartnerID>
    <PatientID>c114deee-6011-422d-91d6-f60cf9bbce7e</PatientID>
    <Phone>sample string 7</Phone>
    <PhoneCountryID>ca14cc99-4270-447e-84e5-eb2c47d209af</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>