Articles REST API Route
Authentication #
Authentication is not required for this route unless attempting to retrieve restricted articles.
Schema #
When working with the Articles REST API route the following fields can be expected in any responses.
idinteger |
Unique identifier for the article Read Only |
datestring |
The date the article was published, in the site’s timezone |
date_gmtstring |
The date the article was published, as GMT |
modifiedstring |
The date the article was last modified, in the site’s timezone |
modified_gmtstring |
The date the article was last modified, as GMT |
guidobject |
The globally unique identifier for the object. Read only |
slugstring |
An alphanumeric identifier for the object unique to its type |
statusstring |
The named status of the article One of: publish, future, draft, pending, private |
typestring |
Type of Post for the object Read only |
titleobject |
The title of the article |
contentobject |
The content of the article |
excerptobject |
The excerpt for the object |
authorinteger |
The ID for the author of the object |
repliesinteger |
The count of replies associated with the ticket |
linksobject |
Links associated with the ticket |
List Articles #
Query this endpoint to retrieve a collection of articles. The response you receive can be controlled and filtered using the URL query parameters below.
Definition #
GET /kbs/v1/articles
Example Request #
$ curl https://example.com/wp-json/kbs/v1/articles
Arguments #
page |
Current page of the collection Default: 1 |
per_page |
Maximum number of items to be returned in result set Default: 10 |
exclude |
Ensure result set excludes specific article IDs |
include |
Limit result set to specific article IDs |
offset |
Offset the result set by a specific number of items |
order |
Order sort attribute ascending or descending Default: descOne of: asc, desc |
orderby |
Sort collection by object attribute Default: idOne of: author, date, id, include, modified, parent, relevance, slug, include_slugs, title, views, views_month |
statusstring | array |
Limit result set to articles assigned one or more statuses Default: publish |
searchstring |
Limit results to those matching a string |
Retrieve an Article #
Definition #
GET /kbs/v1/articles/<id>
Example Request #
$ curl https://example.com/wp-json/kbs/v1/articles/<id>
Arguments #
id |
WP Post ID of the ticket |
Was this article helpful?
Articles REST API Route
Authentication # Authentication is not required for this route unless attempting to retrieve restricted articles. Schema # When working with the Articles REST API route the following fields can be expected in any responses. id integer Unique identifier for the article Read Only date string The date the article was published, in the site's timezone…
KB Article rating:
4.0
based on 1 ratings
