# API

There are seven default actions defined for each resource. Each of that actions has an automatically generated REST API endpoint (i.e. `/api/resources/{resourceId}/actions/{action}`)

Available actions are:

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>List</strong></td><td><em>allows you to list and filer all the records for a given resource</em></td><td></td><td><a href="/pages/dsABrFL3D64bUeVvXGlS">/pages/dsABrFL3D64bUeVvXGlS</a></td></tr><tr><td><strong>New</strong></td><td><em>is responsible for creating a new record in a given resource</em></td><td></td><td><a href="/pages/WnKjsZLuONpJKvpUkKmg">/pages/WnKjsZLuONpJKvpUkKmg</a></td></tr><tr><td><strong>Search</strong></td><td><em>allows you to search records in a given resource by a query string</em></td><td></td><td><a href="/pages/kdFqeDk6x1Qqcrjt6yE0">/pages/kdFqeDk6x1Qqcrjt6yE0</a></td></tr><tr><td><strong>Show</strong></td><td><em>is responsible for showing the details of a record</em></td><td></td><td><a href="/pages/UsihpLUdUxQnTB6hWwNR">/pages/UsihpLUdUxQnTB6hWwNR</a></td></tr><tr><td><strong>Edit</strong></td><td><em>is responsible for editing record in a given resource</em></td><td></td><td><a href="/pages/pig8rWmsu94wuvW4VtTZ">/pages/pig8rWmsu94wuvW4VtTZ</a></td></tr><tr><td><strong>Delete</strong></td><td><em>is responsible for deleting single records</em></td><td></td><td><a href="/pages/l5wzNljRa3WaQYmM5i1I">/pages/l5wzNljRa3WaQYmM5i1I</a></td></tr><tr><td>Bulk Delete</td><td><em>is responsible for deleting multiple records</em></td><td></td><td><a href="/pages/y8P3oeXLV2R3189r1C7U">/pages/y8P3oeXLV2R3189r1C7U</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.adminjs.co/basics/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
