WordLift Question and Answer Sets API
Operations on Q&A Sets Smart Content generations.
Operations on Q&A Sets Smart Content generations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/wordlift-io:wordlift-io-question-and-answer-sets-api"
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.
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: 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 Question and Answer Sets API
version: '1.0'
servers:
- url: https://api.wordlift.io
tags:
- description: Operations on Q&A Sets Smart Content generations.
name: Question and Answer Sets
paths:
/content-optimizations/questions-and-answers-sets:
get:
operationId: getQuestionAndAnswerSets
parameters:
- description: The webpage IRI
in: query
name: iri
required: false
schema:
type: string
- description: The smart content id.
in: query
name: smart_content_project_id
required: false
schema:
type: integer
format: int64
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/QuestionAndAnswerSet'
description: Found.
'401':
description: Authentication Failure
'404':
description: Not Found
security:
- ApiKey: []
summary: Get
tags:
- Question and Answer Sets
post:
operationId: createQuestionAndAnswerSets
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SmartContentRequest'
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/SmartContentProject'
description: Created
'401':
description: Authentication Failure
security:
- ApiKey: []
summary: Create
tags:
- Question and Answer Sets
/content-optimizations/questions-and-answers-sets/{id}:
delete:
operationId: deleteQuestionAndAnswerSet
parameters:
- in: path
name: id
required: true
schema:
type: string
responses:
'200':
description: OK
'401':
description: Authentication Failure
security:
- ApiKey: []
summary: Delete
tags:
- Question and Answer Sets
put:
operationId: updateQuestionAndAnswerSet
parameters:
- in: path
name: id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/QuestionAndAnswerSet'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/QuestionAndAnswerSet'
description: Found.
'401':
description: Authentication Failure
security:
- ApiKey: []
summary: Update
tags:
- Question and Answer Sets
components:
schemas:
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
WhatOperandLhs:
type: string
description: The left hand side operand for what condition.
enum:
- EVERYWHERE
- FIRST_SENTENCE
- LAST_SENTENCE
WhatOperator:
type: string
description: The operator for what condition.
enum:
- CONTAINS
- DOESNT_CONTAIN
- ENDS_WITH
- REGEX
- REGEX_DOESNT_MATCH
WebpageProperties:
type: object
properties:
created_entity_gaps:
type: array
description: Entity Gaps created for the Web Page.
items:
type: string
description: Entity Gaps created for the Web Page.
uniqueItems: true
iri:
type: string
selected_entity_gaps:
type: array
description: Entity Gaps selected for Web Page content optimization.
items:
type: string
description: Entity Gaps selected for Web Page content optimization.
uniqueItems: true
url:
type: string
required:
- created_entity_gaps
- iri
- selected_entity_gaps
- url
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
ValidationResult:
type: object
description: The set of warnings found for the answer.
properties:
levelEnum:
$ref: '#/components/schemas/LevelEnum'
name:
type: string
result:
type: string
enum:
- PASS
- FAIL
- SKIP
- FIXED
readOnly: true
LevelEnum:
type: string
description: The rule level.
enum:
- RECOMMENDED
- REQUIRED
WhenOperator:
type: string
description: The operator for when condition.
enum:
- ALWAYS
- EQUALS
- NOT_EQUALS
SmartContentProject:
type: object
description: A Smart Content project.
properties:
account_id:
type: integer
format: int64
description: The account id.
readOnly: true
created_at:
type: string
format: date-time
description: The create date-time.
readOnly: true
id:
type: integer
format: int64
description: The unique id.
readOnly: true
model_id:
type: integer
format: int64
default: 1
description: The model id.
minimum: 1
name:
type: string
description: The name of the smart content - applicable if bulk.
readOnly: true
quantity:
type: string
description: The type of the Smart Content - single or bulk.
enum:
- single
- bulk
readOnly: true
required:
- account_id
QuestionAndAnswer:
type: object
description: Generated Q&A content.
properties:
accepted_answer:
$ref: '#/components/schemas/AcceptedAnswer'
answer:
type: string
description: The generated answer.
errors:
type: array
description: The set of errors found for the answer.
items:
$ref: '#/components/schemas/ValidationResult'
readOnly: true
id:
type: string
description: The unique id.
readOnly: true
question:
type: string
description: The generated question.
warnings:
type: array
description: The set of warnings found for the answer.
items:
$ref: '#/components/schemas/ValidationResult'
readOnly: true
required:
- errors
- warnings
Scope:
type: string
description: The rule scope.
enum:
- USER
- PROJECT
QuestionAndAnswerSet:
type: object
description: Generated Q&A content.
properties:
created_entity_gaps:
type: array
description: Entity Gaps created for the Web Page.
items:
type: string
description: Entity Gaps created for the Web Page.
uniqueItems: true
id:
type: string
description: The unique id.
readOnly: true
is_smart_content_of:
type: string
description: The Web Page this smart content is created for.
published:
type: boolean
description: The published status of the smart content.
readOnly: true
questions_and_answers:
type: array
description: The generated questions and answers.
items:
$ref: '#/components/schemas/QuestionAndAnswer'
selected_entity_gaps:
type: array
description: Entity Gaps used to generate the Smart Content.
items:
type: string
description: Entity Gaps used to generate the Smart Content.
uniqueItems: true
smart_content_project_id:
type: integer
format: int64
url:
type: string
description: The URL of the Web Page this smart content is created for.
ProjectType:
type: string
description: The project type, if applicable.
enum:
- SMART_CONTENT
- CONTENT_GENERATION
ValidationTypeEnum:
type: string
enum:
- FIND_AND_REPLACE
- OPEN_AI
- APPEND
SmartContentRequest:
type: object
properties:
model_id:
type: integer
format: int64
default: 1
description: The model id.
minimum: 1
name:
type: string
description: The name of the smart content - applicable if bulk.
rules:
type: array
items:
$ref: '#/components/schemas/RuleRequest'
webpage_properties:
type: array
items:
$ref: '#/components/schemas/WebpageProperties'
AcceptedAnswer:
type: object
properties:
answer:
type: string
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