Logout

This API allows users to log out of their current session, effectively ending their authenticated access to the system

Request Body:

Parameter Name Description Mandatory(M) / Optional(O) /
Condition Based (C)
Data Type
data Encrypted user request need to pass here {below Json Data} M str

Json Data:

Json Fields Possible Values Description Mandatory(M) / Optional(O) /
Condition Based (C)
Data Type
user_id This parameter represents the unique identifier for a user within your system. It is typically used to specify which user the API request is related to M str
isAllDevi ce false This parameter is used to provide the user's authentication credentials. It should contain the user's password in a secure, encrypted format to ensure the security of the API request
Note: Only false allowed
M bool
mac_add ress The MAC address parameter typically represents the unique hardware address of a device, often used for device identification and security purposes. This parameter might be used to ensure that the API request is originating from an authorized device M str
ip_details This parameter contains information about the IP address from which the API request is being made. It can include details such as the IP address itself, geolocation information, or other relevant data for tracking and security purposes M str

Sample request Body:


									

Sample Response 1


									

Sample Response 2


									

Sample Response 3


									

Sample Response 4


									

POST/authn-api/v1/logout

										
cURL

Copied!

curl --location 'https://dev.cluster.apps.enrichmoney.in/authn-api/v1/logout' \ --header 'Authorization: {{jwt_token}}' \ --header 'Content-Type: application/json' \ --data '{ "user_id": "{{userid}}", "isAllDevice": false, "mac_address": "00-FF-86-6D-37-CC", "ip_details": "10.10.10.80" }'
										
python / requests

Copied!

import requests url = "https://dev.cluster.apps.enrichmoney.in/authn-api/v1/logout" payload = "{\r\n \"user_id\": \"{{userid}}\",\r\n \"isAllDevice\": false, \r\n \"mac_address\": \"00-FF-86-6D-37-CC\",\r\n \"ip_details\": \"10.10.10.80\"\r\n}" headers = { 'Authorization': '{{jwt_token}}', 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
										
java / unirest

Copied!

Unirest.setTimeouts(0, 0); HttpResponse response = Unirest.post("https://dev.cluster.apps.enrichmoney.in/authn-api/v1/logout") .header("Authorization", "{{jwt_token }}" .header("Content-Type": "application/json") .body("{\r\n \"user_id\": \"{{userid}}\",\r\n \"isAllDevice\": false, \r\n \"mac_address\": \"00-FF-86-6D-37-CC\",\r\n \"ip_details\": \"10.10.10.80\"\r\n}") .asString();
										
nodejs / axios

Copied!

var axios = require('axios'); var data = '{\r\n "user_id": "{{userid}}",\r\n "isAllDevice": false, \r\n "mac_address": "00-FF-86-6D-37-CC",\r\n "ip_details": "10.10.10.80"\r\n}'; var config = { method: 'post', maxBodyLength: Infinity, url: 'https://dev.cluster.apps.enrichmoney.in/authn-api/v1/logout', headers: { 'Authorization': '{{jwt_token}}', 'Content-Type': 'application/json' }, data : data }; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); });

Mail Us

api-support@enrichmoney.in

Call Us

044 40063663/044 35000470

Powered by Enrich Money