# Airship Postman collection

Use our Postman public workspace to experiment with the Airship API.

The Airship API v3 [Postman](https://www.postman.com/) collection provides sample API requests for our most popular endpoints.

To use the Airship collection, you will fork the collection and an environment to your personal workspace, where you can personalize your payloads and add your project credentials, channels, etc. You can also choose to get updates when there are changes to the main collection.

> **Tip:** If you use an AI coding assistant, you can connect it to Airship with Skills and an MCP server. See [Airship AI Tools](https://www.airship.com/docs/developer/ai-tools/ai-tools/).

## Forking the Airship collection

1. Go to our [Airship Public Workspace](https://www.postman.com/airship-api).
1. Select **Collections** in the sidebar, then select **Airship API v3**.
1. Select the more menu icon (), then select **Create a fork**.
1. Enter a label for your fork, then select location **My Workspace**.
1. (Optional) Check the box for **Watch original collection** to get notified about updates to the original collection.
1. Select **Fork Collection**.

Your forked collection will be created in **My Workspace**.

![Forking the Airship collection](https://www.airship.com/docs/images/ug-gs-fork-airship-collection_hu_630d39983dc176c9.webp)

*Forking the Airship collection*

## Forking the Airship environment

After forking the collection:

1. Select **Environments** in the sidebar, then select **Public Airship Environment**.
1. Select the more menu icon (), then select **Create a fork**.
1. Enter a label for your fork, then select location **My Workspace**.
1. Select **Fork Environment**.

Your forked environment will be created in **My Workspace**. Initial values are shared when you share a collection or environment. Current values are local and not synced or shared.

![Forking the Airship environment](https://www.airship.com/docs/images/ug-gs-fork-airship-environment_hu_e3f9f93f5e8b1d29.webp)

*Forking the Airship environment*

## Setting up your Postman environment

The Airship Public Workspace contains the Airship API v3 collection and Public Airship Environment. Global variables, such as `{{baseUrl}}`, and variables defined in the Public Airship Environment are used for all the pre-built requests in the collection. The endpoints use either a bearer token `{{bearer_token}}` or both app key `{{app_key}}` and master secret `{{master_secret}}` for authorization.

 .
   
Follow the steps below to set up your variables in your Postman environment. All the variables defined in the Public Airship Environment are used in the Airship API v3 requests.

1. Go to **My Workspace**. 
1. Select **Environments** in the sidebar, then select **Public Airship Environment**.
1. Select the down arrow icon (
) at the top right of the screen, then select **Public Airship Environment**.
1. Edit the values in the **CURRENT VALUE** column for variables to be used in the API requests:
   | Variable | Value |
   | --- | --- |
   | app_key and master_secret | Replace the current values with values from your Airship project. In Airship, go to **Settings** and copy them from the sidebar, |
   | bearer_token | Replace the current values with values from your Airship project. If you don't already have a bearer token, follow the steps for [Creating bearer tokens](https://www.airship.com/docs/guides/getting-started/developers/api-security/#creating-bearer-tokens) in _Airship API Security_. |
   | android_channel and ios_channel | Replace the current values with your Android and iOS channel IDs. See [Finding Channel IDs](https://www.airship.com/docs/guides/getting-started/developers/identifiers/). |
   
   Your current values are local and not synced or shared. You can ignore variables with blank values. They will be populated via scripts.
1. Select **Save**.

![Setting up your Postman environment](https://www.airship.com/docs/images/ug-gs-set-up-environment_hu_5193fb05ea52ee94.webp)

*Setting up your Postman environment*

> **Note:** Before adding tag groups to the environment and using them in requests, make sure they exist in Airship. In your Airship project, go to **Audience**, then **Tags**, then **Tag Groups**.


## Sending a push request

The Airship API v3 collection is organized in folders based on endpoints. Selecting a folder expands all pre-built requests related to that endpoint. Selecting a request opens a new tab in the main window of Postman.

1. Go to **My Workspace**.
1. Select **Collections** in the sidebar, then select the **Airship API v3** collection.
1. Select the down arrow icon (
) at the top right of the screen, then select **Public Airship Environment**.
1. In **Airship API v3** select the **Push** folder, then open the request **POST Send a Push**.
1. Select the **Body** tab to review the request body.
1. Select **Send**, then verify the response data that is returned below the request section.

![Sending a push request](https://www.airship.com/docs/images/ug-gs-send-push-request_hu_ce281c2d345dae18.webp)

*Sending a push request*
