{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"API Authentication","type":"basic","slug":"api-authentication","excerpt":"","body":"Create auth token: https://support.coingate.com/en/42/how-can-i-create-coingate-api-credentials\n\nPlease note, that for \"Test\" (sandbox) mode you must generate separate API credentials on https://sandbox.coingate.com. API credentials generated on https://coingate.com will not work for \"Test\" (sandbox) mode.\n\nProvide generated Token to **HTTP Authorization Header**.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -H \\\"Authorization: Token YOUR_APP_TOKEN\\\" \\\"https://api.coingate.com/v2/orders/15012\\\"\",\n      \"language\": \"curl\"\n    },\n    {\n      \"code\": \"<?php\\n\\n$auth_token = 'YOUR_API_AUTH_TOKEN';\\n\\n$headers   = array();\\n$headers[] = 'Authorization: Token ' . $auth_token;\\n$curl      = curl_init();\\n\\ncurl_setopt($curl, CURLOPT_HTTPHEADER, $headers);\",\n      \"language\": \"php\"\n    }\n  ]\n}\n[/block]","updates":[],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5adcc1185cd1890003da8169","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Documentation","slug":"documentation","order":1,"from_sync":false,"reference":false,"_id":"5adcc1185cd1890003da8166","version":"5adcc1185cd1890003da8165","project":"5530bfac57cea10d00a3aa3b","createdAt":"2015-04-17T08:09:17.710Z","__v":0},"parentDoc":null,"user":"5530bf7457cea10d00a3aa3a","project":"5530bfac57cea10d00a3aa3b","version":{"version":"2","version_clean":"2.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5adcc1185cd1890003da8166","5adcc1185cd1890003da8167","5adcf4b3ce4b3f00035317e9","5adfb8e9452bd900036d115b","5e7b51281ac49702d745882c","5e7b526560c6cc004f25ca3e"],"_id":"5adcc1185cd1890003da8165","project":"5530bfac57cea10d00a3aa3b","createdAt":"2018-04-22T17:06:32.152Z","releaseDate":"2018-04-22T17:06:32.152Z","__v":5},"createdAt":"2015-04-17T08:09:18.450Z","githubsync":"","__v":0}

API Authentication


Create auth token: https://support.coingate.com/en/42/how-can-i-create-coingate-api-credentials Please note, that for "Test" (sandbox) mode you must generate separate API credentials on https://sandbox.coingate.com. API credentials generated on https://coingate.com will not work for "Test" (sandbox) mode. Provide generated Token to **HTTP Authorization Header**. [block:code] { "codes": [ { "code": "curl -v -H \"Authorization: Token YOUR_APP_TOKEN\" \"https://api.coingate.com/v2/orders/15012\"", "language": "curl" }, { "code": "<?php\n\n$auth_token = 'YOUR_API_AUTH_TOKEN';\n\n$headers = array();\n$headers[] = 'Authorization: Token ' . $auth_token;\n$curl = curl_init();\n\ncurl_setopt($curl, CURLOPT_HTTPHEADER, $headers);", "language": "php" } ] } [/block]