{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]}},"next":{"description":"","pages":[]},"title":"Authentication","type":"basic","slug":"authentication","excerpt":"","body":"Authentication to the API occurs via HTTP Basic Authentication.  To authenticate your request, add an Authorization header to the list of request headers where \"username:password\"  is encoded as a Base64 string.\n\nSample Basic Authorization Header:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"Authorization: Basic am9obm55cm9ja2V0QG1haWxlbmF0b3IuY29tOm15cHdk\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nSample Request Header for a GET including Authorization header:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"GET https://api.goformz.com/v2/formz HTTP/1.1\\nHost: api.goformz.com\\nConnection: keep-alive\\nAuthorization: Basic <Base64 encoded(username:password)>\\nAccept: application/json\\nAccept-Encoding: gzip, deflate, sdch\\nAccept-Language: en-US,en;q=0.8\",\n      \"language\": \"http\"\n    }\n  ]\n}\n[/block]\nAll API requests must be made over `HTTPS`. Calls made over plain `HTTP` will fail. You must authenticate for all requests.","updates":[],"order":2,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"553591ce63cc650d0031292f","createdAt":"2015-04-20T23:46:00.826Z","githubsync":"","project":"55357364e02d480d0003c6d3","category":{"sync":{"isSync":false,"url":""},"pages":["553591ce63cc650d00312929","553591ce63cc650d0031292a","553591ce63cc650d0031292b","553591ce63cc650d0031292c","553591ce63cc650d0031292d","553591ce63cc650d0031292e","553591ce63cc650d0031292f","553591ce63cc650d00312930"],"title":"API","slug":"api","order":0,"from_sync":false,"reference":false,"_id":"553591cd63cc650d00312926","__v":1,"createdAt":"2015-04-20T21:45:09.762Z","project":"55357364e02d480d0003c6d3","version":"553591cd63cc650d00312925"},"__v":4,"version":{"version":"2","version_clean":"2.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["553591cd63cc650d00312926","553591cd63cc650d00312927","5536e4d39f7f2d0d00b1cd54","5536e55c20d5ca0d0001580a","5536e6bf7fe60f0d000fd1c0","5536f5bba171250d00c00556","553a974369c2630d00a8562e","553a97c60074c80d00621c2a","553a98332af5f20d000fc32a","553a9b9869c2630d00a85642","556e0f23d02e0b190042f13d","563249b1dcc27a1700823650","5639113f049e420d00476b03","59a5dd94aaa11d003334edb4"],"_id":"553591cd63cc650d00312925","project":"55357364e02d480d0003c6d3","releaseDate":"2015-04-20T23:54:53.134Z","__v":13,"forked_from":"55357365e02d480d0003c6d6","createdAt":"2015-04-20T23:54:53.134Z"},"user":"55356ede6040a20d00454508","parentDoc":null}
Authentication to the API occurs via HTTP Basic Authentication. To authenticate your request, add an Authorization header to the list of request headers where "username:password" is encoded as a Base64 string. Sample Basic Authorization Header: [block:code] { "codes": [ { "code": "Authorization: Basic am9obm55cm9ja2V0QG1haWxlbmF0b3IuY29tOm15cHdk", "language": "text" } ] } [/block] Sample Request Header for a GET including Authorization header: [block:code] { "codes": [ { "code": "GET https://api.goformz.com/v2/formz HTTP/1.1\nHost: api.goformz.com\nConnection: keep-alive\nAuthorization: Basic <Base64 encoded(username:password)>\nAccept: application/json\nAccept-Encoding: gzip, deflate, sdch\nAccept-Language: en-US,en;q=0.8", "language": "http" } ] } [/block] All API requests must be made over `HTTPS`. Calls made over plain `HTTP` will fail. You must authenticate for all requests.