Fetch an API or Trigger a Webhook

Step 1: Generate OpenAPI 3 Spec for the API Call

To get started, you need to create an OpenAPI 3 spec that describes the API you want to call. Follow the instructions below:

  1. Base URL: Ensure that the servers field contains the base URL of the API you want to call.

  2. Security: Include the security scheme for your API. Currently, we support:

    • Basic Authentication
    • Bearer Token Authentication
    • API Key Authentication For your API, ensure you add one of the following security schemes:
    • Basic (for Basic Authentication)
    • Bearer (for Bearer Token Authentication)
    • apiKey (for API Key Authentication)
  3. Paths: The current functionality supports only the first path in your spec. Include the relevant API path under the paths field.

Here’s an example OpenAPI 3 spec for a hypothetical Google Address Validation API:

1openapi: "3.0.0"
2info:
3 title: "Google Address Validation API"
4 description: "API for validating addresses using Google Maps Address Validation."
5 version: "1.0.0"
6servers:
7 - url: "https://addressvalidation.googleapis.com/v1"
8security:
9 - apiKey: []
10components:
11 securitySchemes:
12 apiKey:
13 type: apiKey
14 in: query
15 name: key
16paths:
17 /validateAddress:
18 post:
19 summary: "Validate an address"
20 operationId: "validateAddress"
21 parameters:
22 - name: "addressLines"
23 in: query
24 required: true
25 schema:
26 type: array
27 items:
28 type: string
29 description: "Address lines."
30 - name: "regionCode"
31 in: query
32 schema:
33 type: string
34 description: "Region code (e.g., 'US')."
35 - name: "locality"
36 in: query
37 schema:
38 type: string
39 description: "City or locality."
40 - name: "administrativeArea"
41 in: query
42 schema:
43 type: string
44 description: "State or province."
45 - name: "postalCode"
46 in: query
47 schema:
48 type: string
49 description: "ZIP or postal code."
50 responses:
51 "200":
52 description: "Address validation result."
53 "400":
54 description: "Bad request, likely due to invalid input."
55 "401":
56 description: "Unauthorized, invalid API key."
57 "500":
58 description: "Internal server error."

Step 2: Paste Your Spec and Save

Once you have generated your OpenAPI spec, paste it into the required field in your tool.

  • Ensure all required fields (like base URL, security, and path) are correctly filled.
  • After pasting, hit “Save.”

Step 3: Input Parameters and Keys

Once saved, the system will automatically detect the parameters and keys needed for your API call. These will appear below.

  • Input the required parameters.
  • Enter your API Key (or token, depending on the chosen security scheme) and lock it in.
  • The system will encrypt and score your key in the backend, and it will no longer be visible after it’s locked. You can only replace the key if needed.

Step 4: Make the API Call

After inputting all parameters and locking your API key:

  1. Test the API Call: You can now trigger the API call using the parameters you’ve provided.
  2. Review the Response: Analyze the response returned by the API to ensure everything works as expected.