> ## Documentation Index
> Fetch the complete documentation index at: https://docs.verisoul.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update User



## OpenAPI

````yaml user-openapi.json PUT /v1/user/{user_id}
openapi: 3.0.0
info:
  title: Verisoul API v1 (beta)
  description: >-
    The new Verisoul API, served at api.verisoul.com under /v1. Endpoints not
    yet moved to the new shape return their legacy success body. Every /v1 error
    uses the new error body.
  license:
    name: MIT
  version: 1.0.0-beta
servers:
  - url: https://api.sandbox.verisoul.com
    description: Sandbox
  - url: https://api.verisoul.com
    description: Production
security:
  - apiKeyAuth: []
paths:
  /v1/user/{user_id}:
    put:
      description: Updates a user and returns it in the same format as Get User
      parameters:
        - schema:
            type: string
            description: ID of the user to update
          required: true
          name: user_id
          in: path
      requestBody:
        description: User information to update
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserUpdateRequest'
      responses:
        '200':
          description: Updated user information
          headers:
            X-RateLimit-Limit:
              schema:
                type: integer
                description: The project's request limit for the rolling 60-second window
              required: false
            X-RateLimit-Remaining:
              schema:
                type: integer
                minimum: 0
                description: >-
                  Requests left in the rolling 60-second window. Shorter burst
                  windows can still return a 429 while this is above 0
              required: false
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
              example:
                metadata:
                  timestamp: '2026-11-11T15:42:08.311Z'
                  request_id: 6486af8d-0588-4a29-a89e-04e5669220d9
                  project_id: be121fa6-0da6-4d65-bb75-6fd56c7dfa53
                decisions:
                  user_decision: Suspicious
                  user_score: 0.71
                  raw_user_score: 0.71
                  fraud_score: 0.78
                user:
                  id: usr_8f2k3m9q
                  phone: '+14155550142'
                  first_name: Jordan
                  last_name: Ellis
                  username: jordanellis
                  expected_countries:
                    - US
                  group: survey-1234
                  metadata:
                    plan: free
                    signup_source: referral
                  first_seen: '2026-09-14T18:03:27.442Z'
                  last_seen: '2026-11-11T15:42:08.311Z'
                  num_sessions: 3
                  rules:
                    - login-outside-expected-countries
                  lists:
                    - manual_review
                  email:
                    scores:
                      email_risk: 0.38
                      domain: -0.42
                    signals:
                      risk:
                        - email_alias
                        - email_high_number_count
                        - email_too_many_breaches
                      trust:
                        - email_age_greater_than_5_years
                        - email_known_online_history
                        - domain_whois_greater_than_5_years
                    data:
                      email: jordan.ellis.2291+deals@gmail.com
                      username: jordan.ellis.2291+deals
                      normalized: jordanellis2291@gmail.com
                      domain:
                        fqdn: gmail.com
                        apex: gmail.com
                        type: personal
                        users_on_domain: 18234
                  relationships:
                    scores:
                      multiple_accounts: 0.45
                    signals:
                      risk: []
                      trust: []
                    data:
                      num_linked_accounts: 2
                      linked_accounts:
                        - user_id: usr_3n7v1x5c
                          link_score: 0.94
                          match_types:
                            - device
                            - browser
                            - network
                          email: j.ellis.2291@outlook.com
                          phone: null
                          first_name: Jordan
                          last_name: Ellis
                          username: jellis2291
                          expected_countries:
                            - US
                          first_seen: '2026-10-02T21:14:55.108Z'
                          last_seen: '2026-11-10T03:27:41.562Z'
                          lists: []
                          metadata:
                            plan: free
                        - user_id: usr_6q2w8e4r
                          link_score: 0.58
                          match_types:
                            - email
                          email: jordanellis2291@gmail.com
                          phone: '+14155550187'
                          first_name: J
                          last_name: Ellis
                          username: null
                          expected_countries:
                            - US
                          first_seen: '2026-08-21T16:40:09.733Z'
                          last_seen: '2026-11-08T19:02:13.290Z'
                          lists:
                            - manual_review
                          metadata: {}
                  volatility:
                    scores:
                      volatility_risk: 0.35
                    signals:
                      risk:
                        - multiple_countries_7d
                      trust: []
                    data:
                      unique_devices:
                        1d: 1
                        7d: 2
                      unique_networks:
                        1d: 2
                        7d: 3
                      countries_seen:
                        - US
                        - MX
                  user_avg_scores:
                    network:
                      network_risk: 0.52
                      proxy: 0.61
                      vpn: 0.04
                      datacenter: 0.01
                      ip_reputation: 0.27
                    device:
                      device_risk: 0.69
                      tampering: 0.55
                      virtualization: 0.41
                      automation: 0.14
                    location:
                      location_spoofing: 0.48
                      impossible_travel: 0.09
                    behavior:
                      behavior_risk: 0.51
                      automation: 0.49
        '400':
          description: Invalid request. See error.code and error.details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                metadata:
                  timestamp: '2026-11-04T12:00:00.000Z'
                  request_id: 3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90
                  project_id: 00000000-0000-4000-8000-000000000001
                error:
                  code: invalid_request
                  message: Request validation failed
                  details:
                    - field: user.id
                      message: user.id should not be empty
        '401':
          description: Missing or unknown API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                metadata:
                  timestamp: '2026-11-04T12:00:00.000Z'
                  request_id: 3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90
                  project_id: null
                error:
                  code: api_key_not_found
                  message: API Key not found
                  details: []
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                metadata:
                  timestamp: '2026-11-04T12:00:00.000Z'
                  request_id: 3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90
                  project_id: 00000000-0000-4000-8000-000000000001
                error:
                  code: user_not_found
                  message: User not found
                  details: []
        '429':
          description: >-
            Rate limit exceeded. Retry after the seconds in the Retry-After
            header
          headers:
            X-RateLimit-Limit:
              schema:
                type: integer
                description: The project's request limit for the rolling 60-second window
              required: true
            X-RateLimit-Remaining:
              schema:
                type: integer
                minimum: 0
                description: Always 0 on a rate-limited response
              required: true
            Retry-After:
              schema:
                type: integer
                minimum: 1
                description: Seconds to wait before retrying
              required: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                metadata:
                  timestamp: '2026-11-04T12:00:00.000Z'
                  request_id: 3f2b8c1d-6e4a-4b7f-9c2d-8a1e5f6b7c90
                  project_id: 00000000-0000-4000-8000-000000000001
                error:
                  code: rate_limit_exceeded
                  message: >-
                    Current rate limit is 900 requests per minute. Please try
                    again later.
                  details: []
components:
  schemas:
    UserUpdateRequest:
      type: object
      properties:
        id:
          type: string
          description: The user identifier
        email:
          type: string
          description: The email associated with the user
        phone:
          type: string
          maxLength: 32
          description: >-
            The phone number on file for the user in E.164 format (e.g.
            +14155550123)
        first_name:
          type: string
          maxLength: 256
          description: The user's first name
        last_name:
          type: string
          maxLength: 256
          description: The user's last name
        username:
          type: string
          maxLength: 256
          description: The username associated with the user
        expected_countries:
          type: array
          items:
            type: string
            minLength: 2
            maxLength: 2
          description: >-
            Countries the user is expected to legitimately operate from, as ISO
            3166-1 alpha-2 codes. A non-empty list replaces the stored list; an
            empty or omitted list leaves the stored list unchanged.
        metadata:
          type: object
          properties: {}
          description: Additional metadata about the user
    UserResponse:
      type: object
      properties:
        metadata:
          $ref: '#/components/schemas/Metadata'
        decisions:
          $ref: '#/components/schemas/Decisions'
        user:
          $ref: '#/components/schemas/User'
    ErrorResponse:
      type: object
      properties:
        metadata:
          type: object
          properties:
            timestamp:
              type: string
              format: date-time
              description: When the response was generated
            request_id:
              type: string
              description: ID of the failed request. Quote it to support
            project_id:
              type: string
              nullable: true
              description: >-
                Project of the API key; null when the key is missing or unknown,
                or the route does not exist
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable, machine-readable error code
            message:
              type: string
              description: Human-readable explanation. The text can change; branch on code
            details:
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                    nullable: true
                    description: >-
                      Request field the problem is about, e.g. user.id; null
                      when it is not tied to one field
                  message:
                    type: string
                    description: What is wrong with the field
              description: Per-field problems for validation errors; empty otherwise
    Metadata:
      type: object
      properties:
        timestamp:
          type: string
          format: date-time
          description: When the response was generated
        request_id:
          type: string
          description: The ID of the request
        project_id:
          type: string
          description: The ID of the project
    Decisions:
      type: object
      properties:
        user_decision:
          type: string
          description: 'Decision about the user authenticity (Real/Fake). Legacy: decision'
        user_score:
          type: number
          minimum: 0
          maximum: 1
          description: >-
            Overall user risk score, 0 to 1: fraud risk plus multi-accounting
            and automation. Legacy: account_score
          format: float
        raw_user_score:
          type: number
          minimum: 0
          maximum: 1
          description: >-
            User score before your rules run. user_score differs when a rule
            adjusts the score or changes membership of the main_account list
          format: float
        fraud_score:
          type: number
          minimum: 0
          maximum: 1
          description: >-
            Fraud risk of the user, 0 to 1, from network, device, impossible
            travel, device and network volatility and email together. It leaves
            out multi-accounting and automation, which user_score adds on top
          format: float
    User:
      type: object
      properties:
        id:
          type: string
          description: The user identifier
        phone:
          type: string
          nullable: true
          description: >-
            The phone number stored for the user in E.164 format; null when not
            provided. Legacy returns ""
        first_name:
          type: string
          nullable: true
          description: The user's first name; null when not provided. Legacy returns ""
        last_name:
          type: string
          nullable: true
          description: The user's last name; null when not provided. Legacy returns ""
        username:
          type: string
          nullable: true
          description: >-
            The username stored for the user; null when not provided. Legacy
            returns ""
        expected_countries:
          type: array
          items:
            type: string
          description: >-
            Countries the user is expected to operate from (ISO 3166-1 alpha-2
            codes)
        group:
          type: string
          nullable: true
          description: >-
            The group associated with the user; null when not provided (legacy
            returns ""). See [Multi Accounting
            Groups](/integration/advanced/multi-accounting-groups)
        metadata:
          type: object
          properties: {}
          description: >-
            Additional metadata about the user; {} when none was sent. Legacy
            leaves the key out
        first_seen:
          type: string
          nullable: true
          format: date-time
          description: Timestamp when the user was first seen
        last_seen:
          type: string
          nullable: true
          format: date-time
          description: Timestamp when the user was last seen
        num_sessions:
          type: integer
          description: Number of sessions associated with this user
        rules:
          type: array
          items:
            type: string
          description: >-
            Slugs of the user rules that fired, e.g.
            login-outside-expected-countries
        lists:
          type: array
          items:
            type: string
          description: Lists the user belongs to
        email:
          type: object
          properties:
            scores:
              type: object
              properties:
                email_risk:
                  type: number
                  nullable: true
                  minimum: -1
                  maximum: 1
                  description: >-
                    Email risk score from -1 (most trustworthy) to 1 (most
                    risky); null when no email was evaluated. Legacy:
                    email_score
                  format: float
                domain:
                  type: number
                  nullable: true
                  minimum: -1
                  maximum: 1
                  description: >-
                    Risk score of the email domain from -1 (most trustworthy) to
                    1 (most risky); null when no email was evaluated
                  format: float
            signals:
              $ref: '#/components/schemas/Signals'
            data:
              type: object
              properties:
                email:
                  type: string
                  nullable: true
                  description: >-
                    Email address; null when the user has no email. Legacy
                    returns ""
                username:
                  type: string
                  nullable: true
                  description: >-
                    The part of the email before the @; null when the user has
                    no email
                normalized:
                  type: string
                  nullable: true
                  description: >-
                    The email with provider aliases removed (dots and +tags on
                    providers that ignore them); null when the user has no email
                domain:
                  type: object
                  properties:
                    fqdn:
                      type: string
                      nullable: true
                      description: >-
                        Full domain of the email; null when the user has no
                        email
                    apex:
                      type: string
                      nullable: true
                      description: >-
                        Registrable (apex) domain of the email; null when the
                        user has no email
                    type:
                      type: string
                      nullable: true
                      enum:
                        - relay
                        - personal
                        - disposable
                        - business
                        - government
                        - education
                        - invalid
                        - not_active
                      description: >-
                        The type of domain; null when the user has no email. See
                        [Domain Types](/signals-scores/email#domain-types).
                        Legacy: domain_type
                    users_on_domain:
                      type: integer
                      nullable: true
                      description: >-
                        Number of users from the same apex domain seen in your
                        project, capped at 1000; null when the user has no
                        email. Legacy: num_account_from_domain
        relationships:
          $ref: '#/components/schemas/Relationships'
        volatility:
          type: object
          properties:
            scores:
              type: object
              properties:
                volatility_risk:
                  type: number
                  nullable: true
                  minimum: 0
                  maximum: 1
                  description: >-
                    How fast the user changes devices and networks, 0 to 1: the
                    larger of the unique-devices and unique-networks scores,
                    each built from the 1-day and 7-day counts. 0 at one device
                    and one network; null when the counts are unavailable
                  format: float
            signals:
              allOf:
                - $ref: '#/components/schemas/Signals'
                - description: Volatility signals
            data:
              type: object
              properties:
                unique_devices:
                  type: object
                  properties:
                    1d:
                      type: integer
                      description: 'Unique devices in the last day. Legacy: 1_day'
                    7d:
                      type: integer
                      description: 'Unique devices in the last 7 days. Legacy: 7_day'
                unique_networks:
                  type: object
                  properties:
                    1d:
                      type: integer
                      description: 'Unique networks in the last day. Legacy: 1_day'
                    7d:
                      type: integer
                      description: 'Unique networks in the last 7 days. Legacy: 7_day'
                countries_seen:
                  type: array
                  items:
                    type: string
                  description: 'Countries the user has been seen from. Legacy: countries'
        user_avg_scores:
          type: object
          properties:
            network:
              type: object
              properties:
                network_risk:
                  type: number
                  minimum: 0
                  maximum: 1
                  description: Average network risk score across sessions
                  format: float
                proxy:
                  type: number
                  minimum: 0
                  maximum: 1
                  description: Average proxy score across sessions
                  format: float
                vpn:
                  type: number
                  minimum: 0
                  maximum: 1
                  description: Average VPN score across sessions
                  format: float
                datacenter:
                  type: number
                  minimum: 0
                  maximum: 1
                  description: Average datacenter score across sessions
                  format: float
                ip_reputation:
                  type: number
                  nullable: true
                  minimum: -1
                  maximum: 1
                  description: >-
                    Average IP reputation across sessions, -1 (trusted) to 1
                    (risky); null when no session has an IP reputation score
                  format: float
            device:
              type: object
              properties:
                device_risk:
                  type: number
                  minimum: 0
                  maximum: 1
                  description: Average device risk score across sessions
                  format: float
                tampering:
                  type: number
                  nullable: true
                  minimum: 0
                  maximum: 1
                  description: >-
                    Average tampering score over the sessions that have one;
                    null when none do
                  format: float
                virtualization:
                  type: number
                  nullable: true
                  minimum: 0
                  maximum: 1
                  description: >-
                    Average virtualization score over the sessions that have
                    one; null when none do
                  format: float
                automation:
                  type: number
                  nullable: true
                  minimum: 0
                  maximum: 1
                  description: >-
                    Average device automation score over the sessions that have
                    one; null when none do
                  format: float
            location:
              type: object
              properties:
                location_spoofing:
                  type: number
                  minimum: 0
                  maximum: 1
                  description: Average location spoofing score across sessions
                  format: float
                impossible_travel:
                  type: number
                  minimum: 0
                  maximum: 1
                  description: Average impossible travel score across sessions
                  format: float
            behavior:
              type: object
              properties:
                behavior_risk:
                  type: number
                  nullable: true
                  minimum: 0
                  maximum: 1
                  description: >-
                    Average behavior_risk over the sessions that have one; null
                    when none do (app-only users, or no behavioral data sent)
                  format: float
                automation:
                  type: number
                  nullable: true
                  minimum: 0
                  maximum: 1
                  description: >-
                    Average behavior automation score over the sessions that
                    have one; null when none do
                  format: float
          description: >-
            Per-session scores averaged over the user. Legacy:
            risk_signal_average
    Signals:
      type: object
      properties:
        risk:
          type: array
          items:
            type: string
          description: >-
            Risk signals that fired. See [Risk Signal
            Details](/signals-scores/risk-signals) for descriptions.
        trust:
          type: array
          items:
            type: string
          description: >-
            Trust signals that fired. Blocks return them as they ship; an empty
            list means none fired
    Relationships:
      type: object
      properties:
        scores:
          type: object
          properties:
            multiple_accounts:
              type: number
              minimum: 0
              maximum: 1
              description: >-
                How likely the user is one of several users run by the same
                person. Legacy: multiple_accounts
              format: float
        signals:
          allOf:
            - $ref: '#/components/schemas/Signals'
            - description: Relationship signals
        data:
          type: object
          properties:
            num_linked_accounts:
              type: integer
              description: 'Number of users linked to this user. Legacy: accounts_linked'
            linked_accounts:
              type: array
              items:
                $ref: '#/components/schemas/LinkedAccount'
              description: >-
                The linked users, sorted by link_score from highest to lowest.
                At most 100 are returned. Legacy: linked_accounts
    LinkedAccount:
      type: object
      properties:
        user_id:
          type: string
          description: The ID of the linked user
        link_score:
          type: number
          minimum: 0
          maximum: 1
          description: 'Confidence score of the link between users. Legacy: score'
          format: float
        match_types:
          type: array
          items:
            type: string
          description: >-
            Types of matches that linked these users (e.g. browser, device,
            network, email, phone, username, name). Legacy: match_type
        email:
          type: string
          nullable: true
          description: >-
            Email associated with the linked user; null when none. Legacy
            returns ""
        phone:
          type: string
          nullable: true
          description: >-
            Phone number associated with the linked user; null when none. Legacy
            returns ""
        first_name:
          type: string
          nullable: true
          description: >-
            First name associated with the linked user; null when none. Legacy
            returns ""
        last_name:
          type: string
          nullable: true
          description: >-
            Last name associated with the linked user; null when none. Legacy
            returns ""
        username:
          type: string
          nullable: true
          description: >-
            Username associated with the linked user; null when none. Legacy
            returns ""
        expected_countries:
          type: array
          items:
            type: string
          description: >-
            Expected countries declared for the linked user (ISO 3166-1 alpha-2
            codes)
        first_seen:
          type: string
          nullable: true
          format: date-time
          description: Timestamp when the linked user was first seen
        last_seen:
          type: string
          nullable: true
          format: date-time
          description: Timestamp when the linked user was last seen
        lists:
          type: array
          items:
            type: string
          description: Lists the linked user belongs to
        metadata:
          type: object
          properties: {}
          description: Additional metadata about the linked user
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.