Quotewise Quote Relations API
The Quote Relations API from Quotewise — 5 operation(s) for quote relations.
The Quote Relations API from Quotewise — 5 operation(s) for quote relations.
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/quotewise-io:quotewise-io-quote-relations-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:
title: Quotewise Quote Relations API
version: 1.0.0
description: 'Semantic quote search API with 799K curated quotes.
## Authentication
All API requests require a Bearer token:
```http
Authorization: Bearer qw_your_api_key
```
Create your API key at the Developer Dashboard.
## Credits
Operations cost 1-2 credits from your monthly quota. See Credits & Usage for details.
## Rate Limits
| Tier | Per Minute | Per Hour |
|------|------------|----------|
| Free | 15 | 100 |
| Premium | 600 | 10,000 |
| Enterprise | 6,000 | 100,000 |
**Response headers:** `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset`'
contact:
name: Quotewise API Support
url: https://quotewise.io/contact/
license:
name: Quotewise API License
url: https://quotewise.io/terms/
termsOfService: https://quotewise.io/terms/
x-logo:
url: https://d204c3srckk4j3.cloudfront.net/brand/web/logo-wide.782c298e5f6d.png
altText: Quotewise Logo
x-apisguru-categories:
- tools
- quotes
- content
servers:
- url: https://api.quotewise.io
description: Production API
tags:
- name: Quote Relations
paths:
/v1/quotes/{short_code}/relations/:
get:
operationId: getQuoteRelations
description: 'Returns a flat list of relation rows with explicit direction and relation_type fields.
Query Parameters:
- relation_type: Filter by relation type (optional)
- direction: Filter by direction - ''outgoing'', ''incoming'', or ''both'' (default: ''both'')
Response rows live under data.'
summary: Get all relations for a quote
parameters:
- in: path
name: short_code
schema:
type: string
description: Unique 6-char identifier for URLs.
required: true
description: Quote short_code. Legacy numeric database IDs are accepted for backwards compatibility.
tags:
- Quote Relations
security:
- cookieAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/QuoteRelationListResponse'
description: ''
/v1/relations/:
post:
operationId: createQuoteRelation
description: Create a new relation between two quotes
summary: Create a quote relation
tags:
- Quote Relations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateRelationRequestRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CreateRelationRequestRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/CreateRelationRequestRequest'
required: true
security:
- cookieAuth: []
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/QuoteRelation'
description: ''
/v1/relations/{id}/:
get:
operationId: getRelation
description: Get a specific relation with optional event history
summary: Get relation details
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this quote relation.
required: true
tags:
- Quote Relations
security:
- cookieAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/QuoteRelationDetail'
description: ''
patch:
operationId: updateRelation
description: Change the relation type (creates type_changed event)
summary: Update relation type
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this quote relation.
required: true
tags:
- Quote Relations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedUpdateRelationRequestRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/PatchedUpdateRelationRequestRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/PatchedUpdateRelationRequestRequest'
security:
- cookieAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/QuoteRelation'
description: ''
delete:
operationId: deleteRelation
description: Delete relation row; event history preserved via SET_NULL
summary: Delete a relation
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this quote relation.
required: true
tags:
- Quote Relations
security:
- cookieAuth: []
responses:
'204':
description: No response body
/v1/relations/{id}/events/:
get:
operationId: getRelationEvents
description: Full audit trail of relation changes
summary: Get relation event history
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this quote relation.
required: true
tags:
- Quote Relations
security:
- cookieAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/QuoteRelation'
description: ''
/v1/relations/{id}/verify/:
post:
operationId: verifyRelation
description: Mark an AI-inferred relation as human-verified
summary: Verify an AI-generated relation
parameters:
- in: path
name: id
schema:
type: integer
description: A unique integer value identifying this quote relation.
required: true
tags:
- Quote Relations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/QuoteRelationRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/QuoteRelationRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/QuoteRelationRequest'
required: true
security:
- cookieAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/QuoteRelation'
description: ''
components:
schemas:
QuoteSummaryRequest:
type: object
description: 'Lightweight quote summary for relation endpoints.
Per api.yaml QuoteSummary schema:
- short_code: Quote identifier
- text: First 200 chars
- originator: Originator name
- language: ISO language code
- quote_role: Role in group (canonical/translation/variant/misattributed)
- is_misattributed: True if quote or canonical is misattributed'
properties:
quote_role:
type: string
minLength: 1
is_misattributed:
type: boolean
required:
- is_misattributed
- quote_role
PatchedUpdateRelationRequestRequest:
type: object
description: Input serializer for PATCH /api/relations/{id}/.
properties:
relation_type:
enum:
- intra_translation
- variant
- revision_of
- excerpt_of
- cross_translation
- semantic_equivalent
- contemporaneous_with
- misattributed_from
- popularized_by
- inspired_by
- composite_of
type: string
x-spec-enum-id: ac49d7886541846c
description: 'New relation type
* `intra_translation` - Translation
* `variant` - Variant
* `revision_of` - Revision
* `excerpt_of` - Excerpt
* `cross_translation` - Literal Translation
* `semantic_equivalent` - Semantic Equivalent
* `contemporaneous_with` - Coined Independently
* `misattributed_from` - Misattributed From
* `popularized_by` - Popularized By
* `inspired_by` - Inspired By
* `composite_of` - Composite Of'
reason:
type: string
minLength: 1
description: Why the type is being changed
CreateRelationRequestRequest:
type: object
description: Input serializer for POST /api/relations/.
properties:
from_quote:
type: string
minLength: 1
description: Source quote short_code
to_quote:
type: string
minLength: 1
description: Target quote short_code
relation_type:
enum:
- intra_translation
- variant
- revision_of
- excerpt_of
- cross_translation
- semantic_equivalent
- contemporaneous_with
- misattributed_from
- popularized_by
- inspired_by
- composite_of
type: string
x-spec-enum-id: ac49d7886541846c
description: 'Type of relationship
* `intra_translation` - Translation
* `variant` - Variant
* `revision_of` - Revision
* `excerpt_of` - Excerpt
* `cross_translation` - Literal Translation
* `semantic_equivalent` - Semantic Equivalent
* `contemporaneous_with` - Coined Independently
* `misattributed_from` - Misattributed From
* `popularized_by` - Popularized By
* `inspired_by` - Inspired By
* `composite_of` - Composite Of'
provenance:
type: object
additionalProperties: {}
description: Audit metadata (source, confidence, ai_model, notes)
required:
- from_quote
- provenance
- relation_type
- to_quote
QuoteRelationRequest:
type: object
description: 'Full QuoteRelation representation for API.
Per api.yaml QuoteRelation schema:
- id: Relation ID
- from_quote: QuoteSummary
- to_quote: QuoteSummary
- relation_type: Type enum value
- relation_label: Human-readable label
- inverse_label: Inverse direction label
- provenance: Audit metadata (with verified_by as username)
- created_at: Timestamp'
properties:
id:
type: integer
from_quote:
$ref: '#/components/schemas/QuoteSummaryRequest'
to_quote:
$ref: '#/components/schemas/QuoteSummaryRequest'
relation_type:
type: string
minLength: 1
provenance:
type: string
created_at:
type: string
format: date-time
required:
- created_at
- from_quote
- id
- provenance
- relation_type
- to_quote
QuoteRelationListResponse:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/QuoteRelationRow'
required:
- data
QuoteRelation:
type: object
description: 'Full QuoteRelation representation for API.
Per api.yaml QuoteRelation schema:
- id: Relation ID
- from_quote: QuoteSummary
- to_quote: QuoteSummary
- relation_type: Type enum value
- relation_label: Human-readable label
- inverse_label: Inverse direction label
- provenance: Audit metadata (with verified_by as username)
- created_at: Timestamp'
properties:
id:
type: integer
from_quote:
$ref: '#/components/schemas/QuoteSummary'
to_quote:
$ref: '#/components/schemas/QuoteSummary'
relation_type:
type: string
relation_label:
type: string
readOnly: true
inverse_label:
type: string
readOnly: true
provenance:
type: string
created_at:
type: string
format: date-time
required:
- created_at
- from_quote
- id
- inverse_label
- provenance
- relation_label
- relation_type
- to_quote
QuoteRelationDetail:
type: object
description: 'Extended QuoteRelation with event history.
Per api.yaml QuoteRelationDetail schema:
- Inherits all QuoteRelation fields
- events: Array of RelationEvent (if include_history=true)'
properties:
id:
type: integer
from_quote:
$ref: '#/components/schemas/QuoteSummary'
to_quote:
$ref: '#/components/schemas/QuoteSummary'
relation_type:
type: string
relation_label:
type: string
readOnly: true
inverse_label:
type: string
readOnly: true
provenance:
type: string
created_at:
type: string
format: date-time
events:
type: string
readOnly: true
required:
- created_at
- events
- from_quote
- id
- inverse_label
- provenance
- relation_label
- relation_type
- to_quote
QuoteRelationRow:
type: object
description: REST relation row with explicit direction.
properties:
id:
type: integer
from_quote:
$ref: '#/components/schemas/QuoteSummary'
to_quote:
$ref: '#/components/schemas/QuoteSummary'
relation_type:
type: string
relation_label:
type: string
readOnly: true
inverse_label:
type: string
readOnly: true
provenance:
type: string
created_at:
type: string
format: date-time
direction:
enum:
- outgoing
- incoming
type: string
description: '* `outgoing` - outgoing
* `incoming` - incoming'
x-spec-enum-id: e8366c42fa26542f
required:
- created_at
- direction
- from_quote
- id
- inverse_label
- provenance
- relation_label
- relation_type
- to_quote
QuoteSummary:
type: object
description: 'Lightweight quote summary for relation endpoints.
Per api.yaml QuoteSummary schema:
- short_code: Quote identifier
- text: First 200 chars
- originator: Originator name
- language: ISO language code
- quote_role: Role in group (canonical/translation/variant/misattributed)
- is_misattributed: True if quote or canonical is misattributed'
properties:
short_code:
type: string
readOnly: true
text:
type: string
readOnly: true
originator:
type: string
readOnly: true
language:
type: string
readOnly: true
quote_role:
type: string
is_misattributed:
type: boolean
publicly_displayable:
type: string
readOnly: true
hide_reason:
type: string
readOnly: true
required:
- hide_reason
- is_misattributed
- language
- originator
- publicly_displayable
- quote_role
- short_code
- text
securitySchemes:
cookieAuth:
type: apiKey
in: cookie
name: sessionid
APITokenAuthentication:
type: http
scheme: bearer
description: API Token authentication. Generate tokens at /account/tokens/ or via device flow at /oauth/device/. Tokens are prefixed with 'qw_'.
bearerFormat: APIToken
SessionAuthentication:
type: apiKey
in: cookie
name: sessionid
description: Session-based authentication for web interface
externalDocs:
description: Developer Quickstart Guide
url: https://quotewise.io/developers/quickstart/