---
title: "ResourceShark"
description: "Learn what ResourceShark manages, when it fits your product, and how to make your first reservation."
url: "https://agentpost.tools/docs/resourceshark"
kind: overview
---

# ResourceShark

ResourceShark keeps track of what your product has, what is set aside, and what is still free to take. It fits products that manage stock, spend prepaid credits, or book time. Your server records [supply](/docs/resourceshark/concepts/supply.md), reads availability, and places [holds](/docs/resourceshark/concepts/holds.md) before it commits to an order or booking.

## What it takes off your hands

A stockroom, a credit balance, and a calendar all have to handle requests that arrive together. ResourceShark applies the resource’s shortage rule in the same write that places a hold or takes supply. A request to take several items succeeds in full or leaves every balance as it was. [Movements](/docs/resourceshark/concepts/movements.md) record how each balance changed. [Totals](/docs/resourceshark/concepts/totals.md) sum each resource’s on-hand changes by reason over a period.

## When it fits

-   **Stock** that your product counts by place or tracks by individual unit.
-   **Prepaid credits** that a product gives to each holder and draws down as they use it.
-   **Bookings** that take capacity in [time slots](/docs/resourceshark/concepts/schedules.md), such as court hours or room nights.
-   **Your own rules**, such as pricing, booking windows, and cancellations, run on your server before it calls ResourceShark.

## Surfaces

| Surface | Runs on | Status |
| --- | --- | --- |
| [API](/docs/resourceshark/reference.md) | Any HTTP client | In testing |
| [SDK](/docs/resourceshark/sdk.md) | Node, browsers, and React Native | In testing |

The API answers at `https://api.agentpost.tools/v1/resources` for each project that adopts ResourceShark. Your server writes with the project’s secret key. A signed-in principal’s user token reaches supported reads for their own holder records. The [ResourceShark API reference](/docs/resourceshark/reference.md) has every operation and who may call it.

## Where to start

The [ResourceShark quickstart](/docs/resourceshark/quickstart.md) adds stock at a roastery, holds part of it, and commits the hold. It uses the project and `dev` secret key from the [Platform quickstart](/docs/platform/quickstart.md). The [ResourceShark docs index](/docs/resourceshark/llms.txt) lists every page.
