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": "698b996e-bf8c-48ec-bbb6-c731b9b933fd",
  "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>698b996e-bf8c-48ec-bbb6-c731b9b933fd</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": "c119285f-3003-4c1d-bd7b-583488255a56",
    "PartnerID": "c6fb51a8-11f8-4589-82f0-f4f6527224df",
    "ProviderType": 3,
    "ProviderUserID": "sample string 4",
    "FirstName": "sample string 5",
    "LastName": "sample string 6",
    "BirthDate": "2026-08-12T11:43:56.0368743+03:00",
    "GenderID": "511340cb-90b0-4dd6-8a17-0898157e3f52",
    "BloodTypeID": "ecc74858-f7dd-467b-8d37-2cb7c05ba13f",
    "MaritalStatusID": "b5e1e6b6-81cb-4939-b609-a6fd7422735a",
    "Phone": "sample string 7",
    "LanguageID": "840c88a0-0666-45b6-963b-dd6f5b6fd57e",
    "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": "8d18a782-1d46-4e16-b851-af8a5b996875",
    "PhoneCountryID": "545a5067-780b-47dd-ab06-f7607615c3dc",
    "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-08-12T11:43:56.0368743+03:00</BirthDate>
    <BloodTypeID>ecc74858-f7dd-467b-8d37-2cb7c05ba13f</BloodTypeID>
    <CountryID>8d18a782-1d46-4e16-b851-af8a5b996875</CountryID>
    <FirstName>sample string 5</FirstName>
    <GenderID>511340cb-90b0-4dd6-8a17-0898157e3f52</GenderID>
    <Height>1</Height>
    <LanguageID>840c88a0-0666-45b6-963b-dd6f5b6fd57e</LanguageID>
    <LastName>sample string 6</LastName>
    <MaritalStatusID>b5e1e6b6-81cb-4939-b609-a6fd7422735a</MaritalStatusID>
    <NationalID>sample string 8</NationalID>
    <PartnerID>c6fb51a8-11f8-4589-82f0-f4f6527224df</PartnerID>
    <PatientID>c119285f-3003-4c1d-bd7b-583488255a56</PatientID>
    <Phone>sample string 7</Phone>
    <PhoneCountryID>545a5067-780b-47dd-ab06-f7607615c3dc</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>