{ "opencollection": "1.0.0", "info": { "name": "Hex.pm API Keys OAuth API", "version": "1.0.0" }, "request": { "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "items": [ { "info": { "name": "OAuth", "type": "folder" }, "items": [ { "info": { "name": "Initiate Device Authorization", "type": "http" }, "http": { "method": "POST", "url": "https://hex.pm/api/oauth/device_authorization", "body": { "type": "json", "data": "{}" } }, "docs": "Initiates the OAuth2 Device Authorization Grant flow (RFC 8628). Returns a device code and user code for the client to display." }, { "info": { "name": "Request Token", "type": "http" }, "http": { "method": "POST", "url": "https://hex.pm/api/oauth/token", "body": { "type": "json", "data": "{}" } }, "docs": "Exchanges a device code for an OAuth2 access token after user has authorized the device." }, { "info": { "name": "Revoke Token", "type": "http" }, "http": { "method": "POST", "url": "https://hex.pm/api/oauth/revoke", "body": { "type": "json", "data": "{}" } }, "docs": "Revokes an OAuth2 access token." }, { "info": { "name": "Revoke Token by Hash", "type": "http" }, "http": { "method": "POST", "url": "https://hex.pm/api/oauth/revoke_by_hash", "body": { "type": "json", "data": "{}" } }, "docs": "Revokes an OAuth2 token using its hash value." } ] } ], "bundled": true }