> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/lina-7.4/lina-7.4-en/release-information/rest-api-reference/administration/models.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Models

## The StatusCode object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0}}}}
```

## The StatusMsg object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}}}
```

## The Status object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"Status":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}}}
```

## The StatusWithID object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"StatusWithID":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the new object"},"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}}}
```

## The StatusWithIDs object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"StatusWithIDs":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the (new) hierarchy"},"idg":{"type":"array","items":{"type":"integer","format":"int32","description":"ID of the new group"}},"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}}}
```

## The Path object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"Path":{"type":"string","description":"Path"}}}}
```

## The SystemCateg object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"SystemCateg":{"type":"integer","format":"int32","description":"System category code:\n* OS (0x0F00)\n- 0x0100 - SYSCATEG_WINDOWS\n- 0x0200 - SYSCATEG_LINUX\n- 0x0300 - SYSCATEG_MACOSX\n- 0x0500 - SYSCATEG_HVDS\n* Flags\n- 0x0010 - SYSCATEG_SERVER\n- 0x0020 - SYSCATEG_NAS\n- 0x0040 - SYSCATEG_REMOTE_NAS\n"}}}}
```

## The OSSpecific object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"OSSpecific":{"type":"string","enum":["WIN","MAC","ALL"],"description":"Specific profile for OS:\n* WIN - Windows\n* MAC - MacOS\n* ALL - All OS\n","default":"ALL"}}}}
```

## The RuleArrayXML object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"RuleArrayXML":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"PredefinedPathID":{"type":"integer","format":"int32","description":"ID of the predefined path"},"FilterRuleID":{"type":"integer","format":"int32","description":"ID of the filter rule"}},"xml":{"name":"RulePredef"}},{"type":"object","properties":{"SpecifiedPath":{"$ref":"#/components/schemas/Path"},"FilterRuleID":{"type":"integer","format":"int32","description":"ID of the filter rule"}},"xml":{"name":"RuleSpecif"}}]},"xml":{"wrapped":true}},"Path":{"type":"string","description":"Path"}}}}
```

## The Behavior object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"Behavior":{"type":"string","enum":["INCL","EXCL","ADVINCL","ADVEXCL"],"description":"The behavior for file types set or default behavior:\n* INCL - Included (forced)\n* EXCL - Excluded (forced)\n* ADVINCL - Included (advisory)\n* ADVEXCL - Excluded (advisory)\n"}}}}
```

## The SubRuleArrayXML object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"SubRuleArrayXML":{"type":"array","items":{"type":"object","properties":{"FileTypeID":{"type":"integer","format":"int32","description":"ID of the file type"},"Behavior":{"$ref":"#/components/schemas/Behavior"}},"xml":{"name":"SubRule"}},"xml":{"wrapped":true}},"Behavior":{"type":"string","enum":["INCL","EXCL","ADVINCL","ADVEXCL"],"description":"The behavior for file types set or default behavior:\n* INCL - Included (forced)\n* EXCL - Excluded (forced)\n* ADVINCL - Included (advisory)\n* ADVEXCL - Excluded (advisory)\n"}}}}
```

## The ExtArray object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"ExtArray":{"type":"array","items":{"type":"string","description":"Extension '*.ext' or pattern 'name*'","xml":{"name":"Ext"}},"xml":{"wrapped":true}}}}}
```

## The Compression object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"Compression":{"type":"string","enum":["RAW","ZLIB","ZLIBFAST","ZLIBMID","ZLIBSLOW","LZMA","LZF","BROTLI","ZSTD"],"description":"Compression algorithm:\n* RAW - No compression\n* ZLIB - Default zlib\n* ZLIBFAST - Fast zlib\n* ZLIBMID - Medium zlib\n* ZLIBSLOW - Slow zlib\n* LZMA - LZMA\n* LZF - LZF\n* BROTLI - Brotli\n* ZSTD - Zstandard\n"}}}}
```

## The BackupRestriction object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"BackupRestriction":{"type":"array","items":{"type":"object","properties":{"ParamBackupRestrictionIntf":{"type":"string","enum":["Ethernet","Token Ring","PPP","Loopback","WiFi"],"description":"Backup only through this network interface:\n* Ethernet\n* Token Ring\n* PPP\n* Loopback\n* WiFi\n"},"ParamBackupRestrictionGW":{"type":"string","description":"Backup only through this gateway"}},"xml":{"name":"ParamBackupRestriction"}},"xml":{"wrapped":true}}}}}
```

## The BackupRestrictionSchedule object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"BackupRestrictionSchedule":{"type":"string","description":"On / off backup schedule"}}}}
```

## The EncryptionGW object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"EncryptionGW":{"type":"array","items":{"type":"string","description":"Do not encrypt when using this gateway","xml":{"name":"ParamEncryptionGW"}},"xml":{"wrapped":true}}}}}
```

## The WanGW object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"WanGW":{"type":"array","items":{"type":"string","description":"Do not use WAN mode when using this gateway","xml":{"name":"ParamWanGW"}},"xml":{"wrapped":true}}}}}
```

## The AgentAdmin object

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"components":{"schemas":{"AgentAdmin":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent"},"Name":{"type":"string","description":"Name of the agent"},"DomainID":{"type":"integer","format":"int32","description":"ID of the tenant owning the agent"},"DomainName":{"type":"string","description":"Name of the tenant owning the agent","nullable":true},"CustomRef":{"type":"boolean","description":"Is a custom ref?","default":false},"NbRef":{"type":"integer","format":"int32","description":"Number of references","default":0},"DataProfile":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the protection profile"},"Name":{"type":"string","description":"Name of the protection profile"},"Inherited":{"type":"boolean","description":"Inherited from 'HERIT' hierarchy?","default":false}}},"ServiceProfile":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the strategy profile"},"Name":{"type":"string","description":"Name of the strategy profile"},"Inherited":{"type":"boolean","description":"Inherited from 'HERIT' hierarchy?","default":false}}},"Deletion":{"type":"boolean","description":"Must be deleted?","default":false},"ServerID":{"type":"string","description":"UUID of the node (multi-server mode)","default":null},"NodeFriendlyName":{"type":"string","description":"Friendly name of the node (multi-server mode)","default":null},"SourceID":{"type":"string","description":"Source UUID (replication mode)","default":"@"},"ReplRetentionTimeMS":{"type":"integer","format":"int64","description":"Retention time in replicate server"},"PathEncoding":{"type":"integer","format":"int32","enum":[0,1,2],"description":"Path encoding code:\n* 0 - UNKNOWN_PATHENCODING (Unknown)\n* 1 - UIXLIKE_PATHENCODING (Unix like)\n* 2 - WINDOWS_PATHENCODING (Windows)\n","default":1},"SystemCateg":{"$ref":"#/components/schemas/SystemCateg"},"AgentLogs":{"type":"string","description":"Logs configuration"},"SrvDynPath":{"type":"string","description":"Server dynamic path","default":""},"LinkTS":{"type":"integer","format":"int64","description":"Timestamp of agent auto-creation / link","default":0},"AttachementArray":{"type":"array","items":{"type":"object","properties":{"Hierarchy":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the hierarchy"},"Name":{"type":"string","description":"Name of the hierarchy"}}},"Group":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the group"},"Name":{"type":"string","description":"Name of the group"},"InheritMutable":{"type":"boolean","description":"Inherited profiles can be set for this group?","default":false}}}}}},"Quotas":{"type":"object","properties":{"MaxProtObjs":{"type":"integer","format":"int64","description":"Max protected objects","nullable":true,"default":null},"MaxProtSize":{"type":"integer","format":"int64","description":"Max protected size (in B)","nullable":true,"default":null},"MaxHistObjs":{"type":"integer","format":"int64","description":"Max restorable objects","nullable":true,"default":null},"MaxHistSize":{"type":"integer","format":"int64","description":"Max restorable size (in B)","nullable":true,"default":null}}}}},"SystemCateg":{"type":"integer","format":"int32","description":"System category code:\n* OS (0x0F00)\n- 0x0100 - SYSCATEG_WINDOWS\n- 0x0200 - SYSCATEG_LINUX\n- 0x0300 - SYSCATEG_MACOSX\n- 0x0500 - SYSCATEG_HVDS\n* Flags\n- 0x0010 - SYSCATEG_SERVER\n- 0x0020 - SYSCATEG_NAS\n- 0x0040 - SYSCATEG_REMOTE_NAS\n"}}}}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/lina-7.4/lina-7.4-en/release-information/rest-api-reference/administration/models.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
