{ "opencollection": "1.0.0", "info": { "name": "GitHub Auth Impersonation API", "version": "1.1.4" }, "items": [ { "info": { "name": "Impersonation", "type": "folder" }, "items": [ { "info": { "name": "GitHub Create an Impersonation Oauth Token", "type": "http" }, "http": { "method": "POST", "url": "{protocol}://{hostname}/api/v3/admin/users/:username/authorizations", "params": [ { "name": "username", "value": "", "type": "path", "description": "The handle for the GitHub user account." } ], "body": { "type": "json", "data": "{}" } }, "docs": "This API endpoint allows administrators to create an OAuth impersonation token for a specific GitHub user by making a POST request to /admin/users/{username}/authorizations. The operation enables authorized administrators to generate access tokens on behalf of other users, which can be useful for troubleshooting, performing administrative tasks, or assisting users with account-related issues. The endpoint requires admin privileges and accepts the target username as a path parameter, along with o" }, { "info": { "name": "GitHub Delete an Impersonation Oauth Token", "type": "http" }, "http": { "method": "DELETE", "url": "{protocol}://{hostname}/api/v3/admin/users/:username/authorizations", "params": [ { "name": "username", "value": "", "type": "path", "description": "The handle for the GitHub user account." } ] }, "docs": "Deletes an impersonation OAuth token for a specified user, allowing administrators to revoke access tokens that were created to impersonate that user. This endpoint requires admin authentication and removes the authorization token associated with the given username, effectively terminating any active sessions or API access using that impersonated token. This is typically used for security purposes or when administrative access to a user's account is no longer needed." } ] } ], "bundled": true }