{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"b0d5f13a-37fb-42e7-a59e-e22c843040e7","name":"API OTC - Comprar Bitcoin","description":"**Introduction:**\n\nThis is the Comprar Bitcoin API. You can use it to integrate and automate the usage of your account.\n\nOur API is in constant evolution, prioritizing bug fixes and the release of new features while striving to maintain backward compatibility whenever possible. If you feel any functionality is missing, please let us know by contacting our support team.\n\n**Contact Support:**\n\n- **Name:** Comprar Bitcoin\n    \n- **Support Email:** [suporte@comprarbitcoin.io](https://mailto:suporte@comprarbitcoin.io)\n    \n\n**Staging (Sandbox) vs. Production:**\n\nThe API features a fully functional staging environment, meaning you can perform tests on all endpoints using mocked data. The API Key and Secret are bound to the specific environment; therefore, an API Key issued for the staging environment will not work in the production environment, and vice versa.\n\nRequests for the staging and production environments have different base URLs:\n\n- **Staging environment base URL:** `https://api.sandbox.otccomprarbitcoin.io`\n    \n- **Production environment base URL:** `https://api.otccomprarbitcoin.io`\n    \n\n**API Key Generation Process:**\n\nThe issuance of API keys for both the staging and production environments is performed via the following steps:\n\n1. The user must generate a key pair (public and private) locally.\n    \n2. The user sends the public key to the Comprar Bitcoin support team.\n    \n3. The Comprar Bitcoin support team uses the public key to generate an encrypted API Key and Secret.\n    \n4. The Comprar Bitcoin support team sends the encrypted API Key and Secret to the user.\n    \n5. The user decrypts the API Key and Secret using the private key generated in step 1.\n    \n6. The user begins using the decrypted API Key and Secret for API authentication.\n    \n\n**Generating Public and Private Keys:**\n\nThe process for generating SSL certificates may vary depending on the operating system. In the following example, we will use OpenSSL. The source code and installation binaries can be downloaded from the official repository ([https://github.com/openssl/openssl?tab=readme-ov-file#download](https://github.com/openssl/openssl?tab=readme-ov-file#download)).\n\nIn your operating system's terminal, navigate to the folder where you wish to store the certificate and execute the following command:\n\n`openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:4096`\n\nThis command will generate a file named “private_key.pem” containing the private key. Next, execute the following command to generate the public key:\n\n`openssl rsa -pubout -in private_key.pem -out public_key.pem`\n\nThis command will generate a file named “public_key.pem” containing the public key.\n\n**Sending the Public Key:**\n\nThe generated public key must be sent to the Comprar Bitcoin support team. You can copy the content of the public_key.pem file and send it via the created support group.\n\n**Decrypting the API Secret:**\n\nThe encrypted API Secret sent by the Comprar Bitcoin support team is Base64 encoded. Therefore, the first step is to decode it. In Linux environments, you can do this with the following command:\n\n`echo 'PASTE_THE_PROTECTED_API_SECRET_HERE' | base64 --decode > secret.bin`\n\nThe command above will create a file named secret.bin containing the binary value of the encrypted API Secret without the Base64 encoding.\n\nNow, we will decrypt the API Secret with the following command:\n\n`openssl pkeyutl -decrypt -inkey private_key.pem -in secret.bin -out secret.txt -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256`\n\nThe command above will create a file named secret.txt containing the decrypted API Secret value.\n\nFrom this moment on, you have the API Key and API Secret ready to use for API authentication.\n\n**ATTENTION!!! THE KEY GENERATION AND DECRYPTION PROCEDURE MUST BE PERFORMED IN A SECURE ENVIRONMENT. THE PRIVATE KEY, API KEY, AND SECRET (ENCRYPTED OR NOT) MUST NOT BE SHARED WITH THIRD PARTIES. GENERATING KEYS VIA THIS PROCEDURE GUARANTEES THE SECURITY OF YOUR ACCOUNT USAGE THROUGH THE API.**\n\n**IP Whitelisting:**\n\nIn the staging environment, the API accepts requests from any origin. However, in the production environment, the user must contact Comprar Bitcoin support to authorize the specific server IPs that will use the API Key.\n\nFor security reasons, IP ranges are not allowed; authorization requests must be made for specific IPs only. The use of intermediary services (such as proxies) or hosting the integration in a shared environment is not recommended. Binding the API Key to specific IPs is a security measure designed to prevent third parties in possession of the key from authenticating via infrastructure that does not belong to the client.\n\nBy doing so, the user assumes the risk of third parties with the API Key and Secret accessing their data and funds.\n\n---\n\n**API Call Rate Limit:**\n\nA maximum of 60 requests per minute is allowed. If you have any special requirements, please contact support.\n\n**Traded Pairs - Currently, the following pairs are available:** \n\n- USDT/BRL\n    \n- USDC/BRL","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"50362445","team":11535386,"collectionId":"b0d5f13a-37fb-42e7-a59e-e22c843040e7","publishedId":"2sB3dJysQh","public":true,"publicUrl":"https://docs.comprarbitcoin.io","privateUrl":"https://go.postman.co/documentation/50362445-b0d5f13a-37fb-42e7-a59e-e22c843040e7","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"fcb404"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":"Acesse a API OTC para comprar Bitcoin com integração rápida, segura e automatizada. Obtenha alta liquidez, taxas competitivas e suporte técnico completo."},{"name":"title","value":"API OTC Comprar Bitcoin – Integração Rápida e Segura"}],"appearance":{"default":"light","themes":[{"name":"dark","logo":"https://content.pstmn.io/38e8b224-097a-43d4-8a0c-42e9c49ebccf/bG9nbyBjYiBvdGMucG5n","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"fcb404"}},{"name":"light","logo":"https://content.pstmn.io/38e8b224-097a-43d4-8a0c-42e9c49ebccf/bG9nbyBjYiBvdGMucG5n","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"fcb404"}}]}},"version":"8.11.2","publishDate":"2025-11-26T13:05:50.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"API OTC Comprar Bitcoin – Integração Rápida e Segura","description":"Acesse a API OTC para comprar Bitcoin com integração rápida, segura e automatizada. Obtenha alta liquidez, taxas competitivas e suporte técnico completo."},"logos":{"logoLight":"https://content.pstmn.io/38e8b224-097a-43d4-8a0c-42e9c49ebccf/bG9nbyBjYiBvdGMucG5n","logoDark":"https://content.pstmn.io/38e8b224-097a-43d4-8a0c-42e9c49ebccf/bG9nbyBjYiBvdGMucG5n"}},"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/02a8a270a696b0e0134b6bf6a00b04395c2f1adb7b9795ae7481abe8412484cc","favicon":"https://comprarbitcoin.io/favicon.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://docs.comprarbitcoin.io/view/metadata/2sB3dJysQh"}