Current API Session
MFA
Create an MFA TOTP token that proves TOTP code checking has passed as a specific time for posture checks.
Changed onCreates a TOTP token that proves TOTP validation occurred at a specific time. Used in posture response for posture checks.
post/current-api-session/totp-token
Request
- Base URLhttps://demo.ziti.dev/edge/client/v1
- Auth
- API key in header zt-session
- or OAuth 2Authorization code/oidc/authorizeToken URL/oidc/tokenScopesopenid
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
A TOTP token create response, contains a token used to satisfy posture checks
Example response
{
"data": {
"issuedAt": "2000-01-23T04:56:07.000+00:00",
"token": "token"
},
"meta": {
"apiEnrollmentVersion": "apiEnrollmentVersion",
"apiVersion": "apiVersion",
"filterableFields": [
"filterableFields",
"filterableFields"
],
"pagination": {
"limit": 0.8008281904610115,
"offset": 6.027456183070403,
"totalCount": 1.4658129805029452
}
}
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking