# Data Types

### Available data types

There are general types like '**string**,' subtypes such as '**email**,' and formatting options for some data types.

| Type          | Subtype        | Formatting options                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ------------- | -------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Type          | Subtype        | Formatting options                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **string**    | —              | —                                                                                 | <p>A sequence of characters used to represent text.</p><p><code>// Example:</code> </p><p><code>Hello world!</code></p>                                                                                                                                                                                                                                                                                                                                                                     |
| **string**    | markdown       | —                                                                                 | Formatted text (see [markdown cheatsheet](/data/data-types/markdown-cheatsheet.md))                                                                                                                                                                                                                                                                                                                                                                                                         |
| **string**    | html           | —                                                                                 | Formatted HTML text                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **string**    | email          | —                                                                                 | <p>Formatted email address</p><p><code>// Example:</code></p><p><code><support@directual.com></code></p>                                                                                                                                                                                                                                                                                                                                                                                    |
| **string**    | phone          | —                                                                                 | <p>String of numbers</p><p><code>// Example:</code></p><p><code>79201231212</code></p>                                                                                                                                                                                                                                                                                                                                                                                                      |
| **string**    | color          | —                                                                                 | <p> HEX color</p><p><code>// Example:</code></p><p><code>#AAA012</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **string**    | webLink        | —                                                                                 | <p>A URL</p><p><code>// Example:</code></p><p><code><http://directual.com></code></p>                                                                                                                                                                                                                                                                                                                                                                                                       |
| **string**    | youTube        | —                                                                                 | <p>Youtube URL</p><p><code>// Example: <https://www.youtube.com/watch?v=m4U232MuTG4></code></p>                                                                                                                                                                                                                                                                                                                                                                                             |
| **number**    | —              | —                                                                                 | <p>A numeric data type from –9223372036854775808 to 9223372036854775807.</p><p><code>// Examples:</code></p><p><code>42</code></p><p><code>-102</code></p><p><code>0</code></p>                                                                                                                                                                                                                                                                                                             |
| **number**    | positiveNum    | —                                                                                 | A positive number                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **decimal**   | —              | —                                                                                 | <p>An exact numeric data type. Directual interface displays up to 15 digits.</p><p><code>// Examples:</code></p><p><code>0.12</code></p><p><code>-99999999.9999999999</code></p><p><code>234.23123454</code></p><p>Supports up to 34 digits without any loss and exponent range from –6143 to +6144</p>                                                                                                                                                                                     |
| **Array**     | —              | —                                                                                 | <p>An array is an ordered collection of elements. Each element has its own type.</p><p><code>// Examples:</code></p><p><code>1,a,hello world,4,true</code></p><p><code>42.2,{"key1":true,"key2":"hello"},abc</code></p>                                                                                                                                                                                                                                                                     |
| **Date**      | —              | [Formatting date format](/data/data-types/formatting-date-time-data.md)           | <p>Date and time. By default has <em>date-time</em> format: YYYY-MM-DDTHH:mm:ss.sssZ)</p><p>Also can be processed as <em>timestamp</em>, which represents the time, in milliseconds since 00:00:00 UTC on 1 January 1970.</p><p><code>// Examples:</code></p><p><code>2019-10-01T10:00:00.000Z = 01 October 2019 10:00:00 in date-time format;</code></p><p><code>1569924000000 = 01 October 2019 10:00:00 in timestamp format;</code></p>                                                  |
| **Boolean**   | —              | Options names (`true` and `false` by default)                                     | The type for *yes or no*. There are three options for its value: `true, false, null`                                                                                                                                                                                                                                                                                                                                                                                                        |
| **JSON**      | —              | —                                                                                 | <p>JavaScript object notation. Often used in integrations. MDN Documentation.</p><p><code>// Example:</code></p><p><code>{</code></p><p>   <code>"title": "War and peace",</code></p><p>   <code>"year": 1865,</code><br>   <code>"Chapters": \[1,2,3,4,5,6],</code></p><p>   <code>author: {</code></p><p>      <code>"name: "Leo",</code></p><p>      <code>"last\_name": "Tolstoy"</code></p><p>   <code>},</code></p><p>   <code>"is\_favourite": false</code></p><p><code>}</code></p> |
| **JSON**      | checkboxes     | Checkbox options + custom option                                                  | <p><code>// JSON example:</code></p><p><code>{ "option2": true, "customOption": "2021-01-06T00:00:00.000Z" }</code></p>                                                                                                                                                                                                                                                                                                                                                                     |
| **JSON**      | radioOptions   | Radio options + custom option                                                     | <p><code>// JSON example:</code></p><p><code>{ "value": "hello" }</code></p><p><code>or</code></p><p><code>{ "customOption": "hello world" }</code></p>                                                                                                                                                                                                                                                                                                                                     |
| **JSON**      | slider         | Unit name + step + min, max values                                                | <p><code>// JSON example:</code></p><p><code>{ "firstValue": 3 }</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **JSON**      | rangeSlider    | Unit name + step + min, max values                                                | <p><code>// JSON example:</code></p><p><code>{ "secondValue": 6, "firstValue": 3 }</code></p>                                                                                                                                                                                                                                                                                                                                                                                               |
| **JSON**      | geo-data       | Array of objects, that include coordinates, title, image (link) and a description | `// JSON example`                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **Link**      | —              | —                                                                                 | The **ID** of an object from the linked structure.                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **arrayLink** | —              | —                                                                                 | **Array** of **Links**                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **File**      | —              | —                                                                                 | **= String**, the URL of the file. Here the [fileUpload](/data/file-storage.md) structure is often used.                                                                                                                                                                                                                                                                                                                                                                                    |
| **File**      | image          | —                                                                                 | **= String**, the URL of the image (PNG, SVG, JPG, BMP).                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **File**      | multipleImages | —                                                                                 | **= String**, the URLs of images, comma separated.                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **File**      | multipleFiles  | —                                                                                 | **= String**, the URLs of files, comma separated.                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| **Operator**  | —              |                                                                                   | <p>Comparison operator from <a href="/pages/-M5H7dzZwlk9M_H20dnV">the list</a>.</p><p><code>// Examples:</code></p><p><code>></code></p><p><code><=</code></p><p><code>like</code></p><p><code>isEmpty</code></p>                                                                                                                                                                                                                                                                           |


---

# 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/data/data-types.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.
