LanzaTech categories API
The categories API from LanzaTech — 2 operation(s) for categories.
The categories API from LanzaTech — 2 operation(s) for categories.
openapi: 3.0.3
info:
title: LanzaTech WordPress REST block-directory categories API
version: wp/v2
description: 'The public WordPress REST API served by lanzatech.com. Derived faithfully from the provider''s own live discovery document at https://lanzatech.com/wp-json/ on 2026-07-19. Alongside the standard WordPress content types (posts, pages, media, categories, tags), LanzaTech publishes five custom content types that model the company itself: news (external news coverage), employee, board-member, download (published reports and life-cycle assessments) and testimonial. Read operations are publicly accessible without authentication; write operations require a WordPress application password.'
contact:
name: LanzaTech
url: https://lanzatech.com/contact/
termsOfService: https://lanzatech.com/terms-of-use/
x-generated: '2026-07-19'
x-method: derived
x-source: https://lanzatech.com/wp-json/
servers:
- url: https://lanzatech.com/wp-json
description: Production
tags:
- name: categories
paths:
/wp/v2/categories:
get:
operationId: listCategories
summary: GET /wp/v2/categories
tags:
- categories
parameters:
- name: context
in: query
required: false
description: Scope under which the request is made; determines fields present in response.
schema:
type: string
enum:
- view
- embed
- edit
default: view
- name: page
in: query
required: false
description: Current page of the collection.
schema:
type: integer
default: 1
minimum: 1
- name: per_page
in: query
required: false
description: Maximum number of items to be returned in result set.
schema:
type: integer
default: 10
minimum: 1
maximum: 100
- name: search
in: query
required: false
description: Limit results to those matching a string.
schema:
type: string
- name: exclude
in: query
required: false
description: Ensure result set excludes specific IDs.
schema:
type: array
default: []
items:
type: integer
- name: include
in: query
required: false
description: Limit result set to specific IDs.
schema:
type: array
default: []
items:
type: integer
- name: order
in: query
required: false
description: Order sort attribute ascending or descending.
schema:
type: string
enum:
- asc
- desc
default: asc
- name: orderby
in: query
required: false
description: Sort collection by term attribute.
schema:
type: string
enum:
- id
- include
- name
- slug
- include_slugs
- term_group
- description
- count
default: name
- name: hide_empty
in: query
required: false
description: Whether to hide terms not assigned to any posts.
schema:
type: boolean
default: false
- name: parent
in: query
required: false
description: Limit result set to terms assigned to a specific parent.
schema:
type: integer
- name: post
in: query
required: false
description: Limit result set to terms assigned to a specific post.
schema:
type: integer
- name: slug
in: query
required: false
description: Limit result set to terms with one or more specific slugs.
schema:
type: array
items:
type: string
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
headers:
X-WP-Total:
description: Total items in the collection.
schema:
type: integer
X-WP-TotalPages:
description: Total pages in the collection.
schema:
type: integer
Link:
description: RFC 8288 pagination links (rel=next / rel=prev).
schema:
type: string
'400': &id001
$ref: '#/components/responses/Error'
'404': *id001
post:
operationId: createCategories
summary: POST /wp/v2/categories
tags:
- categories
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
description:
type: string
description: HTML description of the term.
name:
type: string
description: HTML title for the term.
slug:
type: string
description: An alphanumeric identifier for the term unique to its type.
parent:
type: integer
description: The parent term ID.
meta:
type: object
description: Meta fields.
required:
- name
security:
- applicationPassword: []
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
'400': &id002
$ref: '#/components/responses/Error'
'401': *id002
'403': *id002
'404': *id002
/wp/v2/categories/{id}:
parameters:
- name: id
in: path
required: true
description: 'Route-matched value (WordPress route pattern: [\d]+).'
schema:
type: integer
get:
operationId: getCategoriesById
summary: GET /wp/v2/categories/{id}
tags:
- categories
parameters:
- name: id
in: query
required: false
description: Unique identifier for the term.
schema:
type: integer
- name: context
in: query
required: false
description: Scope under which the request is made; determines fields present in response.
schema:
type: string
enum:
- view
- embed
- edit
default: view
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
'404':
$ref: '#/components/responses/Error'
post:
operationId: createCategoriesById
summary: POST /wp/v2/categories/{id}
tags:
- categories
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
id:
type: integer
description: Unique identifier for the term.
description:
type: string
description: HTML description of the term.
name:
type: string
description: HTML title for the term.
slug:
type: string
description: An alphanumeric identifier for the term unique to its type.
parent:
type: integer
description: The parent term ID.
meta:
type: object
description: Meta fields.
security:
- applicationPassword: []
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
'400': &id003
$ref: '#/components/responses/Error'
'401': *id003
'403': *id003
'404': *id003
put:
operationId: replaceCategoriesById
summary: PUT /wp/v2/categories/{id}
tags:
- categories
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
id:
type: integer
description: Unique identifier for the term.
description:
type: string
description: HTML description of the term.
name:
type: string
description: HTML title for the term.
slug:
type: string
description: An alphanumeric identifier for the term unique to its type.
parent:
type: integer
description: The parent term ID.
meta:
type: object
description: Meta fields.
security:
- applicationPassword: []
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
'400': &id004
$ref: '#/components/responses/Error'
'401': *id004
'403': *id004
'404': *id004
patch:
operationId: updateCategoriesById
summary: PATCH /wp/v2/categories/{id}
tags:
- categories
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
id:
type: integer
description: Unique identifier for the term.
description:
type: string
description: HTML description of the term.
name:
type: string
description: HTML title for the term.
slug:
type: string
description: An alphanumeric identifier for the term unique to its type.
parent:
type: integer
description: The parent term ID.
meta:
type: object
description: Meta fields.
security:
- applicationPassword: []
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
'400': &id005
$ref: '#/components/responses/Error'
'401': *id005
'403': *id005
'404': *id005
delete:
operationId: deleteCategoriesById
summary: DELETE /wp/v2/categories/{id}
tags:
- categories
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
id:
type: integer
description: Unique identifier for the term.
force:
type: boolean
default: false
description: Required to be true, as terms do not support trashing.
security:
- applicationPassword: []
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
'400': &id006
$ref: '#/components/responses/Error'
'401': *id006
'403': *id006
'404': *id006
components:
responses:
Error:
description: WordPress REST API error envelope.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
type: object
description: The WordPress REST API error envelope, captured verbatim from live responses.
properties:
code:
type: string
description: Machine-readable error code, e.g. rest_post_invalid_id.
message:
type: string
description: Human-readable error message.
data:
type: object
properties:
status:
type: integer
description: HTTP status code.
params:
type: object
description: Per-parameter validation messages (rest_invalid_param).
details:
type: object
description: Per-parameter structured error details.
securitySchemes:
applicationPassword:
type: http
scheme: basic
description: WordPress application passwords, advertised by the API root document at https://lanzatech.com/wp-json/ (authentication.application-passwords.endpoints.authorization = https://lanzatech.com/wp-admin/authorize-application.php). Sent as HTTP Basic credentials. Only required for write operations; all read operations captured here are public.