Skip to main content
PATCH
Change a saved login
  • A field left out is kept; null clears an optional one. The website and the sign-in type (password, code or secret) never change, and a secret login changes only its label and password.
  • primary_identifier changes the type it signs in with and needs that type’s identifier alongside, such as email with primary_identifier “email”.
  • On a password login, password left out keeps the saved one, so changing label, identifiers, primary_identifier or authenticator_secret alone needs no password.
  • environments changes where it can be used, to the keys of the team’s environments it serves or all, and needs no password or PIN.
  • Replacing password, authenticator_secret or recovery_codes needs the person’s Logins PIN: without it, an API key or app gets login_unlock_required with a dashboard_url where the person enters it, which lets that key or app make such changes for 5 minutes, never see a saved value.
  • The values pass through this client and its model provider. Warn the user first, or send only deliver “dashboard” to get the login’s Dashboard edit page instead.
  • Callers: an API key, an MCP OAuth token or a Dashboard session.
  • Permission: logins:manage.
  • Effect: Creates or changes something.
  • Errors: not_found, pin_required, login_unlock_required, site_login_exists, login_identity_conflict, legacy_duplicate_saved_logins, saved_login_unsettled, login_in_use, login_save_in_progress, invalid_credential, acceptance_unknown, and the errors any request can get.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

a saved login ID: login_ and 32 lowercase hex digits

Example:

"login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

Body

application/json
label
string | null

a string at most 200 character(s) long

Required string length: 1 - 200
username
string

a string at most 1024 character(s) long

Required string length: 1 - 1024
email
string | null

a string at most 320 character(s) long

Required string length: 3 - 320
phone
string | null

a string at most 64 character(s) long

Required string length: 3 - 64
account_number
string | null

a string at most 128 character(s) long

Required string length: 1 - 128
primary_identifier
enum<string>

The identifier it signs in with; else the first it holds in this order

Available options:
username,
email,
phone,
account_number
password
string

a string at most 16384 character(s) long

Required string length: 1 - 16384
date_of_birth
string | null

a string matching the pattern ^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])$

Pattern: ^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])$
zip
string | null

a string at most 10 character(s) long

Required string length: 3 - 10
authenticator_secret
string | null

a string at most 4096 character(s) long

Required string length: 1 - 4096
recovery_codes
string[] | null

an array of at most 20 item(s)

Required array length: 1 - 20 elements

a string at most 64 character(s) long

Required string length: 4 - 64
preferred_method
enum<string> | null

A two-factor method

Available options:
sms,
call,
email,
authenticator,
push,
recovery_code
environments

Can be used in: the keys of the team's environments it serves, or all. Left out, a team with environments limits a new login to the one it is saved in, production when the call names none

Available options:
all
deliver
enum<string>

Return a Dashboard link where the person enters the login, so no secret reaches this client

Available options:
dashboard

Response

The changed login; With deliver dashboard: where to finish

id
string
required

a saved login ID: login_ and 32 lowercase hex digits

Example:

"login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

label
string | null
required
site
object
required
username_masked
string
required
identifier_type
enum<string> | null
required
Available options:
username,
email,
phone,
account_number
sign_in
enum<string>
required
Available options:
password,
code,
secret
saved_fields
enum<string>[] | null
required

What it holds besides its username and password; null when not recorded

Available options:
email,
phone,
account_number,
date_of_birth,
zip,
recovery_codes,
preferred_method
two_factor
object
required
status
enum<string>
required
Available options:
unverified,
verified,
needs_attention
needs_attention
object
required
locked
boolean
required

Personal accounts: its identity is fixed after the first verified sign-in

your_access
enum<string>
required

use: run and build with it. edit: also reveal and change it. manage: also share and delete it

Available options:
use,
edit,
manage
created_at
string
required

When it was saved, ISO 8601 UTC

updated_at
string
required

When it last changed, ISO 8601 UTC

verified_at
string | null
required

Its first verified sign-in, ISO 8601 UTC; null before one

environments
string[]

The team's environments it can be used in, production first; absent when it can be used in every one, and empty when its only environment was deleted