# Formatting response for GET-request

## Get Cakes

<mark style="color:blue;">`GET`</mark> `https://api.directual.com/good/api/v5/data/:_TABLE_NAME_/:_METHOD_NAME`

Not required parameter **format**, if you want to get answer as object, you must set this parameter as "head". \
Note: if API endpoint returns collection, and parameter format set as head, platform will return the first element.

#### Query Parameters

| Name      | Type   | Description                                                    |
| --------- | ------ | -------------------------------------------------------------- |
| format    | string | Wrapper for result answer (default: "", options: "" or "head") |
| pageSize  | string | Count of objects in response (default: 30)                     |
| page      | string | Number of page (start with 0, default: 1)                      |
| appID     | string | You app id                                                     |
| sessionID | string |                                                                |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
{    "message": "Ain't no cake like that."}
```

{% endtab %}
{% endtabs %}


---

# 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://readme.directual.com/api-integrations/api-endpoints-security-layer/advanced-techniques-for-get-requesting/optional-parameters.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.
