> 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/restore-tokens.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Restore Tokens

Cross-restore and web-restore tokens

## List restore tokens

> List all restore tokens

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"RestoreTokens","description":"Cross-restore and web-restore tokens"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"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},"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"}}},"paths":{"/security_listtokens.json":{"get":{"tags":["RestoreTokens"],"summary":"List restore tokens","description":"List all restore tokens","operationId":"security_listtokens","responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"tokens":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the token"},"code":{"type":"string","description":"Token code"},"expire":{"type":"integer","format":"int64","description":"expiration date (s) ; 0 if permanent"},"nblist":{"type":"integer","format":"int32","description":"Number of listing agents using this token"},"lastlist":{"type":"integer","format":"int64","description":"Date of last listing agents using this token (s)"},"webrestore":{"type":"boolean","description":"This token is only for web restore? (obsolete)"},"type":{"type":"string","enum":["CROSSR","WEBR","GEN"],"description":"Type of token:\n* CROSSR - Cross-restore\n* WEBR - Web-restore\n* GEN - Generic\n"},"domainname":{"type":"string","description":"Name of the tenant owning the token ('All tenants' view only)"},"agents":{"type":"array","description":"List of agents allowed to be accessed using this token","items":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the agent"},"name":{"type":"string","description":"Admin name of the agent"},"valid":{"type":"boolean","description":"Does the ID/name correspond to an actual agent?"},"nbuses":{"type":"integer","format":"int32","description":"Number of access of this agent using this token"},"lastuse":{"type":"integer","format":"int64","description":"Date of last access of this agent using this token (s)"}}}},"groups":{"type":"array","description":"List of groups whom agents are allowed to be accessed using this token","items":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the group"},"name":{"type":"string","description":"Admin name of the group"},"valid":{"type":"boolean","description":"Does the ID/name correspond to an actual group?"},"nbuses":{"type":"integer","format":"int32","description":"Number of access of this group using this token"},"lastuse":{"type":"integer","format":"int64","description":"Date of last access of this group using this token (s)"}}}}}}},"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}}}}}}}}}}
```

## Create a new restore token

> Create a new crestore token

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"RestoreTokens","description":"Cross-restore and web-restore tokens"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"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},"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"}}},"paths":{"/security_newtoken.json":{"post":{"tags":["RestoreTokens"],"summary":"Create a new restore token","description":"Create a new crestore token","operationId":"security_newtoken","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["AgentArray"],"properties":{"ValidityTime":{"type":"integer","format":"int64","description":"Validity time (ms) ; 0 if permanent","default":0},"WebRestore":{"type":"integer","enum":[0,1],"description":"Create a web restore token? (obsolete - 0/1)","default":0},"Type":{"type":"string","enum":["CROSSR","WEBR","GEN"],"description":"Type of token:\n* CROSSR - Cross-restore\n* WEBR - Web-restore\n* GEN - Generic\n"},"AgentArray":{"type":"array","items":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent (0 for universal token)"},"Name":{"type":"string","description":"Admin name of the agent ('*' for universal token)"}},"xml":{"name":"Agent"}},"xml":{"wrapped":true}},"GroupArray":{"type":"array","items":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the group"},"Name":{"type":"string","description":"Admin name of the group"}},"xml":{"name":"Group"}},"xml":{"wrapped":true}}},"xml":{"name":"Params"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the new token"},"code":{"type":"string","description":"Code of the new token"}}},"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}}}}}}}}}}
```

## Delete a restore token

> Delete a restore token

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"RestoreTokens","description":"Cross-restore and web-restore tokens"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"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"}}},"paths":{"/security_deletetoken.json":{"post":{"tags":["RestoreTokens"],"summary":"Delete a restore token","description":"Delete a restore token","operationId":"security_deletetoken","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["ID"],"properties":{"ID":{"type":"integer","format":"int32","description":"ID of the token"}},"xml":{"name":"Params"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}}}
```


---

# 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/restore-tokens.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.
