Skip to main content
Documentation

Write documentation to help your API Consumers get started with your APIs.

Updated over 3 months ago

The goal of the Docs section of an API Portal is to provide clear, concise, and accessible documentation that helps developers understand how to use your API. The content should cater to beginners and experienced developers, providing information from getting started to in-depth technical details.

Apiable provides a template to help get you started but expects you to customize it to the needs of your API Consumers.

Typically, the Docs section should include some or all of the following:

  1. Overview

    • Introduction to the API

    • Key features

    • Use cases

  2. Getting Started Guide

    • Authentication methods

    • Quickstart with sample code

    • Environment setup

  3. Endpoints and Methods

    • Endpoint structure (e.g., REST, GraphQL)

    • HTTP methods (GET, POST, etc.)

    • Parameters (query, path, body)

    • Response formats and data types

    • Error codes and troubleshooting

  4. Examples and Use Cases

    • Code examples in different languages

    • Common use cases

    • Postman collections

  5. Rate Limits and Quotas

    • Usage limits

    • Throttling behavior

  6. Versioning and Deprecation Policy

    • API versioning

    • Deprecation Schedule

  7. Security and Best Practices

    • Security guidelines

    • Best practices for efficient API use

  8. SDKs and Libraries

    • Official SDKs

    • Recommended third-party libraries

  9. FAQs and Troubleshooting

    • Common issues and fixes

    • Frequently asked questions

  10. Changelog

    • Release notes

    • Upcoming features

  11. Support and Contact

    • Support channels

    • Community resources

Where to find the documentation on your portal

Navigate to your Portal and either:

  • Append: /docs/start to the URL; or

  • Click on the docs link in the header navigation.

Example Docs page.

How to modify and add to your documentation

In the administration dashboard, Navigate to Content > Documentation

Here, you will find the documentation editor tool.:

Creating a New Page

Documentation can contain multiple pages. To create a new page:

  1. Click on the + Add new page button at the bottom of the navigator.

  2. Name your new page (e.g., "API Overview," "Authentication Guide").

  3. Expand the right chevron (>) to show more options.

  4. Click on + Add section to create a new section on this page.

  5. Once done, click Save Changes.

Creating a New Section

Categories help structure your API documentation. To add a new section to an existing page:

  1. In the left sidebar, click on the Add Section button.

  2. A new section will appear (in green) where you can enter a name for the new category (e.g., "Introduction" or "Advanced Topics").

  3. A slug (url) will be given for you. You may override this to make it more readable.

  4. Click Save to create the category. It will now appear (black) in the sidebar.

Modifying an Existing Section

To edit an existing section:

  1. Select the page containing the section you want to modify.

  2. Click on the section you want to edit. The section content will appear in the editor.

  3. Make the necessary changes (e.g., update text, fix errors, add new examples).

  4. Once you're finished, click Save Changes.

Showing Changes

The Show changes icon is at the top right of the page. Clicking on it will show changes that have not yet been persisted.

  • Green - New changes

  • Red - Overrides previous text.

  • Black - No changes.

Rearranging Pages and Categories

  • Rearrange Sections: You can move sections between pages or change their order within a page by dragging and dropping the section titles in the sidebar.

  • Rearrange Categories: Similarly, you can rearrange pages by dragging them to the desired position in the sidebar.

Deleting a Page or Section

  • To delete a section, hover over the page in the sidebar and click the delete icon (a trash can symbol).

  • To delete an entire page, hover over the page title and click the delete icon. Be cautious, as this will remove all sections within that page.


Additional Features

Previewing Changes

  • As you edit pages, you can preview your changes in real-time. The documentation editor provides a preview mode that shows how your changes will look on the live API Portal.

Customizing the Portal Appearance

The dashboard also allows you to customize the appearance of your documentation portal. You can:

  • Change theme colors.

  • Adjust the style of buttons, modals, and other UI elements to match your brand.

  • Change the code sample colors.

To customize your portal, navigate to Portal > Theme

More information can be found on Changing your portal look and feel.


Best Practices

  • Organize by Topic: Group related pages together into categories that make sense (e.g., Authentication, Data Endpoints, FAQs).

  • Use Clear Titles: Ensure each page and category has a descriptive title so that users can easily find what they need.

  • Include Code Examples: If possible, provide code snippets in multiple languages to help developers understand how to use your API.

  • Regularly Update Content: Keep your documentation up-to-date with new features, fixes, and improvements.

Did this answer your question?