# About mock APIs

The product or feature that you are using Fabricate data for might not be able to interact directly with a database.

Instead, it interacts with an API that in turn interacts with the database.

<figure><img src="https://4109733485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoU4gTR9LxlzHeWmQCUZ%2Fuploads%2FwAD537yuFQ8SHsZqPp6G%2FDiagram_MockAPI.png?alt=media&#x26;token=d73193d7-0063-4094-8cf1-ba619ccd99ce" alt=""><figcaption><p>Diagram that shows interaction with a mock API</p></figcaption></figure>

To support this use case, you can define a mock API for a rule-based database.

For more information, view the [video tutorial](https://youtu.be/1k9lddwf6Rs).

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Define a mock API</strong><br><br>Define the API directly or use AI.</td><td><a href="mock-api-configure">mock-api-configure</a></td></tr><tr><td><strong>Create and query data snapshots</strong><br><br>Data snapshots provide the data for a mock API to query against.</td><td><a href="database-snapshot">database-snapshot</a></td></tr><tr><td><strong>Mock API reference</strong><br><br>Structure and syntax for a mock API.</td><td><a href="mock-api-reference">mock-api-reference</a></td></tr></tbody></table>
