> ## 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.

# Identify user (JWT)

> Verifies a JWT identity token signed with the project's HMAC secret (HS256). On success, the end user is upserted from the token claims (`sub` required; `email` and `name` optional).



## OpenAPI

````yaml /openapi.json post /identity/identify
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/identify:
    post:
      tags:
        - Identity
      summary: Identify user (JWT)
      description: >-
        Verifies a JWT identity token signed with the project's HMAC secret
        (HS256). On success, the end user is upserted from the token claims
        (`sub` required; `email` and `name` optional).
      operationId: identifyUser
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  description: JWT signed with the project's HMAC secret.
              required:
                - token
      responses:
        '200':
          description: Token valid. End user upserted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  verified:
                    type: boolean
                    example: true
                  user:
                    type: object
                    properties:
                      id:
                        type: string
                      email:
                        type: string
                      name:
                        type: string
        '400':
          description: Identity verification not configured.
          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 identity token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  verified:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Invalid identity token
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>`.

````