Skip to content

documentation

The documentation parent type covers technical and instructional content for products, APIs, platforms, and services. This includes tutorials, API references, user guides, FAQs, changelogs, and troubleshooting content.

SubtypeQualified TypeDescription
tutorialdocumentation.tutorialStep-by-step instructional content
api_referencedocumentation.api_referenceAPI endpoint and method documentation
guidedocumentation.guideConceptual or how-to guides
faqdocumentation.faqFrequently asked questions
changelogdocumentation.changelogVersion history and release notes
troubleshootingdocumentation.troubleshootingProblem-solution content
FieldTypeRequiredDescription
productstringYesProduct or project name
versionstringNoProduct version the docs apply to
platformstringNoTarget platform (e.g., “web”, “iOS”, “Linux”)
prerequisitesarray<string>NoRequired knowledge or setup
api_endpointsarray<object>NoAPI endpoints documented on this page
code_samplesarray<object>NoCode samples included in the content
deprecation_noticesarray<object>NoDeprecation warnings for documented features
documentation type_data
{
"type_data": {
"product": "Stripe API",
"version": "2024-12-18",
"platform": "web",
"prerequisites": [
"Stripe account with API keys",
"Node.js >= 18",
"stripe npm package installed"
],
"api_endpoints": [
{
"method": "POST",
"path": "/v1/payment_intents",
"description": "Create a PaymentIntent"
},
{
"method": "GET",
"path": "/v1/payment_intents/{id}",
"description": "Retrieve a PaymentIntent"
}
],
"code_samples": [
{
"language": "javascript",
"label": "Create a payment intent",
"lines": 12
},
{
"language": "python",
"label": "Create a payment intent (Python)",
"lines": 10
}
],
"deprecation_notices": [
{
"feature": "Sources API",
"deprecated_date": "2024-06-01",
"removal_date": "2025-06-01",
"replacement": "PaymentMethods API"
}
]
}
}
FieldTypeDescription
methodstringHTTP method (GET, POST, PUT, DELETE, PATCH)
pathstringEndpoint path
descriptionstringBrief endpoint description
FieldTypeDescription
languagestringProgramming language
labelstringDescription of the code sample
linesintegerNumber of lines in the sample
FieldTypeDescription
featurestringName of the deprecated feature
deprecated_datestringWhen the feature was deprecated
removal_datestringWhen the feature will be removed
replacementstringSuggested replacement
  • The product field should match the canonical product name, not a page-specific title.
  • version tracks the product version, not the document version. Use provenance for document versioning.
  • api_endpoints captures endpoints documented on this page, not the entire API surface.
  • Code samples are summarized (language, label, line count) rather than reproduced in full. The actual code is in the sections field.