Articles
In Directify, articles are blog posts that appear in your directory’s blog section. These can be written in HTML or Markdown format and include full SEO metadata support. The API uses slug-based storage to prevent duplicate articles and automatically generates SEO-friendly URLs.Get Directory Articles
Retrieve all articles for a specific directory with pagination.directory_id(integer, required): The ID of the directory
page(integer, optional): Page number for pagination (default: 1)
Get Single Article
Retrieve a specific article by ID.directory_id(integer, required): The ID of the directoryarticle_id(integer, required): The ID of the article
Check Article Exists
Check if an article with a specific slug already exists in the directory.directory_id(integer, required): The ID of the directory
slug(string, required): The article slug to check for existence
Create Article
Create a new article in the directory. The API usesupdateOrCreate based on slug to prevent duplicates.
directory_id(integer, required): The ID of the directory
title(string, required): The article title (max 255 characters)slug(string, optional): URL-safe slug (lowercase letters, numbers, hyphens only). Auto-generated from title if not providedcontent(string, optional): HTML content of the article. Required ifmarkdownis not providedmarkdown(string, optional): Markdown content of the article. Required ifcontentis not providedactive(boolean, optional): Whether the article is published (default: true)published_at(datetime, optional): Publication date (default: current timestamp)thumbnail_url(string, optional): URL to the article thumbnail image (max 255 characters)thumbnail_alt_text(string, optional): Alt text for the thumbnail image (max 255 characters)categories(array, optional): Array of category strings for organizing articlesseo(object, optional): SEO metadata object with the following optional fields:title(string, optional): SEO title (max 255 characters)description(string, optional): Meta description (max 500 characters)keywords(string, optional): Meta keywords (max 255 characters)og_title(string, optional): Open Graph title (max 255 characters)og_description(string, optional): Open Graph description (max 500 characters)og_image(string, optional): Open Graph image URL (max 255 characters)twitter_title(string, optional): Twitter card title (max 255 characters)twitter_description(string, optional): Twitter card description (max 500 characters)twitter_image(string, optional): Twitter card image URL (max 255 characters)canonical_url(string, optional): Canonical URL (max 255 characters)robots(string, optional): Robots meta tag value (max 255 characters)
Update Article
Update an existing article. If the title changes and no slug is provided, a new slug will be automatically generated.directory_id(integer, required): The ID of the directoryarticle_id(integer, required): The ID of the article
title(string, optional): The article title (max 255 characters)slug(string, optional): URL-safe slug (lowercase letters, numbers, hyphens only). Auto-generated from title if title changes and no slug providedcontent(string, optional): HTML content of the article. Required ifmarkdownis not providedmarkdown(string, optional): Markdown content of the article. Required ifcontentis not providedactive(boolean, optional): Whether the article is publishedpublished_at(datetime, optional): Publication datethumbnail_url(string, optional): URL to the article thumbnail image (max 255 characters)thumbnail_alt_text(string, optional): Alt text for the thumbnail image (max 255 characters)categories(array, optional): Array of category strings for organizing articlesseo(object, optional): SEO metadata object with the following optional fields:title(string, optional): SEO title (max 255 characters)description(string, optional): Meta description (max 500 characters)keywords(string, optional): Meta keywords (max 255 characters)og_title(string, optional): Open Graph title (max 255 characters)og_description(string, optional): Open Graph description (max 500 characters)og_image(string, optional): Open Graph image URL (max 255 characters)twitter_title(string, optional): Twitter card title (max 255 characters)twitter_description(string, optional): Twitter card description (max 500 characters)twitter_image(string, optional): Twitter card image URL (max 255 characters)canonical_url(string, optional): Canonical URL (max 255 characters)robots(string, optional): Robots meta tag value (max 255 characters)
Toggle Article Status
Toggle the active status of an article (publish/unpublish).directory_id(integer, required): The ID of the directoryarticle_id(integer, required): The ID of the article
Get Articles by Category
Retrieve articles filtered by a specific category.directory_id(integer, required): The ID of the directorycategory(string, required): The category name to filter by
page(integer, optional): Page number for pagination (default: 1)
Delete Article
Delete an article from the directory.directory_id(integer, required): The ID of the directoryarticle_id(integer, required): The ID of the article
Key Features
Slug-Based Storage
- Articles are stored using
updateOrCreatebased on slug to prevent duplicates - Slugs are automatically generated from titles if not provided
- Slugs must be URL-safe (lowercase letters, numbers, and hyphens only)
- Slugs are unique within each directory
Content Format Support
- Support for both HTML and Markdown content
- Use either
content(HTML) ormarkdownfield - At least one content field is required (
required_withoutvalidation) is_markdownflag indicates which format is being used
SEO Integration
- Full SEO metadata support including Open Graph and Twitter cards
- SEO data is automatically created/updated with articles
- Canonical URLs and robots meta tags supported
- SEO data is optional but recommended for better search visibility
Category Management
- Articles support multiple categories as an array of strings
- Categories can be used for filtering and organization
- Category filtering endpoint available for easy content discovery
BlogBuster Integration
- Support for
blog_buster_article_idfield for external article management - Compatible with existing BlogBuster article import workflows
- Maintains integration with automated article pulling systems
