Sign Up

API Settings

The API settings in Twidget enable you to customize your APIs to fit your requirements. Here’s how you can do it:

-

Configure

  1. Navigate to the API page.

  2. Click on the Settings button located at the top-right corner. This will open a sidebar where you can configure various settings for your API.

Available Settings

Allow Credentials

  • Toggle whether your API allows credentials.

Allowed Methods

  • Specify the HTTP methods that your API will allow. The options include:

    • GET

    • POST

    • PATCH

    • DELETE

    • HEAD

    • PUT

Allowed Origins

  • Define the origins that are allowed to access your API.

Allowed Headers

  • Define the headers that are allowed to be used in requests to your API.

Email Settings

You can configure Twidget to send emails from your email address. Here are the settings you can specify:

  • Host: The host of your email server.

  • Port: The port used by your email server.

  • Email: Your email address.

  • Password: The password for your email account, which will be encrypted when stored in Twidget.

Real-Time Updates

All these settings are updated in real-time, meaning any changes you make will be applied immediately without needing a restart.

By configuring these settings, you can customize your API’s behavior to enhance security, control access, and utilize your preferred email services directly from Twidget.

Related Topics

What is an API

An API (Application Programming Interface) is a set of rules and protocols that allows different software applications to communicate and interact with each other. It defines the methods and data formats that applications can use to request and exchange information, services, or functionalities from...

Authentication

Twidget supports Bearer Authentication to ensure secure access to your endpoints. You can specify which endpoints should be secured or open. Once secured, an endpoint can only be accessed using a valid Bearer Token, which is generated via our API. Additionally, we provide functionality to generate a...

Creating Authentication Endpoints

Follow these steps to create authentication endpoints in Twidget: Step-by-Step Guide. 1. Navigate to API Tab: - Go to the `API` tab in your Twidget dashboard. 2. Create New Endpoints: - Click on the `Create Endpoints` button located at the top right corner. 3. Select Authentication: - In the newly o...

Endpoint Inputs

In Twidget, endpoints have a variety of input types that can be used to configure and execute API requests. These input types include queries, headers, body, files, and path inputs. Each input type serves a specific purpose in allowing users to interact with APIs efficiently. Files. The files input ...

Custom Endpoints

In addition to generating CRUD (Create, Read, Update, Delete), authentication, and file management endpoints, Twidget allows you to create completely custom endpoints from scratch. These custom endpoints give you full control over the various aspects of endpoint configuration, including the inputs, ...