Fixing API endpoint URL errors in custom actions

When testing a custom action, you get an error message which indicates the domain or API endpoint is incorrect for the API request.

Causes

This error occurs because the custom action’s API endpoint URL is incorrect. Apps such as Glean, Workday, and Oracle Eloqua require the API endpoint URL to include a unique identifier specific to your organization. Custom actions cannot generate this identifier because these URLs are dynamic.

For example, Glean’s API requires the subdomain to be specified in the URL when making the API request.

How to fix it

  • In your app’s API documentation, find the format required for an API endpoint.
  • Edit the code in your custom action.
    • In the Custom Action Builder, in the left panel, click the Advanced tab.
    • In the Code editor, find the API URL and adjust it according to the format the app expects.
  • In the right panel, click Run test. Retesting the action should then allow your custom action to reach your domain with the expected endpoint URL.

 

Glean Workday Oracle Eloqua

Glean

API requests for Glean require a subdomain.

For example, if your Glean subdomain is mycompany-be, the API endpoint URL must contain the subdomain.

https://mycompany-be.glean.com/rest/api/v1/getdocuments.

For more information on Glean’s API, refer to their API documentation.

Was this article helpful?
0 out of 0 found this helpful