Create a new detect liveness session.
Changed onA session is best for client device scenarios where developers want to authorize a client device to perform only a liveness detection without granting full access to their resource. Created sessions have a limited life span and only authorize clients to perform the desired action before access is expired.
Permissions includes...
-
- A token lifetime of 10 minutes.
[!NOTE] Client access can be revoked by deleting the session using the Delete Liveness Session operation. To retrieve a result, use the Get Liveness Session. To audit the individual requests that a client has made to your resource, use the List Liveness Session Audit Entries.
Request
- Base URL{endpoint}/face/{apiVersion}
- Auth
- API key in header Ocp-Apim-Subscription-Key
- or OAuth 2Authorization codehttps://api.example.com/oauth2/authorizeToken URLhttps://api.example.com/oauth2/tokenScopeshttps://cognitiveservices.azure.com/.default
Request body
Response
A successful call create a session for a client device and provide an authorization token for use by the client application for a limited purpose and time.
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking