> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://support.atomicwork.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://support.atomicwork.com/_mcp/server.

# HTTP requests

> **Note**
>
> This page applies only to legacy workflows, which were built earlier in the classic builder and are marked with the legacy workflow icon. It doesn't apply to workflows built with AI Assist. For those, see [Build workflows with AI Assist](https://support.atomicwork.com/documentation/enterprise-workflows/get-started/build-workflows-with-ai-assist).

HTTP request actions let a workflow call another system’s API directly, so you can perform data updates and operations without logging into that system by hand. Without one, you might have to manually remove an employee’s data from every system they’re a part of once they leave — a simple operation with an HTTP request action.

[Learn more about when to use an HTTP request vs a Call API action](https://support.atomicwork.com/documentation/enterprise-workflows/connect-to-other-systems/use-call-api-actions-in-workflows)

## What you need

* The **link to the API documentation** of the app you want to send requests to

* The **subdomain (if any) used to access your account**. A lot of apps give you a subdomain when you sign up for an account, like [https://mycompany.bamboohr.com](https://mycompany.bamboohr.com).

* The **authentication mechanism**. The other app needs to know who has authorized the requests Atomicwork is sending on your behalf. Some apps don’t need an authentication mechanism. Some apps need an API key, and others require you to send your username and password every time. So please make sure to look this up in the documentation.

* The **API URL** to which you’ll be sending your requests. This is usually in the documentation as well. For example, the API URL to use for BambooHR is: [https://api.bamboohr.com/api/gateway.php/\{companyDomain}/v1/employees/\{id}/](https://api.bamboohr.com/api/gateway.php/%7BcompanyDomain%7D/v1/employees/%7Bid%7D/)

## Setting up credentials

HTTP request actions authenticate using saved credentials from the credential store. You can add credentials while creating the action, or manage them ahead of time at **Settings > Organization > Security > Credential store**. Atomicwork supports several authentication types — see [Managing credentials](/documentation/platform-administration/governance/managing-credentials) for the full list.

We’d recommend saving credentials with descriptive names. Allowed hosts are **required** on every credential that carries a secret — they restrict where the credential can be sent, so it can never leak to a host it doesn’t belong to. For the full details on creating, managing, and rotating credentials, see [Managing credentials](/documentation/platform-administration/governance/managing-credentials).

> **Warning**
>
> **Credentials showing `.*`:** This is a temporary backfill applied to credentials created before allowed hosts were required. These credentials continue to work in HTTP request actions, but `aw.secret` and `aw.secretHeader` refuse them until real hosts are set. The next time you edit one of these credentials, you’ll need to replace `.*` with actual hostnames.

> **Note**
>
> These credentials are used when Atomicwork calls *out* to another system. They’re separate from your **public API token** (**Settings > My account > Credential store**), which authenticates calls made *in* to Atomicwork’s own API.

If your workflow uses an **Execute Code** action to make HTTP requests, you can also reference saved credentials directly in code using `aw.secret` (for body fields) and `aw.secretHeader` (for headers) — see [Use saved credentials in code](/documentation/enterprise-workflows/connect-to-other-systems/use-saved-credentials-in-code) for recipes and the full reference.

## Add an HTTP request action to a workflow

* Go to **Automations > Workflow library**. Select a workspace for request, incident and change workflows, or select **Organization** for asset, user and directory object workflows.

* Create a new workflow or choose the workflow you want to edit.

* Click **Add action**, then select **Make an HTTP request**.

* Enter the URL to which the receiving app would like us to send information. Make sure to include the subdomain if there is one.

* Choose the operation you’d like us to perform i.e. the Request Method, to the left of the URL.

  1. POST sends new data to the app

  2. GET receives data from an app

  3. PUT is used to send an update. PUT is what you should use when you want to update *all* the fields of an employee.

  4. PATCH is for when you want to update only *certain* fields

  5. DELETE is for when you want to delete data

* Choose the credentials you’d like us to use.

* **Headers**: Some APIs require you to send particular headers along with requests, typically to provide more metadata about the operation you are performing like cached resource details or content type. You can add these in the **Headers** textbox.

* **Body**: Atomicwork supports JSON formatting for body content.

We’d recommend you build and test your request out on a platform like Postman before adding it as an action here. We’d also recommend you go through [their comprehensive getting started guide](https://learning.postman.com/docs/sending-requests/requests/) if you encounter some obstacles.

You can use the output of an action (we call this [a data pill](https://support.atomicwork.com/documentation/enterprise-workflows/legacy-workflows/data-pills-in-workflow-actions)) as input for other actions.