> For the complete documentation index, see [llms.txt](https://docs.comfortable.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.comfortable.io/sdk.md).

# SDKs

- [JavaScript](https://docs.comfortable.io/sdk/javascript.md)
- [Query Options](https://docs.comfortable.io/sdk/javascript/query-options.md)
- [Query All Documents](https://docs.comfortable.io/sdk/javascript/query-all-documents.md): Here we will show you how you can query all documents from your repository.
- [Query a Collection](https://docs.comfortable.io/sdk/javascript/query-a-collection.md): Here we will show you how you can query all documents defined by a collection
- [Query a Single Document](https://docs.comfortable.io/sdk/javascript/query-a-single-document.md): Here we will show you how you retrieve a single document.
- [Query an Alias](https://docs.comfortable.io/sdk/javascript/query-an-alias.md): Here we will show you how you retrieve a single document behind an alias.
- [Query an Asset](https://docs.comfortable.io/sdk/javascript/query-an-asset.md): Here we will show you how you retrieve a single asset
- [Example: Filters](https://docs.comfortable.io/sdk/javascript/example-filters.md)
- [Example: Sorting](https://docs.comfortable.io/sdk/javascript/example-sorting.md)
- [Nuxt.js](https://docs.comfortable.io/sdk/nuxt.js.md)
- [PHP](https://docs.comfortable.io/sdk/php.md)
- [Query All Documents](https://docs.comfortable.io/sdk/php/query-all-documents.md): Here we will show you how you can query all documents from your repository.
- [Query Single Document](https://docs.comfortable.io/sdk/php/query-single-document.md): Here we will show you how you retrieve a single document.
- [Query Collection](https://docs.comfortable.io/sdk/php/query-collection.md): Here we will show you how you can query all documents defined by a collection
- [Query an Alias](https://docs.comfortable.io/sdk/php/query-an-alias.md): Here we will show you how you retrieve a single document behind an alias.
- [Query an Asset](https://docs.comfortable.io/sdk/php/query-an-asset.md): Here we will show you how you retrieve a single asset
- [Fulltext Search](https://docs.comfortable.io/sdk/php/fulltext-search.md): Here we will show you how you perform a Fulltext Search against documents.
- [Query by Fields](https://docs.comfortable.io/sdk/php/query-by-fields.md): Here we will show you how you can query documents by a specific fields
- [Query by Type](https://docs.comfortable.io/sdk/php/query-by-type.md): Here we will show you how you can query documents by its content-type.
- [Query by Id](https://docs.comfortable.io/sdk/php/query-by-id.md): Here we will show you how you can query a single or multiple documents by id.
- [Query by Tags](https://docs.comfortable.io/sdk/php/query-by-tags.md): Here we will show you how you can perform queries based on tags


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.comfortable.io/sdk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
