Sign Up
Loading...

API Settings

Watch the walkthrough

API Settings

Explore API settings used by your application and its integrations.

Recorded with an earlier Twidget interface. Names, control locations and available options may differ; use the linked documentation for current guidance.

Watch tutorial (2:54)

Browse all video tutorials

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

Streaming responses

Send updates progressively while an endpoint is running, instead of waiting for one final response. This is useful for progress messages or generated text that your app can display as it arrives. Enable a streaming endpoint. 1. Open the endpoint and choose Update endpoint. 2. Set Response mode to St...

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...

Response Settings

You can customise the successful response from an endpoint, including its status code and additional headers. Configure a response. 1. Open the endpoint and its Output editor. 2. Select RESPONSE. 3. Choose a status code or select a variable from the commands section. 4. Add a response-headers object...

Action Stats

Action Stats gives Twidget administrators a history of endpoint calls and event runs. It is an admin tool, rather than a workspace feature available to every team member. Find a run. Open Action Stats in the admin sidebar. Filter by workspace, organization, action type, test or real call, result, st...

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, ...