Login

API URL

{{url}}/fhir-auth-service/session

Method

POST

Description

Login and get Access Token

Input

Field Name

Type

Mandatory

Example

username

String

Yes

password

String

Yes

Password

client(Header)

String

spice web or spice mobile

Sample Input:

{

"username": "[email protected]",

"password": "fhirAdmin@123"

}

Sample Output:

{
    "id": 1,
    "username": "[email protected]",
    "firstName": "FHIR",
    "middleName": "",
    "lastname": "ADMIN",
    "companyName": "mdt_labs",
    "companyEmail": "[email protected]",
    "countryCode": "US",
    "phone": "123-456-7890",
    "address": "123 Main St",
    "website": "www.company.com",
    "country": {
        "id": 1,
        "name": "United States",
        "code": "1",
        "abbreviation": "US"
    },
    "timezone": {
        "id": 1,
        "offset": "-5:00",
        "description": "Eastern Time Zone"
    },
    "forgetPasswordCount": 0,
    "invalidLoginAttempts": 0,
    "isSuperUser": false,
    "roles": [
        {
            "id": 1,
            "name": "FHIR_Admin",
            "level": "1"
        }
    ],
    "currentDate": 1713423576927
}

Last updated