Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

API token obtained from the Tokens endpoint or CLI device login. Include as Authorization: Bearer <token>. Requests made with a managed CLI session also include X-Strix-Workspace: <organization_id> to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.

Scopes

test_users:write

Path Parameters

networkId
string
required

A network connector id, or direct for this install (self-hosted only).

Body

application/json

Credentials for a test user saved to a network.

label
string
required

Display label for the test user.

username
string
required

Login username/email.

password
string

Stored encrypted. Never returned.

notes
string

Free-text hints for the agent, for example which role the account has.

login_url
string

URL of the login page where the agent signs in with this account.

mfa_method
enum<string>
Available options:
none,
totp
totp_secret
string

Required when mfa_method=totp. Stored encrypted.

Response

Test user created.

A saved test account attached to a domain or network. Secrets are never returned — only boolean presence flags.

id
string<uuid>
required
label
string
required
username
string
required
mfa_method
enum<string>
required
Available options:
none,
totp,
email_otp,
magic_link
has_password
boolean
required
has_totp_secret
boolean
required
target_kind
enum<string>
required
Available options:
domain,
network
connector_id
string<uuid> | null
required

Network connector id. A null value means this install.

organization_id
string<uuid>
domain_id
string<uuid> | null
scope_domain_ids
string<uuid>[]

Domain ids this domain test user applies to. An empty array means it applies to every domain in the organization. Network test users do not apply to domains.

notes
string | null
mfa_email
string | null
login_url
string | null
created_by
string | null
created_at
string<date-time>
updated_at
string<date-time>