Amazon Fraud Detector Rules API

Business logic rules for fraud decisions

GitHub OpenAPI

Operations 3

POST /#CreateRule Create Rule #
POST /#DeleteRule Delete Rule #
POST /#GetRules Get Rules #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-fraud-detector:amazon-fraud-detector-rules-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-fraud-detector-rules-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Fraud Detector Rules API
  version: '2019-11-15'
  description: Generated from AWS's published Smithy model for Amazon Fraud Detector. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://frauddetector.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#CreateRule:
    post:
      operationId: CreateRule
      summary: Create Rule
      description: Creates a rule for use with the specified detector.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/CreateRuleResult'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSHawksNestServiceFacade.CreateRule
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/CreateRuleRequest'
      tags:
      - Rules
  /#DeleteRule:
    post:
      operationId: DeleteRule
      summary: Delete Rule
      description: Deletes the rule. You cannot delete a rule if it is used by an ACTIVE or INACTIVE detector version. When
        you delete a rule, Amazon Fraud Detector permanently deletes that rule and the data is no longer stored in Amazon
        Fraud Detector.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DeleteRuleResult'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSHawksNestServiceFacade.DeleteRule
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DeleteRuleRequest'
      tags:
      - Rules
  /#GetRules:
    post:
      operationId: GetRules
      summary: Get Rules
      description: Get all rules for a detector (paginated) if ruleId and ruleVersion are not specified. Gets all rules for
        the detector and the ruleId if present (paginated). Gets a specific rule if both the ruleId and the ruleVersion are
        specified. This is a paginated API. Providing null maxResults results in retrieving maximum of 100 records per page.
        If you provide maxResults the value must be between 50 and 100. To get the next page result, a provide a pagination
        token from GetRulesResult as part of your request. Null pagination token fetches the records from the beginning.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/GetRulesResult'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSHawksNestServiceFacade.GetRules
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/GetRulesRequest'
      tags:
      - Rules
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: frauddetector
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ConflictException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    CreateRuleRequest:
      type: object
      properties:
        ruleId:
          type: string
          description: The rule ID.
        detectorId:
          type: string
          description: The detector ID for the rule's parent detector.
        description:
          type: string
          description: The rule description.
        expression:
          type: string
          description: The rule expression.
        language:
          type: string
          enum:
          - DETECTORPL
          description: The language of the rule.
        outcomes:
          type: array
          items:
            type: string
          description: The outcome or outcomes returned when the rule expression matches.
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: A collection of key and value pairs.
      required:
      - ruleId
      - detectorId
      - expression
      - language
      - outcomes
    CreateRuleResult:
      type: object
      properties:
        rule:
          $ref: '#/components/schemas/Rule'
    DeleteRuleRequest:
      type: object
      properties:
        rule:
          $ref: '#/components/schemas/Rule'
      required:
      - rule
    DeleteRuleResult:
      type: object
      properties: {}
    GetRulesRequest:
      type: object
      properties:
        ruleId:
          type: string
          description: The rule ID.
        detectorId:
          type: string
          description: The detector ID.
        ruleVersion:
          type: string
          description: The rule version.
        nextToken:
          type: string
          description: The next page token.
        maxResults:
          type: integer
          description: The maximum number of rules to return for the request.
      required:
      - detectorId
    GetRulesResult:
      type: object
      properties:
        ruleDetails:
          type: array
          items:
            $ref: '#/components/schemas/RuleDetail'
          description: The details of the requested rule.
        nextToken:
          type: string
          description: The next page token to be used in subsequent requests.
    InternalServerException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    Rule:
      type: object
      properties:
        detectorId:
          type: string
          description: The detector for which the rule is associated.
        ruleId:
          type: string
          description: The rule ID.
        ruleVersion:
          type: string
          description: The rule version.
      required:
      - detectorId
      - ruleId
      - ruleVersion
    RuleDetail:
      type: object
      properties:
        ruleId:
          type: string
          description: The rule ID.
        description:
          type: string
          description: The rule description.
        detectorId:
          type: string
          description: The detector for which the rule is associated.
        ruleVersion:
          type: string
          description: The rule version.
        expression:
          type: string
          description: The rule expression.
        language:
          type: string
          enum:
          - DETECTORPL
          description: The rule language.
        outcomes:
          type: array
          items:
            type: string
          description: The rule outcomes.
        lastUpdatedTime:
          type: string
          description: Timestamp of the last time the rule was updated.
        createdTime:
          type: string
          description: The timestamp of when the rule was created.
        arn:
          type: string
          description: The rule ARN.
    Tag:
      type: object
      properties:
        key:
          type: string
          description: A tag key.
        value:
          type: string
          description: A value assigned to a tag key.
      required:
      - key
      - value
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ValidationException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/frauddetector/service/2019-11-15/frauddetector-2019-11-15.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)