{ "opencollection": "1.0.0", "info": { "name": "OneCLI Agent Setup User API", "version": "1.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "User", "type": "folder" }, "items": [ { "info": { "name": "Get current user", "type": "http" }, "http": { "method": "GET", "url": "https://api.onecli.sh/v1/user" }, "docs": "Returns the profile of the authenticated user." }, { "info": { "name": "Update user profile", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.onecli.sh/v1/user", "body": { "type": "json", "data": "{}" } }, "docs": "Update user profile" }, { "info": { "name": "Get API key", "type": "http" }, "http": { "method": "GET", "url": "https://api.onecli.sh/v1/user/api-key" }, "docs": "Returns the current API key for the authenticated user in the current project." }, { "info": { "name": "Regenerate API key", "type": "http" }, "http": { "method": "POST", "url": "https://api.onecli.sh/v1/user/api-key/regenerate" }, "docs": "Generates a new API key, immediately invalidating the previous one." } ] } ], "bundled": true }