---
description: Create, read, update, and delete FHIR resources using REST API with /fhir and Aidbox endpoints.
---

> For the complete documentation index, see [llms.txt](https://www.health-samurai.io/docs/aidbox/llms.txt).
> Use it to discover all available pages before guessing URLs.

---

# CRUD

{% hint style="info" %}
Aidbox provides two REST APIs - FHIR and Aidbox. The main difference is [a format of resources](../other/aidbox-and-fhir-formats.md). Base URL for FHIR API is **/fhir** and for Aidbox **/**

**It is recommended to always use /fhir endpoint.**

To turn off the Aidbox format API, set `BOX_FHIR_AIDBOX_FORMAT_API_ENABLED` to `false`. See [Turn off the Aidbox format API](../other/aidbox-and-fhir-formats.md#turn-off-the-aidbox-format-api).
{% endhint %}

## Introduction

A **resource** is an object with a type, associated data, relationships to other resources, and a set of methods that operate on it (information about that can be found in FHIR [specification](https://www.hl7.org/fhir/resourcelist.html)). In most cases, a resource is represented as a JSON/XML/YAML document.

Each resource has its resource **type**, which defines a set of data that can be stored with this resource and possible relationships with other resources.

Every resource type has the same set of **interactions** available. These interactions are described below.

Each interaction can fail with **`403`** **Forbidden** if client is not authorized to perform the interaction.&#x20;
