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

# Verify user identity (HMAC)

> Verifies an end user's identity using HMAC-SHA256. The HMAC is computed over the `userId` with the project's HMAC secret. On success, the end user is upserted.



## OpenAPI

````yaml /openapi.json post /identity/verify
openapi: 3.0.3
info:
  title: Agentic Trust API
  description: >-
    Runtime API for the Agentic Trust AI customer support platform. Use these
    endpoints to manage conversations, send messages, verify user identity, and
    collect feedback.
  version: 1.0.0
  contact:
    name: Agentic Trust Support
    email: security@agentictrust.com
servers:
  - url: https://platform.agentictrust.com/api/v1
    description: Production
security:
  - ApiKeyHeader: []
tags:
  - name: Widget
    description: Widget configuration endpoints.
  - name: Chat
    description: Conversation and message endpoints.
  - name: Identity
    description: User identity verification endpoints.
  - name: Feedback
    description: Conversation feedback endpoints.
paths:
  /identity/verify:
    post:
      tags:
        - Identity
      summary: Verify user identity (HMAC)
      description: >-
        Verifies an end user's identity using HMAC-SHA256. The HMAC is computed
        over the `userId` with the project's HMAC secret. On success, the end
        user is upserted.
      operationId: verifyIdentity
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                userId:
                  type: string
                  description: External user identifier.
                hmac:
                  type: string
                  description: Hex-encoded HMAC-SHA256 signature.
                email:
                  type: string
                  format: email
                  description: Optional user email.
                name:
                  type: string
                  description: Optional user display name.
              required:
                - userId
                - hmac
      responses:
        '200':
          description: HMAC valid. End user upserted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  verified:
                    type: boolean
                    example: true
        '400':
          description: Identity verification not configured or validation error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  verified:
                    type: boolean
                    example: false
                  error:
                    type: string
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Invalid HMAC signature.
          content:
            application/json:
              schema:
                type: object
                properties:
                  verified:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Invalid HMAC signature
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key in `lum_pk_*` format. Pass via `x-api-key` header or
        `Authorization: Bearer <key>`.

````