# Fourthwall API Documentation

This is the complete API documentation for connecting to the Fourthwall API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **Fourthwall connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/fourthwall/actions/{actionSlug}/run
```

## Fourthwall actions

- POST `create-promotion` Create Promotion
- POST `create-webhook` Create Webhook
- DELETE `delete-webhook` Delete Webhook
- GET `get-current-shop` Get Current Shop
- GET `get-external-order` Get External Order
- GET `get-order` Get Order
- GET `get-order-by-friendly-id` Get Order By Friendly ID
- GET `get-product` Get Product
- GET `get-product-inventory` Get Product Inventory
- GET `get-promotion` Get Promotion
- GET `get-shop-contact-info` Get Shop Contact Info
- GET `list-collections` List Collections
- GET `list-external-orders` List External Orders
- GET `list-orders` List Orders
- GET `list-products` List Products
- GET `list-promotions` List Promotions
- GET `list-webhook-events` List Webhook Events
- GET `list-webhooks` List Webhooks
- PUT `update-product-availability` Update Product Availability
- PUT `update-webhook` Update Webhook
- POST `validate-external-order` Validate External Order
