Generate the auth token
POST {{baseUrl}}/api/v1/auth/tokenV2
This endpoint is used to generate the auth token for the service account. The token is generated using the service account credentials and the token is used to authenticate the service account for the API invocations.
Request Body
{"user"=>{"userId"=>"", "userName"=>""}, "grantType"=>"client_credentials", "claims"=>["models:*", "activities:*", "tags:*", "attributes:*", "entities:*", "provider.entries:*", "patient.entries:*", "facility.entries:*"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
[{"status":"\u003cstring\u003e","token":"\u003cstring\u003e"},{"status":"\u003cstring\u003e","token":"\u003cstring\u003e"}]