{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Authentication","type":"basic","slug":"authentication","excerpt":"","body":"Authentication and identification are handled in the same step in the Tophatter Merchant API by providing one of your API `access_token` values in the query parameters or post data of every request.\n\nThe Tophatter Merchant API only accepts requests sent over SSL (HTTPS).\n\nYou can manage your API keys [here](https://tophatter.com/seller/api_keys).\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"# Using query parameters:\\ncurl -X GET \\\"https://tophatter.com/merchant_api/v1/endpoint.json?access_token=YOUR_ACCESS_TOKEN\\\"\\n\\n# Using post data:\\ncurl -X POST \\\"https://tophatter.com/merchant_api/v1/endpoint.json\\\"\\n-d \\\"access_token=YOUR_ACCESS_TOKEN\\\"\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]","updates":["5a62c2bfdf5d960030abc188","5e220e807d885000218d3b26","5e25998571070400563c8d78","5e25f7ef987fd8002b9b62a6"],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"56a979a12bb3910d000ee941","version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["567f0c07143cc60d00c1fdc2","56a9783109cb9c0d00f0c7d3","56a97837f834950d0037b363","56a9783b2d8fd90d0036eed6","56a979912d8fd90d0036eed8","5834b5691a80690f00d31faf","5834b5e4f775120f00c45f9d","5bf1a1473031e4005075ae14","5c64c200244bda003204b97f"],"_id":"567f0c06143cc60d00c1fdc1","__v":9,"createdAt":"2015-12-26T21:52:06.734Z","releaseDate":"2015-12-26T21:52:06.734Z","project":"567f0c06143cc60d00c1fdbe"},"__v":15,"createdAt":"2016-01-28T02:14:57.636Z","githubsync":"","user":"567f0baca74a1c0d003e1fba","parentDoc":null,"project":"567f0c06143cc60d00c1fdbe","category":{"sync":{"isSync":false,"url":""},"pages":["56a979a12bb3910d000ee941","56a979d5f834950d0037b367","56a979dbf834950d0037b369","56abe05035138c0d005c94da","56abe0670b9e0b0d006162b7"],"title":"API Usage","slug":"api-usage","order":0,"from_sync":false,"reference":false,"_id":"56a979912d8fd90d0036eed8","createdAt":"2016-01-28T02:14:41.926Z","version":"567f0c06143cc60d00c1fdc1","__v":5,"project":"567f0c06143cc60d00c1fdbe"}}
Authentication and identification are handled in the same step in the Tophatter Merchant API by providing one of your API `access_token` values in the query parameters or post data of every request. The Tophatter Merchant API only accepts requests sent over SSL (HTTPS). You can manage your API keys [here](https://tophatter.com/seller/api_keys). [block:code] { "codes": [ { "code": "# Using query parameters:\ncurl -X GET \"https://tophatter.com/merchant_api/v1/endpoint.json?access_token=YOUR_ACCESS_TOKEN\"\n\n# Using post data:\ncurl -X POST \"https://tophatter.com/merchant_api/v1/endpoint.json\"\n-d \"access_token=YOUR_ACCESS_TOKEN\"", "language": "curl" } ] } [/block]