Documentation
Contents

Cancel

Recommended Articles

  1. unify-apps

    IMAP

    Unify Integrations

    Integrate your app with IMAP to enable seamless email synchronization, real-time access, and enhanced communication workflows.

  2. unify-apps

    Preview Your Work

    Unify Automations

    Effortlessly review & monitor your automation’s performance

  3. unify-apps

    FTP/FTPS

    Unify Integrations

    Connect your app with FTP/FTPS to automate secure file transfers and streamline data exchange across systems.

  4. unify-apps

    Snowflake

    Unify Automations

    Connect to Snowflake for fast, scalable cloud data warehousing and analytics

  5. unify-apps

    Button

    Unify Applications

    Create interactive elements with ease using buttons

  6. unify-apps

    BambooHR

    Unify Automations

    Integrate your app with BambooHR to streamline HR management, automate employee data processing, and enhance onboarding workflows

  7. unify-apps

    Build your first automation

    Unify Automations

    Learn how to build your automation step by step

  8. unify-apps

    User Management

    Unify Applications

    Efficiently manage user roles and permissions

  9. unify-apps

    Microsoft Teams

    Unify Automations

    Connect your app with Microsoft Teams to enhance communication, automate workflows, and foster collaboration across your organization

  10. unify-apps

    Jira

    Unify Automations

    Use Jira to plan, track, and manage your agile and software development projects

  11. unify-apps

    Google Calendar

    Unify Integrations

    Integrate your app with Google Calendar to streamline scheduling, automate event management, and improve team coordination

  12. unify-apps

    SAP HANA

    Unify Integrations

    Connect your app with SAP HANA to leverage in-memory computing for real-time data processing and advanced analytics at scale.

  13. unify-apps

    Encoding

    Unify Data

    Convert data effortlessly with advanced encoding

#
Unify Automations
Logo
API Endpoint

API Endpoint

Logo

4 mins READ

Overview

API Endpoints act as the gateways through which external applications interact with your automation, allowing real-time data exchange. 

These endpoints are URLs pointing to specific operations or data within your system, making them accessible for automated processes or integrations.

Image
Image
Thumbnail

Note

Before creation of API endpoint, ensure you have one or more API automations that have been deployed.

Create your first API Endpoint

After you have created the API collection, you can create your first API Endpoint by clicking on New Endpointin the top right corner.

Follow the prompts to create your API Endpoint. This may involve entering the following fields:

  1. Endpoint Name: Provide a name to your API endpoint

  2. Description: Enter a concise explanation of what the endpoint does.

  3. Resource Type: It refers to whether you want to call a callable or webhook-based automation from this API endpoint

    • Callable:. Only automations with a "Trigger from an API endpoint" as trigger will appear in the API Automation selection.

    • Webhook: Only automations with a "Trigger from webhook"  as trigger will appear in the API Automation selection.

  4. API Automation: Depending on the resource type chosen, select an appropriate API automation from the available options.
    Each automation turns into its endpoint, which gets executed whenever the endpoint is called.

  5. Versions: It represents the current stage of your API, reflecting any new features, modifications, or bug fixes introduced since the last version.

  6. Endpoint Path: Specify the path for the endpoint URL, this can also include the path parameters.

  7. HTTP Method: Select the HTTP method (GET, POST, etc.) to be used for the API endpoint.

    • GET Method: If you choose GET, you have the option to cache the response. You can enable caching by checking the "Cache Response" box and setting up the cache duration and key (which could be query parameters, path parameters, or headers). 

    • POST Method & Others: If you need to send data in the request, select an appropriate method other than GET. 

  8. Customize Timeout: You can also specify the maximum time for the automation to wait before considering the request failed.

    Image
    Image
    Thumbnail

    Note

    GET requests cannot contain a body; if your automation requires sending data, use POST instead.

API Endpoint Attributes

Once you have created an endpoint, you can see the following attributes of the endpoint: 

  • Automation Name: This is the title of the automation process that gets activated when the specified API endpoint is accessed. Clicking on the "See Automation" link will take you to a preview page for this automation.

  • URL: This is the address (endpoint) of the API that can be reached out to from outside sources.

  • Endpoint Type: Indicates the HTTP request method (e.g., GET, POST) used by the API endpoint.

  • Response:

    • Code: The status code that is sent back after the API has been successfully processed.

    • Media Type: Specifies the format of the data that will be returned.

    • Schema: Describes the structure of the output data.

  • Parameters: Lists of query or path parameters that are part of the automation's configuration.

    Image
    Image

Fallback Response

It serves as a default reply when the API cannot fulfil a request due to issues like server errors, invalid input, or when no other specific response is applicable.

Configure Fallback Response

  • HTTP status code: you can define the status code that will be sent along with the response, such as 500 - internal server error, etc.

  • Headers: headers are defined in key-value pairs. You can configure multiple headers for the response.

    Image
    Image
  • Response body: define the response body in JSON format. You can also define the response body in different locales by clicking “Add Another Response”.

  • Finally, Click on the “Create button” to create the fallback response

Activation and Access Control

Newly created endpoints within a collection are inactive by default. Activation is necessary for these endpoints to be callable. For activating the endpoint, the toggle associated with the endpoint needs to be turned on. 

Additionally, manage who can access these collections by assigning them to a client's access profile, ensuring controlled and secure API access.

Thumbnail

Refer

You can read more about API Clients here.

Best Practices

  1. Naming Conventions: Use clear, descriptive names for your endpoints. (e.g., /fetchUsers for a user resource).

  2. Version Your APIs: Include version numbers in your endpoint paths (e.g., /api/v1/users).

  3. Performance Optimization: Use caching judiciously for GET requests to improve response times.