Add HTML Response to an API Endpoint Call in Okta Workflows

In this guide:

  1. Okta Workflows guides
  2. HTML response to API endpoint call
  3. Related Okta Workflows guides
  4. Okta Workflows resources

Okta Workflows guides

Okta Workflows guides offer questions and answers from Okta Workflows community office hours. They also come from the #okta-workflows channel on the Mac Admins Slack and other places. Read all the other guides.

How to add HTML response to an API endpoint call in Okta Workflows?

This guide will guide you through customizing the API endpoint call with HTML in Okta Workflows.

HTML response to API endpoint call

The following flow shows how to send a rich response (HTML) when someone invokes a flow using an API endpoint.

API endpoint response with HTML.
API endpoint response with HTML.

How the flow works

  1. The API Endpoint card calls a flow through a URL.
  2. The Text-Compose card creates a response in HTML format.
  3. The Flow Control-Return Raw card returns the HTML response to the caller (the browser in this example).

This image shows the API endpoint settings. The Invoke URL returns the HTML response.

API endpoint settings.
API endpoint settings.

When calling the URL, the browser shows this response:

HTML response after API call.
HTML response after API call.

Okta Workflows resources

πŸš€ New to Okta Workflows? The Getting Started with Okta Workflows page has all the resources to help you get started.

πŸ“Ί Like learning from videos? Watch Okta Workflows videos.

❓Have a question? Ask during community office hours, post on the community forum, or email me.

πŸ™‹πŸ»β€β™€οΈ Want to learn from the community? Join the #okta-workflows channel on the Mac Admins Slack.

πŸ“– Want to learn more about Okta and automation? Take the Okta Workflows training on Okta Learning.

Leave a comment