Create Password
hudu_create_passwordCreate a new password entry in Hudu to store credentials for a company, asset, or website, including username, password, URL, and optional TOTP secret.
Instructions
Create a new password in Hudu. A password record in Hudu — the credential vault entry for a company, optionally attached to a specific asset or website. Hudu calls these "AssetPassword" in the API and simply "Passwords" in its interface.
Returns the created record, including the id Hudu assigned. Hudu answers 422 with the offending field named when validation fails.
Operation class: Create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL this credential relates to. | |
| name | Yes | Label for this credential, e.g. "Firewall admin" or "M365 global admin". | |
| password | No | The secret itself. You are writing credential material into Hudu. Never invent a password or an OTP secret yourself, never copy one out of another tool result, and never repeat the value back in your reply, in a summary, or in a later tool call. Take it from the user for this one call and then let go of it. | |
| username | No | Username or account name this credential is for. | |
| in_portal | No | When true, the credential is exposed in the customer-facing Hudu portal, where end users can see it. Confirm with the user before enabling this — it widens who can read the secret beyond your own staff. | |
| login_url | No | Sign-in page URL, if different from url. | |
| company_id | Yes | Company this credential belongs to. Resolve it with hudu_list_companies first. | |
| otp_secret | No | TOTP seed for multi-factor login on this account, base32. Storing this beside the password puts both factors in one place — say so to the user before doing it. You are writing credential material into Hudu. Never invent a password or an OTP secret yourself, never copy one out of another tool result, and never repeat the value back in your reply, in a summary, or in a later tool call. Take it from the user for this one call and then let go of it. | |
| description | No | Notes about the credential. Do not put the password itself here. | |
| password_type | No | Free-text category, e.g. "Local admin". Hudu publishes no list of legal values; read an existing record to see what this instance uses. | |
| passwordable_id | No | Numeric id of the record named by passwordable_type. | |
| passwordable_type | No | Type of record this credential belongs to. Pair with passwordable_id. Omit both to store the credential against the company alone rather than a specific record. | |
| password_folder_id | No | Folder to file the credential under. List folders with hudu_list_password_folders. |