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

# Obtener entidades asociadas a un archivo

Este método permite obtener las entidades asociadas a un archivo.

**Limitaciones**\
El método está disponible de acuerdo con los permisos del usuario.

**Encabezado de tipo de datos cuando la solicitud es exitosa**\
Content-Type: application/hal+json.

**Encabezado de tipo de datos en caso de un error**\
Content-Type: application/problem+json.

## Parámetros de respuesta

El método retorna un objeto que contiene el UUID del archivo y un arreglo de las entidades asociadas a él.

<HTMLBlock>{`
<table class="term_table">
<thead>
<tr>
<th>Parámetro</th>
<th>Tipo de dato</th>
<th>Descripción</th>
</tr>
</thead>
<tbody>
<tr>
<td>file_uuid</td>
<td>string</td>
<td>UUID del archivo</td>
</tr>
<tr>
<td>entities</td>
<td>array</td>
<td>Arreglo de entidades asociadas al archivo</td>
</tr>
<tr>
<td>entities[0]</td>
<td>object</td>
<td>Entidad asociada al archivo</td>
</tr>
</tbody>
</table>
`}</HTMLBlock>

# 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": {
    "/api/v4/files/{file_uuid}/links": {
      "get": {
        "summary": "Obtener entidades asociadas a un archivo",
        "description": "Este método permite obtener las entidades asociadas a un archivo.",
        "operationId": "obtener-entidades-asociadas-a-archivo",
        "parameters": [
          {
            "name": "file_uuid",
            "in": "path",
            "description": "UUID del archivo",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Solicitud exitosa": {
                    "value": "{\n  \"file_uuid\": \"5ef222cd-bce4-4df8-8466-3dee7d16e70d\",\n  \"entities\": [\n    {\n      \"id\": 22859207,\n      \"name\": \"Lead #22859207\",\n      \"created_by\": 0,\n      \"main_user_id\": 7758337,\n      \"date_create\": 1669372247,\n      \"price\": 20,\n      \"pipeline_id\": 3858604,\n      \"date_update\": 1672060100,\n      \"updated_by\": 7758337,\n      \"entity_type\": \"leads\",\n      \"status_id\": 37066879,\n      \"closest_task_at\": null\n    },\n    {\n      \"id\": 19229439,\n      \"name\": \"Lead #19229439\",\n      \"created_by\": 0,\n      \"main_user_id\": 7758337,\n      \"date_create\": 1651773549,\n      \"price\": 20,\n      \"pipeline_id\": 3858604,\n      \"date_update\": 1662404148,\n      \"updated_by\": null,\n      \"entity_type\": \"leads\",\n      \"status_id\": 37066876,\n      \"closest_task_at\": null\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "file_uuid": {
                      "type": "string",
                      "example": "5ef222cd-bce4-4df8-8466-3dee7d16e70d"
                    },
                    "entities": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 22859207,
                            "default": 0
                          },
                          "name": {
                            "type": "string",
                            "example": "Lead #22859207"
                          },
                          "created_by": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "main_user_id": {
                            "type": "integer",
                            "example": 7758337,
                            "default": 0
                          },
                          "date_create": {
                            "type": "integer",
                            "example": 1669372247,
                            "default": 0
                          },
                          "price": {
                            "type": "integer",
                            "example": 20,
                            "default": 0
                          },
                          "pipeline_id": {
                            "type": "integer",
                            "example": 3858604,
                            "default": 0
                          },
                          "date_update": {
                            "type": "integer",
                            "example": 1672060100,
                            "default": 0
                          },
                          "updated_by": {
                            "type": "integer",
                            "example": 7758337,
                            "default": 0
                          },
                          "entity_type": {
                            "type": "string",
                            "example": "leads"
                          },
                          "status_id": {
                            "type": "integer",
                            "example": 37066879,
                            "default": 0
                          },
                          "closest_task_at": {}
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Datos incorrectos": {
                    "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}\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 lso 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
}
```