Current API Session
Return the current API session
Changed onRetrieves the API session that was used to issue the current request
get/current-api-session
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.
Response
The API session associated with the session used to issue the request
Example response
{
"data": {
"_links": {
"key": {
"comment": "comment",
"href": "https://openapi-generator.tech",
"method": "method"
}
},
"createdAt": "2000-01-23T04:56:07.000+00:00",
"id": "id",
"tags": {},
"updatedAt": "2000-01-23T04:56:07.000+00:00",
"authQueries": [
{
"clientId": "clientId",
"format": "numeric",
"httpMethod": "httpMethod",
"httpUrl": "httpUrl",
"id": "id",
"isTotpEnrolled": true,
"maxLength": 0,
"minLength": 6,
"provider": "ziti",
"scopes": [
"scopes",
"scopes"
],
"typeId": "MFA"
},
{
"clientId": "clientId",
"format": "numeric",
"httpMethod": "httpMethod",
"httpUrl": "httpUrl",
"id": "id",
"isTotpEnrolled": true,
"maxLength": 0,
"minLength": 6,
"provider": "ziti",
"scopes": [
"scopes",
"scopes"
],
"typeId": "MFA"
}
],
"authenticatorId": "authenticatorId",
"cachedLastActivityAt": "2000-01-23T04:56:07.000+00:00",
"configTypes": [
"configTypes",
"configTypes"
],
"identity": {
"_links": {
"key": {
"comment": "comment",
"href": "https://openapi-generator.tech",
"method": "method"
}
},
"entity": "entity",
"id": "id",
"name": "name"
},
"identityId": "identityId",
"improperClientCertChain": true,
"ipAddress": "ipAddress",
"isCertExtendRequested": true,
"isCertExtendable": true,
"isCertKeyRollRequested": true,
"isMfaComplete": true,
"isMfaRequired": true,
"lastActivityAt": "2000-01-23T04:56:07.000+00:00",
"token": "token",
"expirationSeconds": 1,
"expiresAt": "2000-01-23T04:56:07.000+00:00"
},
"meta": {
"apiEnrollmentVersion": "apiEnrollmentVersion",
"apiVersion": "apiVersion",
"filterableFields": [
"filterableFields",
"filterableFields"
],
"pagination": {
"limit": 0.8008281904610115,
"offset": 6.027456183070403,
"totalCount": 1.4658129805029452
}
}
}Changes
- breaking
the response property
/////////became nullable for the status
- breaking
- info
added the optional property
////////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status
- info