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

# Create Strike

> Create a user strike for a Policy violation and get the resulting effective action.

Create a strike when you need to record a violation directly. This endpoint returns the created strike and the current effective action for the user.


## OpenAPI

````yaml POST /api/user/strike
openapi: 3.1.0
info:
  title: WhiteCircle API Backend
  description: 'Authentication: Bearer API Key Required'
  license:
    name: ''
  version: '2025-12-01'
servers:
  - url: https://eu.whitecircle.com
  - url: https://us.whitecircle.com
security: []
tags:
  - name: Session
    description: Session-based content checking and moderation
  - name: User
    description: User risk assessment and scoring
  - name: Policy
    description: Policy management CRUD
  - name: Metric
    description: Metric management CRUD
  - name: Artifact
    description: Standalone artifact moderation
paths:
  /api/user/strike:
    post:
      tags:
        - User
      operationId: strike_v3
      parameters:
        - name: whitecircle-version
          in: header
          description: API Version
          required: true
          schema:
            type: string
          example: '2025-12-01'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUserStrikeRequest'
            example:
              policy_id: 8d3d8fad-0df7-443f-a6df-5445e48a8eaf
              severity_level_id: f43f4c73-b2d9-48b8-a79f-868e3f958d37
              id: user-123
              email: user@example.com
              ip: 203.0.113.10
              external_session_id: session-456
              internal_session_id: 5f8a31d6-4b2f-4e61-88d5-cc537e4af79e
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateUserStrikeResponse'
              example:
                action: warn
                action_expires_at: '2026-04-05T10:00:00Z'
                strike:
                  severity: high
                  points: 10
                  created_at: 1770612473
                  expires_at: 1771217273
                  reason: session.flagged
                  internal_session_id: 5f8a31d6-4b2f-4e61-88d5-cc537e4af79e
                  external_session_id: session-456
                  appeal: null
                  policy:
                    id: 8d3d8fad-0df7-443f-a6df-5445e48a8eaf
                    name: Adult Content
                    severity: high
        '400':
          description: Bad Request
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: |-
            curl --request POST \
              --url 'https://eu.whitecircle.com/api/user/strike' \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --header 'whitecircle-version: 2025-12-01' \
              --data '{"policy_id":"8d3d8fad-0df7-443f-a6df-5445e48a8eaf","severity_level_id":"f43f4c73-b2d9-48b8-a79f-868e3f958d37","id":"user-123","email":"user@example.com","external_session_id":"session-456"}'
components:
  schemas:
    CreateUserStrikeRequest:
      type: object
      required:
        - policy_id
        - severity_level_id
      properties:
        email:
          type:
            - string
            - 'null'
        external_session_id:
          type:
            - string
            - 'null'
        id:
          type:
            - string
            - 'null'
        internal_session_id:
          type:
            - string
            - 'null'
        ip:
          type:
            - string
            - 'null'
        policy_id:
          type: string
        severity_level_id:
          type: string
          format: uuid
    CreateUserStrikeResponse:
      type: object
      required:
        - strike
      properties:
        action:
          type:
            - string
            - 'null'
        action_expires_at:
          type:
            - string
            - 'null'
          format: date-time
        strike:
          $ref: '#/components/schemas/PublicStrikeItem'
    PublicStrikeItem:
      type: object
      required:
        - severity
        - points
        - created_at
        - expires_at
        - reason
        - internal_session_id
        - policy
      properties:
        appeal:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/PublicStrikeAppeal'
        created_at:
          type: integer
          format: int64
        expires_at:
          type: integer
          format: int64
        external_session_id:
          type:
            - string
            - 'null'
        internal_session_id:
          type: string
        points:
          type: integer
          format: int32
        policy:
          $ref: '#/components/schemas/PublicStrikePolicy'
        reason:
          type: string
        severity:
          type: string
    PublicStrikeAppeal:
      type: object
      required:
        - time
        - status
      properties:
        status:
          type: string
        time:
          type: integer
          format: int64
    PublicStrikePolicy:
      type: object
      required:
        - id
        - name
        - severity
      properties:
        id:
          type: string
        name:
          type: string
        severity:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'API Key required. Format: Bearer wc-your-api-key'

````