{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"94e9ffe6-84ac-475b-b6ed-d9a482dbdae5","name":"CogniFit API","description":"# 🚀 Welcome to the CogniFit API Workspace\n\nThis workspace will help you integrate CogniFit’s cognitive assessments, training, and games into your website or application. Here, you'll find detailed documentation, examples, and guides to get started quickly.\n\n🔗 [<b>Official Postman Documentation</b>](https://postman.cognifit.com)\n\n🔗 [<b>Official ApiAry Documentation</b>](https://cognifitapiv2.docs.apiary.io/#)\n\n🔗 [<b>Start Here – CogniFit Developer Platform</b>](https://www.cognifit.com/developers)\n\n<img src=\"https://www.cognifit.com/img/newart/web_integration_overview.png\" alt=\"Integration Overview\">\n\n---\n\n## 📌 Quick Start – Follow Our Step-by-Step Guide!\n\nTo integrate with the CogniFit API **quickly and easily**, follow our **step-by-step guide** on the [CogniFit Developer Platform](https://www.cognifit.com/developers).\n\n✅ **What you need to do:**\n\n1. **Sign up** on the [CogniFit Developer Platform](https://www.cognifit.com/developers).\n    \n2. **Follow the step-by-step guide** to obtain your API credentials (`client_id`, `client_secret`, `client_hash`).\n    \n3. **Use our simple instructions** to integrate CogniFit into your app or website.\n    \n\n📺 [<b>Watch the Video Tutorial</b>](https://www.youtube.com/watch?v=0wrazRDB2-I&t=2s) _(Recommended for a step-by-step guide)_\n\n<video src=\"https://youtube.com/embed/0wrazRDB2-I\" width=\"340\"></video>\n\n---\n\n## 🛠️ Integration Options\n\n### 🔹 Backend (User and Data Management)\n\n- PHP SDK\n    \n- Direct API integration for other languages\n    \n\n### 🔹 Frontend (Training and Games Interface)\n\n- SDK for web (HTML/JavaScript)\n    \n- Mobile apps integration\n    \n\n## 📌 **Quick Integration Example**\n\n### 🛠️ Tutorial\n\nThis is a step-by-step tutorial to load any CogniFit game, task, or training into a webview using your developer credentials.\n\n### **Step 1: Get Your API Credentials**\n\nAPI keys are essential for authenticating and authorizing requests to CogniFit’s services. They consist of a **public key** and a **private key**, which securely identify your application and establish a connection with CogniFit's APIs.\n\n⚠️ **Protect your private key:** Unauthorized exposure can lead to account misuse. Keep it confidential and only share your public key when necessary.\n\n---\n\n### **Step 2: Get the User Token**\n\n1. Go to [<b>User Registration API</b>](https://cognifitapiv2.docs.apiary.io/#reference/0/user-registration/create-new-user-account?console=1)\n    \n2. Click on **Body**\n    \n3. Fill in the JSON with your credentials and click on the **Call Resource** button.\n    \n\n#### **Example Request:**\n\n``` json\n{\n    \"client_id\": \"YOURCLIENTID\",\n    \"client_secret\": \"YOURCLIENTSECRET\",\n    \"user_name\": \"Sam\",\n    \"user_lastname\": \"Smith\",\n    \"user_email\": \"samsmith@cognifit.com\",\n    \"user_password\": \"xxxxxx\",\n    \"user_birthday\": \"1999-07-03\",\n    \"user_sex\": 1,\n    \"user_locale\": \"en\"\n}\n\n ```\n\n✅ **If the request is successful, you will receive a** **`user_token`**.\n\n🔹 **Note:** The `user_token` is unique for each user (email). Make sure to save it.\n\n---\n\n### **Step 3: Load the Test Container**\n\nOnce you have the `user_token`, load the following **iframe** to test the integration.  \nSelect a game and experiment with the API in a controlled environment.\n\n🔗 [<b>Test the Integration</b>](https://www.cognifit.com/flash/cognifitSocial/partnerSdkTester.php)\n\nThis quick guide helps you set up a basic API integration with CogniFit. For a complete step-by-step process, visit the [<b>CogniFit Developer Platform</b>](https://www.cognifit.com/developers). 🚀\n\n---\n\n## 🔐 Security & Best Practices\n\n- **OAuth** for secure authentication\n    \n- **Encryption of credentials** and storage\n    \n- **Protection against XSS, CSRF, and SQL Injection attacks**\n    \n- **API Rate Limits**: Maximum of 90 calls per minute\n    \n\n🔗 [Complete Security Guide](https://cognifitapiv2.docs.apiary.io/#introduction/security)\n\n---\n\n## 💬 Support & Contact\n\n🔹 **Technical Support**: Up to 5 troubleshooting queries per year  \n🔹 **Billing & Account Queries**: Unlimited support  \n🔹 **Premium Plans**: Include additional integration assistance hours\n\n📩 **Need help? Contact us at** [support-integrations@cognifit.com](https://mailto:support-integrations@cognifit.com)\n\n---\n\n## 🔥 Get Started Now!\n\nEverything you need for a smooth integration is available in our **step-by-step guide**.\n\n🔗 [<b>Go to the Developer Platform</b>](https://www.cognifit.com/developers) **and start integrating today!** 🚀","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":true,"owner":"23432645","team":305319,"collectionId":"94e9ffe6-84ac-475b-b6ed-d9a482dbdae5","publishedId":"2sAYdoDSUJ","public":true,"publicUrl":"https://postman.cognifit.com","privateUrl":"https://go.postman.co/documentation/23432645-94e9ffe6-84ac-475b-b6ed-d9a482dbdae5","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"0B7AF4"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":"This documentation explains how to integrate the CogniFit assessments, trainings and games in your website or Apps."},{"name":"title","value":"CogniFit API"}],"appearance":{"default":"system_default","themes":[{"name":"dark","logo":"https://content.pstmn.io/9089b3d2-0857-4f0a-846c-6d19d2f2bd39/bG9nb193aGl0ZS5wbmc=","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"1CAAFA"}},{"name":"light","logo":"https://content.pstmn.io/7759c0d3-7587-4069-8c1f-a1592b731598/bG9nb19ibGFjay5wbmc=","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"0B7AF4"}}]}},"version":"8.10.1","publishDate":"2025-03-07T10:55:55.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"CogniFit API","description":"This documentation explains how to integrate the CogniFit assessments, trainings and games in your website or Apps."},"logos":{"logoLight":"https://content.pstmn.io/7759c0d3-7587-4069-8c1f-a1592b731598/bG9nb19ibGFjay5wbmc=","logoDark":"https://content.pstmn.io/9089b3d2-0857-4f0a-846c-6d19d2f2bd39/bG9nb193aGl0ZS5wbmc="}},"statusCode":200},"environments":[{"name":"Public","id":"028e3b2f-2b54-4e55-b9ca-0c8de743d246","owner":"23432645","values":[{"key":"baseUrl","value":"https://api.cognifit.com","enabled":true,"type":"default"},{"key":"clientId","value":"","enabled":true,"type":"secret"},{"key":"clientSecret","value":"","enabled":true,"type":"secret"},{"key":"clientHash","value":"","enabled":true,"type":"secret"},{"key":"callbackUrl","value":"","enabled":true,"type":"default"}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/5827fc42be025ba50673802426dbb1ab3e0222c4717bc6d0bf97f936ae04e848","favicon":"https://res.cloudinary.com/postman/image/upload/v1741608012/team/6089176f2591e698deeb2847e1e0673c.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"Public","value":"23432645-028e3b2f-2b54-4e55-b9ca-0c8de743d246"}],"canonicalUrl":"https://postman.cognifit.com/view/metadata/2sAYdoDSUJ"}