Workflows Tips #24: Hookbin to Inspect HTTP Requests, Testing Read User & Read Group Cards, and Sending HTML Email
Tags: nocode, workflows, security, ipaas
Published: 2022-08-29 19:06:36

---
title: Workflows Tips #24: Hookbin to Inspect HTTP Requests, Testing Read User & Read Group Cards, and Sending HTML Email
published: true
date: 2022-08-29 05:26:52 UTC
tags: NoCode, Workflows, Security, Ipaas
canonical_url: https://maxkatz.net/2022/06/07/workflows-tips-24-hookbin-to-inspect-http-requests-testing-read-user-read-group-cards-and-sending-html-email/
---

Welcome to another Okta Workflows Tips post. Read all other tips ⤵️
{% embed https://dev.to/oktaworkflows/okta-workflows-tips-57bj %}

In this post:

- Use Hookbin to capture and inspect HTTP requests
- Testing Read User and Read Group cards
- Sending HTML email

## Use Hookbin to capture and inspect HTTP requests

_This tip is from [Bryan Barrows](https://www.linkedin.com/in/bbarrows89/), Workflows Builder Advocate at Okta._

A good tip, particularly when sending a raw request with **API Connector** card, or trying to compare request with Postman, is to send a request to a service like [Hookbin](https://hookbin.com) that allows you inspect what’s being sent from Workflows and compare it with your other request.

[![API Connector – Post card](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_hookbin_test.png?w=1024)](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_hookbin_test.png)
<figcaption>API Connector – Post card</figcaption>

Going over to [Hookbin](https://hookbin.com) web site you inspect the request. You see the HTTP headers, query string, and body of the request. If request payload is correct with Hookbin, you can try sending it to an actual service.

[![Inspecting an HTTP request on Hookbin](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_hookbin_test_browser.png?w=1024)](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_hookbin_test_browser.png)
<figcaption>Inspecting an HTTP request on Hookbin</figcaption>

And a tip within a tip. We [covered](https://dev.to/maxkatz/workflows-tips-22-httpbin-to-inspect-http-requests-a-code-tip-for-no-code-and-a-meetup-replay-3fl5-temp-slug-935140) a similar service called [httpbin](http://httpbin.org/) you might also like.

## Testing Read User and Read Group cards

Testing individual cards in a flow is highly encouraged. When using **Okta – Read User** or **Okta – Read Group** card, the test will prompt you to enter an **ID** for a user or a group.

To get a user ID, go to the **Admin console > Directory > People** and choose a person to view. Their ID will be in the browser address bar.

[![Getting user ID](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_userid_url.png?w=1024)](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_userid_url.png)
<figcaption>Getting user ID</figcaption>

With the user ID you can quickly test the **Read User** card:

[![Testing Read User card](https://katzmax.files.wordpress.com/2022/06/workflows_tips224_userid_url_test.png?w=1024)](https://katzmax.files.wordpress.com/2022/06/workflows_tips224_userid_url_test.png)
<figcaption>Testing Read User card</figcaption>

Similarly, when testing **Okta – Read Group** card, go to **Admin console > Directory > Groups** , click on a group name.

[![Getting group ID](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_groupid_url.png?w=732)](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_groupid_url.png)
<figcaption>Getting group ID</figcaption>

Using a group ID to test a card:

[![Testing Read Group card](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_groupid_url_test.png?w=1024)](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_groupid_url_test.png)
<figcaption>Testing Read Group card</figcaption>

## Sending HTML email

Both, **Gmail – Send Email** and **Office 365 Mail – Send Email** support sending HTML email.

In **Gmail – Send Email** card, the HTML setting is in **Options** :

[![Send as HTML email option](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_gmail_html_email.png?w=484)](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_gmail_html_email.png)
<figcaption>Send as HTML email option</figcaption>

In **Office 365 Mail – Send Email** card, the HTML option is one of the card fields:

[![Office 365 Mail card HTML option](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_o365_html_email.png?w=444)](https://katzmax.files.wordpress.com/2022/06/workflows_tips24_o365_html_email.png)
<figcaption>Office 365 Mail card HTML option</figcaption>

The Text – Compose card supports HTML so you can write an email like this:

[![Compose card with HTML content](https://katzmax.files.wordpress.com/2022/06/workflows_tips_compose_html_email.png?w=868)](https://katzmax.files.wordpress.com/2022/06/workflows_tips_compose_html_email.png)
<figcaption>Compose card with HTML content</figcaption>

Received HTML email:

[![Received HTML email](https://katzmax.files.wordpress.com/2022/06/workflows_tips_html_email_received.png?w=856)](https://katzmax.files.wordpress.com/2022/06/workflows_tips_html_email_received.png)
<figcaption>Received HTML email</figcaption>

* * *

Two resources to help you learn more:

📘 Try this step-by-step getting started tutorial: [Build Your First Automation With Okta Workflows: Notify When User Is Suspended](https://dev.to/maxkatz/build-your-first-automation-with-okta-workflows-notify-when-user-is-suspended-1l3p-temp-slug-2933517).

📺 Short how-to [Workflows videos](https://youtube.com/playlist?list=PLIid085fSVdvyK8F4xuk49EchBPmAVNHG) to help you become a better automation builder.