# Referral Rock API Documentation

This is the complete API documentation for connecting to the Referral Rock 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 **Referral Rock connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

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

## Referral Rock actions

- POST `create-hook` Create Hook
- POST `create-member` Create Member
- POST `create-member-access-urls` Create Member Access URLs
- POST `create-payout-transactions` Create Payout Transactions
- POST `create-referral` Create Referral
- POST `create-rewards` Create Rewards
- DELETE `delete-hook` Delete Hook
- DELETE `delete-members` Delete Members
- DELETE `delete-referrals` Delete Referrals
- DELETE `delete-rewards` Delete Rewards
- GET `get-member-statistics` Get Member Statistics
- GET `get-program` Get Program
- GET `get-referral` Get Referral
- PUT `issue-reward` Issue Reward
- GET `list-members` List Members
- GET `list-payout-transactions` List Payout Transactions
- GET `list-payouts` List Payouts
- GET `list-pending-payouts` List Pending Payouts
- GET `list-programs` List Programs
- GET `list-referrals` List Referrals
- GET `list-reward-rules` List Reward Rules
- GET `list-rewards` List Rewards
- PUT `update-members` Update Members
- PUT `update-referrals` Update Referrals
- PUT `update-rewards` Update Rewards
