{"info":{"_postman_id":"e2fb1f47-d5bf-429d-a36f-e7008381355f","name":"1Kosmos Postman Collection","description":"
This Postman collection provides a curated set of APIs that we recommend you explore as part of your integration with the 1Kosmos platform. These APIs are designed to help you quickly evaluate key features and capabilities, such as identity verification, authentication, and user management.
\nWhether you're building a POC or testing specific functionality, this collection offers a simplified, ready-to-use starting point. Each request includes pre-filled sample data and descriptions to help you understand the request/response structure and expected behavior.
\nThis API is used to fetch the complete details of both the tenant and the community that were set as the environment variables.
\nThese details include configured tenant dns name and the list of other tenant DNS. Additionally, the community details include the logo URL used in the community, tenant tag, and so on. The logo details will be displayed only if you had set the skipLogos parameter in the payload to false.
dns - Use the dns name of the tenant as a variable.
communityName - Specify the community name as a variable.
skipLogos - This is a boolean parameter. Specifying this value as false displays the logo details in the response.
This API is used to retrieve all microservices associated with your tenant. You must execute this API to know the URLs of each services. For example, if service A want to call service B, it is necessary for service A to know the URL for service B.
\n","urlObject":{"protocol":"https","path":["caas","sd"],"host":["{{tenantDNS}}"],"query":[],"variable":[]}},"response":[{"id":"563b35b1-8dbf-43b9-9aef-27124c496d22","name":"Fetch SD","originalRequest":{"method":"GET","header":[],"url":"https://{{tenantDNS}}/caas/sd"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Date","value":"Fri, 07 Feb 2025 10:54:34 GMT","description":"","type":"text"},{"key":"Content-Type","value":"application/json; charset=utf-8","description":"","type":"text"},{"key":"Transfer-Encoding","value":"chunked","description":"","type":"text"},{"key":"Connection`","value":"keep-alive","description":"","type":"text"},{"key":"Connection`","value":"keep-alive","description":"","type":"text"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests","description":"","type":"text"},{"key":"X-DNS-Prefetch-Control","value":"off","description":"","type":"text"},{"key":"Expect-CT","value":"max-age=0","description":"","type":"text"},{"key":"X-Frame-Options","value":"SAMEORIGIN","description":"","type":"text"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubDomains","description":"","type":"text"},{"key":"X-Download-Options","value":"noopen","description":"","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","description":"","type":"text"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none","description":"","type":"text"},{"key":"Referrer-Policy","value":"no-referrer","description":"","type":"text"},{"key":"X-XSS-Protection","value":"0","description":"","type":"text"},{"key":"Access-Control-Allow-Origin","value":"*","description":"","type":"text"},{"key":"ETag","value":"W/\"55b-ZfqjFLG6Gj0bHXQVmsHy+qzlF4g\"","description":"","type":"text"},{"key":"Vary","value":"Accept-Encoding","description":"","type":"text"},{"key":"Content-Encoding","value":"gzip","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"sessions\": \"https://acme.1kosmos.net/sessions\",\n \"licenses\": \"https://acme.1kosmos.net/licenses\",\n \"global_caas\": \"https://acme.1kosmos.net/caas\",\n \"adminconsole\": \"https://acme.1kosmos.net\",\n \"authn\": \"https://acme.1kosmos.net/authn\",\n \"acr\": \"https://acme.1kosmos.net/acr\",\n \"webauthn\": \"https://acme.1kosmos.net/webauthn\",\n \"public_assets_upload_url\": \"http://ipfs-cluster.static-nonprod:9095\",\n \"docuverify\": \"https://acme.1kosmos.net/docuverify\",\n \"vcs\": \"https://acme.1kosmos.net/vcs\",\n \"testme\": \"https://acme.1kosmos.net/public\",\n \"events\": \"https://acme.1kosmos.net/events\",\n \"user_management\": \"https://acme.1kosmos.net/users-mgmt\",\n \"authz\": \"https://acme.1kosmos.net/authz\",\n \"reports\": \"https://acme.1kosmos.net/reports\",\n \"oauth2\": \"https://acme.1kosmos.net/oauth2\",\n \"rules_engine\": \"https://acme.1kosmos.net/rules-engine\",\n \"otp\": \"https://acme.1kosmos.net/otp\",\n \"ledger\": \"https://acme.1kosmos.net/ledger\",\n \"idproofing\": \"https://acme.1kosmos.net/idproofing\",\n \"public_assets_download_url\": \"https://static-nonprod.1kosmos.net/ipfs\",\n \"walletapi\": \"https://acme.1kosmos.net/walletapi\",\n \"1key_authserver\": \"https://192.168.177.210\",\n \"ipfsproxy\": \"https://acme.1kosmos.net/ipfsproxy\",\n \"adsyncserver\": \"https://acme.1kosmos.net/goadsyncserver\",\n \"idproofingapi\": \"http://idproofing-api:8888\",\n \"blockid_console\": \"https://acme.1kosmos.net\"\n}"}],"_postman_id":"794deb7a-5ed2-47fd-8787-2b90cd8eedf5"}],"id":"ac071c84-fa6d-49bc-b254-97d7c1d7462c","description":"Before you begin to execute APIs, you must set up your community and tenant information in your Environments.
\nUse the Get tenant community Info API to fetch the community information.
\nTo set up your environment, follow these steps:
\nUse the Get tenant community Info API to fetch the community information.
\nNavigate to the Environments menu and click +. The New Environment page is displayed.
\n2. In the Variable column, add the following parameters in the same format:
\ntenantDNS
\ncommunity_name
\nlicensekey
\nNote: The above parameters are case sensitive.
\n3. In the Type column, specify the value as default for all the three parameters.
\n4. In the Initial value column, specify the following values for each parameter:
\ntenantDNS - Specify your tenant name.
\ncommunity_name - Specify your community name.
\nlicensekey - Specify the license key of your tenant.
\n5. In the Current value column, specify the same value as that of the initial value for all the three parameters.
\nThe following screenshot illustrates how the page appears after configuring your environment variables:
\nThis is a JSON string encrypted using ECDSA. It contains the fields such as \"appid\" (string), \"uuid\" (string), and \"ts\" (number), which represents the epoch timestamp in seconds.
\n","type":"text"},{"key":"licensekey","value":"","description":"This license Key is encrypted with ECDSA.
\n","type":"text"},{"key":"publickey","value":"","description":"Public key of the Document Verification microservice.
\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"data\": {\n \"dvcID\": \"default dvcid\",\n \"sessionRequest\": {\n \"tenantDNS\": \"1k-dev.1kosmos.net\",\n \"communityName\": \"default\",\n \"documentType\": \"idcard_object\",\n \"user\": {\n \"username\": \"john.doe\",\n \"lastname\": \"doe\"\n }\n }\n }\n}","options":{"raw":{"language":"json"}}},"url":"/document_share_session/create","description":"This API is used to create a session for a specific document type. You can generate a session with one of the supported documents:
\nidcard
\ndriving license
\npassport
\nNote: The response displays the generated session URL in the encrypted format. When you run this API in your postman, click the Visualization tab in the response to view the result in the decrypted format. Otherwise, you can use your own helper that is compatible with ECDSA to view the result in the decrypted format.
\nThis API is using the license key to authorize the request.
\ndata - Specify the dvcID, tenantDNS, community name, and the type of document for which you want to create a verification session.
\n\ndocumentType:
\nFor Drivers License: set documentType: \"dl_object\"For Passport: set documentType: \"ppt_object\"For Any other ID Card: set documentType: \"idcard_object\"
Note: You must use your own tenant DNS and community name.
\nusername - Specify the user for whom the session is created.
firstname - Specify the first name of the user for whom the session is created.
lastname - Specify the last name of the user for whom the session is created.
uid - A unique identifier which help in mapping the session ID to the user performing the verification.
{{{response}}}","`;","","// Main async function","(async () => {"," try {"," if (pm.response.code === 200) {"," const { data, publicKey} = pm.response.json();"," const decryptedPayload = await ecdsa_helper(ECDSA_METHODS.DECRYPT, data, publicKey);"," const parsedPayload = JSON.parse(decryptedPayload);",""," // Escape HTML in the response to prevent rendering issues"," const sanitizedResponse = escapeHTML(JSON.stringify(parsedPayload, null, 2));",""," pm.visualizer.set(template, { response: sanitizedResponse });"," }"," } catch (error) {"," console.error('[POST SCRIPT]: Docuverify - v3 poll sesssion API - Error:', error.message);"," }","})();",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"9dac6370-2700-440a-afa8-079e0e76d2c3","exec":["// imports","const uuid = require('uuid');","","// constants","const API_METHODS = {"," POST: 'POST',"," GET: 'GET',"," PATCH: 'PATCH',"," DELETE: 'DELETE'","};","","const ECDSA_METHODS = {"," ENCRYPT: 'encrypt',"," DECRYPT: 'decrypt'","};","","const COLLECTION_VARIABLES = {"," ENCRYPTED_REQUEST_ID: 'encryptedRequestId',"," ENCRYPTED_LICENSE_KEY: 'encryptedLicenseKey'","}","","// Variables","const privateKey = pm.variables.get('privateKey');","const appId = pm.variables.get('appId');","const licenseKey = pm.environment.get('licensekey');","const docuverifyBaseUrl = pm.collectionVariables.get('docuverify');","","// Utility Functions","const WTM = (method, url, body, headers) => {"," const payload = { "," url, "," method,"," header: {"," 'Content-Type': 'application/json',"," ...(headers ? headers: {} )"," },"," ...(body ? { body: { mode: 'raw', raw: JSON.stringify(body) } }: {})"," };",""," return new Promise((resolve, reject)=> {"," pm.sendRequest(payload, function(err, res) {"," if (err) {"," reject(err);"," } else {"," resolve(res.json());"," }"," });"," });","};","","const ecdsa_helper = async(method, dataStr, publicKey) => {"," const url = `${docuverifyBaseUrl}/ecdsa_helper/${method}`;"," const payload = { dataStr, publicKey, privateKey };"," const result = await WTM(API_METHODS.POST, url, payload, null);"," return result.data;","};","","//End Utility Functions","","// Main async function","(async () => {"," try {"," const servicePublicKey = (await WTM(API_METHODS.GET, `${docuverifyBaseUrl}/publickeys`, null, null)).publicKey;",""," const requestId = {"," ts: Math.round(new Date().getTime() / 1000),"," appid: appId,"," uuid: uuid.v4(),"," };",""," const encryptedRequestId = await ecdsa_helper(ECDSA_METHODS.ENCRYPT, JSON.stringify(requestId), servicePublicKey);"," pm.collectionVariables.set(COLLECTION_VARIABLES.ENCRYPTED_REQUEST_ID, encryptedRequestId);",""," const encryptedLicenseKey = await ecdsa_helper(ECDSA_METHODS.ENCRYPT, licenseKey, servicePublicKey);"," pm.collectionVariables.set(COLLECTION_VARIABLES.ENCRYPTED_LICENSE_KEY, encryptedLicenseKey);",""," // Modify request payload"," const payload = JSON.parse(pm.request.body.raw);"," const encryptedPayloadString = await ecdsa_helper(ECDSA_METHODS.ENCRYPT, JSON.stringify(payload.data), servicePublicKey);"," pm.request.body.raw = JSON.stringify({ data: encryptedPayloadString });"," } catch (error) {"," console.error('[PRE SCRIPT]: Docuverify - v3 poll sesssion API - Error:', error.message);"," }","})();",""],"type":"text/javascript","packages":{}}}],"id":"f578c844-e733-485e-b759-0e9f886a9ccc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"requestid","value":"","description":"This is a JSON string encrypted using ECDSA. It contains the fields such as \"appid\" (string), \"uuid\" (string), and \"ts\" (number), which represents the epoch timestamp in seconds.
\n","type":"text"},{"key":"licensekey","value":"","description":"This license Key is encrypted with ECDSA.
\n","type":"text"},{"key":"publickey","value":"","description":"Public key of the Document Verification microservice.
\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"data\": {\n \"dvcID\": \"tania_web_dvcid\",\n \"sessionId\": \"82f67f10-b4e4-4680-9970-5dfcc04ea39e\"\n }\n}","options":{"raw":{"language":"json"}}},"url":"/v3/document_share_session/result","description":"The /result API displays the complete session details along with the verification status in the encrypted format.
Note: To view the results in the decrypted format, click the Visualization tab in the response section when you run this API in your postman. Otherwise, you can use your own helper that is compatible with ECDSA to view the result in the decrypted format.
\nThis API is using the license key to authorize the request.
\ndata - Specify the dvcID and sessionID which you would have received in the response of the create session API.
NA
\nID Verification is a service designed by 1Kosmos to verify user identity documents such as driver's licenses, passports, and national ID cards. 1Kosmos analyzes document data under stringent security protocols, prioritizing high data safety standards to protect user data.
\n1Kosmos ID Verification simplifies the identity verification process for new users by validating their information through government-issued IDs, face liveness checks & face comparison.
\n1Kosmos ID Verification performs single-source KYC and anti-money laundering verification, delivering a one-stop compliance solution for both customers and developers.
\nUsers initiate a verification session for users, specifying the document type.
\nUsers complete the verification process, which involves document validation and selfie verification.
\nOnce the verification is complete, the API response provides session details, including status and validation results.
\nIf the verification is successful, the session details are returned in the response.
\nIf the verification fails, the API returns an error code, and the verification status is marked as NOT PERFORMED or FAILED.
\nBy default, the generated session URL is valid for 7 days.
\ndvcID* parameter can be adjust to modify session URL's validity period as per your need. Please contact your 1Kosmos representative further information.
\nThis API ensures secure and efficient document verification for identity validation across multiple platforms.
\n\n\n","_postman_id":"69bd617f-5d45-4c50-a69f-dbf6884d1025"},{"name":"IAL","item":[{"name":"Fetch IAL of a user","event":[{"listen":"test","script":{"id":"26f1c822-b575-43a2-a0ea-8d23c9c9dae3","exec":["var data = JSON.parse(responseBody);\r","\r","pm.test(\"Status code is 200\", function () {\r"," pm.response.to.have.status(200);\r","});\r","\r","let url = \"https://1k-dev.1kosmos.net/api/r1/community/default/ecdsahelper\"\r","let otherPartyPublicKey = \"dkW7xYymDr4Rh4wEGazMdtiDzaGQtzgfby7F/z1eJchUjebTmYxkKcW7cHAg12zFWYEeJF9erjwoKw0BOHqtYw==\"\r","let my_private_key = \"GhgpEmo301rp6cVgofPo9MKspzyyhtwxOb9ewY44atE=\";\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let payload = {\r"," \t method: method,\r"," \t otherPartyPublicKey: otherPartyPublicKey,\r"," \t privateKey: my_private_key,\r"," \t dataStr: dataStr\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," console.log(res)\r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}\r","\r","ecdsa_helper(\"decrypt\", data.data, function(result) {\r"," console.log(\"Register Doc Result: \" + result)\r","})"],"type":"text/javascript","packages":{}}}],"id":"b6ec06f2-cc22-4368-ae11-9184f4d56fa0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-TenantTag","value":"","type":"text"},{"key":"publickey","value":"","type":"text"},{"key":"licensekey","value":"{{my_enc_license}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"tenant_name","value":"{{tenantDNS}}","type":"text"},{"key":"community_name","value":"{{community_name}}","type":"text"}],"url":"{{tenantDNS}}/api/r1/community/{{community_name}}/userid/johndoe/ial","description":"* dvcID refers to the specific type of verification workflow a user must complete. Examples of verification workflows include:
\n
1. Document + selfie verification
2. Document verification only
3. Document verification + document issuing authority verification
This API retrieves the Identity Assurance Level(s) of users based on their username. It also shows the user's identity documents that were submitted as proof of identity. The API indicates whether the user falls under the IAL1 or IAL2 category.
\nNote: The proofs will only be displayed only if the user's identity documents have been verified by certified third-party organizations such as AAMVA, IDRND, and so on.
\nPrerequisites:
\nUsers are required to have at least one of the following documents enrolled in their web wallet.
\nDriving License
\nPassport
\nSSN
\nYou must use the tenant DNS, public key and private key specific to your organization. For more information, reach out to your 1Kosmos representative.
\nResponses:
\n1Kosmos's API responses are encrypted using Elliptic Curve Digital Signature Agorithm (ECDSA) to ensure secure data transmission. To view the responses in the decrypted format, you must use a helper that is compatible with ECDSA.
\nThis API generates the following types of responses:
\nScenario 1:
\nIf the user has not enrolled any of their documents to the web wallet, their did value would be blank:
\nScenario 2:
\nIf the user is IAL1 certified, the did displays its value and the assurance level of the user.
\nNote: The proofs will only be displayed in the response if the user's identity documents have been verified by certified third-party organizations such as AAMVA.
\nScenario 3:
\nIf the user is IAL2 certified, the DID will display its value along with the assurance level and the proof that was verified to obtain IAL2 certification.
\nSample Response Parameters:
\nThe following table provides the sample response parameters:
\n","urlObject":{"path":["api","r1","community","{{community_name}}","userid","johndoe","ial"],"host":["{{tenantDNS}}"],"query":[],"variable":[]}},"response":[{"id":"33ce36de-d58d-43c0-89b6-40fd6d280dd2","name":"IAL2 with proofs","originalRequest":{"method":"GET","header":[{"key":"X-TenantTag","value":"","type":"text"},{"key":"publickey","value":"","type":"text"},{"key":"licensekey","value":"","type":"text"},{"key":"requestid","value":"","type":"text"},{"key":"tenant_name","value":"acme.1kosmos.net","type":"text"},{"key":"community_name","value":"acme","type":"text"}],"url":"acme.1kosmos.net/api/r1/community/acme/userid/jondoe/ial"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 16 Mar 2025 14:15:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"data\": \"NWIyZmRmM2IwOWU0ODVlOHW7KSKvLTeyCyad1UW0P/Byh9FBZV2fA4Odsi2NlPGDHUzmDJFwQPpPaPUGYaEGQvj3We1a2lzRYLiuJNFkC4mRxApsAtCP5Hw0hReFCsqw6/qXyaY8jBD/ULmsN4HWeejdjlUZjoQqc1GAGP/nerFvYizPA/6eqlRx8mkk3kqQEpRHDxjY3c2QeH35gGwX2Xi88q03A1GFBuFiAj276u5qGY6/TgA5Tw8M5AC6bL0P33EfZ4Wu0y1vhkNOaQ0DIFJGFAs9sthOBbe6xipX3SgBkNtc+okhWX8Y6kn91uO3XRXUKgDnJlEcHydUHLxcxGMUZ97oR2HX3VqdQOPGBBiW9vvkvPsIh7jLrO+SlG2UB78VHbtaA96YQnRpxwRckWIKuRoModim+RoCxwT4dKA/rUT9gBMwg5TwRTGUAOiJpySlY8pp5JzFJodyf0hZJqvATYO5/GSlmW5a86MCbOuCd3Q9FnXeKKIlEwbgX/Zh1C9fIGalOgTe+MUmXYEYk0VGfBzNwekZ5Wv1+Hf7OPc7qWufAPpUVcuGYC4szcPCgP3nb/8GpI8T7/xGXeFc+y/hOfxaq1yrzUArEa5UMboP8DoX27+0suWQ+KuyHmnw0VehAp3nor+6YSZhu52/OI0Zhw67AHEGg8Tvs18FbnRBRSlx7YtLQR02OdqLlUmmpovX7tUz/RJVAVNnvhzrdh2bNXi4AMG1VWOQrlSMxrQCKE4RauYlr17fYhHREgK8owA7wvjtQajUvNvPNU5VcxGfQ/ky51xEZWpY7zkWT0lPDpacc4HYcd84FLDb0QLPBjCv6ZtEaMm5CYuQhybDh016A0XidgtOOSdchLl/KE+znlIytihyRGEpsjWb0tvhRWea+p+7oLiNz9VWfhwBAugnU8GI4HCJhXuoA0gOvd7ESYggYttJjpL+86R73aWTihUgssNUaom66gkkqHppJoXE9hJ0umZMnKq9zyhm4dS/OHYJvZsBlDm5hf62+d/Cns29SMGc/m3nCnAJXBOC7jwurmeCUOYIBMnub76DHxwIhd7LxW0O/jlLLUd/sE1S13fpU+ns0WvJQODtQ3Vg7+FkfzoT0Ep7OV1Yy8lSaR2mVUE7aHVIQwcCx5cyS3ddwZb7FFq0JyMoaWkJsS/u5jmgc6f5kL0ycmdlWpAcX1O3HmSUp+vRwrOp7B0ObeoGk+D+5WnAZlBpXj4GMK2yzB177QkzF/2qWRiTt5apZK2IhqZ5lRCRmmGai3ZnxZRn/fDkqOtVEjJGOYyexKnDRpTmBKU8eXqCXbw7guF2iEnRT0mqrvDx81Cco6WSifxNNGnd4qxHQ3hD4+RTiH7T2OTQbHMOFn4bQAgWDQxSxRy7wde8om3bhmuQreou6iy+gx9Dz1D29fEiD1Zr4OSGXRdIdl2tWckU4m2Fne8uT2GckvyOUi1hAb9O8MgKNweQmLJ79PJ8FhfJdjYuxIhFtn/kZXGGKxcY70l+PR5nzJbM9Hco3N9B+tE4BpDYrr0kqODPu2yilwfOPD11sUqp7XfmYpkchejpdt9nlWcr4o5lQkCxQGztDndD15rREh0twpKSjZNkGx72GXvpe0r9YzSNR7eNENodXEflXAy/xhkD7elTuQKDQNXY4dJuJFKA3DNCuR+5EaQmxz5oGECbZ7QN9tyhvJmsCy7HUrL71jagVuAurZRTz0tJpifcbSS7LJhlWBxTFLLZCdnshbI06n2D1qH3kfBtFfAZo4ym2PA+0pnSSBZD9O08itJtj2FAFde/84IK4eZMA4Bm9S6fKh5ZUaSHLLb81lfbm7dZAEiHUJxbNrYrU8YfvIClLbp1TQ1DOcv185cVNaFOfNAFICV4dtmwOiK1JvHQVKYgQ8FoV3TgQpYQYd4DocNUGSOVJLpnCimGe8s2/P654t523BNIDxChjdd1rPH3lXAYwwH26pt5fPwPfdCeEeITkpYnwngaYswsszsk0+bMzcTqfo3xCvVeeOcNDomvl4w1gkmtsydVJncxTuJzrlUPxLgU8kWfkzzRdIz1q/aXet/7T+nRLghzs5Rer6AuXTGD4wDuM7Xq/WINtRrYMc0LZJrOA75kKGoMQpVdMBjZOj+g1Ih7gzUYA5Hu2g==\"\n}"},{"id":"168e7a95-124b-4fc6-8084-bc865fd7a651","name":"IAL1 without proofs","originalRequest":{"method":"GET","header":[{"key":"X-TenantTag","value":"","type":"text"},{"key":"publickey","value":"","type":"text"},{"key":"licensekey","value":"{{my_enc_license}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"tenant_name","value":"{{tenantDNS}}","type":"text"},{"key":"community_name","value":"{{community_name}}","type":"text"}],"url":"{{tenantDNS}}/api/r1/community/{{community_name}}/userid/john/ial"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 16 Mar 2025 14:21:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"data\": \"ODliMzU3MTZjMGIxODVmOdkTEpvSOf5uGlBfLo5qjuv5ryUWHpQabj1GbQmZI8THNhM5yv201PUvik7p/P9PFWxew4wcGdj7qtC4zbqcMrJa9Qdu7ODAtblrK5aL2E31KJ+WVy3dW+yAe0KXMZw8s82NbH85w7LQq73IJUNDpjqsH0UcvfhmTPSJZ2PexDC+Z3SuscIxvRp4K/LXbewHK7NrGvfOnKatFH5cb70Fmq6ZzEwMbmmk1Dw5esTUIJufqrEbXtjVInXfv8+oYvtZTShzvsq5LjGQwQoeWsGBPpeOiMI2F6yznIHx\"\n}"},{"id":"8ff6933f-97d4-49ea-b88d-a90b561570d1","name":"No DID value","originalRequest":{"method":"GET","header":[{"key":"X-TenantTag","value":"","type":"text"},{"key":"publickey","value":"","type":"text"},{"key":"licensekey","value":"{{my_enc_license}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"tenant_name","value":"{{tenantDNS}}","type":"text"},{"key":"community_name","value":"{{community_name}}","type":"text"}],"url":"{{tenantDNS}}/api/r1/community/{{community_name}}/userid/johhn/ial"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 16 Mar 2025 14:30:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"data\": \"NGIxNzliMmExZjgyODYwZEDIEOv09F5iFXpjoe5/NiDR8ZN6CV/YasOcN6nGtsSx52njhWfIbDEibNwDqfnDwicC8dIXkbx3i+Kr9i+VdVvPa7rWC5ckefbcu55MwfgcVOEpOjHXuLO3tGEB6bvRa8YZuW1/U7K87EvkjWRonalZ+N1Zq+fNIg50xkZ4+4xvrlUIUjvxjp+IJ+QYE5P+\"\n}"}],"_postman_id":"b6ec06f2-cc22-4368-ae11-9184f4d56fa0"}],"id":"54a03767-5d15-42c9-b273-6aa16532b1fa","description":"Fetch IAL of a User
\nIdentity Assurance Levels (IALs) are a set of standards defined by the National Institute of Standards and Technology (NIST) that convey the degree of confidence that someone's claimed identity is their real identity.
\n1Kosmos supports the following Identity Assurance Levels:
\nIAL1: No requirement to link the individual to a specific real-life identity. Any information provided by the individual should be treated as self-asserted.
\nIAL2: Uses digital documents to support the real-world existence of an identity and verifies that the correct person is associated with it.
\nIn 1Kosmos, IAL is calculated when
\na user enrolls an identity document
\na user unenrolls an identity document
\nan authorized party inspects IAL for a user
\nHere’s how a user can be certified from IAL1 to IAL2:
\nIf both their driving license and passport have been verified.
\nIf their SSN is verified, but neither their passport nor driving license is verified.
\nIf neither the driving license nor the passport is verified.
\nThis endpoint allows you to retrieve event data for a specific community within a tenant.
\nPOST {{client_api}}/reports/tenant/:tenantID/community/:communityID/events
pSize (integer): The number of records to return per page. In the example, it is set to 10.
pIndex (integer): The page index for pagination. In the example, it is set to 1.
from (string): The start date and time for the events to be retrieved, formatted as YYYY-MM-DD HH:MM:SS.SSS. In the example, it is 2025-05-01 00:00:00.000.
to (string): The end date and time for the events to be retrieved, formatted as YYYY-MM-DD HH:MM:SS.SSS. In the example, it is 2025-05-10 00:00:00.000.
query (object): An object containing the search criteria for the events. In the example, it includes:
\n\"E_IDV_DOCUMENT_VALIDATE\".Status Code: 200 OK
Content-Type: application/json
Response Body:
\npage (object): Contains pagination information.
\ntotal (integer): Total number of records available.
\npSize (integer): The size of the current page.
\npIndex (integer): The current page index.
\ndata (array): An array of event data objects. If no events are found, this will be an empty array.
\n{\n \"page\": {\n \"total\": 0,\n \"pSize\": 0,\n \"pIndex\": 0\n },\n \"data\": []\n}\n\n\nEnsure that you provide valid tenantID and communityID in the URL.
The request requires authorization headers which must be included for successful execution.
\nThe response may vary based on the provided date range and query parameters.
\nTenant ID
\n","type":"text/plain"},"type":"any","value":"","key":"tenantID"},{"id":"30133e11-b4f3-4e4d-9811-1aa1183c5df7","description":{"content":"Community ID
\n","type":"text/plain"},"type":"any","value":"","key":"communityID"}]}},"response":[{"id":"8c83232f-7335-4b82-ab72-faa002b02c81","name":"Success","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 10,\r\n \"pIndex\": 1,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2025-05-10 00:00:00.000\",\r\n \"query\": {\r\n \"event_name\": \"E_IDV_DOCUMENT_VALIDATE\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/events","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","events"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Community ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:47:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"34-qV1UvC4Rw1HUpj+QaGq6WFqXUZ0\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"page\": {\n \"total\": 0,\n \"pSize\": 10,\n \"pIndex\": 1\n },\n \"data\": []\n}"},{"id":"ab359514-3f40-4a32-887e-087c988235d4","name":"Incorrect From-To Dates","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"metricsName\": \"M_C_LOGINS\",\r\n \"from\": \"2026-05-01 00:00:00.000\",\r\n \"to\": \"2025-06-10 00:00:00.000\"\r\n }","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/metrics","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","metrics"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 16:43:58 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"162"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"a2-af/SPaMOk+YD1mdJPzeWMdR0OpU\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"Field should be from current time to minus 90 days\",\n \"param\": \"from\"\n },\n {\n \"message\": \"Date 'to' must be after or equal to 'from'\",\n \"param\": \"to\"\n }\n ]\n}"},{"id":"1f6ac1b9-212b-4ea9-96df-3a42cc71eb9f","name":"Bad/Missing License Key","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}","disabled":true},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 10,\r\n \"pIndex\": 1,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2025-05-10 00:00:00.000\",\r\n \"query\": {\r\n \"event_name\": \"E_IDV_DOCUMENT_VALIDATE\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/events","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","events"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:29:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"79"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4f-hZ9DBhSdHAoeBMOBIGUyYXZC6Hk\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"This header should not be empty\",\n \"param\": \"licensekey\"\n }\n ]\n}"},{"id":"275ac83e-e3b6-441d-b5e1-c3bbd0f8d04a","name":"Incorrect From-To Dates","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 10,\r\n \"pIndex\": 1,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2021-05-10 00:00:00.000\",\r\n \"query\": {\r\n \"event_name\": \"E_IDV_DOCUMENT_VALIDATE\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/events","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","events"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:29:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"70"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"46-MdQ9ZvQDqdNa9CW1QByVU+S3eCo\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"Date 'to' must be after 'from'\",\n \"param\": \"to\"\n }\n ]\n}"}],"_postman_id":"907019cb-a497-4d7a-abb6-3d49d77b1f68"},{"name":"Metrics","event":[{"listen":"prerequest","script":{"id":"ff68c362-d17a-4bf6-b466-ed8a3fd10474","exec":["let publicKeyReportsUrl = pm.environment.get(\"client_api\") + \"/reports/publickeys\"\r","\r","fetchCommunityInfo(function() {\r"," fetchServerPublicKey(function (pk1) {\r"," pm.environment.set(\"client_public_key\", pk1);\r"," makeLicenseKey()\r"," makeRequestId()\r"," })\r"," })\r","\r","function fetchCommunityInfo(next) {\r"," let apiURL = pm.environment.get(\"client_api\")\r"," let url = apiURL + \"/api/r1/system/community_info/fetch\"\r"," let dns = apiURL.replace(\"https://\", \"\")\r","\r"," let payload = {\r"," dns: dns,\r"," communityName: pm.environment.get(\"client_community_name\")\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r"," let community = res.json().community\r"," let tenant = res.json().tenant\r"," pm.environment.set(\"communityId\", community.id);\r"," pm.environment.set(\"tenantId\", community.tenantid);\r"," pm.environment.set(\"client_tenant_tag\", tenant.tenanttag);\r"," pm.environment.set(\"root_tenant_tag\", tenant.tenanttag);\r"," next()\r"," })\r","}\r","\r","function fetchServerPublicKey(callback) {\r"," let url = publicKeyReportsUrl\r"," let tag = pm.environment.get(\"root_tenant_tag\")\r"," pm.sendRequest({\r"," url: url,\r"," method: 'GET',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'X-TenantTag': tag\r"," }\r"," }, function (err, res) {\r"," callback(res.json().publicKey)\r"," });\r","}\r","\r","function makeLicenseKey() {\r"," //clear\r"," pm.environment.set(\"enc_license_for_client\", \"\")\r"," var licenseKey = pm.environment.get(\"licenseKey\")\r"," ecdsa_helper(\"encrypt\", licenseKey, function(result) {\r"," pm.environment.set(\"enc_license_for_client\", result)\r"," })\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," pm.environment.set(\"requestid\", \"\")\r"," \r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let communityName = pm.environment.get(\"client_community_name\")\r"," let url = pm.environment.get(\"client_api\") + \"/reports/ecdsa_helper/\" + method;\r"," let privateKey = pm.environment.get(\"my_private_key\")\r","\r"," let payload = {\r"," \t method: method,\r"," \t publicKey: pm.environment.get(\"client_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr\r"," };\r","\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"c5d13c90-1d37-4246-9e57-811cdbf06aea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"metricsName\": \"M_GT_SUCCESSFUL_AUTHENTICATIONS\",\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2025-05-01 00:00:00.000\"\r\n }","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/metrics","description":"This API endpoint is used to submit metrics data for a specific community within a tenant. The purpose of this request is to track and analyze various metrics related to community activities.
\nThe request must include a JSON body with the following parameters:
\nmetricsName (string): The name of the metric you want to report (e.g., \"M_GT_SUCCESSFUL_AUTHENTICATION\").
\nfrom (string): The start date and time for the metric data in the format YYYY-MM-DD HH:MM:SS.sss.
to (string): The end date and time for the metric data in the format YYYY-MM-DD HH:MM:SS.sss.
The API responds with a JSON object containing the following field:
\n{\"count\":0} indicates that there were no records found for the specified metrics within the given date range.{\n \"metricsName\": \"M_GT_SUCCESSFUL_AUTHENTICATION\",\n \"from\": \"2025-05-01 00:00:00.000\",\n \"to\": \"2025-05-01 00:00:00.000\"\n}\n\n\n{\n \"count\": 0\n}\n\n\n","urlObject":{"path":["reports","tenant",":tenantID","community",":communityID","metrics"],"host":["{{client_api}}"],"query":[],"variable":[{"id":"16071d4a-2ae4-4a46-82f3-8248b8453577","description":{"content":"Tenant ID
\n","type":"text/plain"},"type":"any","value":"","key":"tenantID"},{"id":"64c7520d-809d-4653-b6ab-8bb4697d7dc3","description":{"content":"Community ID
\n","type":"text/plain"},"type":"any","value":"","key":"communityID"}]}},"response":[{"id":"c48c1580-9655-4691-aa84-eb2341b8331b","name":"Success","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"metricsName\": \"M_C_LOGINS\",\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2025-06-10 00:00:00.000\"\r\n }","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/metrics","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","metrics"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 11 Jul 2025 11:35:40 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"13"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"d-Wtg/IFaa8r+/JnwTP+siG/eqvGs\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"count\": 172\n}"},{"id":"e5596353-3b84-4464-97a0-aa83ba2a704a","name":"Bad/Missing License Key","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"metricsName\": \"M_C_LOGINS\",\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2025-06-10 00:00:00.000\"\r\n }","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/metrics","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","metrics"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 11 Jul 2025 11:36:15 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"78"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4e-cviSEaQ4ud0Wrx5xSMIBZ4QFKmc\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"This header can't be decrypted\",\n \"param\": \"licensekey\"\n }\n ]\n}"},{"id":"42ffa6e3-bcf2-4a0e-bf58-5b3fac1274de","name":"Missing metricsname","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2025-06-10 00:00:00.000\"\r\n }","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/metrics","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","metrics"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 11 Jul 2025 12:01:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"79"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4f-z3VvgUXdqE1aXa5+6iI1oMzU/Qc\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"This field should not be empty\",\n \"param\": \"metricsName\"\n }\n ]\n}"},{"id":"6fb8f899-0dc5-4133-9599-bd0a0a57d472","name":"Incorrect From-To Dates","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"metricsName\": \"M_C_LOGINS\",\r\n \"from\": \"2026-05-01 00:00:00.000\",\r\n \"to\": \"2025-06-10 00:00:00.000\"\r\n }","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/metrics","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","metrics"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 16:43:58 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"162"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"a2-af/SPaMOk+YD1mdJPzeWMdR0OpU\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"Field should be from current time to minus 90 days\",\n \"param\": \"from\"\n },\n {\n \"message\": \"Date 'to' must be after or equal to 'from'\",\n \"param\": \"to\"\n }\n ]\n}"},{"id":"d8835d76-5ca5-4bcc-a675-6c79354dc757","name":"Incorrect metricsName","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"metricsName\": \"M_C_NEW_DEVICES_1\",\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2025-06-10 00:00:00.000\"\r\n }","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/metrics","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","metrics"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 16:45:36 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"85"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"55-juOFECnmN3cRkkL9GCeiOBkdGds\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"Metrics with that name doesn't exist\",\n \"param\": \"metricsName\"\n }\n ]\n}"}],"_postman_id":"c5d13c90-1d37-4246-9e57-811cdbf06aea"},{"name":"Application Usage Report","event":[{"listen":"prerequest","script":{"id":"a6e4486d-1232-41e9-b2a3-856b0e10ae53","exec":["let publicKeyReportsUrl = pm.environment.get(\"client_api\") + \"/reports/publickeys\"\r","\r","fetchCommunityInfo(function() {\r"," fetchServerPublicKey(function (pk1) {\r"," pm.environment.set(\"client_public_key\", pk1);\r"," makeLicenseKey()\r"," makeRequestId()\r"," })\r"," })\r","\r","function fetchCommunityInfo(next) {\r"," let apiURL = pm.environment.get(\"client_api\")\r"," let url = apiURL + \"/api/r1/system/community_info/fetch\"\r"," let dns = apiURL.replace(\"https://\", \"\")\r","\r"," let payload = {\r"," dns: dns,\r"," communityName: pm.environment.get(\"client_community_name\")\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r"," let community = res.json().community\r"," let tenant = res.json().tenant\r"," pm.environment.set(\"communityId\", community.id);\r"," pm.environment.set(\"tenantId\", community.tenantid);\r"," pm.environment.set(\"client_tenant_tag\", tenant.tenanttag);\r"," pm.environment.set(\"root_tenant_tag\", tenant.tenanttag);\r"," next()\r"," })\r","}\r","\r","function fetchServerPublicKey(callback) {\r"," let url = publicKeyReportsUrl\r"," let tag = pm.environment.get(\"root_tenant_tag\")\r"," pm.sendRequest({\r"," url: url,\r"," method: 'GET',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'X-TenantTag': tag\r"," }\r"," }, function (err, res) {\r"," callback(res.json().publicKey)\r"," });\r","}\r","\r","function makeLicenseKey() {\r"," //clear\r"," pm.environment.set(\"enc_license_for_client\", \"\")\r"," var licenseKey = pm.environment.get(\"licenseKey\")\r"," ecdsa_helper(\"encrypt\", licenseKey, function(result) {\r"," pm.environment.set(\"enc_license_for_client\", result)\r"," })\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," pm.environment.set(\"requestid\", \"\")\r"," \r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let communityName = pm.environment.get(\"client_community_name\")\r"," let url = pm.environment.get(\"client_api\") + \"/reports/ecdsa_helper/\" + method;\r"," let privateKey = pm.environment.get(\"my_private_key\")\r","\r"," let payload = {\r"," \t method: method,\r"," \t publicKey: pm.environment.get(\"client_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr\r"," };\r","\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"d5b3a81e-1827-48ea-b969-6dd2cf7b282b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\",\r\n \"pSize\": 10,\r\n \"pIndex\": 0\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/application_usage_report","description":"This API endpoint allows you to generate an application usage report for a specific tenant and community within the client application.
\n{{client_api}}/reports/tenant/:tenantID/community/:communityID/application_usage_reportThe request body must be in JSON format and should contain the following parameters:
\nfrom (string): The start date and time for the report in the format YYYY-MM-DD HH:mm:ss.SSS.
to (string): The end date and time for the report in the format YYYY-MM-DD HH:mm:ss.SSS.
pSize (integer): The number of records to return per page.
\npIndex (integer): The index of the page to return.
\nExample Payload:
\n{\n \"from\": \"2025-05-01 00:00:00.000\",\n \"to\": \"2026-06-01 00:00:00.000\",\n \"pSize\": 10,\n \"pIndex\": 0\n}\n\n\nThe response will be a JSON object containing:
\npage: An object with pagination details.
\ntotal (integer): The total number of records available.
\npSize (integer): The number of records per page.
\npIndex (integer): The current page index.
\ndata: An array of objects representing the application usage events. Each object may include fields such as:
\nevent_name (string): The name of the event.
\nevent_ts (integer): The timestamp of the event.
\nuser_id (string): The ID of the user associated with the event.
\nAdditional fields related to the event and user details.
\nExample Response:
\n{\n \"page\": {\n \"total\": 0,\n \"pSize\": 0,\n \"pIndex\": 0\n },\n \"data\": []\n}\n\n\nEnsure that the tenantID and communityID in the URL are replaced with valid identifiers.
The request requires appropriate authorization headers to be included.
\nThe response may vary based on the data available for the specified time range.
\nTenant ID
\n","type":"text/plain"},"type":"any","value":"","key":"tenantID"},{"id":"1a690ffe-b227-4492-b9e5-6d47605b2c1b","description":{"content":"Community ID
\n","type":"text/plain"},"type":"any","value":"","key":"communityID"}]}},"response":[{"id":"22179f35-7bb1-4c84-b1ba-edd0b1dfc75c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\",\r\n \"pSize\": 10,\r\n \"pIndex\": 0\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/application_usage_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","application_usage_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 16:52:31 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"1562-4MCGmfu9yhrADAcOo+w30y3MhR0\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n \"page\": {\n \"total\": 4,\n \"pSize\": 10,\n \"pIndex\": 0\n },\n \"data\": [\n {\n \"event_name\": \"E_SP_REDIRECT_SUCCEEDED\",\n \"event_ts\": 1751206568534,\n \"version\": \"v1\",\n \"journey_id\": \"47d5f941-608c-4464-80f9-92e32347803d\",\n \"session_id\": \"a73a8d5f-10ef-447b-97bf-f6e0495340b3\",\n \"client_ip_address\": \"213.174.29.76\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36\",\n \"user_id\": \"andrii.ziazin@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"andrii.ziazin@1kosmos.com\",\n \"user_firstname\": \"andrii\",\n \"user_lastname\": \"ziazin\",\n \"source_user_directory\": \"db\",\n \"source_user_directory_name\": \"DB for default community\",\n \"caller_ip\": \"213.174.29.76\",\n \"tenant_dns\": \"1k-uat.1kosmos.net\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"Mac OS\",\n \"auth_device_app_name\": \"Chrome\",\n \"auth_device_app_version\": \"137.0.0.0\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"country\": \"Ukraine\",\n \"region\": \"Poltava Oblast\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"type\": \"event\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"aliasUsed\": \"unknown\",\n \"event_id\": \"f64c7fc8-8ae5-48d3-bc62-70b09a312a37\",\n \"timestamp\": \"2025-06-29 14:16:08.534\",\n \"epoch_time\": \"1751206568\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n },\n {\n \"event_name\": \"E_SP_REDIRECT_SUCCEEDED\",\n \"event_ts\": 1751203011828,\n \"version\": \"v1\",\n \"journey_id\": \"97dc6371-03a2-4ef0-8b3f-31ccea6d40ff\",\n \"session_id\": \"0b2b9ce7-1d74-4057-a0a4-ba507dae4d91\",\n \"client_ip_address\": \"213.174.29.76\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15\",\n \"user_id\": \"andrii.ziazin@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"andrii.ziazin@1kosmos.com\",\n \"user_firstname\": \"andrii\",\n \"user_lastname\": \"ziazin\",\n \"source_user_directory\": \"db\",\n \"source_user_directory_name\": \"DB for default community\",\n \"caller_ip\": \"213.174.29.76\",\n \"tenant_dns\": \"1k-uat.1kosmos.net\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"Mac OS\",\n \"auth_device_app_name\": \"Safari\",\n \"auth_device_app_version\": \"18.5\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"country\": \"Ukraine\",\n \"region\": \"Poltava Oblast\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"type\": \"event\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"aliasUsed\": \"unknown\",\n \"event_id\": \"baa8a5ce-f1a7-4eee-8156-1e177f9ae365\",\n \"timestamp\": \"2025-06-29 13:16:51.828\",\n \"epoch_time\": \"1751203011\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n },\n {\n \"event_name\": \"E_SP_REDIRECT_SUCCEEDED\",\n \"event_ts\": 1747298595672,\n \"version\": \"v1\",\n \"journey_id\": \"883b6133-d473-4021-9da4-77b11f59e3d5\",\n \"session_id\": \"b4e42230-ad93-47a7-a193-6cd52e24e150\",\n \"client_ip_address\": \"3.231.117.156\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0\",\n \"user_id\": \"andrii.ziazin@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"andrii.ziazin@1kosmos.com\",\n \"user_firstname\": \"andrii\",\n \"user_lastname\": \"ziazin\",\n \"source_user_directory\": \"db\",\n \"source_user_directory_name\": \"DB for default community\",\n \"caller_ip\": \"3.231.117.156\",\n \"tenant_dns\": \"1k-uat.1kosmos.net\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"Mac OS\",\n \"auth_device_app_name\": \"Edge\",\n \"auth_device_app_version\": \"136.0.0.0\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"country\": \"United States\",\n \"region\": \"Virginia\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"type\": \"event\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"aliasUsed\": \"unknown\",\n \"event_id\": \"da65e059-2542-4283-a6b3-11f6a94d187d\",\n \"timestamp\": \"2025-05-15 08:43:15.672\",\n \"epoch_time\": \"1747298595\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n },\n {\n \"event_name\": \"E_SP_REDIRECT_SUCCEEDED\",\n \"event_ts\": 1747297942920,\n \"version\": \"v1\",\n \"journey_id\": \"883b6133-d473-4021-9da4-77b11f59e3d5\",\n \"session_id\": \"b4e42230-ad93-47a7-a193-6cd52e24e150\",\n \"client_ip_address\": \"3.231.117.156\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0\",\n \"user_id\": \"andrii.ziazin@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"andrii.ziazin@1kosmos.com\",\n \"user_firstname\": \"andrii\",\n \"user_lastname\": \"ziazin\",\n \"source_user_directory\": \"db\",\n \"source_user_directory_name\": \"DB for default community\",\n \"caller_ip\": \"3.231.117.156\",\n \"tenant_dns\": \"1k-uat.1kosmos.net\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"Mac OS\",\n \"auth_device_app_name\": \"Edge\",\n \"auth_device_app_version\": \"136.0.0.0\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"country\": \"United States\",\n \"region\": \"Virginia\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"type\": \"event\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"aliasUsed\": \"unknown\",\n \"event_id\": \"be926b44-1da0-4859-8a88-a38c3110a801\",\n \"timestamp\": \"2025-05-15 08:32:22.920\",\n \"epoch_time\": \"1747297942\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n }\n ]\n}"},{"id":"e8a845ba-5456-4e86-9ab7-3d632a4982ad","name":"Incorrect From-To Dates","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"from\": \"2027-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\",\r\n \"pSize\": 10,\r\n \"pIndex\": 0,\r\n \"serviceProvider\": \"string\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/application_usage_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","application_usage_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 16:50:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"150"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"96-aAZgJyWzS58LFoljbKcYmEQKtTQ\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"Field should be from current time to minus 90 days\",\n \"param\": \"from\"\n },\n {\n \"message\": \"Date 'to' must be after 'from'\",\n \"param\": \"to\"\n }\n ]\n}"},{"id":"def9b592-1bd8-4c6d-b33c-f1d3ee53d08c","name":"Bad/Missing License Key","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}","disabled":true},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\",\r\n \"pSize\": 10,\r\n \"pIndex\": 0,\r\n \"serviceProvider\": \"string\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/application_usage_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","application_usage_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 16:51:45 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"79"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4f-hZ9DBhSdHAoeBMOBIGUyYXZC6Hk\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"This header should not be empty\",\n \"param\": \"licensekey\"\n }\n ]\n}"},{"id":"ddac4fee-be82-494d-b1be-5aeafec33dd8","name":"Success with ServiceProvider","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\",\r\n \"pSize\": 10,\r\n \"pIndex\": 0,\r\n \"serviceProvider\": \"test\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/application_usage_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","application_usage_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 16:54:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"34-EAA3rDejXT0pvNbk/X5YiN/tjgs\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"page\": {\n \"total\": 0,\n \"pSize\": 10,\n \"pIndex\": 0\n },\n \"data\": []\n}"}],"_postman_id":"d5b3a81e-1827-48ea-b969-6dd2cf7b282b"},{"name":"Audit Log Report","event":[{"listen":"prerequest","script":{"id":"ef323c40-96f3-46d7-972a-18bd06aa969d","exec":["let publicKeyReportsUrl = pm.environment.get(\"client_api\") + \"/reports/publickeys\"\r","\r","fetchCommunityInfo(function() {\r"," fetchServerPublicKey(function (pk1) {\r"," pm.environment.set(\"client_public_key\", pk1);\r"," makeLicenseKey()\r"," makeRequestId()\r"," })\r"," })\r","\r","function fetchCommunityInfo(next) {\r"," let apiURL = pm.environment.get(\"client_api\")\r"," let url = apiURL + \"/api/r1/system/community_info/fetch\"\r"," let dns = apiURL.replace(\"https://\", \"\")\r","\r"," let payload = {\r"," dns: dns,\r"," communityName: pm.environment.get(\"client_community_name\")\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r"," let community = res.json().community\r"," let tenant = res.json().tenant\r"," pm.environment.set(\"communityId\", community.id);\r"," pm.environment.set(\"tenantId\", community.tenantid);\r"," pm.environment.set(\"client_tenant_tag\", tenant.tenanttag);\r"," pm.environment.set(\"root_tenant_tag\", tenant.tenanttag);\r"," next()\r"," })\r","}\r","\r","function fetchServerPublicKey(callback) {\r"," let url = publicKeyReportsUrl\r"," let tag = pm.environment.get(\"root_tenant_tag\")\r"," pm.sendRequest({\r"," url: url,\r"," method: 'GET',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'X-TenantTag': tag\r"," }\r"," }, function (err, res) {\r"," callback(res.json().publicKey)\r"," });\r","}\r","\r","function makeLicenseKey() {\r"," //clear\r"," pm.environment.set(\"enc_license_for_client\", \"\")\r"," var licenseKey = pm.environment.get(\"licenseKey\")\r"," ecdsa_helper(\"encrypt\", licenseKey, function(result) {\r"," pm.environment.set(\"enc_license_for_client\", result)\r"," })\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," pm.environment.set(\"requestid\", \"\")\r"," \r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let communityName = pm.environment.get(\"client_community_name\")\r"," let url = pm.environment.get(\"client_api\") + \"/reports/ecdsa_helper/\" + method;\r"," let privateKey = pm.environment.get(\"my_private_key\")\r","\r"," let payload = {\r"," \t method: method,\r"," \t publicKey: pm.environment.get(\"client_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr\r"," };\r","\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"70679183-dd29-40f4-9a33-b30054dcce95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 5,\r\n \"pIndex\": 0,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/audit_log","description":"This is a POST request to retrieve the audit log for a specific community within a tenant.
\nEndpoint:
\n{{client_api}}/reports/tenant/:tenantID/community/:communityID/audit_log\n\nRequest Body:
The request body should be in JSON format and include the following parameters:
pSize (integer): The number of records to return per page.
\npIndex (integer): The index of the page to retrieve.
\nfrom (string): The start date and time for the audit log in the format YYYY-MM-DD HH:MM:SS.SSS.
to (string): The end date and time for the audit log in the format YYYY-MM-DD HH:MM:SS.SSS.
Example Request Body:
\n{\n \"pSize\": 5,\n \"pIndex\": 0,\n \"from\": \"2025-05-01 00:00:00.000\",\n \"to\": \"2026-06-01 00:00:00.000\"\n}\n\n\nExpected Response:
The response will be in JSON format and will contain the following structure:
page: An object containing pagination information.
\ntotal (integer): The total number of records available.
\npSize (integer): The number of records returned per page.
\npIndex (integer): The current page index.
\ndata: An object containing the audit log events.
\nauditLogEvents (array): A list of audit log events, where each event includes:
\nevent_name (string): The name of the event.
\nevent_ts (integer): The timestamp of the event.
\ntenant_id (string): The ID of the tenant.
\ncommunity_id (string): The ID of the community.
\neventCategory (string): The category of the event.
\ntype (string): The type of the event.
\nsp_type (string): The service provider type.
\nsp_name (string): The name of the service provider.
\nsp_id (string): The ID of the service provider.
\nold_authRequestSignRequired (boolean): Indicates if the old auth request sign is required.
\nnew_authRequestSignRequired (boolean): Indicates if the new auth request sign is required.
\nnew_encryptAssertion (boolean): Indicates if the new encrypt assertion is enabled.
\nnew_encryptionAlgorithm (string): The new encryption algorithm used.
\nnew_keyTransportAlgorithm (string): The new key transport algorithm used.
\nuser_id (string): The ID of the user associated with the event.
\nuser_name (string): The name of the user associated with the event.
\nconnection_ip_address (string): The IP address from which the connection was made.
\nconnection_useragent (string): The user agent string of the connection.
\nevent_id (string): The unique identifier for the event.
\ntimestamp (string): The timestamp of the event.
\nepoch_time (string): The epoch time of the event.
\neventName (string): The name of the event.
\nNotes:
\nEnsure that the request headers include the necessary authorization tokens and keys.
\nThe from and to parameters should be carefully set to ensure they fall within the range of available audit logs.
Tenant ID
\n","type":"text/plain"},"type":"any","value":"","key":"tenantID"},{"id":"d1ca5c5f-4e3f-44b2-861f-074ab4b3cfac","description":{"content":"Community ID
\n","type":"text/plain"},"type":"any","value":"","key":"communityID"}]}},"response":[{"id":"18743ff1-4b2a-4612-ab3a-3474fc4dbfe8","name":"Success","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 5,\r\n \"pIndex\": 0,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/audit_log","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","audit_log"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:06:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"1f89-ujT+TsskNSjmjNWhzCMdFZatObY\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n \"page\": {\n \"total\": 24,\n \"pSize\": 5,\n \"pIndex\": 0\n },\n \"data\": {\n \"auditLogEvents\": [\n {\n \"event_name\": \"E_SP_MODIFIED\",\n \"event_ts\": 1751202999164,\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"eventCategory\": \"AUDIT_LOG\",\n \"type\": \"event\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"old_authRequestSignRequired\": true,\n \"new_authRequestSignRequired\": false,\n \"new_encryptAssertion\": false,\n \"new_encryptionAlgorithm\": \"http://www.w3.org/2001/04/xmlenc#aes256-cbc\",\n \"new_keyTransportAlgorithm\": \"http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p\",\n \"user_id\": \"john.doe@1kosmos.com\",\n \"user_name\": \"john.doe@1kosmos.com\",\n \"connection_ip_address\": \"213.174.29.76\",\n \"connection_useragent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36\",\n \"event_id\": \"4c58079e-5985-4c7c-b33e-518ef76b601e\",\n \"timestamp\": \"2025-06-29 13:16:39.164\",\n \"epoch_time\": \"1751202999\",\n \"eventName\": \"E_SP_MODIFIED\"\n },\n {\n \"event_name\": \"E_DIRECTORY_ADVANCED_CONFIGURATION_MODIFIED\",\n \"event_ts\": 1751022757842,\n \"user_id\": \"rahulauth\",\n \"user_name\": \"rahulauth\",\n \"connection_ip_address\": \"117.220.184.164\",\n \"connection_useragent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36\",\n \"directory_id\": \"6593c7653eeff32662cfef76\",\n \"directory_name\": \"DB for default community\",\n \"directory_type\": \"db\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"eventCategory\": \"AUDIT_LOG\",\n \"type\": \"event\",\n \"old_config_passwordPolicy\": {\n \"rules\": {\n \"min_enabled\": true,\n \"min_special_enabled\": true,\n \"min_numbers_enabled\": true,\n \"special_chars_allowed_enabled\": true,\n \"min_alpha_caps_enabled\": true,\n \"noUsername\": true,\n \"noUsername_enabled\": true,\n \"allowInRow_enabled\": true,\n \"min\": 8,\n \"min_special\": 1,\n \"min_numbers\": 1,\n \"special_chars_allowed\": \"!\\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~\",\n \"min_alpha_caps\": 1,\n \"allowInRow\": 3\n },\n \"authtype\": \"Face\",\n \"descriptions\": [\n \"Must contain 8 characters with at least one special character and one number.\"\n ],\n \"allowed\": true\n },\n \"new_config_passwordPolicy\": {\n \"rules\": {\n \"min_enabled\": true,\n \"min_special_enabled\": true,\n \"min_numbers_enabled\": true,\n \"special_chars_allowed_enabled\": true,\n \"min_alpha_caps_enabled\": true,\n \"noUsername\": true,\n \"noUsername_enabled\": true,\n \"allowInRow_enabled\": true,\n \"min\": 8,\n \"min_special\": 1,\n \"min_numbers\": 1,\n \"special_chars_allowed\": \"!\\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~\",\n \"min_alpha_caps\": 1,\n \"allowInRow\": 3\n },\n \"authtype\": \"Fingerprint\",\n \"allowed\": true,\n \"description\": \"Must contain 8 characters with at least one special character and one number.\"\n },\n \"event_id\": \"fa68f181-69c4-4c87-9427-31bc840e6027\",\n \"timestamp\": \"2025-06-27 11:12:37.842\",\n \"epoch_time\": \"1751022757\",\n \"eventName\": \"E_DIRECTORY_ADVANCED_CONFIGURATION_MODIFIED\"\n },\n {\n \"event_name\": \"E_DIRECTORY_ADVANCED_CONFIGURATION_MODIFIED\",\n \"event_ts\": 1751019105416,\n \"user_id\": \"rahulauth\",\n \"user_name\": \"rahulauth\",\n \"connection_ip_address\": \"117.220.184.164\",\n \"connection_useragent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36\",\n \"directory_id\": \"6593c7653eeff32662cfef76\",\n \"directory_name\": \"DB for default community\",\n \"directory_type\": \"db\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"eventCategory\": \"AUDIT_LOG\",\n \"type\": \"event\",\n \"old_config_passwordPolicy\": {\n \"rules\": {\n \"min_enabled\": true,\n \"min_special_enabled\": true,\n \"min_numbers_enabled\": true,\n \"special_chars_allowed_enabled\": true,\n \"min_alpha_caps_enabled\": true,\n \"noUsername\": true,\n \"noUsername_enabled\": true,\n \"allowInRow_enabled\": true,\n \"min\": 8,\n \"min_special\": 1,\n \"min_numbers\": 1,\n \"special_chars_allowed\": \"!\\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~\",\n \"min_alpha_caps\": 1,\n \"allowInRow\": 3\n },\n \"authtype\": \"Fingerprint\",\n \"descriptions\": [\n \"Must contain 8 characters with at least one special character and one number.\"\n ],\n \"allowed\": true\n },\n \"new_config_passwordPolicy\": {\n \"rules\": {\n \"min_enabled\": true,\n \"min_special_enabled\": true,\n \"min_numbers_enabled\": true,\n \"special_chars_allowed_enabled\": true,\n \"min_alpha_caps_enabled\": true,\n \"noUsername\": true,\n \"noUsername_enabled\": true,\n \"allowInRow_enabled\": true,\n \"min\": 8,\n \"min_special\": 1,\n \"min_numbers\": 1,\n \"special_chars_allowed\": \"!\\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~\",\n \"min_alpha_caps\": 1,\n \"allowInRow\": 3\n },\n \"authtype\": \"Face\",\n \"allowed\": true,\n \"description\": \"Must contain 8 characters with at least one special character and one number.\"\n },\n \"event_id\": \"9a36c40d-ed6d-4410-abd1-ebc53898f172\",\n \"timestamp\": \"2025-06-27 10:11:45.416\",\n \"epoch_time\": \"1751019105\",\n \"eventName\": \"E_DIRECTORY_ADVANCED_CONFIGURATION_MODIFIED\"\n },\n {\n \"event_name\": \"E_DIRECTORY_ADVANCED_CONFIGURATION_MODIFIED\",\n \"event_ts\": 1751018188277,\n \"user_id\": \"rahulauth\",\n \"user_name\": \"rahulauth\",\n \"connection_ip_address\": \"117.220.184.164\",\n \"connection_useragent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36\",\n \"directory_id\": \"6593c7653eeff32662cfef76\",\n \"directory_name\": \"DB for default community\",\n \"directory_type\": \"db\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"eventCategory\": \"AUDIT_LOG\",\n \"type\": \"event\",\n \"old_config_passwordPolicy\": {\n \"rules\": {\n \"min_enabled\": true,\n \"min_special_enabled\": true,\n \"min_numbers_enabled\": true,\n \"special_chars_allowed_enabled\": true,\n \"min_alpha_caps_enabled\": true,\n \"noUsername\": true,\n \"noUsername_enabled\": true,\n \"allowInRow_enabled\": true,\n \"min\": 8,\n \"min_special\": 1,\n \"min_numbers\": 1,\n \"special_chars_allowed\": \"!\\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~\",\n \"min_alpha_caps\": 1,\n \"allowInRow\": 3\n },\n \"authtype\": \"Face\",\n \"descriptions\": [\n \"Must contain 8 characters with at least one special character and one number.\"\n ],\n \"allowed\": true\n },\n \"new_config_passwordPolicy\": {\n \"rules\": {\n \"min_enabled\": true,\n \"min_special_enabled\": true,\n \"min_numbers_enabled\": true,\n \"special_chars_allowed_enabled\": true,\n \"min_alpha_caps_enabled\": true,\n \"noUsername\": true,\n \"noUsername_enabled\": true,\n \"allowInRow_enabled\": true,\n \"min\": 8,\n \"min_special\": 1,\n \"min_numbers\": 1,\n \"special_chars_allowed\": \"!\\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~\",\n \"min_alpha_caps\": 1,\n \"allowInRow\": 3\n },\n \"authtype\": \"Fingerprint\",\n \"allowed\": true,\n \"description\": \"Must contain 8 characters with at least one special character and one number.\"\n },\n \"event_id\": \"347b264a-b993-4b2c-98af-72685a4a72a9\",\n \"timestamp\": \"2025-06-27 09:56:28.277\",\n \"epoch_time\": \"1751018188\",\n \"eventName\": \"E_DIRECTORY_ADVANCED_CONFIGURATION_MODIFIED\"\n },\n {\n \"event_name\": \"E_DIRECTORY_ADVANCED_CONFIGURATION_MODIFIED\",\n \"event_ts\": 1751018129803,\n \"user_id\": \"rahulauth\",\n \"user_name\": \"rahulauth\",\n \"connection_ip_address\": \"117.220.184.164\",\n \"connection_useragent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36\",\n \"directory_id\": \"6593c7653eeff32662cfef76\",\n \"directory_name\": \"DB for default community\",\n \"directory_type\": \"db\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"eventCategory\": \"AUDIT_LOG\",\n \"type\": \"event\",\n \"old_config_passwordPolicy\": {\n \"rules\": {\n \"min_enabled\": true,\n \"min_special_enabled\": true,\n \"min_numbers_enabled\": true,\n \"special_chars_allowed_enabled\": true,\n \"min_alpha_caps_enabled\": true,\n \"noUsername\": true,\n \"noUsername_enabled\": true,\n \"allowInRow_enabled\": true,\n \"min\": 8,\n \"min_special\": 1,\n \"min_numbers\": 1,\n \"special_chars_allowed\": \"!\\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~\",\n \"min_alpha_caps\": 1,\n \"allowInRow\": 3\n },\n \"authtype\": \"Fingerprint\",\n \"descriptions\": [\n \"Must contain 8 characters with at least one special character and one number.\"\n ],\n \"allowed\": true\n },\n \"new_config_passwordPolicy\": {\n \"rules\": {\n \"min_enabled\": true,\n \"min_special_enabled\": true,\n \"min_numbers_enabled\": true,\n \"special_chars_allowed_enabled\": true,\n \"min_alpha_caps_enabled\": true,\n \"noUsername\": true,\n \"noUsername_enabled\": true,\n \"allowInRow_enabled\": true,\n \"min\": 8,\n \"min_special\": 1,\n \"min_numbers\": 1,\n \"special_chars_allowed\": \"!\\\"#$%&'()*+,-./:;<=>?@[\\\\]^_`{|}~\",\n \"min_alpha_caps\": 1,\n \"allowInRow\": 3\n },\n \"authtype\": \"Face\",\n \"allowed\": true,\n \"description\": \"Must contain 8 characters with at least one special character and one number.\"\n },\n \"event_id\": \"d4232ecb-4dd1-4382-957e-ede84ec0846a\",\n \"timestamp\": \"2025-06-27 09:55:29.803\",\n \"epoch_time\": \"1751018129\",\n \"eventName\": \"E_DIRECTORY_ADVANCED_CONFIGURATION_MODIFIED\"\n }\n ]\n }\n}"},{"id":"02ff38e7-eaf0-41d0-b0b3-785a813bc239","name":"Bad/Missing License Key","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}","disabled":true},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 25,\r\n \"pIndex\": 0,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/audit_log","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","audit_log"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:05:18 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"79"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4f-hZ9DBhSdHAoeBMOBIGUyYXZC6Hk\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"This header should not be empty\",\n \"param\": \"licensekey\"\n }\n ]\n}"},{"id":"ba3c9512-237a-4d8a-92d3-1e6735eae7c1","name":"Incorrect From-To Dates","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 25,\r\n \"pIndex\": 0,\r\n \"from\": \"2026-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/audit_log","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","audit_log"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:05:53 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"92"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"5c-uocksalrVLR4bMCL79OLYmGBmFA\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"Field should be from current time to minus 90 days\",\n \"param\": \"from\"\n }\n ]\n}"}],"_postman_id":"70679183-dd29-40f4-9a33-b30054dcce95"},{"name":"Last Seen Report","event":[{"listen":"prerequest","script":{"id":"e82c6b2a-a5b3-42c4-8176-0a99e5fbf7ce","exec":["let publicKeyReportsUrl = pm.environment.get(\"client_api\") + \"/reports/publickeys\"\r","\r","fetchCommunityInfo(function() {\r"," fetchServerPublicKey(function (pk1) {\r"," pm.environment.set(\"client_public_key\", pk1);\r"," makeLicenseKey()\r"," makeRequestId()\r"," })\r"," })\r","\r","function fetchCommunityInfo(next) {\r"," let apiURL = pm.environment.get(\"client_api\")\r"," let url = apiURL + \"/api/r1/system/community_info/fetch\"\r"," let dns = apiURL.replace(\"https://\", \"\")\r","\r"," let payload = {\r"," dns: dns,\r"," communityName: pm.environment.get(\"client_community_name\")\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r"," let community = res.json().community\r"," let tenant = res.json().tenant\r"," pm.environment.set(\"communityId\", community.id);\r"," pm.environment.set(\"tenantId\", community.tenantid);\r"," pm.environment.set(\"client_tenant_tag\", tenant.tenanttag);\r"," pm.environment.set(\"root_tenant_tag\", tenant.tenanttag);\r"," next()\r"," })\r","}\r","\r","function fetchServerPublicKey(callback) {\r"," let url = publicKeyReportsUrl\r"," let tag = pm.environment.get(\"root_tenant_tag\")\r"," pm.sendRequest({\r"," url: url,\r"," method: 'GET',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'X-TenantTag': tag\r"," }\r"," }, function (err, res) {\r"," callback(res.json().publicKey)\r"," });\r","}\r","\r","function makeLicenseKey() {\r"," //clear\r"," pm.environment.set(\"enc_license_for_client\", \"\")\r"," var licenseKey = pm.environment.get(\"licenseKey\")\r"," ecdsa_helper(\"encrypt\", licenseKey, function(result) {\r"," pm.environment.set(\"enc_license_for_client\", result)\r"," })\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," pm.environment.set(\"requestid\", \"\")\r"," \r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let communityName = pm.environment.get(\"client_community_name\")\r"," let url = pm.environment.get(\"client_api\") + \"/reports/ecdsa_helper/\" + method;\r"," let privateKey = pm.environment.get(\"my_private_key\")\r","\r"," let payload = {\r"," \t method: method,\r"," \t publicKey: pm.environment.get(\"client_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr\r"," };\r","\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"e25fb7db-0add-4f76-8c26-6a420fef455a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"user_id\": \"rahulauth\",\r\n \"device_id\": \"4991d8a02a256d0e\",\r\n \"eventName\": \"E_LOGIN_SUCCEEDED\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/last_seen_report","description":"This is a POST request to retrieve the last seen report for a specific user in a community.
\nEndpoint:
\n{{client_api}}/reports/tenant/:tenantID/community/:communityID/last_seen_report\n\nRequest Body:
The request requires a JSON payload with the following parameters:
user_id (string): The unique identifier for the user.
device_id (string): The unique identifier for the device used by the user.
eventName (string): The name of the event being reported (e.g., login success).
Example Request Body:
\n{\n \"user_id\": \"rahulauth\",\n \"device_id\": \"4991d8a02a256d0e\",\n \"eventName\": \"E_LOGIN_SUCCEEDED\"\n}\n\n\nExpected Response:
The response will return a JSON object containing an array of data with the following fields:
data (array): An array of event records, each containing:
type (string): Type of the event.
event_ts (integer): Timestamp of the event.
version (string): Version of the event.
journey_id (string): Identifier for the journey.
session_id (string): Identifier for the session.
client_ip_address (string): IP address of the client.
caller_user_agent (string): User agent of the caller.
login_state (string): Current login state of the user.
user_id (string): User identifier.
user_status (string): Status of the user.
user_email (string): Email of the user.
user_firstname (string): First name of the user.
user_lastname (string): Last name of the user.
source_user_directory (string): Source user directory.
tenant_dns (string): DNS of the tenant.
tenant_tag (string): Tag of the tenant.
service_name (string): Name of the service.
server_ip (string): IP address of the server.
auth_method (string): Authentication method used.
device_id (string): Device identifier.
auth_device_os (string): Operating system of the authentication device.
auth_device_name (string): Name of the authentication device.
auth_device_app_name (string): Application name on the authentication device.
auth_device_app_version (string): Version of the application on the authentication device.
auth_device_ip_address (string): IP address of the authentication device.
auth_device_latitude (float): Latitude of the authentication device.
auth_device_longitude (float): Longitude of the authentication device.
moduleId (string): Identifier for the module.
factsSubmitted (object): Details of the submitted facts.
authFactor (string): Authentication factor used.
sessionUrl (string): URL for the session.
authJourneysMatched (array): List of matched authentication journeys.
user_role (string): Role of the user.
event_id (string): Identifier for the event.
timestamp (string): Timestamp of the response.
epoch_time (integer): Epoch time of the event.
tenant_id (string): Identifier for the tenant.
community_id (string): Identifier for the community.
eventName (string): Name of the event.
Ensure that the necessary headers are included in the request, particularly for authorization.
\nThe request and response structures may vary based on the specific tenant and community configurations.
\nTenant ID
\n","type":"text/plain"},"type":"any","value":"","key":"tenantID"},{"id":"7cd920f1-1012-47db-9d21-9d38436bc5b4","description":{"content":"Community ID
\n","type":"text/plain"},"type":"any","value":"","key":"communityID"}]}},"response":[{"id":"3f59292c-adff-4a19-802e-eef96ce2ea2c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"user_id\": \"rahulauth\",\r\n \"device_id\": \"4991d8a02a256d0e\",\r\n \"eventName\": \"E_LOGIN_SUCCEEDED\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/last_seen_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","last_seen_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:14:34 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"7c9-OFaUtg5eW405Od732SL63cqI8IE\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n \"data\": [\n {\n \"type\": \"event\",\n \"event_ts\": 1751022167293,\n \"version\": \"v1\",\n \"journey_id\": \"e5b46a18-ec28-4231-bdb4-481e6699ea67\",\n \"session_id\": \"d3f4ce55-e67b-4c0c-bf7b-a0332cbb605c\",\n \"client_ip_address\": \"117.220.184.164\",\n \"caller_user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36\",\n \"login_state\": \"SUCCESS\",\n \"user_id\": \"rahulauth\",\n \"user_status\": \"active\",\n \"user_email\": \"rahul.saini+1230@1kosmos.com\",\n \"user_firstname\": \"rahul\",\n \"user_lastname\": \"Auth\",\n \"source_user_directory\": \"db\",\n \"tenant_dns\": \"https://1k-uat.1kosmos.net\",\n \"tenant_tag\": \"1kosmos\",\n \"service_name\": \"athena\",\n \"server_ip\": \"10.8.29.162\",\n \"auth_method\": \"push\",\n \"device_id\": \"4991d8a02a256d0e\",\n \"auth_device_os\": \"android\",\n \"auth_device_name\": \"Rahul's Samsung A73\",\n \"auth_device_app_name\": \"1Kosmos\",\n \"auth_device_app_version\": \"1.20.40.685AB0BF\",\n \"auth_device_ip_address\": \"117.220.184.164\",\n \"auth_device_latitude\": 29.16525183,\n \"auth_device_longitude\": 78.4822457,\n \"moduleId\": \"6593c7653eeff32662cfef76\",\n \"factsSubmitted\": {\n \"applicationId\": \"adminx\",\n \"machine_id\": \"72cbaa22-873c-424e-b6a4-9b7d14979b6e\",\n \"machine_name\": \"72cbaa22-873c-424e-b6a4-9b7d14979b6e\",\n \"machine_domain\": \"notavailable\",\n \"machine_os\": \"\",\n \"machine_os_version\": \"\",\n \"machine_mac_addr\": \"\",\n \"machine_ip\": \"\",\n \"groups\": [],\n \"userTrustedLocations\": [],\n \"mobileLocation\": {\n \"lat\": 29.16525183,\n \"lon\": 78.4822457\n },\n \"authModuleId\": \"6593c7653eeff32662cfef76\",\n \"authenticationMethods\": [\n \"uwl\"\n ],\n \"username\": \"rahulauth\",\n \"machine_user\": \"rahulauth@72cbaa22-873c-424e-b6a4-9b7d14979b6e\",\n \"IP\": \"117.220.184.164\"\n },\n \"authFactor\": \"LiveID\",\n \"sessionUrl\": \"https://1k-uat.1kosmos.net/sessions/session/05e0aa6f-30dd-4fe4-b1ac-11eedc36e69e\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"user_role\": \"community-admin\",\n \"event_id\": \"726ad726-e803-41bd-bffd-9e3b04869a2d\",\n \"timestamp\": \"2025-06-27 11:02:47.318\",\n \"epoch_time\": 1751022167,\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"eventName\": \"E_LOGIN_SUCCEEDED\"\n }\n ]\n}"},{"id":"ee3c2415-9109-485d-9bd7-a8f6a0b7bf5f","name":"Incorrect From-To Dates","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 25,\r\n \"pIndex\": 0,\r\n \"from\": \"2026-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/audit_log","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","audit_log"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:05:53 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"92"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"5c-uocksalrVLR4bMCL79OLYmGBmFA\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"Field should be from current time to minus 90 days\",\n \"param\": \"from\"\n }\n ]\n}"},{"id":"5172c247-97c0-4daa-bba3-eda6b1a8ca25","name":"Bad/Missing License Key","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}","disabled":true},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"user_id\": \"rahulauth\",\r\n \"device_id\": \"4991d8a02a256d0e\",\r\n \"eventName\": \"E_LOGIN_SUCCEEDED\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/last_seen_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","last_seen_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:15:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"79"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4f-hZ9DBhSdHAoeBMOBIGUyYXZC6Hk\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"This header should not be empty\",\n \"param\": \"licensekey\"\n }\n ]\n}"},{"id":"8baba433-7159-4692-ad34-daab684576af","name":"Missing Required Parameters","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"eventName\": \"E_LOGIN_SUCCEEDED\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/last_seen_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","last_seen_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:15:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"140"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"8c-OBZCTEEZnuC21V+JxzKH9WnC5XY\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"This field should not be empty\",\n \"param\": \"user_id\"\n },\n {\n \"message\": \"This field should not be empty\",\n \"param\": \"device_id\"\n }\n ]\n}"}],"_postman_id":"e25fb7db-0add-4f76-8c26-6a420fef455a"},{"name":"Login Activity Report","event":[{"listen":"prerequest","script":{"id":"858e4d64-d3fb-4eae-ae6f-0ce1cd5e4cca","exec":["let publicKeyReportsUrl = pm.environment.get(\"client_api\") + \"/reports/publickeys\"\r","\r","fetchCommunityInfo(function() {\r"," fetchServerPublicKey(function (pk1) {\r"," pm.environment.set(\"client_public_key\", pk1);\r"," makeLicenseKey()\r"," makeRequestId()\r"," })\r"," })\r","\r","function fetchCommunityInfo(next) {\r"," let apiURL = pm.environment.get(\"client_api\")\r"," let url = apiURL + \"/api/r1/system/community_info/fetch\"\r"," let dns = apiURL.replace(\"https://\", \"\")\r","\r"," let payload = {\r"," dns: dns,\r"," communityName: pm.environment.get(\"client_community_name\")\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r"," let community = res.json().community\r"," let tenant = res.json().tenant\r"," pm.environment.set(\"communityId\", community.id);\r"," pm.environment.set(\"tenantId\", community.tenantid);\r"," pm.environment.set(\"client_tenant_tag\", tenant.tenanttag);\r"," pm.environment.set(\"root_tenant_tag\", tenant.tenanttag);\r"," next()\r"," })\r","}\r","\r","function fetchServerPublicKey(callback) {\r"," let url = publicKeyReportsUrl\r"," let tag = pm.environment.get(\"root_tenant_tag\")\r"," pm.sendRequest({\r"," url: url,\r"," method: 'GET',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'X-TenantTag': tag\r"," }\r"," }, function (err, res) {\r"," callback(res.json().publicKey)\r"," });\r","}\r","\r","function makeLicenseKey() {\r"," //clear\r"," pm.environment.set(\"enc_license_for_client\", \"\")\r"," var licenseKey = pm.environment.get(\"licenseKey\")\r"," ecdsa_helper(\"encrypt\", licenseKey, function(result) {\r"," pm.environment.set(\"enc_license_for_client\", result)\r"," })\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," pm.environment.set(\"requestid\", \"\")\r"," \r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let communityName = pm.environment.get(\"client_community_name\")\r"," let url = pm.environment.get(\"client_api\") + \"/reports/ecdsa_helper/\" + method;\r"," let privateKey = pm.environment.get(\"my_private_key\")\r","\r"," let payload = {\r"," \t method: method,\r"," \t publicKey: pm.environment.get(\"client_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr\r"," };\r","\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"c5c2a107-c751-4514-96a6-3e519226c72d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 10,\r\n \"pIndex\": 0,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\",\r\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/login_activity_report","description":"This is an HTTP POST request to the endpoint {{client_api}}/reports/tenant/:tenantID/community/:communityID/login_activity_report.
The request body should be in JSON format and includes the following parameters:
\npSize (integer): The number of records to return per page.
\npIndex (integer): The page index for pagination.
\nfrom (string): The start date and time for the report in the format YYYY-MM-DD HH:mm:ss.SSS.
to (string): The end date and time for the report in the format YYYY-MM-DD HH:mm:ss.SSS.
eventName (string): The name of the event to filter the report.
\n{\n \"pSize\": 10,\n \"pIndex\": 0,\n \"from\": \"2025-05-01 00:00:00.000\",\n \"to\": \"2026-06-01 00:00:00.000\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n}\n\n\nThe response will be in JSON format and will include the following structure:
\npage: An object containing pagination details.
\ntotal (integer): Total number of records available.
\npSize (integer): The size of the page.
\npIndex (integer): The current page index.
\ndata: An object containing the activity and login events.
\nactivityEvents: An array of objects representing activity events, each with various attributes including event_name, event_ts, user_id, etc.
loginEvents: An array of objects representing login events, each with attributes including type, event_ts, user_id, etc.
This request is designed to retrieve login activity reports for a specified tenant and community within a defined date range.
\n","urlObject":{"path":["reports","tenant",":tenantID","community",":communityID","login_activity_report"],"host":["{{client_api}}"],"query":[],"variable":[{"id":"210c8057-a1fe-44f2-9150-0e9f76d8d8f2","description":{"content":"Tenant ID
\n","type":"text/plain"},"type":"any","value":"","key":"tenantID"},{"id":"e38b9109-e33c-4405-b5d6-f0f768f59de5","description":{"content":"Community ID
\n","type":"text/plain"},"type":"any","value":"","key":"communityID"}]}},"response":[{"id":"a1c3b0c0-3c84-4ea8-b348-95f2006d31cb","name":"Success","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 10,\r\n \"pIndex\": 0,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\",\r\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/login_activity_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","login_activity_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:18:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"2da4-88n0ssICXU9C8IMh8t5DNJjHWVs\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n \"page\": {\n \"total\": 4,\n \"pSize\": 10,\n \"pIndex\": 0\n },\n \"data\": {\n \"activityEvents\": [\n {\n \"event_name\": \"E_SP_REDIRECT_SUCCEEDED\",\n \"event_ts\": 1751206568534,\n \"version\": \"v1\",\n \"journey_id\": \"47d5f941-608c-4464-80f9-92e32347803d\",\n \"session_id\": \"a73a8d5f-10ef-447b-97bf-f6e0495340b3\",\n \"client_ip_address\": \"213.174.29.76\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36\",\n \"user_id\": \"john.doe@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"john.doe@1kosmos.com\",\n \"user_firstname\": \"john\",\n \"user_lastname\": \"doe\",\n \"source_user_directory\": \"db\",\n \"source_user_directory_name\": \"DB for default community\",\n \"caller_ip\": \"213.174.29.76\",\n \"tenant_dns\": \"1k-uat.1kosmos.net\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"Mac OS\",\n \"auth_device_app_name\": \"Chrome\",\n \"auth_device_app_version\": \"137.0.0.0\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"country\": \"Ukraine\",\n \"region\": \"Poltava Oblast\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"type\": \"event\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"aliasUsed\": \"unknown\",\n \"event_id\": \"f64c7fc8-8ae5-48d3-bc62-70b09a312a37\",\n \"timestamp\": \"2025-06-29 14:16:08.534\",\n \"epoch_time\": \"1751206568\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n },\n {\n \"event_name\": \"E_SP_REDIRECT_SUCCEEDED\",\n \"event_ts\": 1751203011828,\n \"version\": \"v1\",\n \"journey_id\": \"97dc6371-03a2-4ef0-8b3f-31ccea6d40ff\",\n \"session_id\": \"0b2b9ce7-1d74-4057-a0a4-ba507dae4d91\",\n \"client_ip_address\": \"213.174.29.76\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15\",\n \"user_id\": \"john.doe@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"john.doe@1kosmos.com\",\n \"user_firstname\": \"john\",\n \"user_lastname\": \"doe\",\n \"source_user_directory\": \"db\",\n \"source_user_directory_name\": \"DB for default community\",\n \"caller_ip\": \"213.174.29.76\",\n \"tenant_dns\": \"1k-uat.1kosmos.net\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"Mac OS\",\n \"auth_device_app_name\": \"Safari\",\n \"auth_device_app_version\": \"18.5\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"country\": \"Ukraine\",\n \"region\": \"Poltava Oblast\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"type\": \"event\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"aliasUsed\": \"unknown\",\n \"event_id\": \"baa8a5ce-f1a7-4eee-8156-1e177f9ae365\",\n \"timestamp\": \"2025-06-29 13:16:51.828\",\n \"epoch_time\": \"1751203011\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n },\n {\n \"event_name\": \"E_SP_REDIRECT_SUCCEEDED\",\n \"event_ts\": 1747298595672,\n \"version\": \"v1\",\n \"journey_id\": \"883b6133-d473-4021-9da4-77b11f59e3d5\",\n \"session_id\": \"b4e42230-ad93-47a7-a193-6cd52e24e150\",\n \"client_ip_address\": \"3.231.117.156\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0\",\n \"user_id\": \"john.doe@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"john.doe@1kosmos.com\",\n \"user_firstname\": \"john\",\n \"user_lastname\": \"doe\",\n \"source_user_directory\": \"db\",\n \"source_user_directory_name\": \"DB for default community\",\n \"caller_ip\": \"3.231.117.156\",\n \"tenant_dns\": \"1k-uat.1kosmos.net\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"Mac OS\",\n \"auth_device_app_name\": \"Edge\",\n \"auth_device_app_version\": \"136.0.0.0\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"country\": \"United States\",\n \"region\": \"Virginia\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"type\": \"event\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"aliasUsed\": \"unknown\",\n \"event_id\": \"da65e059-2542-4283-a6b3-11f6a94d187d\",\n \"timestamp\": \"2025-05-15 08:43:15.672\",\n \"epoch_time\": \"1747298595\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n },\n {\n \"event_name\": \"E_SP_REDIRECT_SUCCEEDED\",\n \"event_ts\": 1747297942920,\n \"version\": \"v1\",\n \"journey_id\": \"883b6133-d473-4021-9da4-77b11f59e3d5\",\n \"session_id\": \"b4e42230-ad93-47a7-a193-6cd52e24e150\",\n \"client_ip_address\": \"3.231.117.156\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0\",\n \"user_id\": \"john.doe@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"john.doe@1kosmos.com\",\n \"user_firstname\": \"john\",\n \"user_lastname\": \"doe\",\n \"source_user_directory\": \"db\",\n \"source_user_directory_name\": \"DB for default community\",\n \"caller_ip\": \"3.231.117.156\",\n \"tenant_dns\": \"1k-uat.1kosmos.net\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"Mac OS\",\n \"auth_device_app_name\": \"Edge\",\n \"auth_device_app_version\": \"136.0.0.0\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"country\": \"United States\",\n \"region\": \"Virginia\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"type\": \"event\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"aliasUsed\": \"unknown\",\n \"event_id\": \"be926b44-1da0-4859-8a88-a38c3110a801\",\n \"timestamp\": \"2025-05-15 08:32:22.920\",\n \"epoch_time\": \"1747297942\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n }\n ],\n \"loginEvents\": [\n {\n \"0b2b9ce7-1d74-4057-a0a4-ba507dae4d91\": {\n \"type\": \"event\",\n \"event_ts\": 1751202708130,\n \"version\": \"v1\",\n \"journey_id\": \"97dc6371-03a2-4ef0-8b3f-31ccea6d40ff\",\n \"session_id\": \"0b2b9ce7-1d74-4057-a0a4-ba507dae4d91\",\n \"client_ip_address\": \"213.174.29.76\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15\",\n \"login_state\": \"SUCCESS\",\n \"user_id\": \"john.doe@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"john.doe@1kosmos.com\",\n \"user_firstname\": \"john\",\n \"user_lastname\": \"doe\",\n \"source_user_directory\": \"db\",\n \"tenant_dns\": \"https://1k-uat.1kosmos.net\",\n \"tenant_tag\": \"1kosmos\",\n \"service_name\": \"athena\",\n \"server_ip\": \"10.8.29.162\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"none\",\n \"auth_device_name\": \"not available\",\n \"auth_device_app_name\": \"not available\",\n \"auth_device_app_version\": \"not available\",\n \"auth_device_latitude\": 0,\n \"auth_device_longitude\": 0,\n \"moduleId\": \"6593c7653eeff32662cfef76\",\n \"otp_type\": \"user-generated\",\n \"factsSubmitted\": {\n \"applicationId\": \"679b39e07ce125a22a6ce4ff\",\n \"machine_id\": \"C02G31S6Q05Q\",\n \"machine_name\": \"john-doe-DESKTOP0203\",\n \"machine_domain\": \"john-doe-DESKTOP0203\",\n \"machine_os\": \"macOS\",\n \"machine_os_version\": \"15.5.0\",\n \"machine_mac_addr\": [\n \"ae:61:c9:dc:35:67\",\n \"ae:61:c9:dc:35:68\",\n \"80:3f:5d:fd:fd:22\",\n \"36:3e:50:1c:95:80\",\n \"3c:06:30:1f:0c:9e\",\n \"36:3e:50:1c:95:80\",\n \"36:3e:50:1c:95:84\"\n ],\n \"machine_ip\": [\n \"192.168.0.216\"\n ],\n \"agent_version\": \"1.1.1.0.67E6D07A\",\n \"groups\": [],\n \"userTrustedLocations\": [],\n \"authModuleId\": \"6593c7653eeff32662cfef76\",\n \"authenticationMethods\": [\n \"password\",\n \"otp\"\n ],\n \"username\": \"john.doe@1kosmos.com\",\n \"machine_user\": \"john.doe@1kosmos.com@john-doe-DESKTOP0203\",\n \"IP\": \"213.174.29.76\"\n },\n \"authFactor\": \"\",\n \"sessionUrl\": \"\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"user_role\": \"community-admin\",\n \"event_id\": \"4c640aaa-5e6f-404d-b0ce-76c33952c535\",\n \"timestamp\": \"2025-06-29 13:11:48.130\",\n \"epoch_time\": \"1751202708\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"eventName\": \"E_LOGIN_SUCCEEDED\"\n }\n },\n {\n \"a73a8d5f-10ef-447b-97bf-f6e0495340b3\": {\n \"type\": \"event\",\n \"event_ts\": 1751202898170,\n \"version\": \"v1\",\n \"journey_id\": \"56233866-9cf4-4390-84c3-0814fc0d89da\",\n \"session_id\": \"a73a8d5f-10ef-447b-97bf-f6e0495340b3\",\n \"client_ip_address\": \"213.174.29.76\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36\",\n \"login_state\": \"SUCCESS\",\n \"user_id\": \"john.doe@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"john.doe@1kosmos.com\",\n \"user_firstname\": \"john\",\n \"user_lastname\": \"doe\",\n \"source_user_directory\": \"db\",\n \"tenant_dns\": \"https://1k-uat.1kosmos.net\",\n \"tenant_tag\": \"1kosmos\",\n \"service_name\": \"athena\",\n \"server_ip\": \"10.8.29.162\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"none\",\n \"auth_device_name\": \"not available\",\n \"auth_device_app_name\": \"not available\",\n \"auth_device_app_version\": \"not available\",\n \"auth_device_latitude\": 0,\n \"auth_device_longitude\": 0,\n \"moduleId\": \"6593c7653eeff32662cfef76\",\n \"otp_type\": \"user-generated\",\n \"factsSubmitted\": {\n \"applicationId\": \"adminx\",\n \"machine_id\": \"C02G31S6Q05Q\",\n \"machine_name\": \"john-doe-DESKTOP0203\",\n \"machine_domain\": \"john-doe-DESKTOP0203\",\n \"machine_os\": \"macOS\",\n \"machine_os_version\": \"15.5.0\",\n \"machine_mac_addr\": [\n \"ae:61:c9:dc:35:67\",\n \"ae:61:c9:dc:35:68\",\n \"80:3f:5d:fd:fd:22\",\n \"36:3e:50:1c:95:80\",\n \"3c:06:30:1f:0c:9e\",\n \"36:3e:50:1c:95:80\",\n \"36:3e:50:1c:95:84\"\n ],\n \"machine_ip\": [\n \"192.168.0.216\"\n ],\n \"agent_version\": \"1.1.1.0.67E6D07A\",\n \"groups\": [],\n \"userTrustedLocations\": [],\n \"authModuleId\": \"6593c7653eeff32662cfef76\",\n \"authenticationMethods\": [\n \"password\",\n \"otp\"\n ],\n \"username\": \"john.doe@1kosmos.com\",\n \"machine_user\": \"john.doe@1kosmos.com@john-doe-DESKTOP0203\",\n \"IP\": \"213.174.29.76\"\n },\n \"authFactor\": \"\",\n \"sessionUrl\": \"\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"user_role\": \"community-admin\",\n \"event_id\": \"93fa8d81-50a9-470f-b21b-68f2878bbf90\",\n \"timestamp\": \"2025-06-29 13:14:58.170\",\n \"epoch_time\": \"1751202898\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"eventName\": \"E_LOGIN_SUCCEEDED\"\n }\n },\n {\n \"b4e42230-ad93-47a7-a193-6cd52e24e150\": {\n \"type\": \"event\",\n \"event_ts\": 1747297942350,\n \"version\": \"v1\",\n \"journey_id\": \"883b6133-d473-4021-9da4-77b11f59e3d5\",\n \"session_id\": \"b4e42230-ad93-47a7-a193-6cd52e24e150\",\n \"client_ip_address\": \"3.231.117.156\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0\",\n \"login_state\": \"SUCCESS\",\n \"user_id\": \"john.doe@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"john.doe@1kosmos.com\",\n \"user_firstname\": \"john\",\n \"user_lastname\": \"doe\",\n \"source_user_directory\": \"db\",\n \"tenant_dns\": \"https://1k-uat.1kosmos.net\",\n \"tenant_tag\": \"1kosmos\",\n \"service_name\": \"athena\",\n \"server_ip\": \"10.8.92.57\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"none\",\n \"auth_device_name\": \"not available\",\n \"auth_device_app_name\": \"not available\",\n \"auth_device_app_version\": \"not available\",\n \"auth_device_latitude\": 0,\n \"auth_device_longitude\": 0,\n \"moduleId\": \"6593c7653eeff32662cfef76\",\n \"otp_type\": \"user-generated\",\n \"factsSubmitted\": {\n \"applicationId\": \"679b39e07ce125a22a6ce4ff\",\n \"machine_id\": \"C02G31S6Q05Q\",\n \"machine_name\": \"john-doe-DESKTOP0203\",\n \"machine_domain\": \"john-doe-DESKTOP0203\",\n \"machine_os\": \"macOS\",\n \"machine_os_version\": \"15.4.1\",\n \"machine_mac_addr\": [\n \"ae:61:c9:dc:35:67\",\n \"ae:61:c9:dc:35:68\",\n \"80:3f:5d:fd:fd:22\",\n \"36:3e:50:1c:95:80\",\n \"3c:06:30:1f:0c:9e\",\n \"36:3e:50:1c:95:80\",\n \"36:3e:50:1c:95:84\"\n ],\n \"machine_ip\": [\n \"192.168.0.216\"\n ],\n \"agent_version\": \"1.1.1.0.67E6D07A\",\n \"groups\": [],\n \"userTrustedLocations\": [],\n \"authModuleId\": \"6593c7653eeff32662cfef76\",\n \"authenticationMethods\": [\n \"password\",\n \"otp\"\n ],\n \"username\": \"john.doe@1kosmos.com\",\n \"machine_user\": \"john.doe@1kosmos.com@john-doe-DESKTOP0203\",\n \"IP\": \"3.231.117.156\"\n },\n \"authFactor\": \"\",\n \"sessionUrl\": \"\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"user_role\": \"community-admin\",\n \"event_id\": \"b352eef6-2efb-4f16-ae20-45c2e4e5db17\",\n \"timestamp\": \"2025-05-15 08:32:22.350\",\n \"epoch_time\": \"1747297942\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"eventName\": \"E_LOGIN_SUCCEEDED\"\n }\n }\n ]\n }\n}"},{"id":"70b04f7b-4dad-464f-9c5e-59e3ffb5e73c","name":"Bad/Missing License Key","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}","disabled":true},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 10,\r\n \"pIndex\": 0,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\",\r\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/login_activity_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","login_activity_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:18:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"79"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4f-hZ9DBhSdHAoeBMOBIGUyYXZC6Hk\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"This header should not be empty\",\n \"param\": \"licensekey\"\n }\n ]\n}"},{"id":"b1d07c8d-09f8-4c72-bdc9-906e8f8df4cc","name":"Incorrect From-To Dates","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 10,\r\n \"pIndex\": 0,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2021-06-01 00:00:00.000\",\r\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/login_activity_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","login_activity_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:18:58 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"70"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"46-MdQ9ZvQDqdNa9CW1QByVU+S3eCo\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"Date 'to' must be after 'from'\",\n \"param\": \"to\"\n }\n ]\n}"}],"_postman_id":"c5c2a107-c751-4514-96a6-3e519226c72d"},{"name":"Passwordless Login Activity Report","event":[{"listen":"prerequest","script":{"id":"a1551439-ab5a-42d9-a538-8b0444fd9983","exec":["let publicKeyReportsUrl = pm.environment.get(\"client_api\") + \"/reports/publickeys\"\r","\r","fetchCommunityInfo(function() {\r"," fetchServerPublicKey(function (pk1) {\r"," pm.environment.set(\"client_public_key\", pk1);\r"," makeLicenseKey()\r"," makeRequestId()\r"," })\r"," })\r","\r","function fetchCommunityInfo(next) {\r"," let apiURL = pm.environment.get(\"client_api\")\r"," let url = apiURL + \"/api/r1/system/community_info/fetch\"\r"," let dns = apiURL.replace(\"https://\", \"\")\r","\r"," let payload = {\r"," dns: dns,\r"," communityName: pm.environment.get(\"client_community_name\")\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r"," let community = res.json().community\r"," let tenant = res.json().tenant\r"," pm.environment.set(\"communityId\", community.id);\r"," pm.environment.set(\"tenantId\", community.tenantid);\r"," pm.environment.set(\"client_tenant_tag\", tenant.tenanttag);\r"," pm.environment.set(\"root_tenant_tag\", tenant.tenanttag);\r"," next()\r"," })\r","}\r","\r","function fetchServerPublicKey(callback) {\r"," let url = publicKeyReportsUrl\r"," let tag = pm.environment.get(\"root_tenant_tag\")\r"," pm.sendRequest({\r"," url: url,\r"," method: 'GET',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'X-TenantTag': tag\r"," }\r"," }, function (err, res) {\r"," callback(res.json().publicKey)\r"," });\r","}\r","\r","function makeLicenseKey() {\r"," //clear\r"," pm.environment.set(\"enc_license_for_client\", \"\")\r"," var licenseKey = pm.environment.get(\"licenseKey\")\r"," ecdsa_helper(\"encrypt\", licenseKey, function(result) {\r"," pm.environment.set(\"enc_license_for_client\", result)\r"," })\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," pm.environment.set(\"requestid\", \"\")\r"," \r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let communityName = pm.environment.get(\"client_community_name\")\r"," let url = pm.environment.get(\"client_api\") + \"/reports/ecdsa_helper/\" + method;\r"," let privateKey = pm.environment.get(\"my_private_key\")\r","\r"," let payload = {\r"," \t method: method,\r"," \t publicKey: pm.environment.get(\"client_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr\r"," };\r","\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"630b487c-5349-4a0a-a61b-0e77cd35864c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 10,\r\n \"pIndex\": 0,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\",\r\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/passwordless_login_activity_report","description":"This request is used to retrieve a report on passwordless login activities for a specific tenant and community. It allows the user to specify a date range and an event name to filter the results.
\nPOST {{client_api}}/reports/tenant/:tenantID/community/:communityID/passwordless_login_activity_report
The request body must be in JSON format and includes the following parameters:
\npSize (number): The number of records to return per page.
\npIndex (number): The index of the page to return.
\nfrom (string): The start date and time for the report in the format YYYY-MM-DD HH:MM:SS.SSS.
to (string): The end date and time for the report in the format YYYY-MM-DD HH:MM:SS.SSS.
eventName (string): The name of the event to filter the report.
\n{\n \"pSize\": 10,\n \"pIndex\": 0,\n \"from\": \"2025-05-01 00:00:00.000\",\n \"to\": \"2026-06-01 00:00:00.000\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n}\n\n\nThe response will be in JSON format and contains the following structure:
\npage: An object that provides pagination information.
\ntotal (number): The total number of records available.
\npSize (number): The size of the page.
\npIndex (number): The index of the current page.
\ndata: An array of objects, each representing a login event with the following fields:
\nevent_name (string): The name of the event.
\nevent_ts (number): The timestamp of the event.
\nversion (string): The version of the event.
\njourney_id (string): The ID of the user journey.
\nsession_id (string): The ID of the session.
\nclient_ip_address (string): The IP address of the client.
\ncaller_user_agent (string): The user agent of the caller.
\nuser_id (string): The ID of the user.
\nuser_status (string): The status of the user.
\nuser_email (string): The email of the user.
\nuser_firstname (string): The first name of the user.
\nuser_lastname (string): The last name of the user.
\nsource_user_directory (string): The source user directory.
\nsource_user_directory_name (string): The name of the source user directory.
\ncaller_ip (string): The IP address of the caller.
\ntenant_dns (string): The DNS of the tenant.
\nauth_method (string): The authentication method used.
\nauth_device_os (string): The operating system of the device used for authentication.
\nauth_device_app_name (string): The name of the application used for authentication.
\nauth_device_app_version (string): The version of the application used for authentication.
\nsp_type (string): The type of service provider.
\nsp_name (string): The name of the service provider.
\nsp_id (string): The ID of the service provider.
\ncountry (string): The country of the user.
\nregion (string): The region of the user.
\ntenant_id (string): The ID of the tenant.
\ncommunity_id (string): The ID of the community.
\ntype (string): The type of event.
\nauthJourneysMatched (array): An array of matched authentication journeys, each containing:
\nid (string): The ID of the journey.
\nname (string): The name of the journey.
\naliasUsed (string): The alias used for the event.
\nevent_id (string): The ID of the event.
\ntimestamp (string): The timestamp of the event.
\nepoch_time (number): The epoch time of the event.
\neventName (string): The name of the event.
\nThis structure allows for detailed reporting on passwordless login activities, enabling analysis and insights into user interactions.
\n","urlObject":{"path":["reports","tenant",":tenantID","community",":communityID","passwordless_login_activity_report"],"host":["{{client_api}}"],"query":[],"variable":[{"id":"cd9d564c-fd04-42f7-8619-525a474dbb20","description":{"content":"Tenant ID
\n","type":"text/plain"},"type":"any","value":"","key":"tenantID"},{"id":"83576f79-a3c9-46f4-9c3b-36f9d8abecd0","description":{"content":"Community ID
\n","type":"text/plain"},"type":"any","value":"","key":"communityID"}]}},"response":[{"id":"2bbe8b9f-7631-4c7b-89b9-512b1bd96060","name":"Success","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}"},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 10,\r\n \"pIndex\": 0,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\",\r\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/passwordless_login_activity_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","passwordless_login_activity_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:22:18 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"1562-4MCGmfu9yhrADAcOo+w30y3MhR0\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n \"page\": {\n \"total\": 4,\n \"pSize\": 10,\n \"pIndex\": 0\n },\n \"data\": [\n {\n \"event_name\": \"E_SP_REDIRECT_SUCCEEDED\",\n \"event_ts\": 1751206568534,\n \"version\": \"v1\",\n \"journey_id\": \"47d5f941-608c-4464-80f9-92e32347803d\",\n \"session_id\": \"a73a8d5f-10ef-447b-97bf-f6e0495340b3\",\n \"client_ip_address\": \"213.174.29.76\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36\",\n \"user_id\": \"john.doe@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"john.doe@1kosmos.com\",\n \"user_firstname\": \"john\",\n \"user_lastname\": \"doe\",\n \"source_user_directory\": \"db\",\n \"source_user_directory_name\": \"DB for default community\",\n \"caller_ip\": \"213.174.29.76\",\n \"tenant_dns\": \"1k-uat.1kosmos.net\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"Mac OS\",\n \"auth_device_app_name\": \"Chrome\",\n \"auth_device_app_version\": \"137.0.0.0\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"country\": \"Ukraine\",\n \"region\": \"Poltava Oblast\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"type\": \"event\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"aliasUsed\": \"unknown\",\n \"event_id\": \"f64c7fc8-8ae5-48d3-bc62-70b09a312a37\",\n \"timestamp\": \"2025-06-29 14:16:08.534\",\n \"epoch_time\": \"1751206568\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n },\n {\n \"event_name\": \"E_SP_REDIRECT_SUCCEEDED\",\n \"event_ts\": 1751203011828,\n \"version\": \"v1\",\n \"journey_id\": \"97dc6371-03a2-4ef0-8b3f-31ccea6d40ff\",\n \"session_id\": \"0b2b9ce7-1d74-4057-a0a4-ba507dae4d91\",\n \"client_ip_address\": \"213.174.29.76\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15\",\n \"user_id\": \"john.doe@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"john.doe@1kosmos.com\",\n \"user_firstname\": \"john\",\n \"user_lastname\": \"doe\",\n \"source_user_directory\": \"db\",\n \"source_user_directory_name\": \"DB for default community\",\n \"caller_ip\": \"213.174.29.76\",\n \"tenant_dns\": \"1k-uat.1kosmos.net\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"Mac OS\",\n \"auth_device_app_name\": \"Safari\",\n \"auth_device_app_version\": \"18.5\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"country\": \"Ukraine\",\n \"region\": \"Poltava Oblast\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"type\": \"event\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"aliasUsed\": \"unknown\",\n \"event_id\": \"baa8a5ce-f1a7-4eee-8156-1e177f9ae365\",\n \"timestamp\": \"2025-06-29 13:16:51.828\",\n \"epoch_time\": \"1751203011\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n },\n {\n \"event_name\": \"E_SP_REDIRECT_SUCCEEDED\",\n \"event_ts\": 1747298595672,\n \"version\": \"v1\",\n \"journey_id\": \"883b6133-d473-4021-9da4-77b11f59e3d5\",\n \"session_id\": \"b4e42230-ad93-47a7-a193-6cd52e24e150\",\n \"client_ip_address\": \"3.231.117.156\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0\",\n \"user_id\": \"john.doe@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"john.doe@1kosmos.com\",\n \"user_firstname\": \"john\",\n \"user_lastname\": \"doe\",\n \"source_user_directory\": \"db\",\n \"source_user_directory_name\": \"DB for default community\",\n \"caller_ip\": \"3.231.117.156\",\n \"tenant_dns\": \"1k-uat.1kosmos.net\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"Mac OS\",\n \"auth_device_app_name\": \"Edge\",\n \"auth_device_app_version\": \"136.0.0.0\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"country\": \"United States\",\n \"region\": \"Virginia\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"type\": \"event\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"aliasUsed\": \"unknown\",\n \"event_id\": \"da65e059-2542-4283-a6b3-11f6a94d187d\",\n \"timestamp\": \"2025-05-15 08:43:15.672\",\n \"epoch_time\": \"1747298595\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n },\n {\n \"event_name\": \"E_SP_REDIRECT_SUCCEEDED\",\n \"event_ts\": 1747297942920,\n \"version\": \"v1\",\n \"journey_id\": \"883b6133-d473-4021-9da4-77b11f59e3d5\",\n \"session_id\": \"b4e42230-ad93-47a7-a193-6cd52e24e150\",\n \"client_ip_address\": \"3.231.117.156\",\n \"caller_user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0\",\n \"user_id\": \"john.doe@1kosmos.com\",\n \"user_status\": \"active\",\n \"user_email\": \"john.doe@1kosmos.com\",\n \"user_firstname\": \"john\",\n \"user_lastname\": \"doe\",\n \"source_user_directory\": \"db\",\n \"source_user_directory_name\": \"DB for default community\",\n \"caller_ip\": \"3.231.117.156\",\n \"tenant_dns\": \"1k-uat.1kosmos.net\",\n \"auth_method\": \"otp\",\n \"auth_device_os\": \"Mac OS\",\n \"auth_device_app_name\": \"Edge\",\n \"auth_device_app_version\": \"136.0.0.0\",\n \"sp_type\": \"saml\",\n \"sp_name\": \"https://blockid-uat.1kosmos.net/admin/31102024\",\n \"sp_id\": \"https://blockid-uat.1kosmos.net/admin/31102024/cb1af5c5-a27d-4288-9722-9f964e2027df\",\n \"country\": \"United States\",\n \"region\": \"Virginia\",\n \"tenant_id\": \"6593c75e2aa12e3349e11a68\",\n \"community_id\": \"6593c75e2aa12e3349e11a69\",\n \"type\": \"event\",\n \"authJourneysMatched\": [\n {\n \"id\": \"3f3fa44e-83f3-4152-9bf4-66ce8c000302\",\n \"name\": \"default\"\n }\n ],\n \"aliasUsed\": \"unknown\",\n \"event_id\": \"be926b44-1da0-4859-8a88-a38c3110a801\",\n \"timestamp\": \"2025-05-15 08:32:22.920\",\n \"epoch_time\": \"1747297942\",\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\n }\n ]\n}"},{"id":"2f809d0d-7bc6-477d-bff1-e1fd6c1a5ea0","name":"Bad/Missing License Key","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}","disabled":true},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 10,\r\n \"pIndex\": 0,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2026-06-01 00:00:00.000\",\r\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/passwordless_login_activity_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","passwordless_login_activity_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:22:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"79"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4f-hZ9DBhSdHAoeBMOBIGUyYXZC6Hk\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"This header should not be empty\",\n \"param\": \"licensekey\"\n }\n ]\n}"},{"id":"47baabc5-f449-4fe0-bd3d-6c9f2a4c447a","name":"Incorrect From-To Dates","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"licensekey","value":"{{enc_license_for_client}}","disabled":true},{"key":"publicKey","value":"{{my_public_key}}"},{"key":"Content-Type","value":"application/json"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"pSize\": 10,\r\n \"pIndex\": 0,\r\n \"from\": \"2025-05-01 00:00:00.000\",\r\n \"to\": \"2021-06-01 00:00:00.000\",\r\n \"eventName\": \"E_SP_REDIRECT_SUCCEEDED\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/reports/tenant/:tenantID/community/:communityID/passwordless_login_activity_report","host":["{{client_api}}"],"path":["reports","tenant",":tenantID","community",":communityID","passwordless_login_activity_report"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jul 2025 17:23:22 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"137"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b75817bc8e16f349e6036d7e7c21385f|6a9d82f1987fcbeddf117f6c0a28f405; Path=/reports; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"89-CzKQQkpDeu0mm4F4ivK92I9P+JM\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"errors\": [\n {\n \"message\": \"This header should not be empty\",\n \"param\": \"licensekey\"\n },\n {\n \"message\": \"Date 'to' must be after 'from'\",\n \"param\": \"to\"\n }\n ]\n}"}],"_postman_id":"630b487c-5349-4a0a-a61b-0e77cd35864c"}],"id":"b03713ad-a242-40ed-8cad-b918cd132382","description":"This API enables you to test Our Reports APIs
\nBefore you begin to execute APIs, you must set up your community and tenant information in your Environments.
\nTo set up your environment, follow these steps:
\n2. In the Variable column, add the following parameters in the same format:
\nclient_api
\nmy_public_key
\nmy_private_key
\nlicenseKey
\nclient_community_name
\nNote: The above parameters are case sensitive.
\n3. In the Type column, specify the value as default for all the three parameters.
\n4. In the Initial value column, specify the following values for each parameter:
\nclient_api - Specify your tenant URL (For Example: https://acme.1kosmos.net)
\nmy_public_key - Your ECDSA Public Key
\nmy_private_key - Your ECDSA Private Key
\nclient_community_name - Specify your community name.
\nlicenseKey - Specify the license key of your tenant.
\n5. In the Current value column, specify the same value as that of the initial value for all the three parameters.
\nThe following screenshot illustrates how the page appears after configuring your environment variables:
\nPublic Key
\n","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now
\n","type":"text"},{"key":"noecdsa","value":"false","description":"No Data encryption
\n","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Client''s License Key
\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"userId\": \"john.doe\",\r\n \"communityId\": \"\",\r\n \"tenantId\": \"\",\r\n \"smsTo\": \"919999999999\",\r\n \"smsISDCode\": \"91\",\r\n \"smsFrom\": \"1Kosmos\",\r\n \"smsTemplateB64\": \"\",\r\n \"smsTemplateId\": \"\",\r\n \"trace\": true,\r\n \"serviceName\":\"1Kosmos\",\r\n \"validitySeconds\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/api/r2/otp/generate","description":"This endpoint generates a One-Time Password (OTP) for a specified user within a community. The OTP can be sent via SMS based on the provided parameters.
\nMethod: POST
URL: {{client_api}}/api/r2/otp/generate
The request body must be in JSON format and should include the following parameters:
\nThe response will return a status code indicating the result of the OTP generation request.
\nStatus Code: 202 (Accepted)
\nContent-Type: application/json
\nResponse Body:
\nmessageId (string): An identifier for the message sent. In this case, it may be empty.
\ninfo (string): Additional information about the request. This may also be empty.
\nEnsure that all parameters are provided correctly to avoid errors.
\nA 202 status code indicates that the request has been accepted for processing, but the processing is not yet complete.
\nThe email and SMS templates should be properly formatted to ensure successful delivery of the OTP.
\nIf you encounter issues, verify that the userId, communityId, tenantId, and contact details are accurate and formatted correctly.
\nError Response
\n","urlObject":{"path":["api","r2","otp","generate"],"host":["{{client_api}}"],"query":[],"variable":[]}},"response":[{"id":"5e0d22bd-2987-4f11-9eeb-90748eedcafc","name":"SMS & EMAIL OTP - Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==","type":"text"},{"key":"requestid","value":"","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"userId\": \"john.doe\",\r\n \"communityId\": \"\",\r\n \"tenantId\": \"\",\r\n \"smsTo\": \"919999999999\",\r\n \"smsISDCode\": \"91\",\r\n \"smsFrom\": \"1Kosmos\",\r\n \"smsTemplateB64\": \"\",\r\n \"smsTemplateId\": \"\",\r\n \"trace\": true,\r\n \"serviceName\":\"1Kosmos\",\r\n \"validitySeconds\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/api/r2/otp/generate"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Jun 2025 12:08:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"messageId\": \"c3db28f5-afe7-456f-973e-e77096ad68bd\",\n \"info\": \"OTP request accepted\"\n}"},{"id":"3fbbc3e3-181e-4d33-945d-e20c71a2b86f","name":"No Request Body","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/api/r2/otp/generate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Jun 2025 11:52:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"Unable to load tenant/community\"\n}"},{"id":"ff095aa0-f7eb-4afc-96eb-4e86aefec153","name":"Request payload without user info","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==","type":"text"},{"key":"requestid","value":"","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"communityId\": \"\",\r\n \"tenantId\": \"\",\r\n \"smsTo\": \"919999999999\",\r\n \"smsISDCode\": \"91\",\r\n \"smsFrom\": \"1Kosmos\",\r\n \"smsTemplateB64\": \"\",\r\n \"smsTemplateId\": \"\",\r\n \"trace\": true,\r\n \"serviceName\":\"1Kosmos\",\r\n \"validitySeconds\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"https://1k-dev.1kosmos.net/api/r2/otp/generate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Jun 2025 11:53:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"This userId or userPublicKey is mandatory\"\n}"},{"id":"c91287f7-1fab-454b-bb24-9605bc5882eb","name":"Payload without Phone Mobile Number","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"userId\": \"john.doe\",\r\n \"communityId\": \"\",\r\n \"tenantId\": \"\",\r\n \"smsISDCode\": \"91\",\r\n \"smsFrom\": \"1Kosmos\",\r\n \"smsTemplateB64\": \"\",\r\n \"smsTemplateId\": \"\",\r\n \"trace\": true,\r\n \"serviceName\":\"1Kosmos\",\r\n \"validitySeconds\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/api/r2/otp/generate"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Wed, 11 Jun 2025 12:10:13 GMT"},{"key":"Content-Type","value":"text/html;charset=utf-8"},{"key":"Content-Length","value":"673"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Content-Language","value":"en"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"Type Status Report
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Public Key
\n","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now
\n","type":"text"},{"key":"noecdsa","value":"true","description":"No Data encryption
\n","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Client''s License Key
\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"userId\": \"john.doe\",\r\n \"communityId\": \"\",\r\n \"tenantId\": \"\",\r\n \"emailFrom\": \"test@1kosmos.com\",\r\n \"emailSubject\": \"Email OTP\",\r\n \"emailTo\": \"john.doe@1kosmos.com\",\r\n \"emailTemplateB64\": \"WW91ciBCbG9ja0lEIHZlcmlmaWNhdGlvbiBjb2RlIGlzOiB7e290cH19\",\r\n \"trace\": true,\r\n \"validitySeconds\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/api/r2/otp/generate","description":"This endpoint is used to generate a One-Time Password (OTP) for a specified user within a community. The OTP can be sent via email based on the provided parameters.
\nMethod: POST
URL: {{client_api}}/api/r2/otp/generate
The request body must be in JSON format and should include the following parameters:
\nThe response will return a status code indicating the result of the OTP generation request.
\nStatus Code: 202 (Accepted)
\nContent-Type: application/json
\nResponse Body:
\nmessageId (string): An identifier for the message sent. In this case, it may be empty.
\ninfo (string): Additional information about the request. This may also be empty.
\nEnsure that all parameters are provided correctly to avoid errors.
\nA 202 status code indicates that the request has been accepted for processing, but the processing is not yet complete.
\nThe email templates should be properly formatted to ensure successful delivery of the OTP.
\nIf you encounter issues, verify that the userId, communityId, tenantId, and contact details are accurate and formatted correctly.
\nError Response
\n","urlObject":{"path":["api","r2","otp","generate"],"host":["{{client_api}}"],"query":[],"variable":[]}},"response":[{"id":"ffdb575f-f2f5-43ca-ac33-ec2a7cf086da","name":"Email OTP - Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==","type":"text"},{"key":"requestid","value":"","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"userId\": \"john.doe\",\r\n \"communityId\": \"\",\r\n \"tenantId\": \"\",\r\n \"emailFrom\": \"test@1kosmos.com\",\r\n \"emailSubject\": \"Email OTP\",\r\n \"emailTo\": \"john.doe@1kosmos.com\",\r\n \"emailTemplateB64\": \"WW91ciBCbG9ja0lEIHZlcmlmaWNhdGlvbiBjb2RlIGlzOiB7e290cH19\",\r\n \"trace\": true,\r\n \"validitySeconds\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"https://1k-dev.1kosmos.net/api/r2/otp/generate"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Jun 2025 12:08:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"messageId\": \"c3db28f5-afe7-456f-973e-e77096ad68bd\",\n \"info\": \"OTP request accepted\"\n}"},{"id":"4c2bfcd0-88e4-4f30-be38-06190b25c89f","name":"No Request Body","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/api/r2/otp/generate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Jun 2025 11:52:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"Unable to load tenant/community\"\n}"},{"id":"033dc5da-ddf9-4ac6-afbb-d181a5669172","name":"Request payload without user info","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==","type":"text"},{"key":"requestid","value":"","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"communityId\": \"\",\r\n \"tenantId\": \"\",\r\n \"emailFrom\": \"test@1kosmos.com\",\r\n \"emailSubject\": \"Email OTP\",\r\n \"emailTo\": \"john.doe@1kosmos.com\",\r\n \"emailTemplateB64\": \"WW91ciBCbG9ja0lEIHZlcmlmaWNhdGlvbiBjb2RlIGlzOiB7e290cH19\",\r\n \"trace\": true,\r\n \"validitySeconds\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"https://1k-dev.1kosmos.net/api/r2/otp/generate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Jun 2025 11:53:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"This userId or userPublicKey is mandatory\"\n}"},{"id":"7e7eebf8-7e80-4334-8cd0-2576c52ada2c","name":"Payload without Recipient Email Address","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"userId\": \"john.doe\",\r\n \"communityId\": \"\",\r\n \"tenantId\": \"\",\r\n \"emailFrom\": \"test@1kosmos.com\",\r\n \"emailSubject\": \"Email OTP\",\r\n \"emailTemplateB64\": \"WW91ciBCbG9ja0lEIHZlcmlmaWNhdGlvbiBjb2RlIGlzOiB7e290cH19\",\r\n \"trace\": true,\r\n \"validitySeconds\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/api/r2/otp/generate"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Wed, 11 Jun 2025 12:10:13 GMT"},{"key":"Content-Type","value":"text/html;charset=utf-8"},{"key":"Content-Length","value":"673"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Content-Language","value":"en"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"Type Status Report
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Public Key
\n","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now
\n","type":"text"},{"key":"noecdsa","value":"true","description":"No Data encryption
\n","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Client''s License Key
\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"userId\": \"john.doe\",\r\n \"communityId\": \"\",\r\n \"tenantId\": \"\",\r\n \"voiceTo\": \"9999999999\",\r\n \"voiceISDCode\": \"91\",\r\n \"voiceFrom\": \"1Kosmos\",\r\n \"voiceCampaignId\": \"\",\r\n \"voiceCallTimeout\": 20,\r\n \"voiceTemplateB64\": \"VGhpcyBpcyBhbiBhdXRvbWF0ZWQgY2FsbCBmcm9tIDFLb3Ntb3MuIEFzIHJlcXVlc3RlZCBieSB5b3UsIHRoZSBPbmUgdGltZSBQYXNzd29yZCBpcyB7e290cH19LiBUbyByZXBlYXQsIHBsZWFzZSBwcmVzcyAxLg==\",\r\n \"trace\": true,\r\n \"serviceName\":\"1Kosmos\",\r\n \"validitySeconds\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/api/r2/otp/generate","description":"This endpoint is used to generate a One-Time Password (OTP) for a specified user within a community. The OTP can be sent via voice call based on the provided parameters.
\nMethod: POST
URL: {{client_api}}/api/r2/otp/generate
The request body must be in JSON format and should include the following parameters:
\nThe response will return a status code indicating the result of the OTP generation request.
\nStatus Code: 202 (Accepted)
\nContent-Type: application/json
\nResponse Body:
\nmessageId (string): An identifier for the message sent. In this case, it may be empty.
\ninfo (string): Additional information about the request. This may also be empty.
\nEnsure that all parameters are provided correctly to avoid errors.
\nA 202 status code indicates that the request has been accepted for processing, but the processing is not yet complete.
\nThe voice templates should be properly formatted to ensure successful delivery of the OTP.
\nIf you encounter issues, verify that the userId, communityId, tenantId, and contact details are accurate and formatted correctly.
\nError Response
\n","urlObject":{"path":["api","r2","otp","generate"],"host":["{{client_api}}"],"query":[],"variable":[]}},"response":[{"id":"4dd54cc0-a0a8-40fe-891b-2c1d1f4fee7d","name":"Email OTP - Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==","type":"text"},{"key":"requestid","value":"","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"communityId\": \"\",\r\n \"tenantId\": \"\",\r\n \"voiceTo\": \"9999999999\",\r\n \"voiceISDCode\": \"91\",\r\n \"voiceFrom\": \"1Kosmos\",\r\n \"voiceCampaignId\": \"\",\r\n \"voiceCallTimeout\": 20,\r\n \"voiceTemplateB64\": \"VGhpcyBpcyBhbiBhdXRvbWF0ZWQgY2FsbCBmcm9tIDFLb3Ntb3MuIEFzIHJlcXVlc3RlZCBieSB5b3UsIHRoZSBPbmUgdGltZSBQYXNzd29yZCBpcyB7e290cH19LiBUbyByZXBlYXQsIHBsZWFzZSBwcmVzcyAxLg==\",\r\n \"trace\": true,\r\n \"serviceName\":\"1Kosmos\",\r\n \"validitySeconds\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"https://1k-dev.1kosmos.net/api/r2/otp/generate"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Jun 2025 12:08:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"messageId\": \"c3db28f5-afe7-456f-973e-e77096ad68bd\",\n \"info\": \"OTP request accepted\"\n}"},{"id":"5bedb0ed-501c-4492-9f14-8756901cbf29","name":"No Request Body","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/api/r2/otp/generate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Jun 2025 11:52:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"Unable to load tenant/community\"\n}"},{"id":"ddf71de9-5ac3-4996-bb4d-90f91184a5ed","name":"Request payload without user info","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==","type":"text"},{"key":"requestid","value":"","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"communityId\": \"\",\r\n \"tenantId\": \"\",\r\n \"voiceTo\": \"9999999999\",\r\n \"voiceISDCode\": \"91\",\r\n \"voiceFrom\": \"1Kosmos\",\r\n \"voiceCampaignId\": \"\",\r\n \"voiceCallTimeout\": 20,\r\n \"voiceTemplateB64\": \"VGhpcyBpcyBhbiBhdXRvbWF0ZWQgY2FsbCBmcm9tIDFLb3Ntb3MuIEFzIHJlcXVlc3RlZCBieSB5b3UsIHRoZSBPbmUgdGltZSBQYXNzd29yZCBpcyB7e290cH19LiBUbyByZXBlYXQsIHBsZWFzZSBwcmVzcyAxLg==\",\r\n \"trace\": true,\r\n \"serviceName\":\"1Kosmos\",\r\n \"validitySeconds\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"https://1k-dev.1kosmos.net/api/r2/otp/generate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Jun 2025 11:53:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"This userId or userPublicKey is mandatory\"\n}"},{"id":"e037cad1-0c4e-49f1-96b6-0ff308e357cd","name":"Payload without Recipient Email Address","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"communityId\": \"\",\r\n \"tenantId\": \"\",\r\n \"voiceISDCode\": \"91\",\r\n \"voiceFrom\": \"1Kosmos\",\r\n \"voiceCampaignId\": \"\",\r\n \"voiceCallTimeout\": 20,\r\n \"voiceTemplateB64\": \"VGhpcyBpcyBhbiBhdXRvbWF0ZWQgY2FsbCBmcm9tIDFLb3Ntb3MuIEFzIHJlcXVlc3RlZCBieSB5b3UsIHRoZSBPbmUgdGltZSBQYXNzd29yZCBpcyB7e290cH19LiBUbyByZXBlYXQsIHBsZWFzZSBwcmVzcyAxLg==\",\r\n \"trace\": true,\r\n \"serviceName\":\"1Kosmos\",\r\n \"validitySeconds\": 120\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/api/r2/otp/generate"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Wed, 11 Jun 2025 12:10:13 GMT"},{"key":"Content-Type","value":"text/html;charset=utf-8"},{"key":"Content-Length","value":"673"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Content-Language","value":"en"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"Type Status Report
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now
\n","type":"text"},{"key":"noecdsa","value":"false","description":"No Data encryption
\n","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Client''s License Key
\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"code\": \"835096\", \r\n\t\"userId\": \"john.doe\", \r\n\t\"communityId\": \"\",\r\n \"tenantId\": \"\"\r\n}"},"url":"{{client_api}}/api/r2/otp/verify","description":"This endpoint is used to verify a One-Time Password (OTP) submitted by a user during the authentication process. It ensures that the provided OTP corresponds to the user and is valid for the specified community and tenant.
\nMethod: POST
URL: {{client_api}}/api/r2/otp/verify
The request body must be sent in JSON format and should include the following parameters:
\nThe response will be returned in JSON format. The structure of the response may include:
\n{\n \"error_code\": 0,\n \"message\": \"\",\n \"status\": true\n}\n\n\nA 404 status code indicates that the requested resource was not found. This may occur if the userId, communityId, or tenantId does not match any existing records.
Ensure that the OTP code is valid and has not expired before making the request.
\nThe response may vary based on the success or failure of the verification process.
\nThis endpoint is crucial for maintaining secure access to user accounts by validating OTPs during the login process.
\n","urlObject":{"path":["api","r2","otp","verify"],"host":["{{client_api}}"],"query":[],"variable":[]}},"response":[{"id":"2c08af5a-5c08-475d-9aea-005bda7cf4cd","name":"Verify OTP - Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==","type":"text"},{"key":"requestid","value":"","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"code\": \"123456\", \r\n\t\"userId\": \"john.doe\", \r\n\t\"userPublicKey_\": \"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==\",\r\n\t\"communityId\": \"\",\r\n \"tenantId\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://1k-dev.1kosmos.net/api/r2/otp/verify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Jun 2025 11:57:23 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"otp_type\": \"user-generated\",\n \"status\": \"true\"\n}"},{"id":"6a7358be-082c-45ef-8198-6a5ddb727197","name":"Invalid OTP","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"code\": \"799079\", \r\n\t\"userId\": \"john.doe\", \r\n\t\"userPublicKey_\": \"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==\",\r\n\t\"communityId\": \"\",\r\n \"tenantId\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/api/r2/otp/verify"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Jun 2025 11:58:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"error_code\": 404,\n \"message\": \"Invalid OTP\",\n \"status\": false\n}"}],"_postman_id":"13cff0ca-673f-48f1-87cb-dbbce1b57657"},{"name":"Verify OTP R3","event":[{"listen":"prerequest","script":{"id":"206243c2-6ff9-4365-8e13-f721f86ab1b6","exec":["let url = pm.environment.get(\"client_api\") + \"/api/r1/community/default/ecdsahelper\"\r","let otherPartyPublicKey = pm.environment.get(\"client_public_key\")\r","let privateKey = pm.environment.get(\"my_private_key\")\r","let isNOECDSA = pm.request.headers.get(\"noecdsa\");\r","\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let payload = {\r"," method: method,\r"," otherPartyPublicKey: otherPartyPublicKey,\r"," privateKey: privateKey,\r"," dataStr: dataStr\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r","\r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," postman.setEnvironmentVariable(\"requestid\", \"\")\r","\r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," requestIdStr = requestIdStr.replace(/\"/g, \"'\")\r"," if (isNOECDSA != \"false\") {\r"," pm.environment.set(\"requestid\", requestIdStr)\r"," return\r"," }\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","\r","\r","makeRequestId()"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"cd724b46-f9ae-466d-8757-c7547f8d3c95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now
\n","type":"text"},{"key":"noecdsa","value":"false","description":"No Data encryption
\n","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Client''s License Key
\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"code\": \"835096\", \r\n\t\"userId\": \"john.doe\", \r\n\t\"communityId\": \"\",\r\n \"tenantId\": \"\"\r\n}"},"url":"{{client_api}}/api/r3/otp/verify","description":"This endpoint is used to verify a One-Time Password (OTP) submitted by a user during the authentication process. It ensures that the provided OTP corresponds to the user and is valid for the specified community and tenant with standardized success & error responses.
\nMethod: POST
URL: {{client_api}}/api/r3/otp/verify
The request body must be sent in JSON format and should include the following parameters:
\nThe response will be returned in JSON format. The structure of the response may include:
\n{\n \"error_code\": 0,\n \"error_maessage\": \"\",\n \"message\": \"\",\n \"status\": true\n}\n\n\nEnsure that the OTP code is valid and has not expired before making the request.
\nThe response may vary based on the success or failure of the verification process.
\nThis endpoint is crucial for maintaining secure access to user accounts by validating OTPs during the authentication process.
\n","urlObject":{"path":["api","r3","otp","verify"],"host":["{{client_api}}"],"query":[],"variable":[]}},"response":[{"id":"3e046289-8819-4690-8ea5-7d87407ccfcb","name":"Verify OTP - Success","originalRequest":{"method":"POST","header":[{"key":"publickey","value":"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==","type":"text"},{"key":"licensekey","value":"{{licensekey}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"code\": \"123456\", \r\n\t\"userId\": \"john.doe\", \r\n\t\"userPublicKey_\": \"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==\",\r\n\t\"communityId\": \"\",\r\n \"tenantId\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://1k-dev.1kosmos.net/api/r3/otp/verify"},"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n \"otp_type\": \"user-generated\",\r\n \"serviceName\": \"default\",\r\n \"status\": \"true\"\r\n}"},{"id":"c455b03f-f1f2-425c-94ba-1257c60a5b92","name":"Verify OTP - Wrong OTP","originalRequest":{"method":"POST","header":[{"key":"publickey","value":"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==","type":"text"},{"key":"licensekey","value":"{{licensekey}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"code\": \"123456\", \r\n\t\"userId\": \"john.doe\", \r\n\t\"userPublicKey_\": \"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==\",\r\n\t\"communityId\": \"\",\r\n \"tenantId\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://1k-dev.1kosmos.net/api/r3/otp/verify"},"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n \"message\": \"Invalid OTP\",\r\n \"status\": false,\r\n \"errorMessage\": \"Invalid OTP\",\r\n \"errorCode\": \"E10001\"\r\n}"},{"id":"57bdaae6-80c6-47a3-8dc3-69cc3d900c13","name":"Verify OTP - Incorrect tenant/community","originalRequest":{"method":"POST","header":[{"key":"publickey","value":"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==","type":"text"},{"key":"licensekey","value":"{{licensekey}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"code\": \"123456\", \r\n\t\"userId\": \"john.doe\", \r\n\t\"userPublicKey_\": \"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==\",\r\n\t\"communityId\": \"\",\r\n \"tenantId\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://1k-dev.1kosmos.net/api/r3/otp/verify"},"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n \"message\": \"Unable to load tenant/community\",\r\n \"status\": false,\r\n \"errorMessage\": \"Unable to load tenant/community\",\r\n \"errorCode\": \"E20001\"\r\n}"},{"id":"d9fbb66a-62b9-42c7-b824-1e9fa99640ac","name":"Verify OTP - Incorrect tenant/community Copy","originalRequest":{"method":"POST","header":[{"key":"publickey","value":"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==","type":"text"},{"key":"licensekey","value":"{{licensekey}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"code\": \"123456\", \r\n\t\"userId\": \"john.doe\", \r\n\t\"userPublicKey_\": \"KptAI9Vk/79odk5lsWD1DVzI2rkK5ZoLtcbSJqkgT7YdP6UTBszFjPTrDReL9hAPVk0O/40tW6RzVUYqRAKmBg==\",\r\n\t\"communityId\": \"\",\r\n \"tenantId\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://1k-dev.1kosmos.net/api/r3/otp/verify"},"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\r\n \"message\": \"Invalid License key\",\r\n \"status\": false,\r\n \"errorMessage\": \"Invalid License key\"\",\r\n \"errorCode\": \"E20002\"\r\n}"}],"_postman_id":"cd724b46-f9ae-466d-8757-c7547f8d3c95"}],"id":"d106cbfc-b0b2-48dd-b78e-d1a82f9fe26d","description":"This API enables you to test Our OTP APIs
\nBefore you begin to execute APIs, you must set up your community and tenant information in your Environments.
\nTo set up your environment, follow these steps:
\n2. In the Variable column, add the following parameters in the same format:
\nclient_api
\nmy_public_key (optional if request header contains noecdsa:true)
my_private_key (optional if request header contains noecdsa:true)
licenseKey
\nclient_community_name
\nNote: The above parameters are case sensitive.
\n3. In the Type column, specify the value as default for all the three parameters.
\n4. In the Initial value column, specify the following values for each parameter:
\nclient_api - Specify your tenant URL (For Example: https://acme.1kosmos.net)
\nmy_public_key - Your ECDSA Public Key
\nmy_private_key - Your ECDSA Private Key
\nclient_community_name - Specify your community name.
\nlicenseKey - Specify the license key of your tenant.
\n5. In the Current value column, specify the same value as that of the initial value for all the three parameters.
\nThe following screenshot illustrates how the page appears after configuring your environment variables:
\nThis endpoint allows you to fetch user details from a specified community within a tenant. It is particularly useful for retrieving user information based on specific query parameters.
\nPOST
{{client_api}}/users-mgmt/tenant/tenantId/community/communityId/users/fetch
The request body must be in JSON format and includes the following parameters:
\nauthModule (string): A unique identifier for the authentication module being used.
\npIndex (integer): The index of the page to be retrieved, starting from 0.
\npSize (integer): The number of records to return per page.
\nquery (object): An object containing the search criteria. In this case, it includes:
\nattributes (array of strings): An array specifying which attributes to include in the response. Using [\"\\\\\\*\"] requests all available attributes.
The response will be in JSON format and will include the following structure:
\npage (object): Contains pagination information.
\nindex (integer): The current page index.
\ntotal (integer): The total number of records available.
\nsize (integer): The number of records returned in this response.
\ndata (array): An array of user objects matching the query. Each user object may contain:
\nusername (string): The username of the user.
\nuid (string): The unique identifier for the user.
\ndguid (string): The directory GUID for the user.
\ndisabled (boolean): Indicates if the user account is disabled.
\nstatus (string): The current status of the user.
\nroleValue (string): The role assigned to the user.
\ntype (string): The type of user.
\nmoduleId (string): The module ID associated with the user.
\nonboarding_status (string): The onboarding status of the user.
\nisLocked (boolean): Indicates if the user account is locked.
\nmobiles (array): List of mobile numbers associated with the user.
\nlandlines (array): List of landline numbers associated with the user.
\nfirstname (string): The first name of the user.
\nlastname (string): The last name of the user.
\nemail (string): The email address of the user.
\nurn (string): The uniform resource name associated with the user.
\npublicKey (string): A public key for security purposes.
\nsignature_token (string): A token used for signature verification.
\n{ \"page\": {\"index\": 0, \"total\": 0, \"size\": 0}, \"data\": [{ \"username\": \"\", \"uid\": \"\", \"dguid\": \"\", \"disabled\": true, \"status\": \"\", \"roleValue\": \"\", \"type\": \"\", \"moduleId\": \"\", \"onboarding_status\": \"\", \"isLocked\": true, \"mobiles\": [], \"landlines\": [], \"firstname\": \"\", \"lastname\": \"\", \"email\": \"\", \"urn\": \"\" }], \"publicKey\": \"\", \"signature_token\": \"\"}
{ \"page\": {\"index\": 0, \"total\": 0, \"size\": 0}, \"data\": [], \"publicKey\": \"\", \"signature_token\": \"\"}
This endpoint is essential for managing user information within a community, allowing for efficient retrieval based on specific criteria.
\n","urlObject":{"path":["users-mgmt","tenant","","community","","users","create"],"host":["{{client_api}}"],"query":[],"variable":[]}},"response":[{"id":"48b9d660-6d66-473a-b038-3362d390f074","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"68418b901ac4790f690ffdb4\",\r\n \"users\": [\r\n {\r\n \"username\": \"postman1\",\r\n \"password\": \"Password.1\",\r\n \"firstname\": \"postman\",\r\n \"lastname\": \"Test\",\r\n \"email1\": \"postman+11@1kosmos.com\"\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 11:38:32 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750073912,\"appid\":\"com.postman.request\",\"uuid\":\"d0ec7eb4-d076-499a-b9ff-6c3425f47936\"}"},{"key":"ETag","value":"W/\"32-XD2wdEOpZqmGvBqloH4sYUr1a4g\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"requested\": 1,\n \"created\": 1,\n \"failed\": 0,\n \"errors\": []\n}"},{"id":"5714dc60-73ac-42fa-bd45-e1ecabfd9beb","name":"Fail: AuthModule Not Found","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"66ff2c69936dc5e4f47038e4\",\r\n \"users\": [\r\n {\r\n \"username\": \"amittest11\",\r\n \"password\": \"Password.1\",\r\n \"firstname\": \"Amit\",\r\n \"lastname\": \"Test\",\r\n \"email1\": \"amit.sharma+11@1kosmos.com\"\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/create"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 11:27:45 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750073265,\"appid\":\"com.postman.request\",\"uuid\":\"610317fa-f695-40e0-8159-a7f47c85d6ca\"}"},{"key":"ETag","value":"W/\"32-eOX+1sxtyxx+Ay60U0u6l0Jqno0\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 404,\n \"message\": \"Auth module is not found.\"\n}"},{"id":"1a188689-99f8-4137-ba74-212b0ffc4a37","name":"Fail: Unauthorised License","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"66ff2c69936dc5e4f47038e4\",\r\n \"users\": [\r\n {\r\n \"username\": \"amittest11\",\r\n \"password\": \"Password.1\",\r\n \"firstname\": \"Amit\",\r\n \"lastname\": \"Test\",\r\n \"email1\": \"amit.sharma+11@1kosmos.com\"\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/create"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 11:28:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"56"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750073323,\"appid\":\"com.postman.request\",\"uuid\":\"9fd6b80c-5c22-401c-9027-3c41105834fb\"}"},{"key":"ETag","value":"W/\"38-66nuw/m7Tl+VewEemPayPNkLqp8\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 401,\n \"message\": \"Invalid or Unauthorized License\"\n}"},{"id":"71b39fff-fe9c-4e63-a267-952bcb20937a","name":"Fail: Required username","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"66ff2c69936dc5e4f47038e4\",\r\n \"users\": [\r\n {\r\n \"password\": \"Password.1\",\r\n \"firstname\": \"Amit\",\r\n \"lastname\": \"Test\",\r\n \"email1\": \"amit.sharma+11@1kosmos.com\"\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 11:30:38 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750073438,\"appid\":\"com.postman.request\",\"uuid\":\"59b9cd77-1018-4246-966d-147863e56ed0\"}"},{"key":"ETag","value":"W/\"2d-wHM1Knz5FHaF/GDD3ec2hzdrr8I\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"username is required\"\n}"},{"id":"cd90f319-99ab-47c6-a17f-17bc0b334068","name":"Fail: Required firstname","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"66ff2c69936dc5e4f47038e4\",\r\n \"users\": [\r\n {\r\n \"username\": \"amittest11\",\r\n \"password\": \"Password.1\",\r\n \"lastname\": \"Test\",\r\n \"email1\": \"amit.sharma+11@1kosmos.com\"\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 11:31:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750073470,\"appid\":\"com.postman.request\",\"uuid\":\"8200faf9-bf19-4ddc-9597-20988542100e\"}"},{"key":"ETag","value":"W/\"2e-cyrZZfV17rrm9QETC8V4BG9BxIc\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"firstname is required\"\n}"},{"id":"a5b86cba-4165-444f-8414-8d1682fb4476","name":"Fail: Invalid paylad","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"66ff2c69936dc5e4f47038e4\",\r\n \"users\": [\r\n {\r\n \"username\": \"amittest11\",\r\n \"password\": \"Password.1\",\r\n \"firstname\": \"Amit\",\r\n \"lastname\": \"Test\",\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/create"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 11:31:45 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"ETag","value":"W/\"2e-6jkYuJLbNq0cjWobEGrzuJTrSD8\""}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 500,\n \"message\": \"Internal Server Error\"\n}"},{"id":"5ea93ea3-263b-4e27-8b56-e376deb37618","name":"Fail: Required email","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"66ff2c69936dc5e4f47038e4\",\r\n \"users\": [\r\n {\r\n \"username\": \"amittest11\",\r\n \"password\": \"Password.1\",\r\n \"firstname\": \"Amit\",\r\n \"lastname\": \"Test\"\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 11:33:11 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750073590,\"appid\":\"com.postman.request\",\"uuid\":\"3a674ced-45ad-409a-a44a-1ea902fb2d0f\"}"},{"key":"ETag","value":"W/\"2b-8H2ShXExSocdsNr26/R6JDy7YVQ\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"email1 is required\"\n}"},{"id":"e03d2bac-2125-4c85-ac7d-013f4202a360","name":"Fail: Unauthorised License","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"68429e181ac4790f6910463a\",\r\n \"users\": [\r\n {\r\n \"username\": \"postman1\",\r\n \"password\": \"Password.1\",\r\n \"firstname\": \"postman\",\r\n \"lastname\": \"Test\",\r\n \"email1\": \"postman+11@1kosmos.com\"\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/create"},"status":"Method Not Allowed","code":405,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 11:35:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"80"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750073708,\"appid\":\"com.postman.request\",\"uuid\":\"520b832b-938e-4812-b764-7c982b1db083\"}"},{"key":"ETag","value":"W/\"50-mq+3PxuV1RiZ7ksJAm+uW3Cq7ZY\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 405,\n \"message\": \"This function is not allowed for specified auth module.\"\n}"},{"id":"730c323a-f066-4e5e-bd59-19b12d71f7e7","name":"Fail: Internal Server Error","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"68418b901ac4790f690ffdb4\",\r\n \"users\": [\r\n {\r\n \"username\": \"postman1\",\r\n \"password\": \"Password.1\",\r\n \"firstname\": \"postman\",\r\n \"lastname\": \"Test\",\r\n \"email1\": \"postman+11@1kosmos.com\"\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/create"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Mon, 16 Jun 2025 11:40:13 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"148"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'none'"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750074013,\"appid\":\"com.postman.request\",\"uuid\":\"72c4dae1-a6f5-4d31-9076-27a484048a77\"}"},{"key":"ETag","value":"W/\"1ed-Ym+vC/jCsCFIKb2bbwGoXMwczjg\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"\n\n \n \nInternal Server Error\n \n"}],"_postman_id":"cbf950b4-a816-4882-8efc-60bfeb2ef55c"},{"name":"Fetch User Details","event":[{"listen":"prerequest","script":{"id":"b2fe180e-82ed-4801-a07d-8870867975ba","exec":["let url = pm.environment.get(\"client_api\") + \"/users-mgmt/ecdsa_helper/encrypt\"\r","let publicKeyUsrMgmtUrl = pm.environment.get(\"client_api\") +\"/users-mgmt/publickeys\"\r","let privateKey = pm.environment.get(\"my_private_key\")\r","\r","fetchCommunityInfo(function() {\r"," fetchServerPublicKey(function (pk1) {\r"," pm.environment.set(\"usr_mgmt_public_key\", pk1);\r"," makeLicenseKey()\r"," makeRequestId()\r"," })\r"," })\r","\r","function fetchCommunityInfo(next) {\r"," let apiURL = pm.environment.get(\"client_api\")\r"," let url = apiURL + \"/api/r1/system/community_info/fetch\"\r"," let dns = apiURL.replace(\"https://\", \"\")\r","\r"," let payload = {\r"," dns: dns,\r"," communityName: pm.environment.get(\"client_community_name\")\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r"," let community = res.json().community\r"," let tenant = res.json().tenant\r"," pm.environment.set(\"communityId\", community.id);\r"," pm.environment.set(\"tenantId\", community.tenantid);\r"," pm.environment.set(\"client_tenant_tag\", tenant.tenanttag);\r"," pm.environment.set(\"root_tenant_tag\", tenant.tenanttag);\r"," next()\r"," })\r","}\r","\r","function fetchServerPublicKey(callback) {\r"," console.log(publicKeyUsrMgmtUrl)\r"," let url = publicKeyUsrMgmtUrl\r"," let tag = pm.environment.get(\"root_tenant_tag\")\r"," pm.sendRequest({\r"," url: url,\r"," method: 'GET',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'X-TenantTag': tag\r"," }\r"," }, function (err, res) {\r"," callback(res.json().publicKey)\r"," });\r","}\r","\r","function makeLicenseKey() {\r"," //clear\r"," pm.environment.set(\"enc_license_for_client\", \"\")\r"," var licenseKey = pm.environment.get(\"licenseKey\")\r"," ecdsa_helper(\"encrypt\", licenseKey, function(result) {\r"," pm.environment.set(\"enc_license_for_client\", result)\r"," })\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," pm.environment.set(\"requestid\", \"\")\r"," \r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let payload = {\r"," \t //method: method,\r"," \t publicKey: pm.environment.get(\"usr_mgmt_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," \r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}\r","\r",""],"type":"text/javascript","packages":{}}}],"id":"dd98802c-2c2e-447f-b287-b7115bb979a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"68418b901ac4790f690ffdb4\",\r\n \"pIndex\": 0,\r\n \"pSize\": 25,\r\n \"query\": {\r\n \"username\": \"john.doe\"\r\n },\r\n \"attributes\": [\r\n \"*\"\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/fetch","description":"
This endpoint allows you to fetch user details from a specified community within a tenant. It is particularly useful for retrieving user information based on specific query parameters.
\nPOST
{{client_api}}/users-mgmt/tenant/tenantId/community/communityId/users/fetch
The request body must be in JSON format and includes the following parameters:
\nauthModule (string): A unique identifier for the authentication module being used.
\npIndex (integer): The index of the page to be retrieved, starting from 0.
\npSize (integer): The number of records to return per page.
\nquery (object): An object containing the search criteria. In this case, it includes:
\nattributes (array of strings): An array specifying which attributes to include in the response. Using [\"\\\\\\*\"] requests all available attributes.
The response will be in JSON format and will include the following structure:
\npage (object): Contains pagination information.
\nindex (integer): The current page index.
\ntotal (integer): The total number of records available.
\nsize (integer): The number of records returned in this response.
\ndata (array): An array of user objects matching the query. Each user object may contain:
\nusername (string): The username of the user.
\nuid (string): The unique identifier for the user.
\ndguid (string): The directory GUID for the user.
\ndisabled (boolean): Indicates if the user account is disabled.
\nstatus (string): The current status of the user.
\nroleValue (string): The role assigned to the user.
\ntype (string): The type of user.
\nmoduleId (string): The module ID associated with the user.
\nonboarding_status (string): The onboarding status of the user.
\nisLocked (boolean): Indicates if the user account is locked.
\nmobiles (array): List of mobile numbers associated with the user.
\nlandlines (array): List of landline numbers associated with the user.
\nfirstname (string): The first name of the user.
\nlastname (string): The last name of the user.
\nemail (string): The email address of the user.
\nurn (string): The uniform resource name associated with the user.
\npublicKey (string): A public key for security purposes.
\nsignature_token (string): A token used for signature verification.
\n{ \"page\": {\"index\": 0, \"total\": 0, \"size\": 0}, \"data\": [{ \"username\": \"\", \"uid\": \"\", \"dguid\": \"\", \"disabled\": true, \"status\": \"\", \"roleValue\": \"\", \"type\": \"\", \"moduleId\": \"\", \"onboarding_status\": \"\", \"isLocked\": true, \"mobiles\": [], \"landlines\": [], \"firstname\": \"\", \"lastname\": \"\", \"email\": \"\", \"urn\": \"\" }], \"publicKey\": \"\", \"signature_token\": \"\"}
{ \"page\": {\"index\": 0, \"total\": 0, \"size\": 0}, \"data\": [], \"publicKey\": \"\", \"signature_token\": \"\"}
This endpoint is essential for managing user information within a community, allowing for efficient retrieval based on specific criteria.
\n","urlObject":{"path":["users-mgmt","tenant","","community","","users","fetch"],"host":["{{client_api}}"],"query":[],"variable":[]}},"response":[{"id":"4b4e95fc-438d-49f8-8283-83c152ea7e74","name":"Success","originalRequest":{"method":"POST","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"68418b901ac4790f690ffdb4\",\r\n \"pIndex\": 0,\r\n \"pSize\": 25,\r\n \"query\": {\r\n \"username\": \"john.doe\"\r\n },\r\n \"attributes\": [\r\n \"*\"\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/fetch"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 08:15:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"820"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750061724,\"appid\":\"com.postman.request\",\"uuid\":\"32ef47f4-d19b-422e-b318-2e0888cd7eb5\"}"},{"key":"ETag","value":"W/\"334-RIKPVlSpOkhu00IpoxRKIwRQmsU\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"page\": {\n \"index\": 0,\n \"total\": 1,\n \"size\": 1\n },\n \"data\": [\n {\n \"username\": \"sarthak\",\n \"uid\": \"beafb38c-499b-40ef-a62c-b58777f200c6\",\n \"dguid\": \"beafb38c-499b-40ef-a62c-b58777f200c6\",\n \"disabled\": false,\n \"status\": \"active\",\n \"roleValue\": \"none\",\n \"type\": \"basic\",\n \"moduleId\": \"68418b901ac4790f690ffdb4\",\n \"onboarding_status\": \"tbd\",\n \"isLocked\": false,\n \"mobiles\": [],\n \"landlines\": [],\n \"firstname\": \"Sarthak\",\n \"lastname\": \"M\",\n \"email\": \"sarthak.mishra@1kosmos.com\",\n \"urn\": \"urn:blockid:user:dns:1k-dev.1kosmos.net:community:68418b2587942f1d3158a799:mod:68418b901ac4790f690ffdb4:uid:beafb38c-499b-40ef-a62c-b58777f200c6\"\n }\n ],\n \"publicKey\": \"4d3D/MgM9PqSyLAOz8jJY9TSZemrr2uaOvcnWQX1+dY5CNNaZ+OI0WeuqdWJNFSfnogJImCt5veztNBoHh06YQ==\",\n \"signature_token\": \"1add97735715f1d1b2a71f6bc32b07a191b0e5cb7848ee162cbea9c01a6abffea995e770fd6f9c806efb777158a32daf60d381de5de101f190f84e26dec0cc58\"\n}"},{"id":"1ebe3554-7956-4a07-ba15-50cddf573d2d","name":"Fail : Auth Module not Found","originalRequest":{"method":"POST","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"68418b901ac4790f690ffdb1\",\r\n \"pIndex\": 0,\r\n \"pSize\": 25,\r\n \"query\": {\r\n \"username\": \"john.doe\"\r\n },\r\n \"attributes\": [\r\n \"*\"\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/fetch"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 08:15:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"199"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750061743,\"appid\":\"com.postman.request\",\"uuid\":\"137194bd-8b1d-4cbb-90cd-678cc452211c\"}"},{"key":"ETag","value":"W/\"c7-zLv4OF2TNy9ihhH2oYMSPj1w3MQ\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 404,\n \"message\": \"Auth module is not found.\",\n \"signature_token\": \"2f3fba2d6068b7fc2e66061f239ae02abd3d39da552428cefcebef926557cf485bd4308c295ecc86932d0a1c3643f3d29ed7673293de6f68244042849900e35f\"\n}"},{"id":"40b5af4b-c342-417e-9154-3dcee2c71dbe","name":"Fail : Unauthorized","originalRequest":{"method":"POST","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"68418b901ac4790f690ffdb1\",\r\n \"pIndex\": 0,\r\n \"pSize\": 25,\r\n \"query\": {\r\n \"username\": \"john.doe\"\r\n },\r\n \"attributes\": [\r\n \"*\"\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/fetch"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 08:16:22 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"56"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750061782,\"appid\":\"com.postman.request\",\"uuid\":\"8a745f59-9963-49d2-9593-167ffe43830c\"}"},{"key":"ETag","value":"W/\"38-66nuw/m7Tl+VewEemPayPNkLqp8\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 401,\n \"message\": \"Invalid or Unauthorized License\"\n}"},{"id":"06c6a9c4-211e-4643-ba4c-c77c9aeeeac7","name":"No User Found","originalRequest":{"method":"POST","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"68418b901ac4790f690ffdb4\",\r\n \"pIndex\": 0,\r\n \"pSize\": 25,\r\n \"query\": {\r\n \"username\": \"john.doe\"\r\n },\r\n \"attributes\": [\r\n \"*\"\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/fetch"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 08:28:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"301"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750062532,\"appid\":\"com.postman.request\",\"uuid\":\"d68a3d57-2321-4633-9a45-733b7fd1e388\"}"},{"key":"ETag","value":"W/\"12d-rgjLc+MDH8zGt4bhOY/Zx+QEkU8\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"page\": {\n \"index\": 0,\n \"total\": 0,\n \"size\": 0\n },\n \"data\": [],\n \"publicKey\": \"4d3D/MgM9PqSyLAOz8jJY9TSZemrr2uaOvcnWQX1+dY5CNNaZ+OI0WeuqdWJNFSfnogJImCt5veztNBoHh06YQ==\",\n \"signature_token\": \"5ab18ae5f47cfd6f7e7e40438034fb52df7bbfad80b5f6e200000a401aca362e135d5ac9e62b9317947bbfa4fae29c429071bac78499190d15515a141d52d4fe\"\n}"},{"id":"55873f8e-c1f2-4460-9b4f-6b061ea25df8","name":"Fail: Improper Query","originalRequest":{"method":"POST","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"authModule\": \"68418b901ac4790f690ffdb4\",\r\n \"pIndex\": 0,\r\n \"pSize\": 25,\r\n \"query\": [\r\n {\"username\": \"john.doe\"}\r\n ],\r\n \"attributes\": [\r\n \"*\"\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//users/fetch"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 16 Jun 2025 08:33:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"53"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1750062785,\"appid\":\"com.postman.request\",\"uuid\":\"b2124611-1f4f-4191-9a64-fe3fef56e14b\"}"},{"key":"ETag","value":"W/\"35-8x97XrWUuwKPktwfNf4yThVLnjo\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"query must be of type object\"\n}"}],"_postman_id":"dd98802c-2c2e-447f-b287-b7115bb979a6"},{"name":"Update Username as alias","event":[{"listen":"prerequest","script":{"id":"b2fe180e-82ed-4801-a07d-8870867975ba","exec":["let url = pm.environment.get(\"client_api\") + \"/users-mgmt/ecdsa_helper/encrypt\"\r","let publicKeyUsrMgmtUrl = pm.environment.get(\"client_api\") +\"/users-mgmt/publickeys\"\r","let privateKey = pm.environment.get(\"my_private_key\")\r","\r","fetchCommunityInfo(function() {\r"," fetchServerPublicKey(function (pk1) {\r"," pm.environment.set(\"usr_mgmt_public_key\", pk1);\r"," makeLicenseKey()\r"," makeRequestId()\r"," createPayload()\r"," })\r"," })\r","\r"," function fetchCommunityInfo(next) {\r"," let apiURL = pm.environment.get(\"client_api\")\r"," let url = apiURL + \"/api/r1/system/community_info/fetch\"\r"," let dns = apiURL.replace(\"https://\", \"\")\r","\r"," let payload = {\r"," dns: dns,\r"," communityName: pm.environment.get(\"client_community_name\")\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r"," let community = res.json().community\r"," let tenant = res.json().tenant\r"," pm.environment.set(\"communityId\", community.id);\r"," pm.environment.set(\"tenantId\", community.tenantid);\r"," pm.environment.set(\"client_tenant_tag\", tenant.tenanttag);\r"," pm.environment.set(\"root_tenant_tag\", tenant.tenanttag);\r"," next()\r"," })\r","}\r","\r","function fetchServerPublicKey(callback) {\r"," let url = publicKeyUsrMgmtUrl\r"," let tag = pm.environment.get(\"root_tenant_tag\")\r"," pm.sendRequest({\r"," url: url,\r"," method: 'GET',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'X-TenantTag': tag\r"," }\r"," }, function (err, res) {\r"," callback(res.json().publicKey)\r"," });\r","}\r","\r","function makeLicenseKey() {\r"," //clear\r"," pm.environment.set(\"enc_license_for_client\", \"\")\r"," var licenseKey = pm.environment.get(\"licenseKey\")\r"," console.log(licenseKey)\r"," console.log(pm.environment.get(\"usr_mgmt_public_key\"))\r"," ecdsa_helper(\"encrypt\", licenseKey, function(result) {\r"," pm.environment.set(\"enc_license_for_client\", result)\r"," })\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," pm.environment.set(\"requestid\", \"\")\r"," \r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","function createPayload() {\r"," let env_var_name = \"payload\"\r"," \r"," pm.environment.set(env_var_name, \"\")\r"," let dataStr = \"\\{\\\"user\\\": \\{\\\"username\\\": \\\"john.doe\\\",\\\"authModuleId\\\": \\\"68418b901ac4790f690ffdb4\\\",\\\"uid\\\":\\\"beafb38c-499b-40ef-a62c-b58777f200d4\\\"},\\\"aliases\\\": \\{\\\"alias1\\\":\\\"doej\\\",\\\"alias2\\\": null,\\\"alias3\\\": null, \\\"alias4\\\": null,\\\"alias5\\\": null,\\\"alias6\\\": null,\\\"alias7\\\": null,\\\"alias8\\\": null\\}\\}\"\r","\r"," ecdsa_helper(\"encrypt\", dataStr, function(result) {\r","\t pm.environment.set(env_var_name, result)\r","\t \r"," })\r"," \r","}\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let payload = {\r"," \t //method: method,\r"," \t publicKey: pm.environment.get(\"usr_mgmt_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," \r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"12d37d71-2556-4f80-9981-f3edb167306a","exec":["let url = pm.environment.get(\"client_api\") + \"/users-mgmt/ecdsa_helper/decrypt\"\r","let otherPartyPublicKey = pm.environment.get(\"client_api\") +\"/users-mgmt/publickeys\"\r","let privateKey = pm.environment.get(\"my_private_key\")\r","function ecdsa_helper(method, dataStr, callback) {\r"," let payload = {\r"," \t //method: method,\r"," \t publicKey: pm.environment.get(\"reports_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr.data\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," \r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}\r","\r","var data = JSON.parse(pm.response.text());\r","console.log(data);\r","\r","\r","ecdsa_helper(\"decrypt\", data, function(result) {\r"," var dResult = JSON.parse(result);\r"," console.info(dResult);\r","})\r",""],"type":"text/javascript","packages":{}}}],"id":"2c355fac-5009-47ae-9c3d-01d6a43aeaa0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"data\": \"{{payload}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/users-mgmt/tenant//community//user_properties/update","description":"This endpoint allows you to update user properties within a specific community for a given tenant.
\nPOST {{client_api}}/users-mgmt/tenant/tenantId/community/communityId/user_properties/update
POST
The request body should be in JSON format and must include the following parameter:
\n{\n \"data\": \"{{payload}}\"\n}\n\n\n{\n \"data\": {\n \"user\": {\n \"username\": \"john.doe\",\n \"authModuleId\": \"68418b901ac4790f690ffdb4\",\n \"uid\": \"beafb38c-499b-40ef-a62c-b58777f200d4\"\n },\n \"aliases\": {\n \"alias1\": \"doej\",\n \"alias2\": null,\n \"alias3\": null,\n \"alias4\": null,\n \"alias5\": null,\n \"alias6\": null,\n \"alias7\": null,\n \"alias8\": null\n }\n }\n}\n\n\nUpon a successful request, the server will respond with a status code of 200 and a JSON object containing the following fields:
data (string): This field will contain ECDSA encrypted relevant data related to the update operation. See below to sample decrypted payload:
\npublicKey (string): This field will return the service's public key.
\n{\n \"data\": \"8ngLnqWrCMkTFHXkjnbApJjppNY5E37BmL0VxRzE4BObC+L01IrM+rswO5sgdAMGLMyL0GR/SYcVwxkziT31Q+aWcYe2OQK93TxCzXPcyQi8ehVyI+CHfiG5fJrZK2gBmbNuA6EA/BKd6KeygjD6Rrn3VnqH20ef5Uw9fO8/neGk1i6vhxykmFtu4QcuWKOAQEYTTOqCiA3Lqye6H/tQ9mQLcFe6YPBVsFCJAkZyXlCljtq8QV8/JLE2d16z+g0GiBOX+A2egD3Hu2yEGINhR3iBQxH+DU+OGox/f7Oeop/Uf6WxdZXfS+BIOmavuq/zYxANau99UfUvbYz7gKvNPCTyGcBIjoTlO1mUlmiG3x6vdBQlYMUPvf+BcQKh1Drh5LFqYJP+O/+1kBPlecxwcpF95ueLpOQPpxUGBvalVkDIYjb9fFFDul5atNgVT6+5VLSs5fDNFxOCzVENpJ1bjjDcNkEHGILxI55ea84kfU1kwWqET5WVqO6sUlYYRghXIrLZ3cqfbT1USeqbRRbKgY2k1yH2SkOZSeqkqklnH9Sli3Coq9kskAM=\",\n \"publicKey\": \"4d3D/MgM9PqSyLAOz8jJY9TSZemrr2uaOvcnWQX1+dY5CNNaZ+OI0WeuqdWJNFSfnogJImCt5veztNBoHh06YQ==\"\n}\n\n\nEnsure that the tenantId and communityId in the URL are correctly specified to target the appropriate user properties.
The response may vary based on the operation performed, but it will always return the specified fields.
\nThis API enables you to test Our User Manangement APIs
\nBefore you begin to execute APIs, you must set up your community and tenant information in your Environments.
\nTo set up your environment, follow these steps:
\n2. In the Variable column, add the following parameters in the same format:
\nclient_api
\nmy_public_key
\nmy_private_key
\nlicenseKey
\nclient_community_name
\nNote: The above parameters are case sensitive.
\n3. In the Type column, specify the value as default for all the three parameters.
\n4. In the Initial value column, specify the following values for each parameter:
\nclient_api - Specify your tenant URL (For Example: https://acme.1kosmos.net)
\nmy_public_key - Your ECDSA Public Key
\nmy_private_key - Your ECDSA Private Key
\nclient_community_name - Specify your community name.
\nlicenseKey - Specify the license key of your tenant.
\n5. In the Current value column, specify the same value as that of the initial value for all the three parameters.
\nThe following screenshot illustrates how the page appears after configuring your environment variables:
\nThis endpoint allows the client to update the verification link for a specific community identified by its code. It utilizes the HTTP PUT method to send the required data.
\nMethod: PUT
Endpoint: {{client_api}}/api/r2/acr/community/:community/code
The request body must be in JSON format and include the following parameters:
\nOn a successful request, the API will return a JSON response with the following structure:
\nemailResult (object): Contains the result of the email sending operation.
\nstatus (boolean): Indicates whether the email was successfully sent.
\nstatusCode (integer): A code representing the status of the operation.
\nmessage (string): A message providing additional information about the operation.
\nerror (null or object): Contains error details if the operation failed.
\ngatewayId (null or string): Identifier for the email gateway used.
\ngatewayName (null or string): Name of the email gateway used.
\nresultId (string): Identifier for the result of the email operation.
\nmessageId (null or string): Identifier for the message sent.
\nts (integer): Timestamp of the operation.
\nlink (string): The generated verification link.
\ncode (string): The code associated with the community.
\n{\n \"emailResult\": {\n \"status\": true,\n \"statusCode\": 0,\n \"message\": \"\",\n \"error\": null,\n \"gatewayId\": null,\n \"gatewayName\": null,\n \"resultId\": \"\",\n \"messageId\": null,\n \"ts\": 0\n },\n \"link\": \"\",\n \"code\": \"\"\n}\n\n\nThis response indicates the success of the email operation and provides the necessary details about the verification link.
\n","urlObject":{"path":["api","r2","acr","community",":community","code"],"host":["{{client_api}}"],"query":[],"variable":[{"id":"3b9ad968-abc2-49fa-b883-c4cb0035964f","type":"any","value":"{{client_community_name}}","key":"community"}]}},"response":[{"id":"cb098775-a4bb-4438-9b39-1e620536a1c2","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"publickey","value":"{{client_public_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"createdby\":\"application\",\r\n \"version\":\"v0\",\r\n \"type\":\"verification_link\",\r\n \"emailTo\": \"john.doe@1kosmos.com\",\r\n \"ttl_seconds\": 700,\r\n \"emailTemplateB64\":\"Q2xpY2sgdGhlIGJ1dHRvbiBiZWxvdyB0byBsb2cgaW4gdG8gMUtvc21vcyBEZXZlbG9wZXIgRXhwZXJpZW5jZS4gaHR0cHM6Ly9ibG9ja2lkLXRyaWFsLjFrb3Ntb3MubmV0L2RldnBvcnRhbC9kZW1vP2NvZGU9e3tNQUdJQ0xJTkt9fSBUaGlzIGxpbmsgd2lsbCBleHBpcmUgaW4gMjAgbWludXRlcy4=\",\r\n \"emailSubject\":\"emailSubject\"\r\n }","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/api/r2/acr/community/:community/code","host":["{{client_api}}"],"path":["api","r2","acr","community",":community","code"],"variable":[{"key":"community","value":"{{client_community_name}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Jun 2025 07:43:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"emailResult\": {\n \"status\": true,\n \"statusCode\": 0,\n \"message\": \"https://1k-uat.1kosmos.net/acr\",\n \"error\": null,\n \"gatewayId\": null,\n \"gatewayName\": null,\n \"resultId\": \"f695243f-1369-4342-93a7-7e3be987fe07\",\n \"messageId\": null,\n \"ts\": 1750146210\n },\n \"link\": \"7d319855-946f-4922-88f4-fb259b0bff49\",\n \"code\": \"7d319855-946f-4922-88f4-fb259b0bff49\"\n}"},{"id":"44522e95-1bab-4b5c-abe2-87950a5834ad","name":"Fail: Email Required","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"publickey","value":"{{client_public_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"createdby\":\"application\",\r\n \"version\":\"v0\",\r\n \"type\":\"verification_link\",\r\n \"ttl_seconds\": 700,\r\n \"emailTemplateB64\":\"Q2xpY2sgdGhlIGJ1dHRvbiBiZWxvdyB0byBsb2cgaW4gdG8gMUtvc21vcyBEZXZlbG9wZXIgRXhwZXJpZW5jZS4gaHR0cHM6Ly9ibG9ja2lkLXRyaWFsLjFrb3Ntb3MubmV0L2RldnBvcnRhbC9kZW1vP2NvZGU9e3tNQUdJQ0xJTkt9fSBUaGlzIGxpbmsgd2lsbCBleHBpcmUgaW4gMjAgbWludXRlcy4=\",\r\n \"emailSubject\":\"emailSubject\"\r\n }","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/api/r2/acr/community/:community/code","host":["{{client_api}}"],"path":["api","r2","acr","community",":community","code"],"variable":[{"key":"community","value":"{{client_community_name}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Jun 2025 07:44:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"Some exception occured while processing the request. smsTo or emailTo are required for this type of code\"\n}"},{"id":"94957275-04b7-4581-a46d-9052cd58442c","name":"Fail: Version Required","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"publickey","value":"{{client_public_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"createdby\":\"application\",\r\n \"type\":\"verification_link\",\r\n \"emailTo\": \"john.doe@1kosmos.com\",\r\n \"ttl_seconds\": 700,\r\n \"emailTemplateB64\":\"Q2xpY2sgdGhlIGJ1dHRvbiBiZWxvdyB0byBsb2cgaW4gdG8gMUtvc21vcyBEZXZlbG9wZXIgRXhwZXJpZW5jZS4gaHR0cHM6Ly9ibG9ja2lkLXRyaWFsLjFrb3Ntb3MubmV0L2RldnBvcnRhbC9kZW1vP2NvZGU9e3tNQUdJQ0xJTkt9fSBUaGlzIGxpbmsgd2lsbCBleHBpcmUgaW4gMjAgbWludXRlcy4=\",\r\n \"emailSubject\":\"emailSubject\"\r\n }","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/api/r2/acr/community/:community/code","host":["{{client_api}}"],"path":["api","r2","acr","community",":community","code"],"variable":[{"key":"community","value":"{{client_community_name}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 17 Jun 2025 07:45:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"Some exception occured while processing the request. uid and moduleId are mandatory\"\n}"},{"id":"46e00c14-9c62-474b-b4ba-6fe0099434af","name":"Fail: Bad Request","originalRequest":{"method":"PUT","header":[{"key":"X-TenantTag","value":"{{root_tenant_tag}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"noecdsa","value":"true","type":"text"},{"key":"publickey","value":"{{client_public_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"createdby\": \"application\",\r\n \"type\": \"verification_link\",\r\n \"emailTo\": \"john.doe@1kosmos.com\",\r\n \"ttl_seconds\": 700,\r\n \"emailTemplateB64\": \"Q2xpY2sgdGhlIGJ1dHRvbiBiZWxvdyB0byBsb2cgaW4gdG8gMUtvc21vcyBEZXZlbG9wZXIgRXhwZXJpZW5jZS4gaHR0cHM6Ly9ibG9ja2lkLXRyaWFsLjFrb3Ntb3MubmV0L2RldnBvcnRhbC9kZW1vP2NvZGU9e3tNQUdJQ0xJTkt9fSBUaGlzIGxpbmsgd2lsbCBleHBpcmUgaW4gMjAgbWludXRlcy4=\",\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/api/r2/acr/community/:community/code","host":["{{client_api}}"],"path":["api","r2","acr","community",":community","code"],"variable":[{"key":"community","value":"{{client_community_name}}"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Tue, 17 Jun 2025 07:46:09 GMT"},{"key":"Content-Type","value":"text/html;charset=utf-8"},{"key":"Content-Length","value":"435"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Security-Policy","value":"object-src 'none';base-uri 'self';connect-src 'self';frame-src 'self';manifest-src 'self';media-src 'self';worker-src 'none';"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Content-Language","value":"en"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"This API enables you to test Our Acceess Code APIs
\nBefore you begin to execute APIs, you must set up your community and tenant information in your Environments.
\nTo set up your environment, follow these steps:
\n2. In the Variable column, add the following parameters in the same format:
\nclient_api
\nmy_public_key (optional if request header contains noecdsa:true)
my_private_key (optional if request header contains noecdsa:true)
licenseKey
\nclient_community_name
\nNote: The above parameters are case sensitive.
\n3. In the Type column, specify the value as default for all the three parameters.
\n4. In the Initial value column, specify the following values for each parameter:
\nclient_api - Specify your tenant URL (For Example: https://acme.1kosmos.net)
\nmy_public_key - Your ECDSA Public Key
\nmy_private_key - Your ECDSA Private Key
\nclient_community_name - Specify your community name.
\nlicenseKey - Specify the license key of your tenant.
\n5. In the Current value column, specify the same value as that of the initial value for all the three parameters.
\nThe following screenshot illustrates how the page appears after configuring your environment variables:
\nClient Public Key
\n","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now
\n","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key
\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"info\": {\r\n \"id\": \"1234\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20260211\"\r\n },\r\n \"did\": \"17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\",\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType","description":"This endpoint allows you to create a Verifiable Credential (VC) for a specified tenant and community. It utilizes the HTTP POST method to submit a payload containing user information and related details.
\nMethod: POST
\nEndpoint: {{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType
tenantID (string): The unique identifier for the tenant.
communityID (string): The unique identifier for the community.
vcType (string): The type of verifiable credential being created.
The request body must be in JSON format and should contain the following keys:
\nOn a successful request, the API will return a response with the following structure:
\nStatus Code: 200
\nContent-Type: application/json
\nError Response
\nThe response will include the following keys:
\nvc (object): The created Verifiable Credential.
@context (array): Context information for the VC.
id (string): Identifier for the VC.
type (array): Types associated with the VC.
issuer (object): Issuer details.
id (string): Issuer identifier.
tenantId (string): Tenant identifier.
communityId (string): Community identifier.
issuanceDate (string): Date the VC was issued.
expirationDate (string): Expiration date of the VC.
credentialSubject (object): Subject information of the VC.
id (string): Subject identifier.
Other personal information fields as provided in the request.
\nproof (object): Proof details for the VC.
type (string): Type of proof.
created (string): Creation date of the proof.
verificationMethod (string): Method used for verification.
proofPurpose (string): Purpose of the proof.
proofValue (string): Value of the proof.
statusUrl (string): URL to check the status of the VC.
vcId (string): The unique identifier for the VC.
download_url (string): URL to download the VC.
{\n \"vc\": {\n \"@context\": [\"\"],\n \"id\": \"\",\n \"type\": [\"\"],\n \"issuer\": {\n \"id\": \"\",\n \"tenantId\": \"\",\n \"communityId\": \"\"\n },\n \"issuanceDate\": \"\",\n \"expirationDate\": \"\",\n \"credentialSubject\": {\n \"id\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"companyName\": \"\",\n \"companyAddress\": \"\",\n \"department\": \"\",\n \"title\": \"\",\n \"doe\": \"\",\n \"publicKey\": \"\"\n },\n \"proof\": {\n \"type\": \"\",\n \"created\": \"\",\n \"verificationMethod\": \"\",\n \"proofPurpose\": \"\",\n \"proofValue\": \"\"\n },\n \"statusUrl\": \"\"\n },\n \"vcId\": \"\",\n \"download_url\": \"\"\n}\n\n\n","urlObject":{"path":["vcs","tenant",":tenantID","community",":communityID","vc","from","payload",":vcType"],"host":["{{client_api}}"],"query":[],"variable":[{"id":"1d394037-d9df-4b7f-b89b-d6384e7df7ac","description":{"content":"Tenant ID
\n","type":"text/plain"},"type":"any","value":"","key":"tenantID"},{"id":"552fe82a-153f-4f6d-965f-f58f08e5563e","description":{"content":"Commnity ID
\n","type":"text/plain"},"type":"any","value":"","key":"communityID"},{"id":"e2438378-54f3-4a1a-a8a1-8c6cff505f2f","description":{"content":"VC Type
\n","type":"text/plain"},"type":"any","value":"vc_EmploymentCredential","key":"vcType"}]}},"response":[{"id":"5d9829b0-9799-4fcb-9e58-f178ce54bedd","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"info\": {\r\n \"id\": \"1234\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20260211\"\r\n },\r\n \"did\": \"17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\",\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","from","payload",":vcType"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""},{"key":"vcType","value":"vc_EmploymentCredential"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 07:33:37 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"6ed-PN57mjFIXlthYvA3tzYhy35gyXc\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n \"vc\": {\n \"@context\": [\n \"https://www.w3.org/2018/credentials/v1\",\n {\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\n \"firstName\": \"https://schema.org#firstName\",\n \"lastName\": \"https://schema.org#lastName\",\n \"companyName\": \"https://schema.org#companyName\",\n \"companyAddress\": \"https://schema.org#companyAddress\",\n \"department\": \"https://schema.org#department\",\n \"title\": \"https://schema.org#title\",\n \"doe\": \"https://schema.org#doe\",\n \"publicKey\": \"https://schema.org#publicKey\"\n },\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\n ],\n \"id\": \"did:blockid:8d947e38-a497-4d28-bb90-3de7434d36de\",\n \"type\": [\n \"VerifiableCredential\",\n \"vc_EmploymentCredential\"\n ],\n \"issuer\": {\n \"id\": \"https://1k-dev.1kosmos.net\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\"\n },\n \"issuanceDate\": \"2025-06-23T07:33:37.404Z\",\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\n \"credentialSubject\": {\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\n \"firstName\": \"john\",\n \"lastName\": \"doe\",\n \"companyName\": \"1kosmos\",\n \"companyAddress\": \"Mumbai\",\n \"department\": \"Mobile\",\n \"title\": \"software engineer\",\n \"doe\": \"20260211\",\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\n },\n \"proof\": {\n \"type\": \"Ed25519Signature2020\",\n \"created\": \"2025-06-23T07:33:37Z\",\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\n \"proofPurpose\": \"assertionMethod\",\n \"proofValue\": \"z3EbDE9o1JMGddpRWTVmsF6cqtoESkn5XenSo4yi7D33diff8waQuN4bxWdGMe97bKiDnJAYXmvN144D1Pw2cRBVu\"\n },\n \"statusUrl\": \"https://1k-dev.1kosmos.net/vcs/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:8d947e38-a497-4d28-bb90-3de7434d36de/status\"\n },\n \"vcId\": \"did:blockid:8d947e38-a497-4d28-bb90-3de7434d36de\",\n \"download_url\": \"https://1k-dev.1kosmos.net/vcs/vc/did:blockid:8d947e38-a497-4d28-bb90-3de7434d36de/download\"\n}"},{"id":"8efb3fab-ecc5-479d-ac68-d7ff87b39af1","name":"Fail: Expired Payload","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"info\": {\r\n \"id\": \"1234\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20220211\"\r\n },\r\n \"did\": \"17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\",\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","from","payload",":vcType"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""},{"key":"vcType","value":"vc_EmploymentCredential"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 07:35:45 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"78"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4e-ATC7vLMqHPBIiQIt5lT3n9ln4P0\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"info failed custom validation because Expired payload\"\n}"},{"id":"2b29e0fd-2a86-491a-a336-3ebb3986b361","name":"Failed: Missing DID/User Public Key/ UserURN","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"info\": {\r\n \"id\": \"1234\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20260211\"\r\n },\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\",\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","from","payload",":vcType"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""},{"key":"vcType","value":"vc_EmploymentCredential"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 07:37:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"66"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"42-Ay5ENp/xbPCPzYH2CtJ0AwtvFH0\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"Please provide a did/publicKey OR userURN\"\n}"},{"id":"3a1446c0-d175-4a04-bf23-87aa1a0d8c46","name":"Failed: Missing Issuer","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"info\": {\r\n \"id\": \"1234\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20260211\"\r\n },\r\n \"did\": \"17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","from","payload",":vcType"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""},{"key":"vcType","value":"vc_EmploymentCredential"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 07:38:47 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"2b-xuFnNAGHvw8bHuTxb2iD/XWLncw\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"issuer is required\"\n}"},{"id":"2679e82b-896e-4d77-922d-ddfb71c0333c","name":"Failed: Missing DOE","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"info\": {\r\n \"id\": \"1234\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\" },\r\n \"did\": \"17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\",\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","from","payload",":vcType"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""},{"key":"vcType","value":"vc_EmploymentCredential"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 07:40:31 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"28-mkqaTSP98XgaeWciZiW25KO1gcs\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"doe is required\"\n}"},{"id":"8e0e7877-c0a0-4180-926e-5372bcf1fbae","name":"Failed: Missing Company Name","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"info\": {\r\n \"id\": \"1234\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20260211\"\r\n },\r\n \"did\": \"17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\",\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","from","payload",":vcType"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""},{"key":"vcType","value":"vc_EmploymentCredential"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 07:41:13 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"48"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"30-LMNmytlEvlwkQ5CR6YHhswMpHpM\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"companyName is required\"\n}"},{"id":"cb7e3299-412f-4605-9d08-a51ed7094c1b","name":"Failed: Missing Last Name","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"info\": {\r\n \"id\": \"1234\",\r\n \"firstName\": \"john\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20260211\"\r\n },\r\n \"did\": \"17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\",\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","from","payload",":vcType"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""},{"key":"vcType","value":"vc_EmploymentCredential"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 07:41:36 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"2d-QLb/BrMp+Olws+1j16XHBHg+O3Q\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"lastName is required\"\n}"},{"id":"9668bcf6-cf10-41b7-a230-5edb1b023666","name":"Failed: Missing First Name","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"info\": {\r\n \"id\": \"1234\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"2020211\"\r\n },\r\n \"did\": \"17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\",\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","from","payload",":vcType"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""},{"key":"vcType","value":"vc_EmploymentCredential"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 07:42:56 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"2e-fZUAdrpCgTTJSZUr8OgDaAGZ5FI\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"firstName is required\"\n}"},{"id":"0aa6947d-bb39-4b26-b735-3cb724b02947","name":"Failed: Missing User ID","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"info\": {\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"2020211\"\r\n },\r\n \"did\": \"17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\",\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","from","payload",":vcType"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""},{"key":"vcType","value":"vc_EmploymentCredential"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 07:43:58 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"27-fcVMnNYIwfA4EtNXlFQaC8wrxiY\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"id is required\"\n}"},{"id":"eac866dd-66d1-4ab0-a210-16f2e9d761b6","name":"Failed: Missing User Info","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"did\": \"17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\",\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","from","payload",":vcType"],"variable":[{"key":"tenantID","value":""},{"key":"communityID","value":""},{"key":"vcType","value":"vc_EmploymentCredential"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 07:44:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"29-48uzBirhbvJ0BzwURyrRJnLsnCk\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"info is required\"\n}"},{"id":"0cec4244-cac9-4ec1-9ce8-e81061af8a83","name":"Failed: invalid/Missing License Key","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n \"info\": {\r\n \"id\": \"1234\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20260211\"\r\n },\r\n \"did\": \"17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\",\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/from/payload/:vcType","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","from","payload",":vcType"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"},{"key":"vcType","value":"vc_EmploymentCredential","description":"VC Type"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 07:51:32 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"25-Y/9DhNk+fkg6hkvizDVGX7cBV4I\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 401,\n \"message\": \"Unauthorized\"\n}"}],"_postman_id":"45a97e4f-a5ef-4375-abb5-7840ac26aa72"},{"name":"Get Verifiable Credential Status","event":[{"listen":"prerequest","script":{"id":"a7340a35-6977-4d05-95b5-260859340d6e","exec":["let url = pm.environment.get(\"client_api\") + \"/vcs/ecdsa_helper/encrypt\"\r","let publicKeyUsrMgmtUrl = pm.environment.get(\"client_api\") +\"/vcs/publickeys\"\r","let privateKey = pm.environment.get(\"my_private_key\")\r","\r","fetchCommunityInfo(function() {\r"," fetchServerPublicKey(function (pk1) {\r"," pm.environment.set(\"usr_mgmt_public_key\", pk1);\r"," makeLicenseKey()\r"," makeRequestId()\r"," createPayload()\r"," })\r"," })\r","\r","function fetchCommunityInfo(next) {\r"," let apiURL = pm.environment.get(\"client_api\")\r"," let url = apiURL + \"/api/r1/system/community_info/fetch\"\r"," let dns = apiURL.replace(\"https://\", \"\")\r","\r"," let payload = {\r"," dns: dns,\r"," communityName: pm.environment.get(\"client_community_name\")\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r"," let community = res.json().community\r"," let tenant = res.json().tenant\r"," pm.environment.set(\"communityId\", community.id);\r"," pm.environment.set(\"tenantId\", community.tenantid);\r"," pm.environment.set(\"client_tenant_tag\", tenant.tenanttag);\r"," pm.environment.set(\"root_tenant_tag\", tenant.tenanttag);\r"," next()\r"," })\r","}\r","\r","function fetchServerPublicKey(callback) {\r"," let url = publicKeyUsrMgmtUrl\r"," let tag = pm.environment.get(\"root_tenant_tag\")\r"," pm.sendRequest({\r"," url: url,\r"," method: 'GET',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'X-TenantTag': tag\r"," }\r"," }, function (err, res) {\r"," callback(res.json().publicKey)\r"," });\r","}\r","\r","function makeLicenseKey() {\r"," //clear\r"," pm.environment.set(\"enc_license_for_client\", \"\")\r"," var licenseKey = pm.environment.get(\"licenseKey\")\r"," ecdsa_helper(\"encrypt\", licenseKey, function(result) {\r"," pm.environment.set(\"enc_license_for_client\", result)\r"," })\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," pm.environment.set(\"requestid\", \"\")\r"," \r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","function createPayload() {\r"," \r","}\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let payload = {\r"," \t //method: method,\r"," \t publicKey: pm.environment.get(\"usr_mgmt_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," \r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}"],"type":"text/javascript","packages":{}}}],"id":"6b5a8205-8cc0-4f4c-a1a7-07005b14ecd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"url":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/:vcID/status","description":"This endpoint retrieves the status of a specific verifiable credential (VC) within a community for a given tenant. It provides detailed information about the VC, including its subject, issuer, and proof details.
\nMethod: GET
URL: {{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/:vcID/status
tenantID (string, required): The unique identifier for the tenant.
communityID (string, required): The unique identifier for the community.
vcID (string, required): The unique identifier for the verifiable credential.
Authorization (string, optional): Bearer token for authentication (if required by your API).
Content-Type (string, optional): Typically set to application/json.
The response will return a JSON object containing the status of the requested verifiable credential.
\n{\n \"result\": {\n \"subject\": {\n \"did\": \"\",\n \"publicKey\": \"\"\n },\n \"type\": [\"\"],\n \"_id\": \"\",\n \"vcID\": \"\",\n \"tenantId\": \"\",\n \"communityId\": \"\",\n \"proof\": {\n \"type\": \"\",\n \"created\": \"\",\n \"verificationMethod\": \"\",\n \"proofPurpose\": \"\",\n \"proofValue\": \"\"\n },\n \"issueTS\": 0,\n \"expiryTS\": 0,\n \"status\": \"\",\n \"issuer\": {\n \"id\": \"\",\n \"tenantId\": \"\",\n \"communityId\": \"\"\n }\n }\n}\n\n\nresult: Contains the details of the verifiable credential.
subject: Information about the subject of the VC.
did: Decentralized Identifier of the subject.
publicKey: Public key associated with the subject.
type: An array indicating the type of the VC.
_id: Internal identifier for the VC.
vcID: The unique identifier for the verifiable credential.
tenantId: Identifier for the tenant.
communityId: Identifier for the community.
proof: Details about the proof of the VC.
type: Type of proof.
created: Timestamp of when the proof was created.
verificationMethod: Method used for verification.
proofPurpose: Purpose of the proof.
proofValue: Value of the proof.
issueTS: Timestamp indicating when the VC was issued.
expiryTS: Timestamp indicating when the VC expires.
status: Current status of the VC.
issuer: Information about the issuer of the VC.
id: Identifier for the issuer.
tenantId: Identifier for the issuer's tenant.
communityId: Identifier for the issuer's community.
This endpoint is essential for checking the validity and status of verifiable credentials within a community, ensuring that users can manage and verify their credentials effectively.
\n","urlObject":{"path":["vcs","tenant",":tenantID","community",":communityID","vc",":vcID","status"],"host":["{{client_api}}"],"query":[],"variable":[{"id":"c3d4202a-1f50-407d-8a86-b1e6d0f657c7","description":{"content":"Tenant ID
\n","type":"text/plain"},"type":"any","value":"","key":"tenantID"},{"id":"8aaac84f-bdcc-4ab9-a74d-494856361857","description":{"content":"Commnunity ID
\n","type":"text/plain"},"type":"any","value":"","key":"communityID"},{"id":"b5fb3b40-28f1-4158-b704-e8abb083a34c","description":{"content":"VC ID
\n","type":"text/plain"},"type":"any","value":"{{vcID}}","key":"vcID"}]}},"response":[{"id":"684ab8ba-46f5-40d8-a686-de1fbdb9d2b3","name":"Success","originalRequest":{"method":"GET","header":[{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"url":{"raw":"https://1k-dev.1kosmos.net/vcs/tenant/:tenantID/community/:communityID/vc/:vcID/status","protocol":"https","host":["1k-dev","1kosmos","net"],"path":["vcs","tenant",":tenantID","community",":communityID","vc",":vcID","status"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnunity ID"},{"key":"vcID","value":"{{vcID}}","description":"VC ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 09:29:33 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"892"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"37c-JfAVceP2wwZjkfuKGE0lAe7UyyE\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"subject\": {\n \"did\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\n },\n \"type\": [\n \"VerifiableCredential\",\n \"vc_EmploymentCredential\"\n ],\n \"_id\": \"68591e78dcdbc20b5f4549ee\",\n \"vcID\": \"did:blockid:670c5e8e-e87e-43ba-a843-9ed2240d57b6\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\",\n \"proof\": {\n \"type\": \"Ed25519Signature2020\",\n \"created\": \"2025-06-23T09:29:28Z\",\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\n \"proofPurpose\": \"assertionMethod\",\n \"proofValue\": \"z48SnxMwZRAsw6wPnWHHqqUYTKDPft8K55dRYxYfUyZRYHCrCEoc9vNyNzoeZGZoTRwA3iu9w2GHqex2hfmb67FRU\"\n },\n \"issueTS\": 1750670968,\n \"expiryTS\": 1770768000,\n \"status\": \"issued\",\n \"issuer\": {\n \"id\": \"https://1k-dev.1kosmos.net\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\"\n }\n }\n}"},{"id":"2af39427-8d6e-4ddc-b497-4a887a9afdb9","name":"Failed: VC Not Found","originalRequest":{"method":"GET","header":[{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text"}],"url":{"raw":"https://1k-dev.1kosmos.net/vcs/tenant/:tenantID/community/:communityID/vc/:vcID/status","protocol":"https","host":["1k-dev","1kosmos","net"],"path":["vcs","tenant",":tenantID","community",":communityID","vc",":vcID","status"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnunity ID"},{"key":"vcID","value":"{{vcID}}","description":"VC ID"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 09:28:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"25-2MUQbdLRNFh0pOk7t0kaYQaMC68\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 404,\n \"message\": \"VC not found\"\n}"},{"id":"2a6f6359-e856-4021-bea6-395e0833a9ee","name":"Failed: Invalid/Missing License Key","originalRequest":{"method":"GET","header":[{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","type":"text","disabled":true}],"url":{"raw":"https://1k-dev.1kosmos.net/vcs/tenant/:tenantID/community/:communityID/vc/:vcID/status","protocol":"https","host":["1k-dev","1kosmos","net"],"path":["vcs","tenant",":tenantID","community",":communityID","vc",":vcID","status"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnunity ID"},{"key":"vcID","value":"{{vcID}}","description":"VC ID"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 09:28:49 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"25-Y/9DhNk+fkg6hkvizDVGX7cBV4I\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 401,\n \"message\": \"Unauthorized\"\n}"}],"_postman_id":"6b5a8205-8cc0-4f4c-a1a7-07005b14ecd9"},{"name":"Verify Verifiable Credential","event":[{"listen":"prerequest","script":{"id":"c8174cd5-3a41-47ae-8e04-121f14c411c8","exec":["let url = pm.environment.get(\"client_api\") + \"/vcs/ecdsa_helper/encrypt\"\r","let publicKeyUsrMgmtUrl = pm.environment.get(\"client_api\") +\"/vcs/publickeys\"\r","let privateKey = pm.environment.get(\"my_private_key\")\r","\r","fetchCommunityInfo(function() {\r"," fetchServerPublicKey(function (pk1) {\r"," pm.environment.set(\"usr_mgmt_public_key\", pk1);\r"," makeLicenseKey()\r"," makeRequestId()\r"," createPayload()\r"," })\r"," })\r","\r","function fetchCommunityInfo(next) {\r"," let apiURL = pm.environment.get(\"client_api\")\r"," let url = apiURL + \"/api/r1/system/community_info/fetch\"\r"," let dns = apiURL.replace(\"https://\", \"\")\r","\r"," let payload = {\r"," dns: dns,\r"," communityName: pm.environment.get(\"client_community_name\")\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r"," let community = res.json().community\r"," let tenant = res.json().tenant\r"," pm.environment.set(\"communityId\", community.id);\r"," pm.environment.set(\"tenantId\", community.tenantid);\r"," pm.environment.set(\"client_tenant_tag\", tenant.tenanttag);\r"," pm.environment.set(\"root_tenant_tag\", tenant.tenanttag);\r"," next()\r"," })\r","}\r","\r","function fetchServerPublicKey(callback) {\r"," let url = publicKeyUsrMgmtUrl\r"," let tag = pm.environment.get(\"root_tenant_tag\")\r"," pm.sendRequest({\r"," url: url,\r"," method: 'GET',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'X-TenantTag': tag\r"," }\r"," }, function (err, res) {\r"," callback(res.json().publicKey)\r"," });\r","}\r","\r","function makeLicenseKey() {\r"," //clear\r"," pm.environment.set(\"enc_license_for_client\", \"\")\r"," var licenseKey = pm.environment.get(\"licenseKey\")\r"," ecdsa_helper(\"encrypt\", licenseKey, function(result) {\r"," pm.environment.set(\"enc_license_for_client\", result)\r"," })\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," pm.environment.set(\"requestid\", \"\")\r"," \r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","function createPayload() {\r"," \r","}\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let payload = {\r"," \t //method: method,\r"," \t publicKey: pm.environment.get(\"usr_mgmt_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," \r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"c87c7bf2-68f9-4374-9714-7f8f5d825aa4","exec":["var resultText = pm.response.text()\r","var data = JSON.parse(resultText);\r","\r","console.log(data)"],"type":"text/javascript","packages":{}}}],"id":"9cdf229c-831b-474e-a31e-6a5bc26d94fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key
\n","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now
\n","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key
\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"vc\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"firstName\": \"https://schema.org#firstName\",\r\n \"lastName\": \"https://schema.org#lastName\",\r\n \"companyName\": \"https://schema.org#companyName\",\r\n \"companyAddress\": \"https://schema.org#companyAddress\",\r\n \"department\": \"https://schema.org#department\",\r\n \"title\": \"https://schema.org#title\",\r\n \"doe\": \"https://schema.org#doe\",\r\n \"publicKey\": \"https://schema.org#publicKey\"\r\n },\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"id\": \"did:blockid:e309fbcf-79c0-4f6b-bf42-72f38d3dd0d1\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:18:31.898Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20260211\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:18:31Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"zgvPhr6q63uPJkzvacSbrEa6kxcGHi3TZMdvCrKGsrCexQV2xtJkWLoB8nR4jtJxmVK7rpkd7NNQxajQnAZKh4Lt\"\r\n },\r\n \"statusUrl\": \"undefined/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:e309fbcf-79c0-4f6b-bf42-72f38d3dd0d1/status\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/verify","description":"This endpoint is used to verify a verifiable credential (VC) for a specific community within a tenant. It checks the authenticity and validity of the provided VC data.
\nMethod: POST
\nEndpoint: {{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/verify
Request Body: The request should include a JSON object containing the following structure:
\n{\n \"vc\": {\n \"@context\": [\"string\"],\n \"id\": \"string\",\n \"type\": [\"string\"],\n \"issuer\": {\n \"id\": \"string\",\n \"tenantId\": \"string\",\n \"communityId\": \"string\"\n },\n \"issuanceDate\": \"string (ISO 8601 date)\",\n \"expirationDate\": \"string (ISO 8601 date)\",\n \"credentialSubject\": {\n \"id\": \"string\",\n \"firstName\": \"string\",\n \"lastName\": \"string\",\n \"companyName\": \"string\",\n \"companyAddress\": \"string\",\n \"department\": \"string\",\n \"title\": \"string\",\n \"doe\": \"string\",\n \"publicKey\": \"string\"\n },\n \"proof\": {\n \"type\": \"string\",\n \"created\": \"string (ISO 8601 date)\",\n \"verificationMethod\": \"string\",\n \"proofPurpose\": \"string\",\n \"proofValue\": \"string\"\n },\n \"statusUrl\": \"string\"\n }\n}\n\n\nThe response will return a JSON object indicating whether the VC was verified and providing the status of the verification. The structure of the response is as follows:
\n{\n \"verified\": \"boolean\",\n \"status\": {\n \"subject\": {\n \"did\": \"string\",\n \"publicKey\": \"string\"\n },\n \"type\": [\"string\"],\n \"_id\": \"string\",\n \"vcID\": \"string\",\n \"tenantId\": \"string\",\n \"communityId\": \"string\",\n \"proof\": {\n \"type\": \"string\",\n \"created\": \"string\",\n \"verificationMethod\": \"string\",\n \"proofPurpose\": \"string\",\n \"proofValue\": \"string\"\n },\n \"issueTS\": \"integer\",\n \"expiryTS\": \"integer\",\n \"status\": \"string\",\n \"issuer\": {\n \"id\": \"string\",\n \"tenantId\": \"string\",\n \"communityId\": \"string\"\n }\n }\n}\n\n\nThe verified field indicates the success of the verification process.
The status object contains detailed information about the VC and its issuer.
Tenant ID
\n","type":"text/plain"},"type":"any","value":"","key":"tenantID"},{"id":"93f37f5b-96f3-41b9-a4a7-6c7f0df5a634","description":{"content":"Commnity ID
\n","type":"text/plain"},"type":"any","value":"","key":"communityID"}]}},"response":[{"id":"fccd28a9-4c0a-43bc-9065-64561ddc5258","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"vc\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"firstName\": \"https://schema.org#firstName\",\r\n \"lastName\": \"https://schema.org#lastName\",\r\n \"companyName\": \"https://schema.org#companyName\",\r\n \"companyAddress\": \"https://schema.org#companyAddress\",\r\n \"department\": \"https://schema.org#department\",\r\n \"title\": \"https://schema.org#title\",\r\n \"doe\": \"https://schema.org#doe\",\r\n \"publicKey\": \"https://schema.org#publicKey\"\r\n },\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"id\": \"did:blockid:e309fbcf-79c0-4f6b-bf42-72f38d3dd0d1\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:18:31.898Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20260211\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:18:31Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"zgvPhr6q63uPJkzvacSbrEa6kxcGHi3TZMdvCrKGsrCexQV2xtJkWLoB8nR4jtJxmVK7rpkd7NNQxajQnAZKh4Lt\"\r\n },\r\n \"statusUrl\": \"undefined/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:e309fbcf-79c0-4f6b-bf42-72f38d3dd0d1/status\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/verify","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","verify"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 08:19:19 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"907"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"38b-Z387IXkZHcxpG2C5nd69okc9UnE\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"verified\": true,\n \"status\": {\n \"subject\": {\n \"did\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\n },\n \"type\": [\n \"VerifiableCredential\",\n \"vc_EmploymentCredential\"\n ],\n \"_id\": \"68590dd7dcdbc28d83454946\",\n \"vcID\": \"did:blockid:e309fbcf-79c0-4f6b-bf42-72f38d3dd0d1\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\",\n \"proof\": {\n \"type\": \"Ed25519Signature2020\",\n \"created\": \"2025-06-23T08:18:31Z\",\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\n \"proofPurpose\": \"assertionMethod\",\n \"proofValue\": \"zgvPhr6q63uPJkzvacSbrEa6kxcGHi3TZMdvCrKGsrCexQV2xtJkWLoB8nR4jtJxmVK7rpkd7NNQxajQnAZKh4Lt\"\n },\n \"issueTS\": 1750666711,\n \"expiryTS\": 1770768000,\n \"status\": \"issued\",\n \"issuer\": {\n \"id\": \"https://1k-dev.1kosmos.net\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\"\n }\n }\n}"},{"id":"34dd009b-ca36-49d1-add6-00971479f632","name":"Failed: Server Error","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"vc\": {{vc}}\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/verify","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","verify"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 08:14:06 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"ETag","value":"W/\"2e-6jkYuJLbNq0cjWobEGrzuJTrSD8\""}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 500,\n \"message\": \"Internal Server Error\"\n}"},{"id":"36f27cc8-51f4-43f7-beb3-0739349daa6f","name":"Failed: invalid/Missing License Key","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n \"vc\": {\r\n \"vc\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"firstName\": \"https://schema.org#firstName\",\r\n \"lastName\": \"https://schema.org#lastName\",\r\n \"companyName\": \"https://schema.org#companyName\",\r\n \"companyAddress\": \"https://schema.org#companyAddress\",\r\n \"department\": \"https://schema.org#department\",\r\n \"title\": \"https://schema.org#title\",\r\n \"doe\": \"https://schema.org#doe\",\r\n \"publicKey\": \"https://schema.org#publicKey\"\r\n },\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"id\": \"did:blockid:d4ba9439-c713-4c38-b30d-8a7ac581fc3d\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:14:33.812Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20260211\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:14:33Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"z3jbZydUn8KTxZZL3DQf3xVpZqtDnnFRMPKAv2PsbFdG9DmCUm7ie4Fih2Pco94uoGX88zDRGQApRngNEhzQoWKT\"\r\n },\r\n \"statusUrl\": \"undefined/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:d4ba9439-c713-4c38-b30d-8a7ac581fc3d/status\"\r\n }\r\n }","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/verify","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","verify"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 08:14:41 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"25-Y/9DhNk+fkg6hkvizDVGX7cBV4I\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 401,\n \"message\": \"Unauthorized\"\n}"},{"id":"d44dedb5-79d7-4eac-bd4c-50cd42e19409","name":"Failed: Invalid VC","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"vc\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"firstName\": \"https://schema.org#firstName\",\r\n \"lastName\": \"https://schema.org#lastName\",\r\n \"companyName\": \"https://schema.org#companyName\",\r\n \"companyAddress\": \"https://schema.org#companyAddress\",\r\n \"department\": \"https://schema.org#department\",\r\n \"title\": \"https://schema.org#title\",\r\n \"doe\": \"https://schema.org#doe\",\r\n \"publicKey\": \"https://schema.org#publicKey\"\r\n },\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"id\": \"did:blockid:d4ba9439-c713-4c38-b30d-8a7ac581fc3d\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:14:33.812Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20260211\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:14:33Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"z3jbZydUn8KTxZZL3DQf3xVpZqtDnnFRMPKAv2PsbFdG9DmCUm7ie4Fih2Pco94uoGX88zDRGQApRngNEhzQoWKT\"\r\n },\r\n \"statusUrl\": \"undefined/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:d4ba9439-c713-4c38-b30d-8a7ac581fc3d/status\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/verify","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","verify"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 08:18:04 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"907"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"38b-idxtfIENfAQF5NSS+sjSoG14DMY\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"verified\": true,\n \"status\": {\n \"subject\": {\n \"did\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\n },\n \"type\": [\n \"VerifiableCredential\",\n \"vc_EmploymentCredential\"\n ],\n \"_id\": \"68590ce9dcdbc24b6745492e\",\n \"vcID\": \"did:blockid:d4ba9439-c713-4c38-b30d-8a7ac581fc3d\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\",\n \"proof\": {\n \"type\": \"Ed25519Signature2020\",\n \"created\": \"2025-06-23T08:14:33Z\",\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\n \"proofPurpose\": \"assertionMethod\",\n \"proofValue\": \"z3jbZydUn8KTxZZL3DQf3xVpZqtDnnFRMPKAv2PsbFdG9DmCUm7ie4Fih2Pco94uoGX88zDRGQApRngNEhzQoWKT\"\n },\n \"issueTS\": 1750666473,\n \"expiryTS\": 1770768000,\n \"status\": \"issued\",\n \"issuer\": {\n \"id\": \"https://1k-dev.1kosmos.net\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\"\n }\n }\n}"}],"_postman_id":"9cdf229c-831b-474e-a31e-6a5bc26d94fc"},{"name":"Issue Verifiable Presentation","event":[{"listen":"prerequest","script":{"id":"c8174cd5-3a41-47ae-8e04-121f14c411c8","exec":["let url = pm.environment.get(\"client_api\") + \"/vcs/ecdsa_helper/encrypt\"\r","let publicKeyUsrMgmtUrl = pm.environment.get(\"client_api\") +\"/vcs/publickeys\"\r","let privateKey = pm.environment.get(\"my_private_key\")\r","\r","fetchCommunityInfo(function() {\r"," fetchServerPublicKey(function (pk1) {\r"," pm.environment.set(\"usr_mgmt_public_key\", pk1);\r"," makeLicenseKey()\r"," makeRequestId()\r"," createPayload()\r"," })\r"," })\r","\r","function fetchCommunityInfo(next) {\r"," let apiURL = pm.environment.get(\"client_api\")\r"," let url = apiURL + \"/api/r1/system/community_info/fetch\"\r"," let dns = apiURL.replace(\"https://\", \"\")\r","\r"," let payload = {\r"," dns: dns,\r"," communityName: pm.environment.get(\"client_community_name\")\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r"," let community = res.json().community\r"," let tenant = res.json().tenant\r"," pm.environment.set(\"communityId\", community.id);\r"," pm.environment.set(\"tenantId\", community.tenantid);\r"," pm.environment.set(\"client_tenant_tag\", tenant.tenanttag);\r"," pm.environment.set(\"root_tenant_tag\", tenant.tenanttag);\r"," next()\r"," })\r","}\r","\r","function fetchServerPublicKey(callback) {\r"," let url = publicKeyUsrMgmtUrl\r"," let tag = pm.environment.get(\"root_tenant_tag\")\r"," pm.sendRequest({\r"," url: url,\r"," method: 'GET',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'X-TenantTag': tag\r"," }\r"," }, function (err, res) {\r"," callback(res.json().publicKey)\r"," });\r","}\r","\r","function makeLicenseKey() {\r"," //clear\r"," pm.environment.set(\"enc_license_for_client\", \"\")\r"," var licenseKey = pm.environment.get(\"licenseKey\")\r"," ecdsa_helper(\"encrypt\", licenseKey, function(result) {\r"," pm.environment.set(\"enc_license_for_client\", result)\r"," })\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," pm.environment.set(\"requestid\", \"\")\r"," \r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","function createPayload() {\r"," \r","}\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let payload = {\r"," \t //method: method,\r"," \t publicKey: pm.environment.get(\"usr_mgmt_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," \r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"c87c7bf2-68f9-4374-9714-7f8f5d825aa4","exec":["var resultText = pm.response.text()\r","var data = JSON.parse(resultText);\r","pm.environment.set(\"vp\", JSON.stringify(data.vp))\r",""],"type":"text/javascript","packages":{}}}],"id":"ab1a9f85-0c47-4a0e-9a3a-24743114fed3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key
\n","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now
\n","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key
\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"vcs\": [\r\n {\r\n \"vc\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"firstName\": \"https://schema.org#firstName\",\r\n \"lastName\": \"https://schema.org#lastName\",\r\n \"companyName\": \"https://schema.org#companyName\",\r\n \"companyAddress\": \"https://schema.org#companyAddress\",\r\n \"department\": \"https://schema.org#department\",\r\n \"title\": \"https://schema.org#title\",\r\n \"dob\": \"https://schema.org#dob\",\r\n \"doe\": \"https://schema.org#doe\",\r\n \"publicKey\": \"https://schema.org#publicKey\"\r\n },\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"id\": \"did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:57:58.481Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"dob\": \"20201226\",\r\n \"doe\": \"20260211\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:57:58Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"z4o8FzLBjGjoJqofnoMNWq6USCfcMSPZH4nfuwEyaCja81YeLE2tjN6oKpzfzaY9c7ykppEDWRtVWtXKTx8Sfj9h7\"\r\n },\r\n \"statusUrl\": \"https:///1k-dev.1kosmos.net/vcs/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072/status\"\r\n },\r\n \"attributes\": [\r\n \"firstName\"\r\n ]\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vp/create","description":"This endpoint allows the creation of a Verifiable Presentation (VP) associated with a specific tenant and community. It is used to submit a verifiable credential to the system, which can then be processed and returned in a structured format.
\ntenantID (path parameter): The unique identifier for the tenant.
\ncommunityID (path parameter): The unique identifier for the community.
\nThe request body must be in JSON format and should include the following structure:
\nvcs (array): A list of verifiable credentials to be included in the VP.
\nvc (object): Contains the details of a verifiable credential.
\n@context (array): Contexts for the credential.
\nid (string): The unique identifier for the credential.
\ntype (array): The types of the credential (e.g., VerifiableCredential).
\nissuer (object): Information about the issuer of the credential.
\nid (string): The identifier of the issuer.
\ntenantId (string): The tenant ID of the issuer.
\ncommunityId (string): The community ID of the issuer.
\nissuanceDate (string): The date when the credential was issued.
\nexpirationDate (string): The date when the credential expires.
\ncredentialSubject (object): The subject of the credential.
\nid (string): The identifier of the subject.
\nfirstName (string): The first name of the subject.
\nlastName (string): The last name of the subject.
\ncompanyName (string): The name of the company the subject is associated with.
\ncompanyAddress (string): The address of the company.
\ndepartment (string): The department of the subject.
\ntitle (string): The job title of the subject.
\ndob (string): The date of birth of the subject.
\ndoe (string): The date of expiry.
\npublicKey (string): The public key associated with the subject.
\nproof (object): Proof of the credential.
\ntype (string): The type of proof.
\ncreated (string): The date when the proof was created.
\nverificationMethod (string): The method used for verification.
\nproofPurpose (string): The purpose of the proof.
\nproofValue (string): The value of the proof.
\nstatusUrl (string): URL for the status of the credential.
\nUpon successful execution, the response will return a status code of 200 and a JSON object containing the following structure:
\nvp (object): The Verifiable Presentation object.
\n@context (array): Contexts for the VP.
\ntype (array): The types of the VP.
\nverifiableCredential (array): An array containing the verifiable credentials included in the VP.
\nproof (object): Proof of the VP, structured similarly to the proof in the credential.
\nEnsure that all required fields are populated in the request body to avoid validation errors.
\nThe response will provide the structure of the created Verifiable Presentation, which can be used for further processing or verification.
\nTenant ID
\n","type":"text/plain"},"type":"any","value":"","key":"tenantID"},{"id":"7c50dedf-a68d-4f55-b4ff-2a3c9ac1aae5","description":{"content":"Commnity ID
\n","type":"text/plain"},"type":"any","value":"","key":"communityID"}]}},"response":[{"id":"ebec06aa-f85b-41f1-a5cb-e7c522cb7ad7","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"vcs\": [\r\n {\r\n \"vc\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"firstName\": \"https://schema.org#firstName\",\r\n \"lastName\": \"https://schema.org#lastName\",\r\n \"companyName\": \"https://schema.org#companyName\",\r\n \"companyAddress\": \"https://schema.org#companyAddress\",\r\n \"department\": \"https://schema.org#department\",\r\n \"title\": \"https://schema.org#title\",\r\n \"dob\": \"https://schema.org#dob\",\r\n \"doe\": \"https://schema.org#doe\",\r\n \"publicKey\": \"https://schema.org#publicKey\"\r\n },\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"id\": \"did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:57:58.481Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"dob\": \"20201226\",\r\n \"doe\": \"20260211\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:57:58Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"z4o8FzLBjGjoJqofnoMNWq6USCfcMSPZH4nfuwEyaCja81YeLE2tjN6oKpzfzaY9c7ykppEDWRtVWtXKTx8Sfj9h7\"\r\n },\r\n \"statusUrl\": \"https:///1k-dev.1kosmos.net/vcs/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072/status\"\r\n },\r\n \"attributes\": [\"companyName\"],\r\n \"ageToProve\": \"20\"\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vp/create","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vp","create"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 09:13:22 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"696-m2yPQYWB6LpxXobeA/8NlTNdIQw\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n \"vp\": {\n \"@context\": [\n \"https://www.w3.org/2018/credentials/v1\",\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\n ],\n \"type\": [\n \"VerifiablePresentation\"\n ],\n \"verifiableCredential\": [\n {\n \"@context\": [\n \"https://www.w3.org/2018/credentials/v1\",\n {\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\n \"publicKey\": \"https://schema.org#publicKey\",\n \"companyName\": \"https://schema.org#companyName\"\n }\n ],\n \"id\": \"did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072\",\n \"type\": [\n \"VerifiableCredential\",\n \"vc_EmploymentCredential\"\n ],\n \"issuer\": {\n \"id\": \"https://1k-dev.1kosmos.net\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\"\n },\n \"issuanceDate\": \"2025-06-23T08:57:58.481Z\",\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\n \"credentialSubject\": {\n \"companyName\": \"1kosmos\",\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\n },\n \"proof\": {\n \"type\": \"Ed25519Signature2020\",\n \"created\": \"2025-06-23T08:57:58Z\",\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\n \"proofPurpose\": \"assertionMethod\",\n \"proofValue\": \"z4o8FzLBjGjoJqofnoMNWq6USCfcMSPZH4nfuwEyaCja81YeLE2tjN6oKpzfzaY9c7ykppEDWRtVWtXKTx8Sfj9h7\"\n },\n \"statusUrl\": \"https:///1k-dev.1kosmos.net/vcs/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072/status\"\n }\n ],\n \"proof\": {\n \"type\": \"Ed25519Signature2020\",\n \"created\": \"2025-06-23T09:13:22Z\",\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\n \"proofPurpose\": \"assertionMethod\",\n \"proofValue\": \"z2fjU8eDHWx35GKb5CA5Yr6y7WVWuRMgeJ8He3ijMVa7PhG9QTtRAkt9MyKzrppNRDogyH5dWjRPuc61se45NCgSU\"\n }\n }\n}"},{"id":"52d0a2a0-70d3-40c1-bada-76da35dfeb56","name":"Success: Without Attributes","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"vcs\": [\r\n {\r\n \"vc\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"firstName\": \"https://schema.org#firstName\",\r\n \"lastName\": \"https://schema.org#lastName\",\r\n \"companyName\": \"https://schema.org#companyName\",\r\n \"companyAddress\": \"https://schema.org#companyAddress\",\r\n \"department\": \"https://schema.org#department\",\r\n \"title\": \"https://schema.org#title\",\r\n \"dob\": \"https://schema.org#dob\",\r\n \"doe\": \"https://schema.org#doe\",\r\n \"publicKey\": \"https://schema.org#publicKey\"\r\n },\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"id\": \"did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:57:58.481Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"dob\": \"20201226\",\r\n \"doe\": \"20260211\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:57:58Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"z4o8FzLBjGjoJqofnoMNWq6USCfcMSPZH4nfuwEyaCja81YeLE2tjN6oKpzfzaY9c7ykppEDWRtVWtXKTx8Sfj9h7\"\r\n },\r\n \"statusUrl\": \"https:///1k-dev.1kosmos.net/vcs/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072/status\"\r\n }\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vp/create","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vp","create"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 09:17:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"872-nKwGnknIN+JPf0hdtz7UP2/3irE\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n \"vp\": {\n \"@context\": [\n \"https://www.w3.org/2018/credentials/v1\",\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\n ],\n \"type\": [\n \"VerifiablePresentation\"\n ],\n \"verifiableCredential\": [\n {\n \"@context\": [\n \"https://www.w3.org/2018/credentials/v1\",\n {\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\n \"firstName\": \"https://schema.org#firstName\",\n \"lastName\": \"https://schema.org#lastName\",\n \"companyName\": \"https://schema.org#companyName\",\n \"companyAddress\": \"https://schema.org#companyAddress\",\n \"department\": \"https://schema.org#department\",\n \"title\": \"https://schema.org#title\",\n \"dob\": \"https://schema.org#dob\",\n \"doe\": \"https://schema.org#doe\",\n \"publicKey\": \"https://schema.org#publicKey\"\n },\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\n ],\n \"id\": \"did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072\",\n \"type\": [\n \"VerifiableCredential\",\n \"vc_EmploymentCredential\"\n ],\n \"issuer\": {\n \"id\": \"https://1k-dev.1kosmos.net\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\"\n },\n \"issuanceDate\": \"2025-06-23T08:57:58.481Z\",\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\n \"credentialSubject\": {\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\n \"firstName\": \"john\",\n \"lastName\": \"doe\",\n \"companyName\": \"1kosmos\",\n \"companyAddress\": \"Mumbai\",\n \"department\": \"Mobile\",\n \"title\": \"software engineer\",\n \"dob\": \"20201226\",\n \"doe\": \"20260211\",\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\n },\n \"proof\": {\n \"type\": \"Ed25519Signature2020\",\n \"created\": \"2025-06-23T08:57:58Z\",\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\n \"proofPurpose\": \"assertionMethod\",\n \"proofValue\": \"z4o8FzLBjGjoJqofnoMNWq6USCfcMSPZH4nfuwEyaCja81YeLE2tjN6oKpzfzaY9c7ykppEDWRtVWtXKTx8Sfj9h7\"\n },\n \"statusUrl\": \"https:///1k-dev.1kosmos.net/vcs/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072/status\"\n }\n ],\n \"proof\": {\n \"type\": \"Ed25519Signature2020\",\n \"created\": \"2025-06-23T09:17:05Z\",\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\n \"proofPurpose\": \"assertionMethod\",\n \"proofValue\": \"z2KKoL92aSdK9gYEgbGw9ThgGYqSaqZoJdBsxARtRUiEwCdydgWwsUvhjmvNStaVXDAdSXQEsbM5DFwhXA4f2jYcT\"\n }\n }\n}"},{"id":"bd5ab0f7-0bb6-4d8d-8ef1-f03690e28276","name":"Failed: Invalid Attribute","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"vcs\": [\r\n {\r\n \"vc\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"firstName\": \"https://schema.org#firstName\",\r\n \"lastName\": \"https://schema.org#lastName\",\r\n \"companyName\": \"https://schema.org#companyName\",\r\n \"companyAddress\": \"https://schema.org#companyAddress\",\r\n \"department\": \"https://schema.org#department\",\r\n \"title\": \"https://schema.org#title\",\r\n \"dob\": \"https://schema.org#dob\",\r\n \"doe\": \"https://schema.org#doe\",\r\n \"publicKey\": \"https://schema.org#publicKey\"\r\n },\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"id\": \"did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:57:58.481Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"dob\": \"20201226\",\r\n \"doe\": \"20260211\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:57:58Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"z4o8FzLBjGjoJqofnoMNWq6USCfcMSPZH4nfuwEyaCja81YeLE2tjN6oKpzfzaY9c7ykppEDWRtVWtXKTx8Sfj9h7\"\r\n },\r\n \"statusUrl\": \"https:///1k-dev.1kosmos.net/vcs/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072/status\"\r\n },\r\n \"attributes\": [\"givenName\"] }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vp/create","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vp","create"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 09:17:56 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"31-qksqPVDA1fxuFR0kMlcQlVNbDh4\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"Attribute does not exist\"\n}"},{"id":"3b0aa326-1258-4425-99c5-07ee2377c325","name":"Failed: Missing/Invalid License Key","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n \"vcs\": [\r\n {\r\n \"vc\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"firstName\": \"https://schema.org#firstName\",\r\n \"lastName\": \"https://schema.org#lastName\",\r\n \"companyName\": \"https://schema.org#companyName\",\r\n \"companyAddress\": \"https://schema.org#companyAddress\",\r\n \"department\": \"https://schema.org#department\",\r\n \"title\": \"https://schema.org#title\",\r\n \"dob\": \"https://schema.org#dob\",\r\n \"doe\": \"https://schema.org#doe\",\r\n \"publicKey\": \"https://schema.org#publicKey\"\r\n },\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"id\": \"did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:57:58.481Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"dob\": \"20201226\",\r\n \"doe\": \"20260211\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:57:58Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"z4o8FzLBjGjoJqofnoMNWq6USCfcMSPZH4nfuwEyaCja81YeLE2tjN6oKpzfzaY9c7ykppEDWRtVWtXKTx8Sfj9h7\"\r\n },\r\n \"statusUrl\": \"https:///1k-dev.1kosmos.net/vcs/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072/status\"\r\n },\r\n \"attributes\": [\r\n \"firstName\"\r\n ]\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vp/create","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vp","create"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 09:19:06 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"25-Y/9DhNk+fkg6hkvizDVGX7cBV4I\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 401,\n \"message\": \"Unauthorized\"\n}"},{"id":"1932de17-1fa4-40c5-adc2-9480a4679ec3","name":"Failed: invalid Payload","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"vcs\": [\r\n {\r\n \"vc\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n \r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"id\": \"did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:57:58.481Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"dob\": \"20201226\",\r\n \"doe\": \"20260211\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:57:58Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"z4o8FzLBjGjoJqofnoMNWq6USCfcMSPZH4nfuwEyaCja81YeLE2tjN6oKpzfzaY9c7ykppEDWRtVWtXKTx8Sfj9h7\"\r\n },\r\n \"statusUrl\": \"https:///1k-dev.1kosmos.net/vcs/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072/status\"\r\n },\r\n \"attributes\": [\r\n \"firstName\"\r\n ]\r\n }\r\n ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vp/create","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vp","create"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 09:19:40 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"43-U6VmRYqZP8mfJ+ADqA5xHlxLyK4\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 400,\n \"message\": \"Cannot convert undefined or null to object\"\n}"}],"_postman_id":"ab1a9f85-0c47-4a0e-9a3a-24743114fed3"},{"name":"Verify Verifiable Presentation","event":[{"listen":"prerequest","script":{"id":"c8174cd5-3a41-47ae-8e04-121f14c411c8","exec":["let url = pm.environment.get(\"client_api\") + \"/vcs/ecdsa_helper/encrypt\"\r","let publicKeyUsrMgmtUrl = pm.environment.get(\"client_api\") +\"/vcs/publickeys\"\r","let privateKey = pm.environment.get(\"my_private_key\")\r","\r","fetchCommunityInfo(function() {\r"," fetchServerPublicKey(function (pk1) {\r"," pm.environment.set(\"usr_mgmt_public_key\", pk1);\r"," makeLicenseKey()\r"," makeRequestId()\r"," createPayload()\r"," })\r"," })\r","\r","function fetchCommunityInfo(next) {\r"," let apiURL = pm.environment.get(\"client_api\")\r"," let url = apiURL + \"/api/r1/system/community_info/fetch\"\r"," let dns = apiURL.replace(\"https://\", \"\")\r","\r"," let payload = {\r"," dns: dns,\r"," communityName: pm.environment.get(\"client_community_name\")\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function(err, res) {\r"," let community = res.json().community\r"," let tenant = res.json().tenant\r"," pm.environment.set(\"communityId\", community.id);\r"," pm.environment.set(\"tenantId\", community.tenantid);\r"," pm.environment.set(\"client_tenant_tag\", tenant.tenanttag);\r"," pm.environment.set(\"root_tenant_tag\", tenant.tenanttag);\r"," next()\r"," })\r","}\r","\r","function fetchServerPublicKey(callback) {\r"," let url = publicKeyUsrMgmtUrl\r"," let tag = pm.environment.get(\"root_tenant_tag\")\r"," pm.sendRequest({\r"," url: url,\r"," method: 'GET',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'X-TenantTag': tag\r"," }\r"," }, function (err, res) {\r"," callback(res.json().publicKey)\r"," });\r","}\r","\r","function makeLicenseKey() {\r"," //clear\r"," pm.environment.set(\"enc_license_for_client\", \"\")\r"," var licenseKey = pm.environment.get(\"licenseKey\")\r"," ecdsa_helper(\"encrypt\", licenseKey, function(result) {\r"," pm.environment.set(\"enc_license_for_client\", result)\r"," })\r","}\r","\r","function makeRequestId() {\r"," //clear\r"," pm.environment.set(\"requestid\", \"\")\r"," \r"," var uuid = require('uuid');\r"," var date = new Date();\r"," var current_time = Math.round(date.getTime() / 1000);\r"," var app_id = \"com.postman.request\";\r"," var requestId = {\r"," ts: current_time,\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r"," }\r"," var requestIdStr = JSON.stringify(requestId);\r"," ecdsa_helper(\"encrypt\", requestIdStr, function(result) {\r"," pm.environment.set(\"requestid\", result)\r"," })\r","}\r","\r","function createPayload() {\r"," \r","}\r","\r","function ecdsa_helper(method, dataStr, callback) {\r"," let payload = {\r"," \t //method: method,\r"," \t publicKey: pm.environment.get(\"usr_mgmt_public_key\"),\r"," \t privateKey: privateKey,\r"," \t dataStr: dataStr\r"," };\r"," let payloadStr = JSON.stringify(payload);\r","\r","\tpm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: {\r"," 'Content-Type': 'application/json',\r"," 'Content-Length': payloadStr.length\r"," },\r"," body: {\r"," mode: 'raw',\r"," raw: payloadStr\r"," }\r"," }, function (err, res) {\r"," \r"," let resultStr = res.json().data\r"," callback(resultStr)\r"," });\r","}"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"c87c7bf2-68f9-4374-9714-7f8f5d825aa4","exec":["var resultText = pm.response.text()\r","var data = JSON.parse(resultText);\r","\r","console.log(data)"],"type":"text/javascript","packages":{}}}],"id":"ee2e4f18-c53c-414a-b205-cc5e7999fd02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key
\n","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now
\n","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key
\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"vp\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"type\": [\r\n \"VerifiablePresentation\"\r\n ],\r\n \"verifiableCredential\": [\r\n {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"publicKey\": \"https://schema.org#publicKey\",\r\n \"firstName\": \"https://schema.org#firstName\"\r\n }\r\n ],\r\n \"id\": \"did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:57:58.481Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"firstName\": \"john\",\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:57:58Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"z4o8FzLBjGjoJqofnoMNWq6USCfcMSPZH4nfuwEyaCja81YeLE2tjN6oKpzfzaY9c7ykppEDWRtVWtXKTx8Sfj9h7\"\r\n },\r\n \"statusUrl\": \"https:///1k-dev.1kosmos.net/vcs/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072/status\"\r\n }\r\n ],\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T09:36:24Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"zqhwMsMqjKV9oVqMy2mXzT1nzmGPNLPMjWNnmLwTRvRqRHNxCoKtTAaRbMTceEzLaqabm3TxsMarLPrNgShXBsg1\"\r\n }\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vp/verify","description":"This endpoint is used to verify a Verifiable Presentation (VP) for a specific tenant and community. It allows clients to submit a VP and receive a verification status in return, confirming whether the VP is valid.
\nHTTP Method: POST
Endpoint: {{client_api}}/vcs/tenant/:tenantID/community/:communityID/vp/verify
The request body must be in JSON format and should contain the following structure:
\n{\n \"vp\": {\n \"@context\": [<Array of Context URLs>],\n \"type\": [<Array of Types>],\n \"verifiableCredential\": [\n {\n \"@context\": [<Array of Context URLs>],\n \"id\": \"<Credential ID>\",\n \"type\": [<Array of Types>],\n \"issuer\": {\n \"id\": \"<Issuer ID>\",\n \"tenantId\": \"<Tenant ID>\",\n \"communityId\": \"<Community ID>\"\n },\n \"issuanceDate\": \"<Issuance Date>\",\n \"expirationDate\": \"<Expiration Date>\",\n \"credentialSubject\": {\n \"firstName\": \"<First Name>\",\n \"id\": \"<Subject ID>\",\n \"publicKey\": \"<Public Key>\"\n },\n \"proof\": {\n \"type\": \"<Proof Type>\",\n \"created\": \"<Creation Date>\",\n \"verificationMethod\": \"<Verification Method>\",\n \"proofPurpose\": \"<Proof Purpose>\",\n \"proofValue\": \"<Proof Value>\"\n },\n \"statusUrl\": \"<Status URL>\"\n }\n ],\n \"proof\": {\n \"type\": \"<Proof Type>\",\n \"created\": \"<Creation Date>\",\n \"verificationMethod\": \"<Verification Method>\",\n \"proofPurpose\": \"<Proof Purpose>\",\n \"proofValue\": \"<Proof Value>\"\n }\n }\n}\n\n\nThe response will be in JSON format and will indicate the verification result along with the status of the verifiable credentials. The structure of the response is as follows:
\n{\n \"verified\": <Boolean>,\n \"vc_status\": [\n {\n \"subject\": {\n \"did\": \"<Subject DID>\",\n \"publicKey\": \"<Subject Public Key>\"\n },\n \"type\": [<Array of Types>],\n \"_id\": \"<Credential ID>\",\n \"vcID\": \"<Verifiable Credential ID>\",\n \"tenantId\": \"<Tenant ID>\",\n \"communityId\": \"<Community ID>\",\n \"proof\": {\n \"type\": \"<Proof Type>\",\n \"created\": \"<Creation Date>\",\n \"verificationMethod\": \"<Verification Method>\",\n \"proofPurpose\": \"<Proof Purpose>\",\n \"proofValue\": \"<Proof Value>\"\n },\n \"issueTS\": <Issue Timestamp>,\n \"expiryTS\": <Expiry Timestamp>,\n \"status\": \"<Status>\",\n \"issuer\": {\n \"id\": \"<Issuer ID>\",\n \"tenantId\": \"<Tenant ID>\",\n \"communityId\": \"<Community ID>\"\n }\n }\n ]\n}\n\n\nThis endpoint is crucial for ensuring the integrity and validity of verifiable credentials within the specified tenant and community.
\n","urlObject":{"path":["vcs","tenant",":tenantID","community",":communityID","vp","verify"],"host":["{{client_api}}"],"query":[],"variable":[{"id":"19d03494-48fe-45e5-bce8-da62d0132761","description":{"content":"Tenant ID
\n","type":"text/plain"},"type":"any","value":"","key":"tenantID"},{"id":"42fc3c69-68f2-4cf8-a989-69cc24c22895","description":{"content":"Commnity ID
\n","type":"text/plain"},"type":"any","value":"","key":"communityID"}]}},"response":[{"id":"2f1702e4-0e9c-442c-9797-ad4cfa41568a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"vc\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"firstName\": \"https://schema.org#firstName\",\r\n \"lastName\": \"https://schema.org#lastName\",\r\n \"companyName\": \"https://schema.org#companyName\",\r\n \"companyAddress\": \"https://schema.org#companyAddress\",\r\n \"department\": \"https://schema.org#department\",\r\n \"title\": \"https://schema.org#title\",\r\n \"doe\": \"https://schema.org#doe\",\r\n \"publicKey\": \"https://schema.org#publicKey\"\r\n },\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"id\": \"did:blockid:e309fbcf-79c0-4f6b-bf42-72f38d3dd0d1\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:18:31.898Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"firstName\": \"john\",\r\n \"lastName\": \"doe\",\r\n \"companyName\": \"1kosmos\",\r\n \"companyAddress\": \"Mumbai\",\r\n \"department\": \"Mobile\",\r\n \"title\": \"software engineer\",\r\n \"doe\": \"20260211\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:18:31Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"zgvPhr6q63uPJkzvacSbrEa6kxcGHi3TZMdvCrKGsrCexQV2xtJkWLoB8nR4jtJxmVK7rpkd7NNQxajQnAZKh4Lt\"\r\n },\r\n \"statusUrl\": \"undefined/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:e309fbcf-79c0-4f6b-bf42-72f38d3dd0d1/status\"\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vc/verify","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vc","verify"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 08:19:19 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"907"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"38b-Z387IXkZHcxpG2C5nd69okc9UnE\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"verified\": true,\n \"status\": {\n \"subject\": {\n \"did\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\n },\n \"type\": [\n \"VerifiableCredential\",\n \"vc_EmploymentCredential\"\n ],\n \"_id\": \"68590dd7dcdbc28d83454946\",\n \"vcID\": \"did:blockid:e309fbcf-79c0-4f6b-bf42-72f38d3dd0d1\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\",\n \"proof\": {\n \"type\": \"Ed25519Signature2020\",\n \"created\": \"2025-06-23T08:18:31Z\",\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\n \"proofPurpose\": \"assertionMethod\",\n \"proofValue\": \"zgvPhr6q63uPJkzvacSbrEa6kxcGHi3TZMdvCrKGsrCexQV2xtJkWLoB8nR4jtJxmVK7rpkd7NNQxajQnAZKh4Lt\"\n },\n \"issueTS\": 1750666711,\n \"expiryTS\": 1770768000,\n \"status\": \"issued\",\n \"issuer\": {\n \"id\": \"https://1k-dev.1kosmos.net\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\"\n }\n }\n}"},{"id":"db3aa3ed-5332-4b66-bc59-ad6b62482436","name":"Failed: Invalid VP","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"vp\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"type\": [\r\n \"VerifiablePresentation\"\r\n ],\r\n \"verifiableCredential\": [\r\n {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"publicKey\": \"https://schema.org#publicKey\",\r\n \"firstName\": \"https://schema.org#firstName\"\r\n }\r\n ],\r\n \"id\": \"did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2fvdfvdfbgdfgb587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:57:58.481Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"firstName\": \"john\",\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:57:58Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"z4o8FzLBjGjoJqofnoMNWq6USCfcMSPZH4nfuwEyaCja81YeLE2tjN6oKpzfzaY9c7ykppEDWRtVWtXKTx8Sfj9h7\"\r\n },\r\n \"statusUrl\": \"https:///1k-dev.1kosmos.net/vcs/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072/status\"\r\n }\r\n ],\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T09:36:24Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"zqhwMsMqjKV9oVqMy2mXzT1nzmGPNLPMjWNnmLwTRvRqRHNxCoKtTAaRbMTceEzLaqabm3TxsMarLPrNgShXBsg1\"\r\n }\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vp/verify","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vp","verify"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 09:40:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"914"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"392-o08+KrkJScXY2Gq0S1H+xduEvfE\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"verified\": false,\n \"vc_status\": [\n {\n \"subject\": {\n \"did\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\n },\n \"type\": [\n \"VerifiableCredential\",\n \"vc_EmploymentCredential\"\n ],\n \"_id\": \"68591716dcdbc240a345495d\",\n \"vcID\": \"did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\",\n \"proof\": {\n \"type\": \"Ed25519Signature2020\",\n \"created\": \"2025-06-23T08:57:58Z\",\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\n \"proofPurpose\": \"assertionMethod\",\n \"proofValue\": \"z4o8FzLBjGjoJqofnoMNWq6USCfcMSPZH4nfuwEyaCja81YeLE2tjN6oKpzfzaY9c7ykppEDWRtVWtXKTx8Sfj9h7\"\n },\n \"issueTS\": 1750669078,\n \"expiryTS\": 1770768000,\n \"status\": \"issued\",\n \"issuer\": {\n \"id\": \"https://1k-dev.1kosmos.net\",\n \"tenantId\": \"68418b2587942f1d3158a798\",\n \"communityId\": \"68418b2587942f1d3158a799\"\n }\n }\n ]\n}"},{"id":"fa2527a0-b83a-4e1a-8131-89223167f3ae","name":"Failed: Invalid/Missing License Key","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"publicKey","value":"{{my_public_key}}","description":"Client Public Key","type":"text"},{"key":"requestid","value":"{{requestid}}","description":"JSON string which should contain \"appid (string)\", \"uuid (string)\" and \"ts (number)\" representing epoch timestamp in seconds - it should not be more or less than 60 seconds from now","type":"text"},{"key":"licensekey","value":"{{enc_license_for_client}}","description":"Encrypted License Key","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n \"vp\": {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n \"https://w3id.org/security/suites/ed25519-2020/v1\"\r\n ],\r\n \"type\": [\r\n \"VerifiablePresentation\"\r\n ],\r\n \"verifiableCredential\": [\r\n {\r\n \"@context\": [\r\n \"https://www.w3.org/2018/credentials/v1\",\r\n {\r\n \"vc_EmploymentCredential\": \"https://schema.org#vc_EmploymentCredential\",\r\n \"publicKey\": \"https://schema.org#publicKey\",\r\n \"firstName\": \"https://schema.org#firstName\"\r\n }\r\n ],\r\n \"id\": \"did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072\",\r\n \"type\": [\r\n \"VerifiableCredential\",\r\n \"vc_EmploymentCredential\"\r\n ],\r\n \"issuer\": {\r\n \"id\": \"https://1k-dev.1kosmos.net\",\r\n \"tenantId\": \"68418b2fvdfvdfbgdfgb587942f1d3158a798\",\r\n \"communityId\": \"68418b2587942f1d3158a799\"\r\n },\r\n \"issuanceDate\": \"2025-06-23T08:57:58.481Z\",\r\n \"expirationDate\": \"2026-02-11T00:00:00.000Z\",\r\n \"credentialSubject\": {\r\n \"firstName\": \"john\",\r\n \"id\": \"did:17db22ab3fdfe09ce1656e193187227f0f3d4769\",\r\n \"publicKey\": \"AdxCJp04PJk82Q0KKU+jzsnY/RKrFEM6AW8qH+M8xpMbUvJc/wuAu4aqLBbsY7RDzAO2Io7x4k/clkHuauYIpQ==\"\r\n },\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T08:57:58Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"z4o8FzLBjGjoJqofnoMNWq6USCfcMSPZH4nfuwEyaCja81YeLE2tjN6oKpzfzaY9c7ykppEDWRtVWtXKTx8Sfj9h7\"\r\n },\r\n \"statusUrl\": \"https:///1k-dev.1kosmos.net/vcs/tenant/68418b2587942f1d3158a798/community/68418b2587942f1d3158a799/vc/did:blockid:4bf67a8b-e89f-4ba1-a2b7-d57170d18072/status\"\r\n }\r\n ],\r\n \"proof\": {\r\n \"type\": \"Ed25519Signature2020\",\r\n \"created\": \"2025-06-23T09:36:24Z\",\r\n \"verificationMethod\": \"did:key:blockid:z6MkknnEYdzbBnLW3vQCfeVhwZYdNJ7e1DQECc21PHABWmLn\",\r\n \"proofPurpose\": \"assertionMethod\",\r\n \"proofValue\": \"zqhwMsMqjKV9oVqMy2mXzT1nzmGPNLPMjWNnmLwTRvRqRHNxCoKtTAaRbMTceEzLaqabm3TxsMarLPrNgShXBsg1\"\r\n }\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{client_api}}/vcs/tenant/:tenantID/community/:communityID/vp/verify","host":["{{client_api}}"],"path":["vcs","tenant",":tenantID","community",":communityID","vp","verify"],"variable":[{"key":"tenantID","value":"","description":"Tenant ID"},{"key":"communityID","value":"","description":"Commnity ID"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 23 Jun 2025 09:40:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"INGRESSCOOKIE=b5a7e0a8dac82fcfaae54b8a2440c2fb|8030e574ba40cb94ecd213f6d1f9ebe8; Path=/vcs; Secure; HttpOnly"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Embedder-Policy","value":"require-corp"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"25-Y/9DhNk+fkg6hkvizDVGX7cBV4I\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"code\": 401,\n \"message\": \"Unauthorized\"\n}"}],"_postman_id":"ee2e4f18-c53c-414a-b205-cc5e7999fd02"}],"id":"d95ae420-c397-4568-8047-7b5c45ba00a2","description":"This API enables you to test Our Verifiable Credentials APIs
\nBefore you begin to execute APIs, you must set up your community and tenant information in your Environments.
\nTo set up your environment, follow these steps:
\n2. In the Variable column, add the following parameters in the same format:
\nclient_api
\nmy_public_key
\nmy_private_key
\nlicenseKey
\nclient_community_name
\nNote: The above parameters are case sensitive.
\n3. In the Type column, specify the value as default for all the three parameters.
\n4. In the Initial value column, specify the following values for each parameter:
\nclient_api - Specify your tenant URL (For Example: https://acme.1kosmos.net)
\nmy_public_key - Your ECDSA Public Key
\nmy_private_key - Your ECDSA Private Key
\nclient_community_name - Specify your community name.
\nlicenseKey - Specify the license key of your tenant.
\n5. In the Current value column, specify the same value as that of the initial value for all the three parameters.
\nThe following screenshot illustrates how the page appears after configuring your environment variables:
\n{{{response}}}\r","`;\r","\r","// Main async function\r","(async () => {\r"," try {\r"," if (pm.response.code === 200) {\r"," const { data, publicKey} = pm.response.json();\r"," console.log(\"data\", data);\r"," const decryptedPayload = await ecdsa_helper(ECDSA_METHODS.DECRYPT, data, publicKey);\r"," const parsedPayload = JSON.parse(decryptedPayload);\r","\r"," // Escape HTML in the response to prevent rendering issues\r"," const sanitizedResponse = escapeHTML(JSON.stringify(parsedPayload, null, 2));\r","\r"," pm.visualizer.set(template, { response: sanitizedResponse });\r"," }\r"," } catch (error) {\r"," console.error('[POST SCRIPT]: IdProofing API - Create workflow instance - Error:', error.message);\r"," }\r","})();"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"1291e44e-40bb-4057-8631-cd37d6af3ad0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"publickey","value":"","description":"Public key of the Identity Verification microservice.
\n","type":"text"},{"key":"licensekey","value":"","description":"This license Key is encrypted with ECDSA.
\n","type":"text"},{"key":"requestid","value":"","description":"This is a JSON string encrypted using ECDSA. It contains the fields such as \"appid\" (string), \"uuid\" (string), and \"ts\" (number), which represents the epoch timestamp in seconds.
\n","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"data\": {\r\n \"workflowId\": \"586ea2ee-liveid_2doc_ssn\",\r\n \"metaData\": {\r\n \"firstname\": \"John\",\r\n \"lastname\": \"Doe\",\r\n \"dob\": \"19900101\"\r\n }\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{tenantDNS}}/idproofingapi/workflow/workflow_instance/create","urlObject":{"protocol":"https","path":["idproofingapi","workflow","workflow_instance","create"],"host":["{{tenantDNS}}"],"query":[],"variable":[]}},"response":[{"id":"acc60d42-b5a9-4027-9720-b346abe45c5e","name":"Workflow instance","originalRequest":{"method":"POST","header":[{"key":"publickey","value":"","type":"text"},{"key":"licensekey","value":"","type":"text"},{"key":"requestid","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"data\": {\r\n \"workflowId\": \"586ea2ee-liveid_2doc_ssn\",\r\n \"metaData\": {\r\n \"firstname\": \"John\",\r\n \"lastname\": \"Doe\",\r\n \"dob\": \"19900101\"\r\n }\r\n }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{tenantDNS}}/idproofingapi/workflow/workflow_instance/create"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Date","value":"Mon, 15 Sep 2025 10:26:36 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"390"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"186-5V9+uOYIfWSC1tHGGcdC7wLJiHo\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"data\": \"8jHKe7E6ZatoTfeeUXe5UGgpChHF1z9KnxQejSeLZ1XQExmkIrj8eMB70Z8AZbwrU90VAfLVAfjlbvUmC3QKvbXRl+XEW9F2mkh2ztZVyTRg/3a91oNztywM5eGbPUAUxeZ1tEV7iXnVkAEwEmA+kyh8ejYJWwTT3fBiNneHLCieoXIBxNM1/YIB7DzS7Vyxx5GpYroxd1AD75l2YwjGGpaS/p5Ct3URaVB+zCDrJDKllSh1iBItTPe3VSx+nZt8d/sQGYhXNInEgPpk/D4=\",\n \"publicKey\": \"mZUiu4LrYmECNDn7x73QY2TTeDSs2LpsEbGdk1a9+oIQJCDoNYF26J7jsd6dwHsigOw+zoxr7MxhmBTSd2RPHg==\"\n}"}],"_postman_id":"1291e44e-40bb-4057-8631-cd37d6af3ad0"},{"name":"result summary","event":[{"listen":"test","script":{"id":"1320de9c-76a4-4dca-981b-8a469eb5f1c8","exec":["// constants\r","const API_METHODS = {\r"," POST: 'POST',\r"," GET: 'GET',\r"," PATCH: 'PATCH',\r"," DELETE: 'DELETE'\r","};\r","\r","const ECDSA_METHODS = {\r"," ENCRYPT: 'encrypt',\r"," DECRYPT: 'decrypt'\r","};\r","\r","const COLLECTION_VARIABLES = {\r"," ENCRYPTED_REQUEST_ID: 'encryptedRequestId',\r"," ENCRYPTED_LICENSE_KEY: 'encryptedLicenseKey'\r","}\r","\r","// Variables\r","const privateKey = pm.variables.get('privateKey');\r","const appId = pm.variables.get('appId');\r","const licenseKey = pm.environment.get('licensekey');\r","const idproofingapiBaseUrl = pm.collectionVariables.get('idproofingapi');\r","const idproofingapiPrivateKey = pm.collectionVariables.get('idproofingapiPrivateKey');\r","\r","// Utility Functions\r","const WTM = (method, url, body, headers) => {\r"," const payload = { \r"," url, \r"," method,\r"," header: {\r"," 'Content-Type': 'application/json',\r"," ...(headers ? headers: {} )\r"," },\r"," ...(body ? { body: { mode: 'raw', raw: JSON.stringify(body) } }: {})\r"," };\r","\r"," return new Promise((resolve, reject)=> {\r"," pm.sendRequest(payload, function(err, res) {\r"," if (err) {\r"," reject(err);\r"," } else {\r"," resolve(res.json());\r"," }\r"," });\r"," });\r","};\r","\r","const ecdsa_helper = async(method, dataStr, publicKey) => {\r"," const url = `${idproofingapiBaseUrl}/ecdsa_helper/${method}`;\r"," const payload = { dataStr, publicKey, privateKey: idproofingapiPrivateKey };\r"," const result = await WTM(API_METHODS.POST, url, payload, null);\r"," return result.data;\r","};\r","\r","const escapeHTML = (str) => {\r"," if (typeof str !== 'string'){\r"," return str;\r"," }\r"," return str\r"," .replace(/&/g, '&')\r"," .replace(//g, '>')\r"," .replace(/\"/g, '"')\r"," .replace(/'/g, ''');\r","};\r","\r","//End Utility Functions\r","\r","// Template for visualization\r","const template = `\r","{{{response}}}\r","`;\r","\r","// Main async function\r","(async () => {\r"," try {\r"," if (pm.response.code === 200) {\r"," const { data, publicKey} = pm.response.json();\r"," console.log(data)\r"," const decryptedPayload = await ecdsa_helper(ECDSA_METHODS.DECRYPT, data, publicKey);\r"," const parsedPayload = JSON.parse(decryptedPayload);\r","\r"," // Escape HTML in the response to prevent rendering issues\r"," const sanitizedResponse = escapeHTML(JSON.stringify(parsedPayload, null, 2));\r","\r"," pm.visualizer.set(template, { response: sanitizedResponse });\r"," }\r"," } catch (error) {\r"," console.error('[POST SCRIPT]: IdProofing API - Create workflow instance - Error:', error.message);\r"," }\r","})();"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"ad184fc4-745d-46ba-b609-fcf6c0ceafcc","exec":["// imports\r","const uuid = require('uuid');\r","\r","// constants\r","const API_METHODS = {\r"," POST: 'POST',\r"," GET: 'GET',\r"," PATCH: 'PATCH',\r"," DELETE: 'DELETE'\r","};\r","\r","const ECDSA_METHODS = {\r"," ENCRYPT: 'encrypt',\r"," DECRYPT: 'decrypt'\r","};\r","\r","const COLLECTION_VARIABLES = {\r"," ENCRYPTED_REQUEST_ID: 'encryptedRequestId',\r"," ENCRYPTED_LICENSE_KEY: 'encryptedLicenseKey'\r","}\r","\r","// Variables\r","const appId = pm.variables.get('appId');\r","const licenseKey = pm.environment.get('licensekey');\r","const idproofingapiBaseUrl = pm.collectionVariables.get('idproofingapi');\r","const idproofingapiPrivateKey = pm.collectionVariables.get('idproofingapiPrivateKey');\r","\r","// Utility Functions\r","const WTM = (method, url, body, headers) => {\r"," const payload = { \r"," url, \r"," method,\r"," header: {\r"," 'Content-Type': 'application/json',\r"," ...(headers ? headers: {} )\r"," },\r"," ...(body ? { body: { mode: 'raw', raw: JSON.stringify(body) } }: {})\r"," };\r","\r"," return new Promise((resolve, reject)=> {\r"," pm.sendRequest(payload, function(err, res) {\r"," if (err) {\r"," reject(err);\r"," } else {\r"," resolve(res.json());\r"," }\r"," });\r"," });\r","};\r","\r","const ecdsa_helper = async(method, dataStr, publicKey) => {\r"," const url = `${idproofingapiBaseUrl}/ecdsa_helper/${method}`;\r"," const payload = { dataStr, publicKey, privateKey: idproofingapiPrivateKey };\r"," const result = await WTM(API_METHODS.POST, url, payload, null);\r"," return result.data;\r","};\r","\r","//End Utility Functions\r","\r","// Main async function\r","(async () => {\r"," try {\r"," const servicePublicKey = (await WTM(API_METHODS.GET, `${idproofingapiBaseUrl}/publickeys`, null, null)).publicKey;\r","\r"," const requestId = {\r"," ts: Math.round(new Date().getTime() / 1000),\r"," appid: appId,\r"," uuid: uuid.v4(),\r"," };\r","\r"," const encryptedRequestId = await ecdsa_helper(ECDSA_METHODS.ENCRYPT, JSON.stringify(requestId), servicePublicKey);\r"," pm.collectionVariables.set(COLLECTION_VARIABLES.ENCRYPTED_REQUEST_ID, encryptedRequestId);\r","\r"," const encryptedLicenseKey = await ecdsa_helper(ECDSA_METHODS.ENCRYPT, licenseKey, servicePublicKey);\r"," pm.collectionVariables.set(COLLECTION_VARIABLES.ENCRYPTED_LICENSE_KEY, encryptedLicenseKey);\r","\r"," // const payload = JSON.parse(pm.request.body.raw);\r"," // const encryptedPayloadString = await ecdsa_helper(ECDSA_METHODS.ENCRYPT, JSON.stringify(payload.data), servicePublicKey);\r"," // pm.request.body.raw = JSON.stringify({ data: encryptedPayloadString });\r"," } catch (error) {\r"," console.error('Error in idproofingapi get result worklflow instance pre-script:', error.message);\r"," }\r","})();"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"40cc9453-a12b-4d95-b6ef-37eb089e0216","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"publickey","value":"","description":"Public key of the Identity Verification microservice.
\n","type":"text"},{"key":"licensekey","value":"","description":"This license Key is encrypted with ECDSA.
\n","type":"text"},{"key":"requestid","value":"","description":"This is a JSON string encrypted using ECDSA. It contains the fields such as \"appid\" (string), \"uuid\" (string), and \"ts\" (number), which represents the epoch timestamp in seconds.
\n","type":"text"}],"url":"https://{{tenantDNS}}/idproofingapi/workflow/workflow_instance/:instanceId/result_summary","urlObject":{"protocol":"https","path":["idproofingapi","workflow","workflow_instance",":instanceId","result_summary"],"host":["{{tenantDNS}}"],"query":[],"variable":[{"id":"91542fab-f627-4d4c-9197-115406719436","type":"any","value":"7dbbe3fc-569f-4892-99cf-6288b511bd49","key":"instanceId"}]}},"response":[{"id":"a44263c0-847f-498c-a8a5-906d2bcc0cdf","name":"View result","originalRequest":{"method":"GET","header":[{"key":"publickey","value":"","type":"text"},{"key":"licensekey","value":"","type":"text"},{"key":"requestid","value":"","type":"text"}],"url":{"raw":"https://{{tenantDNS}}/idproofingapi/workflow/workflow_instance/:instanceId/result_summary","protocol":"https","host":["{{tenantDNS}}"],"path":["idproofingapi","workflow","workflow_instance",":instanceId","result_summary"],"variable":[{"key":"instanceId","value":"7dbbe3fc-569f-4892-99cf-6288b511bd49"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Date","value":"Mon, 15 Sep 2025 10:36:38 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"658"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"292-/xWKCT0CyPC/6PqB0W3ziKrgE14\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"data\": \"KEzgtQeKT8tKmme5yUySWb4eHo+zNEAR4uFMt/v/IhgSUJyQBkb7Ah+ny1VMZZFdA4WQFc6Em+Wc+zb4ceIfDTr550nHSyoEDq6+nMU/s04SyslDE1Ewhvua7+C/JTwFLepvgU0N5Me0hjBVRRj8CHZl2lzM75es7En4iD9vMymnIefwAdTYGWkBQxPGm+u2p1FRDf+Pm+fJl8dxJT9SEcDpWD7NVoppocD7Uo/6mLVMFUo8rO+l990tG+/cisOpeTnv60X7MlfIZ/t6dvpwCSWeMN1VTzRZUrV7MKcVVfTfJPlWpCiYJOQGYEGh5KdsmwkwYpBfx9PaSESWPpsBLNlIVFpt4OpJa3F0HqbocCKhYhayPpkSvTAAoMn0j6w28adDijlxaOWZbFmQKMMwCMIB83jCANpHf/ImJRli3uUBX05myqe2xL/5qP3nm/vTd4lyff7F7Nx5EyzUpqLiKjlCo7z22fu4B/2SJkv/6zIyNz0nEFrH9mUiGl+i2f2Z0WdnPgyEEj3fiwoB8Fhl8XBgKk59SGqC\",\n \"publicKey\": \"mZUiu4LrYmECNDn7x73QY2TTeDSs2LpsEbGdk1a9+oIQJCDoNYF26J7jsd6dwHsigOw+zoxr7MxhmBTSd2RPHg==\"\n}"}],"_postman_id":"40cc9453-a12b-4d95-b6ef-37eb089e0216"}],"id":"11df3dcc-edee-4fa6-8701-4f9f426ac239","description":"This is a Kantara Certified IAL2 One time verification flow.
\n","_postman_id":"11df3dcc-edee-4fa6-8701-4f9f426ac239"},{"name":"Workflow API","item":[{"name":"Create Workflow Instance","event":[{"listen":"prerequest","script":{"id":"2f1fbf9f-00fd-4050-aa6a-ff88660f5913","exec":["// ============================================\r","// SET YOUR WORKFLOW ID AND METADATA HERE\r","// ============================================\r","let workflowId = \"wf-55b488dc-f09b-4680-8810-614ef96f08be\"\r","let metaData = {\r"," firstName: \"John\",\r"," lastName: \"Doe\",\r"," dob: \"19900101\"\r","}\r","// ============================================\r","\r","let wfApi = pm.environment.get(\"wf_api\")\r","let otherPartyPublicKey = pm.environment.get(\"wf_public_key\")\r","let privateKey = pm.environment.get(\"my_private_key\")\r","\r","function wfEncrypt(dataStr, callback) {\r"," let url = wfApi + \"/workflowapi/ecdsa_helper/encrypt\"\r"," let payload = {\r"," publicKey: otherPartyPublicKey,\r"," privateKey: privateKey,\r"," dataStr: dataStr\r"," };\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: { 'Content-Type': 'application/json' },\r"," body: { mode: 'raw', raw: JSON.stringify(payload) }\r"," }, function (err, res) {\r"," callback(res.json().data)\r"," });\r","}\r","\r","var uuid = require('uuid');\r","var requestId = JSON.stringify({\r"," ts: Math.round(new Date().getTime() / 1000),\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r","});\r","\r","let bodyData = JSON.stringify({ workflowId: workflowId, metaData: metaData });\r","\r","wfEncrypt(requestId, function(encReqId) {\r"," postman.setEnvironmentVariable(\"requestid\", encReqId);\r"," wfEncrypt(bodyData, function(encData) {\r"," postman.setEnvironmentVariable(\"enc_body_data\", encData);\r"," });\r","});"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"6e84ae7f-4150-4683-bc51-09afb3a6fdc4","exec":["let url = pm.environment.get(\"wf_api\") + \"/workflowapi/ecdsa_helper/decrypt\"\r","let otherPartyPublicKey = pm.environment.get(\"wf_public_key\")\r","let privateKey = pm.environment.get(\"my_private_key\")\r","\r","let responseData = pm.response.json().data\r","if (responseData) {\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: { 'Content-Type': 'application/json' },\r"," body: { mode: 'raw', raw: JSON.stringify({ publicKey: otherPartyPublicKey, privateKey: privateKey, dataStr: responseData }) }\r"," }, function (err, res) {\r"," let decrypted = res.json().data\r"," console.log(\"Decrypted: \" + decrypted)\r"," let parsed = JSON.parse(decrypted)\r"," if (parsed.wfInstanceId) {\r"," postman.setEnvironmentVariable(\"wfInstanceId\", parsed.wfInstanceId)\r"," postman.setEnvironmentVariable(\"wfInstanceUrl\", parsed.wfInstanceUrl)\r"," console.log(\"wfInstanceId: \" + parsed.wfInstanceId)\r"," console.log(\"wfInstanceUrl: \" + parsed.wfInstanceUrl)\r"," }\r"," });\r","}"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"021f0389-211e-4464-809c-785f063d87f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"accept","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_wf}}","type":"text"},{"key":"requestId","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"data\": \"{{enc_body_data}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{wf_api}}/workflowapi/workflow_instance/tenant/:tenantId/community/:communityId/create","urlObject":{"path":["workflowapi","workflow_instance","tenant",":tenantId","community",":communityId","create"],"host":["{{wf_api}}"],"query":[],"variable":[{"description":{"content":"Your tenant id
\n","type":"text/plain"},"type":"any","value":"","key":"tenantId"},{"description":{"content":"Your community id
\n","type":"text/plain"},"type":"any","value":"","key":"communityId"}]}},"response":[{"id":"e199abb5-3f63-4a5d-beff-6b05b25feca2","name":"Workflow Instance","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"accept","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_wf}}","type":"text"},{"key":"requestId","value":"{{requestid}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n \"data\": \"{{enc_body_data}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{wf_api}}/workflowapi/workflow_instance/tenant/:tenantId/community/:communityId/create","host":["{{wf_api}}"],"path":["workflowapi","workflow_instance","tenant",":tenantId","community",":communityId","create"],"variable":[{"key":"tenantId","value":""},{"key":"communityId","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Wed, 22 Apr 2026 10:32:53 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"527"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1776854024,\"appid\":\"com.postman.request\",\"uuid\":\"fc00013e-d924-4fb7-8065-dcb5cdabcfe8\"}"},{"key":"ETag","value":"W/\"20f-iNYUVu9TveeLxOQVyCAGdRVGSYc\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[],"responseTime":null,"body":"{\n \"data\": \"lIVDYOoE6qVpdn03+gZmQJqfQd1U1yozqRArSf2Cm1TK4lG8Syfd8I1VXhvhe5p9PJiXKb472pdObiH/h5MV1EFvX60mFLBhBchYp2V78i1R3x4GDB+BAKxuzU19LF9RHOZdTnC6Yw6AVTYuss8A08QrjxPKEuu//sWvQUT2ZQGlYTe3e988cPJv9WVXeTAQMQ5l8SSYXOr1W+BpKm+qURTlaI4r4WDo9k3xeE/FknuamEFpOcuucCVAVs/T/wW0k8PURMc=\",\n \"publicKey\": \"1hj9IXQjFVGsHidbo/9Uv7sd+eZjzy7Uq2643O2n+yd4XCnr9CWHIO3Kid7AvXMx5yOI+aeAtg1jfKxMkUhauQ==\",\n \"signature_token\": \"\"abc123...xyz789\"\"\n}"}],"_postman_id":"021f0389-211e-4464-809c-785f063d87f4"},{"name":"Node Result","event":[{"listen":"prerequest","script":{"id":"172a88f0-a7f1-4037-86df-0859e19914de","exec":["let wfApi = pm.environment.get(\"wf_api\")\r","let otherPartyPublicKey = pm.environment.get(\"wf_public_key\")\r","let privateKey = pm.environment.get(\"my_private_key\")\r","\r","function wfEncrypt(dataStr, callback) {\r"," let url = wfApi + \"/workflowapi/ecdsa_helper/encrypt\"\r"," let payload = {\r"," publicKey: otherPartyPublicKey,\r"," privateKey: privateKey,\r"," dataStr: dataStr\r"," };\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: { 'Content-Type': 'application/json' },\r"," body: { mode: 'raw', raw: JSON.stringify(payload) }\r"," }, function (err, res) {\r"," callback(res.json().data)\r"," });\r","}\r","\r","var uuid = require('uuid');\r","var requestId = JSON.stringify({\r"," ts: Math.round(new Date().getTime() / 1000),\r"," appid: \"com.postman.request\",\r"," uuid: uuid.v4()\r","});\r","\r","wfEncrypt(requestId, function(encReqId) {\r"," postman.setEnvironmentVariable(\"requestid\", encReqId);\r","});"],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"d24cf0b9-d481-4412-aaea-318cf05e5931","exec":["let url = pm.environment.get(\"wf_api\") + \"/workflowapi/ecdsa_helper/decrypt\"\r","let otherPartyPublicKey = pm.environment.get(\"wf_public_key\")\r","let privateKey = pm.environment.get(\"my_private_key\")\r","\r","let responseData = pm.response.json().data\r","if (responseData) {\r"," pm.sendRequest({\r"," url: url,\r"," method: 'POST',\r"," header: { 'Content-Type': 'application/json' },\r"," body: { mode: 'raw', raw: JSON.stringify({ publicKey: otherPartyPublicKey, privateKey: privateKey, dataStr: responseData }) }\r"," }, function (err, res) {\r"," let decrypted = res.json().data\r"," let parsed = JSON.parse(decrypted)\r"," console.log(JSON.stringify(parsed, null, 2))\r"," });\r","} else {\r"," console.log(JSON.stringify(pm.response.json(), null, 2))\r","}"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"e30f1fca-7dff-4d1c-8d59-11e6a52fbd3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"accept","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_f}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"url":"{{wf_api}}/workflowapi/workflow_instance/:wfInstanceId/tenant/:tenantId/community/:communityId/node/:nodeId","urlObject":{"path":["workflowapi","workflow_instance",":wfInstanceId","tenant",":tenantId","community",":communityId","node",":nodeId"],"host":["{{wf_api}}"],"query":[],"variable":[{"type":"any","value":"{{wfInstanceId}}","key":"wfInstanceId"},{"type":"any","value":"","key":"tenantId"},{"type":"any","value":"","key":"communityId"},{"type":"any","value":"form_1","key":"nodeId"}]}},"response":[{"id":"3acb3990-89e2-42f6-a092-50f4bf438196","name":"Node Result","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"accept","value":"application/json","type":"text"},{"key":"publickey","value":"{{my_public_key}}","type":"text"},{"key":"licensekey","value":"{{enc_license_for_f}}","type":"text"},{"key":"requestid","value":"{{requestid}}","type":"text"}],"url":{"raw":"{{wf_api}}/workflowapi/workflow_instance/:wfInstanceId/tenant/:tenantId/community/:communityId/node/:nodeId","host":["{{wf_api}}"],"path":["workflowapi","workflow_instance",":wfInstanceId","tenant",":tenantId","community",":communityId","node",":nodeId"],"variable":[{"key":"wfInstanceId","value":"{{wfInstanceId}}"},{"key":"tenantId","value":""},{"key":"communityId","value":""},{"key":"nodeId","value":"form_1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"","header":[{"key":"Date","value":"Wed, 22 Apr 2026 15:38:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"871"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"requestid","value":"{\"ts\":1776872343,\"appid\":\"com.postman.request\",\"uuid\":\"efc576de-af01-46e0-857c-8eede7834550\"}"},{"key":"ETag","value":"W/\"367-i1Wa74FeEyPUZFz4rtuSKNl8Y24\""},{"key":"Vary","value":"Accept-Encoding"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n \"data\": \"WRzC2f6cAaJLrday+2vSqtdqzEp0oYu0jxgGhtP9FAyJRSDNWcie2x+re+nwDPnsZRqFJzM8uFh0GuLLCcVuZl7oiMoj5FVjy2Mqhy7ax0KGF6c/LzwkvJ3f24GNTEC+BqNoQkEIWrgGSecKvSS3qrrGkifWuh8IyLs/1l1gmuvvBgXIX5E6pJds4RPoxXsmqch3jUr6sA0KMwto7yiu8qaxxaOhjqR7+r5QAXN/c11X3ID67ZQRoDp3OWXQkUXr4z0AZinariygY1W+23n1WS8Uqb6rpsfYRJVG2NKZN9oRXSXuO6DyYbi2ZxEdVnPzRH/wE4KPx/0Ed7HoH5cTS7io1K5LebOfsnxYR/OaKyyB6RnW7zDmMpKzGO5eCJyRku/kQJJBAPIH89sgOPcXZGfUIydhr4ELnR7bOci+43dmEras4T1FT+H/hMk7G3SYX+HgVIH9PuRlVy49Hn+AAkUMTQscvDeG99RfvATKsFqiKub2jH7q3gp/X88EFj4IibB7UKX7muVm3DlI2lJfpf9/f7Rhj0tx6sxF7nvJNiV/eq4AUJUAAzHJff2SajZ2NzwbbcTmKe8J+ou1jl53uPWlDAC4AA==\",\n \"publicKey\": \"1hj9IXQjFVGsHidbo/9Uv7sd+eZjzy7Uq2643O2n+yd4XCnr9CWHIO3Kid7AvXMx5yOI+aeAtg1jfKxMkUhauQ==\",\n \"signature_token\": \"aaddd1e69ba2c709a\"\n}"}],"_postman_id":"e30f1fca-7dff-4d1c-8d59-11e6a52fbd3b"}],"id":"e5a61068-397b-487c-8041-1a0066ca746f","description":"These APIs are used to initiate and manage an ID verification (IDV) session for an end user. They enable creation of a workflow instance to start the verification process and allow polling of the session status to retrieve the final result upon completion.
\nBefore you begin to execute APIs, you must set up your community and tenant information in your Environments.
\nTo set up your environment, follow these steps:
\n2. In the Variable column, add the following parameters in the same format:
\nclient_api
\nmy_public_key
\nmy_private_key
\nlicenseKey
\nclient_community_name
\nNote: The above parameters are case sensitive.
\n3. In the Type column, specify the value as default for all the three parameters.
\n4. In the Initial value column, specify the following values for each parameter:
\nclient_api - Specify your tenant URL (For Example: https://acme.1kosmos.net)
\nmy_public_key - Your ECDSA Public Key
\nmy_private_key - Your ECDSA Private Key
\nclient_community_name - Specify your community name.
\nlicenseKey - Specify the license key of your tenant.
\n5. In the Current value column, specify the same value as that of the initial value for all the three parameters.
\nworkflowId (Required): Workflow ID provided during provisioning
\nmetaData.firstName (Recommended): Used for name matching
\nmetaData.lastName (Recommended): Used for name matching
\nmetaData.dob (Recommended): Format YYYY-MM-DD, used for DOB matching
\nmetaData.email (Optional): Informational
\nmetaData.callbackUrl (Recommended): Redirect URL after session completion
\nThe workflow instance progresses through the following statuses:
\npending - The session has been created but has not yet been started.
\nstarted - The session has been initiated and verification is in progress.
\ncompleted - The verification process has finished and the result is available.
\nexpired - The session has timed out before completion.
\nfailed - The verification process did not succeed.
\n