Workflows Tips #22: httpbin to Inspect HTTP Requests, a Code Tip for No-Code, and a Meetup Replay
Tags: nocode, workflows, okta, ipaas
Published: 2022-08-29 18:53:05

---
title: Workflows Tips #22: httpbin to Inspect HTTP Requests, a Code Tip for No-Code, and a Meetup Replay
published: true
date: 2022-08-29 05:35:37 UTC
tags: NoCode,Workflows,okta,ipaas
canonical_url: https://maxkatz.net/2022/05/26/workflows-tips-22-httpbin-to-inspect-http-requests-a-code-tip-for-no-code-and-a-meetup-replay/
---

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

In this post:

- Use httpbin to inspect HTTP requests
- A code tip for no-code (or how to check all checkboxes)
- Online Meetup Replay: 3 Workflow Automation Examples – Handling Errors, Custom API Actions, and Deleting Users

## Use httpbin to test HTTP requests

_This tip is from [Gabriel Sroka](https://www.linkedin.com/in/gabrielsroka/)_, Okta expert and developer of the [rockstar](https://gabrielsroka.github.io/rockstar) Chrome extension. _Gabriel also hangs out in the [MacAdmins](https://www.macadmins.org/) #okta-workflows Slack community._

[httpbin.org](http://httpbin.org) is a neat service that allows to inspect HTTP requests. When calling a 3rd party service, the service might require headers, query or body data in a specific format. You can use **httpbin** to test and inspect the data that would be sent the 3rd party service. You send the data (headers, query, body) that a service requires to an **httpbin** endpoint for inspection.

Using the **API Connector – Post** card shows the data that the endpoint ( **httpbin** ) recieved:

[![Using httpbin to inspect an HTTP request](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_httpbin1.png?w=1024)](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_httpbin1.png)
<figcaption>Using httpbin to inspect an HTTP request</figcaption>

The **Body** field from above test expanded to help you inspect the request:

```
{
  "args": {
    "email": "max@okta.com"
  },
  "data": "{\"data1\":\"okta\",\"data2\":\"workflows\"}",
  "files": {},
  "form": {},
  "headers": {
    "Content-Length": "36",
    "Content-Type": "application/json",
    "Host": "httpbin.org",
    "My-App-Header": "okta",
    "My-Flow-Header": "workflows",
    "User-Agent": "Azuqua",
    "X-Amzn-Trace-Id": "Root=1-628feeac-26a70425043da5ab3bd220c2"
  },
  "json": {
    "data1": "okta",
    "data2": "workflows"
  },
  "origin": "3.15.75.236",
  "url": "https://httpbin.org/post?email=max%40okta.com"
}
```

**httpbin** has other endpoints. This is an example of using `/headers` to inspect the request headers:

[![Inspecting request headers using httpbin](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_httpbin3.png?w=1024)](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_httpbin3.png)
<figcaption>Inspecting request headers using httpbin</figcaption>

Visit [**httpbin**](http://httpbin.org) to view all the service options.

[![httpbin.org service for inspecting HTTP requests](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_httpbin4.png?w=1024)](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_httpbin4.png)
<figcaption>httpbin.org service for inspecting HTTP requests</figcaption>

## A code tip for no-code (or how to check all checkboxes)

_This tip is from [Gabriel Sroka](https://www.linkedin.com/in/gabrielsroka/)_, Okta expert and developer of the [rockstar](https://gabrielsroka.github.io/rockstar) Chrome extension. _Gabriel also hangs out in the [MacAdmins](https://www.macadmins.org/) #okta-workflows Slack community._

This is a code tip (or a hack) for no-code!

When using a card like **Okta – Read User** you can select which fields to display. This card has many fields and checking one by one might not be convenient.

[![Read User card](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_checkboxes_check1.png?w=428)](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_checkboxes_check1.png)
<figcaption>Read User card</figcaption>

Gabriel Sroka wrote a JavaScript that you can add as a bookmark that will check all the checkboxes. You can run this code in your browser’s developer tools console (and also add as a bookmark). I tested this in Chrome browser on MacOS.

```
javascript:/* Workflows check all checkboxes */ document.querySelectorAll('input[type=checkbox]').forEach(c => {if(!c.checked) c.click()})
```

[![Running JavaScript in console to check all checkboxes](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_checkboxes_console.png?w=1024)](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_checkboxes_console.png)
<figcaption>Running JavaScript in console to check all checkboxes</figcaption>

Running this in a console might not be the best option if you want to use is frequently so you can bookmark this script. To add this as a bookmark:

1. Select the entire code and copy it
2. **Right-click** in the **Bookmarks Bar** and select **Paste**

A bookmark will be added:

[![Bookmark for script](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_checkboxes_bookmark1.png?w=584)](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_checkboxes_bookmark1.png)
<figcaption>Bookmark for script</figcaption>

Right-click the bookmark and select **Edit…** to rename it:

[![Renaming a bookmark](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_checkboxes_bookmark2.png?w=588)](https://katzmax.files.wordpress.com/2022/05/workflows_tips22_checkboxes_bookmark2.png)
<figcaption>Renaming a bookmark</figcaption>

If you need a bookmark to uncheck all checkboxes, this is the code:

```
javascript:/* Workflows uncheck all checkboxes */ document.querySelectorAll('input[type=checkbox]').forEach(c => {if(c.checked) c.click()})
```

A code tip for no-code.

## Online Meetup Replay: 3 Workflow Automation Examples – Handling Errors, Custom API Actions, and Deleting Users

This week we hosted our monthly online meetup where attendees learned:

- How to handle errors
- How to call a custom API action
- How to delete users

If you missed the live event watch the replay below.

{% youtube lynKSaoQj4c %}


* * *

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.