---
updatedAt: 2025-06-08T15:30:59.000Z
agentTools:
  projectIndex: https://es-developers.kommo.com/llms.txt
---

# Restaurar archivos

Este método permite restaurar archivos de la cuenta.

**¿No sabes cuál es el nombre de tu unidad?**

Consulta este [artículo corto](https://es-developers.kommo.com/reference/primeros-pasos) para averiguarlo.

**Limitaciones**\
Este método está disponible para integraciones con el alcance **Acceso a archivos**.

**Encabezado de tipo de datos cuando la solicitud es exitosa/en caso de un error**\
Content-Type: application/json.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "files-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{your-drive}.kommo.com",
      "variables": {
        "your-drive": {
          "default": "your-drive"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1.0/files/restore": {
      "post": {
        "summary": "Restaurar archivos",
        "description": "Este método permite restaurar archivos de la cuenta.",
        "operationId": "restaurar-archivos",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "RAW_BODY": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "uuid": {
                          "type": "string",
                          "description": "UUID de archivo"
                        }
                      },
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Archivos restaurados con éxito": {
                    "value": "{\n  \"_count\": 2,\n  \"_embedded\": {\n    \"files\": [\n      {\n        \"_links\": {\n          \"download\": {\n            \"href\": \"https://drive-c.kommo.com/download/367b9f38-5f01-4cea-947e-dfab47aea522/26ec7266-d953-433b-8bc5-737eb70da87a/8Z5PQ3D7wbS6Doz-svQ0zYdWXeTq8HqfSQzjM-aDY2cI5uM3wcRZ0dD8nLV8TUcX.jpg\"\n          },\n          \"download_version\": {\n            \"href\": \"https://drive-c.kommo.com/download/367b9f38-5f01-4cea-947e-dfab47aea522/26ec7266-d953-433b-8bc5-737eb70da87a/0244c437-1637-4cdf-887a-e574f55eb114/8Z5PQ3D7wbS6Doz-svQ0zYdWXeTq8HqfSQzjM-aDY2cI5uM3wcRZ0dD8nLV8TUcX.jpg\"\n          },\n          \"self\": {\n            \"href\": \"https://drive-c.kommo.com/v1.0/files/26ec7266-d953-433b-8bc5-737eb70da87a\"\n          }\n        },\n        \"created_at\": 1671871033,\n        \"created_by\": { \"type\": \"internal\", \"id\": 7758337 },\n        \"deleted_at\": null,\n        \"deleted_by\": null,\n        \"has_multiple_versions\": false,\n        \"is_trashed\": false,\n        \"metadata\": { \"extension\": \"jpg\", \"mime_type\": \"image/jpeg\" },\n        \"name\": \"8Z5PQ3D7wbS6Doz-svQ0zYdWXeTq8HqfSQzjM-aDY2cI5uM3wcRZ0dD8nLV8TUcX\",\n        \"previews\": null,\n        \"sanitized_name\": \"8Z5PQ3D7wbS6Doz-svQ0zYdWXeTq8HqfSQzjM-aDY2cI5uM3wcRZ0dD8nLV8TUcX\",\n        \"size\": 38635,\n        \"source_id\": null,\n        \"type\": \"image\",\n        \"updated_at\": 1671871033,\n        \"updated_by\": { \"type\": \"internal\", \"id\": 7758337 },\n        \"uuid\": \"26ec7266-d953-433b-8bc5-737eb70da87a\",\n        \"version_uuid\": \"0244c437-1637-4cdf-887a-e574f55eb114\"\n      },\n      {\n        \"_links\": {\n          \"download\": {\n            \"href\": \"https://drive-c.kommo.com/download/367b9f38-5f01-4cea-947e-dfab47aea522/9403badc-5690-4c7d-a999-be09f8c57566/-96.png\"\n          },\n          \"download_version\": {\n            \"href\": \"https://drive-c.kommo.com/download/367b9f38-5f01-4cea-947e-dfab47aea522/9403badc-5690-4c7d-a999-be09f8c57566/2a93e2a2-7c09-4f0d-b8ee-f0228e890307/-96.png\"\n          },\n          \"self\": {\n            \"href\": \"https://drive-c.kommo.com/v1.0/files/9403badc-5690-4c7d-a999-be09f8c57566\"\n          }\n        },\n        \"created_at\": 1671814907,\n        \"created_by\": { \"type\": \"internal\", \"id\": 2647957 },\n        \"deleted_at\": null,\n        \"deleted_by\": null,\n        \"has_multiple_versions\": false,\n        \"is_trashed\": false,\n        \"metadata\": { \"extension\": \"png\", \"mime_type\": \"image/png\" },\n        \"name\": \"_96\",\n        \"previews\": null,\n        \"sanitized_name\": \"-96\",\n        \"size\": 5230,\n        \"source_id\": null,\n        \"type\": \"image\",\n        \"updated_at\": 1671814907,\n        \"updated_by\": { \"type\": \"internal\", \"id\": 2647957 },\n        \"uuid\": \"9403badc-5690-4c7d-a999-be09f8c57566\",\n        \"version_uuid\": \"2a93e2a2-7c09-4f0d-b8ee-f0228e890307\"\n      }\n    ]\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "_count": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "_embedded": {
                      "type": "object",
                      "properties": {
                        "files": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "_links": {
                                "type": "object",
                                "properties": {
                                  "download": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string",
                                        "example": "https://drive-c.kommo.com/download/367b9f38-5f01-4cea-947e-dfab47aea522/26ec7266-d953-433b-8bc5-737eb70da87a/8Z5PQ3D7wbS6Doz-svQ0zYdWXeTq8HqfSQzjM-aDY2cI5uM3wcRZ0dD8nLV8TUcX.jpg"
                                      }
                                    }
                                  },
                                  "download_version": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string",
                                        "example": "https://drive-c.kommo.com/download/367b9f38-5f01-4cea-947e-dfab47aea522/26ec7266-d953-433b-8bc5-737eb70da87a/0244c437-1637-4cdf-887a-e574f55eb114/8Z5PQ3D7wbS6Doz-svQ0zYdWXeTq8HqfSQzjM-aDY2cI5uM3wcRZ0dD8nLV8TUcX.jpg"
                                      }
                                    }
                                  },
                                  "self": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string",
                                        "example": "https://drive-c.kommo.com/v1.0/files/26ec7266-d953-433b-8bc5-737eb70da87a"
                                      }
                                    }
                                  }
                                }
                              },
                              "created_at": {
                                "type": "integer",
                                "example": 1671871033,
                                "default": 0
                              },
                              "created_by": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "internal"
                                  },
                                  "id": {
                                    "type": "integer",
                                    "example": 7758337,
                                    "default": 0
                                  }
                                }
                              },
                              "deleted_at": {},
                              "deleted_by": {},
                              "has_multiple_versions": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "is_trashed": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "metadata": {
                                "type": "object",
                                "properties": {
                                  "extension": {
                                    "type": "string",
                                    "example": "jpg"
                                  },
                                  "mime_type": {
                                    "type": "string",
                                    "example": "image/jpeg"
                                  }
                                }
                              },
                              "name": {
                                "type": "string",
                                "example": "8Z5PQ3D7wbS6Doz-svQ0zYdWXeTq8HqfSQzjM-aDY2cI5uM3wcRZ0dD8nLV8TUcX"
                              },
                              "previews": {},
                              "sanitized_name": {
                                "type": "string",
                                "example": "8Z5PQ3D7wbS6Doz-svQ0zYdWXeTq8HqfSQzjM-aDY2cI5uM3wcRZ0dD8nLV8TUcX"
                              },
                              "size": {
                                "type": "integer",
                                "example": 38635,
                                "default": 0
                              },
                              "source_id": {},
                              "type": {
                                "type": "string",
                                "example": "image"
                              },
                              "updated_at": {
                                "type": "integer",
                                "example": 1671871033,
                                "default": 0
                              },
                              "updated_by": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "internal"
                                  },
                                  "id": {
                                    "type": "integer",
                                    "example": 7758337,
                                    "default": 0
                                  }
                                }
                              },
                              "uuid": {
                                "type": "string",
                                "example": "26ec7266-d953-433b-8bc5-737eb70da87a"
                              },
                              "version_uuid": {
                                "type": "string",
                                "example": "0244c437-1637-4cdf-887a-e574f55eb114"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Datos transmitidos inválidos. Detalles disponibles en el cuerpo de la respuesta": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Fallo en la autorización": {
                    "value": "{\n  \"title\": \"Unauthorized\",\n  \"type\": \"https://httpstatus.es/401\",\n  \"status\": 401,\n  \"detail\": \"Nombre de usuario o contraseña incorrectos\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "example": "Unauthorized"
                    },
                    "type": {
                      "type": "string",
                      "example": "https://httpstatus.es/401"
                    },
                    "status": {
                      "type": "integer",
                      "example": 401,
                      "default": 0
                    },
                    "detail": {
                      "type": "string",
                      "example": "Nombre de usuario o contraseña incorrectos"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "No tienes los derechos suficientes para llamar a este método": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```