WordLift Rules API

Manage validation rules for Generative AI projects.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 6

GET /rules List #
POST /rules Create #
PUT /rules-collection Update #
POST /rules/copies Copy #
DELETE /rules/{id} Delete #
PUT /rules/{id} Update #

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/wordlift-io:wordlift-io-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

wordlift-io-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: hello@wordlift.io
    name: WordLift
    url: https://wordlift.io
  description: Generate completions based on customized linguistic models.
  license:
    name: (c) copyright 2022-present WordLift
    url: https://wordlift.io
  termsOfService: https://wordlift.io/terms-of-service/
  title: Content Generation Rules API
  version: '1.0'
servers:
- url: https://api.wordlift.io
tags:
- description: Manage validation rules for Generative AI projects.
  name: Rules
paths:
  /rules:
    get:
      operationId: listRules
      parameters:
      - description: The cursor
        in: query
        name: cursor
        required: false
        schema:
          type: string
      - description: The maximum number of results
        in: query
        name: limit
        required: false
        schema:
          type: integer
          default: 10
      - description: The project id - if provided, must also provide the project type
        in: query
        name: project_id
        required: false
        schema:
          type: integer
          format: int64
      - description: The project type - if provided, must also provide the project id
        in: query
        name: project_type
        required: false
        schema:
          $ref: '#/components/schemas/ProjectType'
      - description: The scope
        in: query
        name: scope
        required: false
        schema:
          $ref: '#/components/schemas/Scope'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageRule'
          description: Found.
        '400':
          description: Bad request
        '401':
          description: Authentication Failure
      security:
      - security_oauth2: []
      summary: List
      tags:
      - Rules
    post:
      operationId: createRule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RuleRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Rule'
          description: Created
        '400':
          description: Bad request
        '401':
          description: Authentication Failure
      security:
      - security_oauth2: []
      summary: Create
      tags:
      - Rules
  /rules-collection:
    put:
      operationId: updateRuleCollection
      parameters:
      - description: The project id
        in: query
        name: project_id
        required: true
        schema:
          type: integer
          format: int64
      - description: The project type
        in: query
        name: project_type
        required: true
        schema:
          $ref: '#/components/schemas/ProjectType'
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/RuleRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Rule'
          description: Found.
        '400':
          description: Bad request
        '401':
          description: Authentication Failure
      security:
      - security_oauth2: []
      summary: Update
      tags:
      - Rules
  /rules/copies:
    post:
      operationId: copyRules
      parameters:
      - description: The project type
        in: query
        name: project_type
        required: true
        schema:
          $ref: '#/components/schemas/ProjectType'
      - description: The source Content Generation id.
        in: query
        name: from_project_id
        required: true
        schema:
          type: integer
          format: int64
      - description: The target Content Generation id.
        in: query
        name: to_project_id
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '201':
          description: Created
        '401':
          description: Authentication Failure
        '404':
          description: Not Found
      security:
      - security_oauth2: []
      summary: Copy
      tags:
      - Rules
  /rules/{id}:
    delete:
      operationId: deleteRule
      parameters:
      - description: The id
        in: path
        name: id
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '200':
          description: Found.
        '401':
          description: Authentication Failure
        '404':
          description: Not Found
      security:
      - security_oauth2: []
      summary: Delete
      tags:
      - Rules
    put:
      operationId: updateRule
      parameters:
      - description: The id
        in: path
        name: id
        required: true
        schema:
          type: integer
          format: int64
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RuleRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Rule'
          description: Found.
        '401':
          description: Authentication Failure
        '404':
          description: Not Found
      security:
      - security_oauth2: []
      summary: Update
      tags:
      - Rules
components:
  schemas:
    WhatOperandLhs:
      type: string
      description: The left hand side operand for what condition.
      enum:
      - EVERYWHERE
      - FIRST_SENTENCE
      - LAST_SENTENCE
    RuleRequest:
      type: object
      properties:
        description:
          type: string
          description: Description for the rule
        fixes:
          type: array
          description: The list of fixes to apply when the rule validation fails.
          items:
            $ref: '#/components/schemas/ValidationFix'
        is_enabled:
          type: boolean
        level:
          $ref: '#/components/schemas/LevelEnum'
        name:
          type: string
          description: The rule name.
        project_id:
          type: integer
          format: int64
          description: The project id, if applicable.
        project_type:
          $ref: '#/components/schemas/ProjectType'
        scope:
          $ref: '#/components/schemas/Scope'
        type:
          type: string
          description: The rule type, one of `field`, `word` or `code`. By default `field`.
        what_operand_lhs:
          $ref: '#/components/schemas/WhatOperandLhs'
        what_operand_rhs:
          type: string
          description: The right hand side operand for what condition.
        what_operator:
          $ref: '#/components/schemas/WhatOperator'
        when_operand_lhs:
          type: string
          description: The left hand side  operand for when condition.
        when_operand_rhs:
          type: string
          description: The right hand side operand for when condition.
        when_operator:
          $ref: '#/components/schemas/WhenOperator'
      required:
      - level
      - name
      - scope
      - type
      - what_operand_lhs
      - what_operand_rhs
      - what_operator
      - when_operand_lhs
      - when_operand_rhs
      - when_operator
    WhatOperator:
      type: string
      description: The operator for what condition.
      enum:
      - CONTAINS
      - DOESNT_CONTAIN
      - ENDS_WITH
      - REGEX
      - REGEX_DOESNT_MATCH
    ValidationFix:
      type: object
      description: The list of fixes to apply when the rule validation fails.
      properties:
        type:
          $ref: '#/components/schemas/ValidationTypeEnum'
        what:
          type: string
        with:
          type: string
    PageRule:
      type: object
      description: A page object with links to move to other pages and the list of objects.
      properties:
        first:
          type:
          - string
          - 'null'
          description: The link to the first page.
        items:
          type: array
          description: An array of objects.
          items:
            $ref: '#/components/schemas/Rule'
        last:
          type:
          - string
          - 'null'
          description: The link to the last page.
        next:
          type:
          - string
          - 'null'
          description: The link to the next page or `null` if there's no page.
        prev:
          type:
          - string
          - 'null'
          description: The link to the previous page or `null` if there's no page.
        self:
          type:
          - string
          - 'null'
          description: The link to the current page.
      required:
      - first
      - items
      - last
      - next
      - prev
      - self
    LevelEnum:
      type: string
      description: The rule level.
      enum:
      - RECOMMENDED
      - REQUIRED
    WhenOperator:
      type: string
      description: The operator for when condition.
      enum:
      - ALWAYS
      - EQUALS
      - NOT_EQUALS
    Rule:
      type: object
      properties:
        created_at:
          type: string
          format: date-time
          description: The create date-time.
          readOnly: true
        description:
          type: string
          description: Description for the rule
        fixes:
          type: array
          description: The list of fixes to apply when the rule validation fails.
          items:
            $ref: '#/components/schemas/ValidationFix'
        id:
          type: integer
          format: int64
        is_enabled:
          type: boolean
        level:
          $ref: '#/components/schemas/LevelEnum'
        modified_at:
          type: string
          format: date-time
          description: The last modified date-time.
          readOnly: true
        name:
          type: string
          description: The rule name.
        project_id:
          type: integer
          format: int64
        project_type:
          $ref: '#/components/schemas/ProjectType'
        scope:
          $ref: '#/components/schemas/Scope'
        type:
          type: string
          description: The rule type, one of `field`, `word` or `code`. By default `field`.
        what_operand_lhs:
          $ref: '#/components/schemas/WhatOperandLhs'
        what_operand_rhs:
          type: string
          description: The right hand side operand for what condition.
        what_operator:
          $ref: '#/components/schemas/WhatOperator'
        when_operand_lhs:
          type: string
          description: The left hand side  operand for when condition.
        when_operand_rhs:
          type: string
          description: The right hand side operand for when condition.
        when_operator:
          $ref: '#/components/schemas/WhenOperator'
      required:
      - level
      - name
      - scope
      - type
      - what_operand_lhs
      - what_operand_rhs
      - what_operator
      - when_operand_lhs
      - when_operand_rhs
      - when_operator
    Scope:
      type: string
      description: The rule scope.
      enum:
      - USER
      - PROJECT
    ProjectType:
      type: string
      description: The project type, if applicable.
      enum:
      - SMART_CONTENT
      - CONTENT_GENERATION
    ValidationTypeEnum:
      type: string
      enum:
      - FIND_AND_REPLACE
      - OPEN_AI
      - APPEND
  securitySchemes:
    ApiKey:
      description: '`Key {your key}`'
      in: header
      name: Authorization
      type: apiKey
    security_oauth2:
      flows:
        authorizationCode:
          authorizationUrl: https://s.wordlift.io/oauth/authorize/
          scopes:
            basic: basic scope
          tokenUrl: https://s.wordlift.io/oauth/token/
      type: oauth2