Skip to content

API Documentation

Treblle auto-generates API documentation in real-time. It includes details such as available endpoints, authentication methods, request and response formats, and other essential technical specifications required to integrate and use the API successfully.

How to View API Docs

  1. Click on API Docs in the left navigation bar.

  2. The API Docs Overview will display the following:

  • Load time: Time it takes to load the API data.

  • Response size: Size of the API responses.

  • Base URL: The base URL for your API.

  • API score: A score that represents the health and quality of your API.

  • Format: The format of the API (e.g., JSON).

  • Total number of endpoints: Total count of API endpoints.

  • API settings: Includes API details, invite members, API ID, and SDK token.

  • API catalog: A repository to publish and manage API documentation for collaboration without granting full API access.

Authentication

Authentication is vital for verifying the identity of clients accessing the API. With the correct authentication method, you can ensure that only authorized users can interact with the API endpoints. When making API requests, you’ll need to provide the following authentication details:

  • Type: Specifies the authentication method (e.g., Bearer Token, API Key)
  • Value: The actual authentication credentials
  • Location: Where to include the authentication (e.g., Headers, Query Parameters)

OpenAPI Specification

OpenAPI Specification (OAS) is a standard for describing APIs. When it comes to API documentation, OpenAPI spec is a must for every API. Under API documentation, Treblle auto-generates API documentation. We support JSON and YAML formats.

To open the documentation in Swagger, click the Open in Swagger button on the OpenAPI Specification page.

Endpoints

Under API documentation, you can also access all your API endpoints. This lets you quickly navigate to the endpoint you want to work with.

To add or remove an endpoint, please refer to the Endpoint Documentation.

Alfred AI

You will find a cute AI assistant jumping around on the API Documentation page. That’s Alfred. Alfred is Treblle’s assistant who helps with your API workflows by using your API documentation to provide real-time answers. It makes your integrations faster.

Steps to Use Alfred

  1. Click on Alfred to open the interface.

  2. Use predefined prompts or ask questions to:

    Example: Help me get started with this API.

Resources

For additional context, you can upload PDFs and other information in the Resources section.

The next time you work with an API, ask for its Treblle generated API documentation and the Alfred AI assistant.