API Academy
🌐 English
  • 🌐 English
  • 🌐 繁體中文
HomePetstore APIExplore more APIs
HomePetstore APIExplore more APIs
🌐 English
  • 🌐 English
  • 🌐 繁體中文
🌐 English
  • 🌐 English
  • 🌐 繁體中文
  1. API Documentations
  • Introduction
  • Table of Contents
  • API Academy
    • Get Started
      • What is an API?
      • How Does an API Work?
      • How to Call an API?
      • How to Read an API Documentation?
      • Chapter Summary
      • Get realtime weather
    • API Fundamentals
      • API Funtamentals: Overview
      • Method & Path
      • Parameters
      • Request Body
      • Responses
      • API Specification & OAS
      • Chapter Summary
    • Working with APIs
      • Working with APIs: Overview
      • Making Requests from Spec
      • Environments and Variables
      • Chaining Multiple Endpoints
      • Handling Authentication
      • Handling API Signatures
      • Introduction to Scripts
      • Chapter Summary
    • Mocking APIs
      • Mocking APIs: Overview
      • Smart Mock
      • Mock Expectations
      • Cloud Mock
      • Mock Scripts
      • Chapter Summary
    • Designing APIs
      • Designing APIs: Overview
      • Introduction to API Design
      • Creating Your First API Project
      • Analyzing Requirements and Planning Your API
      • Designing Data Models
      • Designing Endpoints
      • Using Components and Reusability
      • Setting Up Authentication
      • API Design Guidelines
      • Chapter Summary
    • Developing APIs
      • Developing APIs: Overview
      • Setup: Install Your AI Coding Assistant
      • Quick Start: From Spec to Running API in 30 Minutes
      • Understanding the Generated Code
      • Testing Your API with Apidog
      • Deployment: Put Your API Online
      • Chapter Summary
    • Testing APIs
      • Testing APIs: Overview
      • Getting Started: Your First Test Scenario
      • Integration Testing and Data Passing
      • Dynamic Values
      • Assertions and Validations
      • Flow Control: If, For, ForEach
      • Data-Driven Testing
      • Performance Testing
      • Test Reports and Analysis
      • CI/CD Integration
      • Scheduled Tasks and Automation
      • Advanced Testing Strategies
      • Chapter Summary
    • API Documentations
      • API Documentations: Overview
      • Publishing Your First API Doc
      • Customizing Documentation Appearance
      • Interactive Features for Consumers
      • Advanced Publishing Settings
      • Managing API Versions
      • Chapter Summary
    • Advanced API Technologies
      • API Technologies: Overview
      • GraphQL
      • gRPC
      • WebSocket
      • Socket.IO
      • Server-Sent Events (SSE)
      • SOAP
      • Chapter Summary
    • API Lifecycle
      • API Lifecycle: Overview
      • Stages of the API Lifecycle
      • API Governance
      • API Security Best Practices
      • Monitoring and Analytics
      • API Versioning Strategies
      • The Future of APIs
      • Chapter Summary
    • API Security
      • API Security: Overview
      • API Security Fundamentals
      • Authentication vs Authorization
      • Understanding OAuth 2.0 and OpenID Connect
      • JSON Web Tokens (JWT)
      • OWASP API Security Top 10
      • Encryption and HTTPS
      • Chapter Summary
    • API Tools
      • API Tools: Overview
      • The Evolution of API Tools
      • API Clients
      • Command Line Tools (cURL, HTTPie)
      • API Design and Documentation Tools
      • API Mocking Tools
      • API Testing Tools
      • All-in-One API Platforms
      • Chapter Summary
    • API Gateway
      • API Gateway: Overview
      • What is an API Gateway?
      • Key Features of API Gateways
      • API Gateway vs Load Balancer vs Service Mesh
      • Popular API Gateway Solutions
      • The BFF (Backend for Frontend) Pattern
      • Chapter Summary
  • Modern Pet Store
    • Pet
      • Get Pet
      • Update Pet
      • Delete Pet
      • Create Pet
      • List Pets
      • Upload Pet Image
    • User
      • Update User
      • Get User
      • Delete User
      • Login
      • Logout
      • Create User
    • Store
      • List Inventory
      • Create Order
      • Get Order
      • Delete Order
      • Callback Example
      • Pay for an Order
    • Payments
      • Pay Order
    • Chat
      • Create Chat Completion
    • Webhooks
      • Pet Adopted Event
      • New Pet Available Event
  • Schemas
    • Pet
    • Category
    • User
    • ApiResponse
    • OrderPayment
    • Tag
    • Order
    • Links-Order
    • PetCollection
    • Bank Card
    • Bank Account
    • Links
    • Error
HomePetstore APIExplore more APIs
HomePetstore APIExplore more APIs
🌐 English
  • 🌐 English
  • 🌐 繁體中文
🌐 English
  • 🌐 English
  • 🌐 繁體中文
  1. API Documentations

Advanced Publishing Settings

For enterprise-grade documentation, you often need more control over SEO, domains, and styling. This section covers the "Pro" features that take your docs to the next level.

Custom Domain#

By default, your docs live at your-project.apidog.io. While functional, it doesn't look official. You likely want developer.your-company.com.
Apidog supports Custom Domains via CNAME or Reverse Proxy.

CNAME Configuration#

This is the most common method.
1.
Go to Share Docs > Publish > Custom Domain.
2.
Enter your desired domain (e.g., docs.example.com).
3.
Apidog gives you a CNAME target value (e.g., shop-api.apidog.io).
4.
You go to your DNS provider (GoDaddy, Cloudflare, AWS Route53) and add a CNAME record pointing docs to the target.
Custom domain settings

Reverse Proxy (Advanced)#

If you need the docs to live at a subpath like example.com/docs, you must use a Reverse Proxy (like Nginx or AWS CloudFront) because CNAMEs only work for subdomains, not paths.
See details Custom domain

SEO Settings#

If your API is public, you want developers to find it on Google. Apidog has built-in SEO tools.
Navigate to SEO Settings in the publishing menu.

Global Metadata#

Set the defaults for your entire site:
Title: e.g., "Pet Store API Reference"
Keywords: "API, Pet Store, REST, Developer Guide"
Description: The snippet that appears in Google search results.

Robots.txt and Sitemap#

sitemap.xml: Apidog automatically generates this for you, helping Google crawl your endpoints efficiently.
robots.txt: You can control which bots are allowed. For example, you might want to Disallow: / if you are staging a new version and don't want it indexed yet.
SEO Settings UI
See details SEO settings

Custom CSS & Scripts#

Sometimes the built-in appearance settings aren't enough. You might want to:
Add a tracking pixel (Google Analytics).
Chat widget (Intercom, Zendesk).
Custom font loaded from Adobe Fonts.
Apidog allows you to inject raw HTML, CSS, and JavaScript.
1.
Header HTML: Good for <script> tags like Google Analytics.
2.
Footer HTML: Good for copyright notices or chat widgets.
3.
CSS: Override specific UI elements. For example, changing the border-radius of buttons or hiding specific elements.
Warning: Use custom CSS with care. If Apidog updates its UI structure, your custom selectors might break.

Key Takeaways#

Custom Domains: Use CNAME to host docs on your own subdomain (e.g., developer.example.com) for a professional look.
SEO Optimization: Configure meta titles, descriptions, and sitemaps to ensure your API docs rank well on search engines.
Custom CSS/JS: Inject custom scripts for analytics (Google Analytics) or chat widgets (Intercom) to enhance functionality.
Robots.txt: Control search engine crawling to prevent indexing of draft or private documentation.
Continue with β†’ Managing API Versions
Modified atΒ 2026-02-12 06:23:15
Previous
Interactive Features for Consumers
Next
Managing API Versions
Built with