Epi-Management API
GetConnectionToken
-
This api is used to validate the user and in return will give an access token along with other parameters.
This access token will be used for all future API calls.Input here username and password in the body part.
POST
https://neregaws.epilepsygroup.com/nereg.prod/rest/GetConnectionToken
-
HEADERS
Content-Typeapplication/json
Accept-Encodingapplication/gzip
Content-Typeapplication/x-www-form-urlencoded
grant_typepassword
-
BODY Raw
{
"username":"*****",
"password":"*****"
} -
Example Request
curl --location --request POST 'neregaws.epilepsygroup.com/nereg.prod/rest/GetConnectionToken' \
--header 'Content-Type: application/json' \
--header 'Accept-Encoding: application/gzip' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'grant_type: password' \
--header 'Cookie: AWSALB=YHDNYRKt7lIb3JtCKytbrGQhffjcsblPVeiVNK56ItxCZvNWrMvbWu4gPCjrYDJVGF1V74Rgx/u7fBSGozIsqP/m/oqGCNSNQ50MU8RI9+NfiOoNkTlDtgeFFSGC; AWSALBCORS=YHDNYRKt7lIb3JtCKytbrGQhffjcsblPVeiVNK56ItxCZvNWrMvbWu4gPCjrYDJVGF1V74Rgx/u7fBSGozIsqP/m/oqGCNSNQ50MU8RI9+NfiOoNkTlDtgeFFSGC' \
--data-raw '{
"username":"*****",
"password":"*****"
}
' -
Response
200
Body
{ "tokenresponse": { "expdatetime": "yyyy-mm-ddThh:mm:ss", "response": { "error": "", "status": "OK" }, "token": "xxxxxx-xxx-xxx-xxx-xxxxxxx" } }