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

# Record a reported customer event

> Records a customer action your institution reports — a login, a logout, a page view, a payment action. These give monitoring rules context around a transaction, not just the transaction itself.



## OpenAPI

````yaml /api/openapi_integrations.json post /api/integration-services/customer/v1/events
openapi: 3.0.1
info:
  title: Integration Services API
  description: API for retrieving customer information by unique id.
  version: '1.0'
servers:
  - url: https://{{baseUrl}}
security:
  - bearerAuth: []
tags: []
paths:
  /api/integration-services/customer/v1/events:
    post:
      tags:
        - integration-services
      summary: Record a reported customer event
      description: >-
        Records a customer action your institution reports — a login, a logout,
        a page view, a payment action. These give monitoring rules context
        around a transaction, not just the transaction itself.
      operationId: createReportedCustomerEvent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomerEventRequest'
            examples:
              mandatory_fields:
                summary: Mandatory fields example
                value:
                  requester: SYSTEMX
                  eventType: LOGIN_SUCCESS
                  eventId: EVENT_LOGIN_B1_TEST
                  eventAt: '2026-08-01T09:12:33Z'
                  customerExtId: IND_IMPORT_B1_TEST
                  businessUnit: sandbox
              all_fields:
                summary: All fields example, one additional property per data type
                value:
                  requester: SYSTEMX
                  eventType: LOGIN_FAILED
                  channel: MOBILE_APP
                  eventId: EVENT_LOGIN_FAILED_B1_TEST
                  eventAt: '2026-08-01T09:12:33Z'
                  customerExtId: IND_IMPORT_B1_TEST
                  deviceData:
                    id: Qw8nZ3kL5pR2tY7vX1bM
                    eventId: 1785575553000.Tg4sHk
                  businessUnit: sandbox
                  additionalProperties:
                    - code: login_method
                      title: Login method
                      value: PASSWORD
                      dataType: STRING
                    - code: attempt_no
                      title: Attempt number
                      value: '007'
                      dataType: INTEGER
                    - code: risk_score
                      title: Risk score
                      value: '12.50'
                      dataType: DECIMAL
                    - code: opened_on
                      title: Account opened
                      value: '2024-03-01'
                      dataType: DATE
                    - code: seen_at
                      title: Last seen
                      value: '2026-08-01T09:12:33.789Z'
                      dataType: TIMESTAMP
                    - code: is_trusted
                      title: Trusted device
                      value: 'TRUE'
                      dataType: BOOLEAN
                    - code: audit_url
                      title: Audit trail
                      value: https://example.test/a/991
                      dataType: EXTERNAL_LINK
                    - code: note
                      title: Free note
                      value: dataType omitted, stored as STRING
                      at: '2026-08-01T09:12:30Z'
      responses:
        '201':
          description: The event was stored. Empty body.
        '204':
          description: >-
            The customer already had an event under this `eventId`, so nothing
            was written. Empty body. A repost is still rejected for a missing
            mandatory field or an unsupported `dataType`, but additional
            property values are not checked against their `dataType`.
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerEventErrorResponse'
              examples:
                missing_field:
                  summary: a mandatory field is missing
                  value:
                    errors:
                      - code: requiredField
                        field: eventId
                        title: Event id is mandatory
                customer_not_found:
                  summary: the customer has not been sent to AMLYZE yet
                  value:
                    errors:
                      - code: customerNotFound
                        field: customerExtId
                        title: Customer does not exist in this business unit
                business_unit_issue:
                  summary: issues with business unit
                  value:
                    errors:
                      - code: businessUnitNotFound
                        field: businessUnit
                        title: Business unit does not exist for this tenant
                invalid_property_value:
                  summary: an additional property value does not match its dataType
                  value:
                    errors:
                      - code: invalidValue
                        field: additionalProperties.value
                        title: Additional property value does not match its data type
components:
  schemas:
    CustomerEventRequest:
      type: object
      required:
        - requester
        - eventType
        - eventId
        - eventAt
        - customerExtId
      properties:
        requester:
          type: string
          maxLength: 255
          description: Source system that reported the event. Up to 255 characters.
          example: SYSTEMX
        eventType:
          type: string
          maxLength: 255
          description: >-
            Primary classifier that drives processing. Not a closed set — for
            example `LOGIN_SUCCESS`, `LOGIN_FAILED`, `LOGOUT`. A value new to
            the business unit is registered as an enabled, editable classifier
            and becomes available in the UI. Its initial name there is the value
            in sentence case: `LOGIN_FAILED` becomes `Login failed`. Up to 255
            characters.
          example: LOGIN_SUCCESS
        eventId:
          type: string
          maxLength: 255
          description: >-
            Your own identifier for the event. Must be unique for one customer —
            two different customers may carry the same value. Reposting an
            existing one answers 204. Up to 255 characters.
          example: EVENT_LOGIN_B1_TEST
        eventAt:
          type: string
          format: date-time
          description: >-
            When the action happened in your system, in RFC 3339 format. A value
            in another format is rejected with `invalidRequestBody`.
          example: '2026-08-01T09:12:33Z'
        customerExtId:
          type: string
          description: >-
            The customer's identifier in your system. The customer must already
            exist in AMLYZE.
          example: IND_IMPORT_B1_TEST
        businessUnit:
          type: string
          description: >-
            Mandatory field for clients utilizing a multi-organizational
            solution. It serves to specify the unique identifier for the
            business unit.
          example: sandbox
        channel:
          type: string
          maxLength: 255
          description: >-
            Where the activity happened. Available as a rule parameter, and
            registered as a classifier like eventType. An empty string is
            ignored. Up to 255 characters.
          example: MOBILE_APP
        deviceData:
          $ref: '#/components/schemas/CustomerEventDeviceData'
        additionalProperties:
          type: array
          description: Caller defined typed values carried with the event.
          items:
            $ref: '#/components/schemas/CustomerEventAdditionalProperty'
    CustomerEventErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/CustomerEventError'
    CustomerEventDeviceData:
      type: object
      description: >-
        The device the customer acted from. Leave it out for an event with no
        device behind it, such as a back-office action.
      required:
        - id
      properties:
        id:
          type: string
          maxLength: 255
          description: >-
            Identifier of the device, for example the visitor ID from your
            device identification, or an identifier of your own. Send the same
            value for the same device every time. Mandatory when `deviceData` is
            provided: an empty object, or one with only `eventId`, is rejected
            with `requiredField` on `deviceData.id`. Up to 255 characters.
          example: Qw8nZ3kL5pR2tY7vX1bM
        eventId:
          type: string
          maxLength: 255
          description: >-
            Identifier of the device identification event that belongs to this
            customer event, for example the event ID from your device
            identification. Not related to the event's own `eventId`. Up to 255
            characters.
          example: 1785575553000.Tg4sHk
    CustomerEventAdditionalProperty:
      type: object
      required:
        - code
        - title
      properties:
        code:
          type: string
          maxLength: 255
          description: Property code. Up to 255 characters.
          example: login_method
        title:
          type: string
          description: Human readable property name.
          example: Login method
        value:
          type: string
          nullable: true
          description: >-
            Always sent as a string and interpreted according to `dataType`.
            Stored in canonical form: `007` becomes `7`, `12.50` becomes `12.5`,
            `1e3` becomes `1000`, `TRUE` becomes `true`. A value that does not
            match its `dataType` is rejected. A `DATE` value is `yyyy-MM-dd`, a
            `TIMESTAMP` value is `yyyy-MM-ddTHH:mm:ss.SSSZ`.
          example: PASSWORD
        dataType:
          allOf:
            - $ref: '#/components/schemas/CustomerEventValueDataType'
          description: Defaults to `STRING` when omitted.
        at:
          type: string
          format: date-time
          description: >-
            When the value was observed. Note this differs from a `TIMESTAMP`
            value, which is a string in `yyyy-MM-ddTHH:mm:ss.SSSZ` with exactly
            three fractional digits and a literal `Z`.
          example: '2026-08-01T09:12:30Z'
    CustomerEventError:
      type: object
      properties:
        code:
          type: string
          description: >-
            What to branch on. `requiredField`, `unsupportedValue`,
            `invalidValue` and `invalidRequestBody` describe the request body;
            `customerNotFound`, `tenantRequired`, `businessUnitRequired` and
            `businessUnitNotFound` describe the security context or the
            customer.
          example: requiredField
        field:
          type: string
          description: The offending input, where the error has one.
          example: eventId
        title:
          type: string
          description: Human readable description of the error.
    CustomerEventValueDataType:
      type: string
      description: How an additional property value is to be interpreted.
      default: STRING
      enum:
        - STRING
        - INTEGER
        - DECIMAL
        - DATE
        - TIMESTAMP
        - BOOLEAN
        - EXTERNAL_LINK
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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