{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"257abcda-f075-48bb-85bd-176612f7c45d","name":"Whitelabeler API","description":"# Generating a User\n\nIn order to generate a User, please sign up into the exchange ([https://exchange.bitex.la](https://exchange.bitex.la)) and complete the registration workflow. This means:\n\n*   You have validated your email.\n*   You have configured a 2FA device.\n    \n\nOnce you are done with this, please contact support providing:\n\n*   The **email** of the user you registered.\n*   A **webhook URL** where we will send important events information by doing POST requests.\n    \n\nAfter that we are going to send your **API KEY**, **API SECRET** and **USER ID**.\n\n* * *\n\n# Authentication\n\nIn order to be able to access endpoints that require authentication, it’s mandatory to send the following headers:\n\n*   **X-Exchange-User-Id:** YOUR USER ID\n*   **X-Exchange-Api-Key:** YOUR API KEY\n*   **X-Exchange-Nonce:** A number that can be used only once\n*   **X-Exchange:** true\n*   **X-Exchange-Signature:**\n    *   SHA 256 Digest\n    *   Signed with: Api Secret\n    *   Value: String `\"\"`\n\n#### How to generate a signature to **X-Exchange-Signature** header?\n\n``` ruby\nrequire 'openssl'\nuser_id = 99\napi_key = '19b7afde71cc09ac3d964ca7341d47d5'\napi_secret = '23c2b376baab634713e41c4bd8eac5e9'\nnonce = 1\nsignature = OpenSSL::HMAC.hexdigest('sha256', api_secret, \"#{nonce}#{user_id}#{api_key}\") #Value: \"1a6cf70c61637545b8b2ab3773cd682c6b99782ce9599827757e3a93217fac07\"\n\n```\n\n``` javascript\nvar exchange_user_id = 'YOUR_ID'\nvar exchange_api_key = 'YOUR_API_KEY'\nvar exchange_nonce = Date.now()\nvar message = exchange_nonce + exchange_user_id + exchange_api_key\nvar exchange_signature = CryptoJS.HmacSHA256(message, exchange_api_secret).toString(CryptoJS.enc.Hex)\n\n```\n\n# Retrieving your 2FA Seed\n\nEndpoints for dangerous actions (such as Withdrawing funds) require sending a [TOTP Code](https://www.twilio.com/docs/glossary/totp). In order to retrieve the seed that generates this code, you have two options:\n\n*   **With API**\n    *   Check the [2FA Seed API](##2FA-Seed) to recovery key. (only API V2)\n*   **On interface**\n    *   Log in into ([https://exchange.bitex.la](https://exchange.bitex-staging.la))\n    *   Click on the upper right corner (your email) and click on **\"Settings\"**\n    *   Select **\"Profile & Security\"** on the left menu\n    *   There should be a section called **\"Two-Factor Authentication\"**, if you have configured 2FA already, you should be able to click on **\"Recovery\"**.\n    *   Enter the **2FA Code**.\n    *   If it's correct, you should see the seed below the \"Copy Recovery Code to the clipboard paragraph\"\n\nYou should be able to load the seed with any library that accepts generating a TOTP, such as [ROTP](https://github.com/mdp/rotp).\n\n# Using this documentation\n\nIn order to use this documentation to execute requests, please fill the following environment variables with the required information:\n\n*   **exchange_user_id**\n*   **exchange_api_key**\n*   **exchange_api_secret**\n    \n\nHaving this setup, the rest of the variables such as **exchange_signature** and **exchange_nonce** are generated automatically.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":true,"owner":"14028001","collectionId":"257abcda-f075-48bb-85bd-176612f7c45d","publishedId":"UVyn1J7c","public":true,"publicUrl":"https://apidocs.bitex.la","privateUrl":"https://go.postman.co/documentation/14028001-257abcda-f075-48bb-85bd-176612f7c45d","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.10.1","publishDate":"2022-03-28T20:23:58.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[],"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/59df94183a628afdc1d2af169816e1125a12f8a8f99a3369831346c1bbd365c1","favicon":"https://res.cloudinary.com/postman/image/upload/v1548168935/team/zvidp1lwxw8qh5j86gk6.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"}],"canonicalUrl":"https://apidocs.bitex.la/view/metadata/UVyn1J7c"}