{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"432239da-81c9-417f-8871-19d014793fd3","name":"Welcome to Reddio APIs","description":"The Reddio API is organized around [<b>REST</b>](http://en.wikipedia.org/wiki/Representational_State_Transfer). Our API has predictable resource-oriented URLs, accepts [<b>form-encoded</b>](https://en.wikipedia.org/wiki/POST_(HTTP)#Use_for_submitting_web_forms) request bodies, returns [<b>JSON-encoded</b>](http://www.json.org/) responses, and uses standard HTTP response codes, authentication, and verbs.\n\n# General-info\n\n---\n\n## General API Information\n\nWe currently offer two API endpoints, one is for testnet and the other is for mainnet.\n\nFor testnet environment, you can use the following domain, which doesn't affect your live data or interact with the mainnet.\n\nIn Testnet, the API endpoint is [https://api-dev.reddio.com](https://api-dev.reddio.comIn)\n\nIn Mainnet, the API endpoint is [https://api.reddio.com](https://api.reddio.com)\n\n## Authentication and Headers\n\nThe Reddio API uses **API keys** to authenticate requests. You can view and manage your API keys in **the Reddio Dashboard**.\n\nYour API keys carry many privileges, so **keep them secure!** Do not share your secret API keys in publicly accessible areas such as GitHub or client-side code, etc.\n\nAuthentication to the API is performed via bearer auth, and all API requests must be made over [<b>HTTPS</b>](http://en.wikipedia.org/wiki/HTTP_Secure) and should have at least the following HTTP headers, otherwise, your request may fail.\n\n```\nContent-Type: application/json\nx-api-key: rk-xxxxxx-4326-4b58-ae69-xxxxxxxx\n\n ```\n\nIf you are using `cURL` to try out our APIs, use `-H \"x-api-key: rk-xxxxxx-4326-4b58-ae69-xxxxxxxx\"` when making requests.\n\n## Responses\n\n### Success responses\n\nReddio uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the **`2xx`** range indicates success.\n\nWe also contain business logic on response, the reference for the different error codes are down below.\n\n#### Error code on responses\n\n| **Error** | **Code** |\n| --- | --- |\n| Success | 0 |\n| StarkKeyMissing | 1 |\n| AmountInvalid | 2 |\n| TokenIDMissing | 3 |\n| TokenIDParseFailed | 4 |\n| NOSuchAccountID | 5 |\n| NoSuchAssetID | 6 |\n| NoMintableToken | 7 |\n| InsufficientAvailable | 8 |\n| InsufficientFrozen | 9 |\n| AddSequenceFailed | 10 |\n| FailedToGenerateNonce | 11 |\n| OrderFormatError | 12 |\n| DuplicateTransactionError | 13 |\n| FullWithdrawError | 14 |\n| NotSuchContract | 15 |\n| FailedToGenerateVaultID | 16 |\n| CancelOrderWrongOwner | 17 |\n| StarkKeyInvalid | 18 |\n| InvalidParam | 19 |\n| OrderConditionalCanceled | 20 |\n| FOKAndIOCCanceled | 21 |\n| TokenIDInvalid | 22 |\n| MintAmountInvalid | 23 |\n| DuplicateOrderInfoError | 24 |\n| NotSuchToken | 25 |\n| CanceledOrder | 26 |\n| ContractAddressMissing | 27 |\n| InvalidAPIKey | 28 |\n| InvalidOwnerOfContract | 29 |\n| SystemError | 500 |\n\n### Error responses\n\nCodes in the **`4xx`** range indicates an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Some **`4xx`** errors can be resolved programmatically.\n\nCodes in the **`5xx`** range indicates an error with Reddio's system (these are rare) and these errors will have a unique `RedID` for us to identify the problems.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":true,"owner":"21069842","team":3496982,"collectionId":"432239da-81c9-417f-8871-19d014793fd3","publishedId":"2s93CPqCQw","public":true,"publicUrl":"https://api-docs.reddio.com","privateUrl":"https://go.postman.co/documentation/21069842-432239da-81c9-417f-8871-19d014793fd3","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.11.4","publishDate":"2023-02-27T02:38:39.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[{"name":"Testnet","id":"0d74f28d-4dec-4d30-be9c-b82394c127bc","owner":"26007946","values":[{"key":"BASE_URL","value":"https://api-dev.reddio.com","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/7288308b23043445662f03c5c083d55f13f02f1fdb908f5ec038be00c81a69f5","favicon":"https://res.cloudinary.com/postman/image/upload/v1677385676/team/e1bxxxmpydegdqo979vm.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":"Testnet","value":"26007946-0d74f28d-4dec-4d30-be9c-b82394c127bc"}],"canonicalUrl":"https://api-docs.reddio.com/view/metadata/2s93CPqCQw"}