Create user masquerade
documentedMasquerade as a user in the admin interface.
POST /api/v2/admin/users/masqueradeAdminno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$domain}}/api/v2/admin/users/{{$user_id}}/session" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-d '{"notes": "{{$notes}}"}' \
# Sources: WHMCS Beta API docs (masquerade as user) post/admin/users/{user_id}/session (turn4view0, turn6view1)