Returns authentication token on verifying credentials. This auth_token should be added to header of every other api request.

Supported Formats

JSON

Params

Param name Description
client_id
required

c


Value: Must be a String
code
required

Password of user


Value: Must be a String

Examples

Request:
 curl -X POST -H "Content-Type:application/json" -d '{"code":"1234-5678-91011212-131415","client_id":"foobar","mode":"AzureAD"}' 'https://api.datonis.io/azure_api_sign_in' 
Response:
 {
  "success": true,
  "auth_token": "wOzV_s3ZIheqrkCcKHTPxQ",
  "email": "bob@acme.com",
  "role": "admin",
  "time_zone": "Mumbai",
  "organisation": {
    "name": null,
    "organisation_key": "f58155467d2ba784516a59ade6t6715fde567131",
    "license": {
      "license_key": "61572fd9137fd5c95d33454tf98e662762116812"
    }
  }
}