{"info":{"_postman_id":"96fdd5cd-aff2-44e9-9901-e7085ba58b4f","name":"Patched.to User Authentication","description":"<html><head></head><body><p>This API provides developers to integrate Patched.to authentication into their programs.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>You need to set 'User-Agent' header as your production name. (Ex: MyFirstProduction)</p>\n<p>You need to set 'X-Auth-Key' header as users auth key which can be found on <a href=\"https://patched.to/auth.php\">https://patched.to/auth.php</a>.</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>400 Bad Request - 'X-Auth-Key' header not found.</p>\n<p>401 Unauthorized - Expired auth key.</p>\n<p>403 Forbidden - Unauthorized.</p>\n<p>403 Forbidden - Identifier mismatch.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"}],"owner":"17237135","collectionId":"96fdd5cd-aff2-44e9-9901-e7085ba58b4f","publishedId":"TzzGFt5c","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-08-25T14:22:25.000Z"},"item":[{"name":"https://api.patched.to/v1/user_info","id":"c8b6eb77-d71d-4d47-a5ea-d9ed25f196a4","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true,"user-agent":true,"accept-encoding":true,"connection":true}},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"User-Agent","value":"MyFirstProduction","type":"text"},{"key":"X-Auth-Key","value":"...","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.patched.to/v1/user_info","description":"<ul>\n<li>Get basic information about a user.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","user_info"],"host":["api","patched","to"],"query":[],"variable":[]}},"response":[{"id":"51d95c6d-3642-4a67-a0b6-5b0f0bd510ec","name":"https://api.patched.to/v1/user_info","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"User-Agent","value":"MyFirstProduction","type":"text"},{"key":"X-Auth-Key","value":"...","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.patched.to/v1/user_info"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 25 Aug 2021 14:02:13 GMT"},{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Content-Length","value":"231"},{"key":"Connection","value":"keep-alive"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains; preload"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Server","value":"cloudflare"},{"key":"alt-svc","value":"h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"OK\",\n    \"session_info\": {\n        \"time\": 1629900133\n    },\n    \"user_info\": {\n        \"user\": \"PatchedUser\",\n        \"uid\": 11,\n        \"rank\": \"14\",\n        \"ip\": \"6694f83c9f476da31f5df6bcc520034e7e57d421d247b9d34f49edbfc84a764c\",\n        \"post\": \"0\",\n        \"rep\": \"0\",\n        \"exp\": 1629900713\n    }\n}"}],"_postman_id":"c8b6eb77-d71d-4d47-a5ea-d9ed25f196a4"}],"event":[{"listen":"prerequest","script":{"id":"f030fd5e-f64e-4f59-ac89-50b678542615","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"45056a62-c3c4-4d58-bbb9-90dbba4e60a7","type":"text/javascript","exec":[""]}}]}