---
agentTools:
  projectIndex: https://uspacy.readme.io/llms.txt
---

# Get removed item details

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "CRM service",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://{domain}.uspacy.ua",
      "description": "Ukrainian server"
    },
    {
      "url": "https://{domain}.uspacy.eu",
      "description": "EU server"
    },
    {
      "url": "https://{domain}.uspacy.com.br",
      "description": "Brazilian server"
    },
    {
      "url": "https://{domain}.uspacy.com",
      "description": "International server"
    }
  ],
  "tags": [
    {
      "name": "trash",
      "description": "Recycle bin for deleted CRM items"
    }
  ],
  "paths": {
    "/crm/v1/entities/{entity}/trash/{itemId}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/entity"
        },
        {
          "$ref": "#/components/parameters/itemId"
        }
      ],
      "get": {
        "tags": [
          "trash"
        ],
        "summary": "Get removed item details",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CrmEntity"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "UnauthorizedError": {
        "description": "Access token is missing or invalid"
      }
    },
    "parameters": {
      "entity": {
        "name": "entity",
        "in": "path",
        "description": "Entity table name",
        "required": true,
        "schema": {
          "type": "string",
          "enum": [
            "leads",
            "deals",
            "contacts",
            "companies"
          ]
        },
        "example": "leads"
      },
      "itemId": {
        "name": "itemId",
        "in": "path",
        "description": "Item ID",
        "required": true,
        "schema": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "schemas": {
      "multipleEmail": {
        "type": "array",
        "items": {
          "properties": {
            "id": {
              "type": "string",
              "example": "01gdnpddf5xgzxqvcn4x83mc2s"
            },
            "type": {
              "type": "string",
              "example": "main"
            },
            "value": {
              "type": "string",
              "example": "stark@gmail.com"
            },
            "main": {
              "type": "boolean",
              "example": true
            }
          }
        },
        "example": [
          {
            "id": "",
            "type": "main",
            "value": "stark@gmail.com",
            "main": true
          },
          {
            "id": "01gdnpddf5xgzxqvcn4x83mc2s",
            "type": "work",
            "value": "benner@gmail.com",
            "main": false
          }
        ]
      },
      "Phone": {
        "type": "array",
        "items": {
          "properties": {
            "id": {
              "type": "string",
              "example": "01gdnpddf5xgzxqvcn4x83mc2s"
            },
            "type": {
              "type": "string",
              "enum": [
                "WORK",
                "MOBILE",
                "HOME"
              ],
              "example": "WORK"
            },
            "value": {
              "type": "string",
              "example": "+380123456789"
            },
            "code": {
              "type": "string",
              "example": "+380"
            }
          }
        }
      },
      "SocialMedia": {
        "type": "array",
        "items": {
          "properties": {
            "id": {
              "type": "string",
              "example": "01gdnpddf5xgzxqvcn4x83bn2s"
            },
            "type": {
              "type": "string",
              "example": "facebook"
            },
            "link": {
              "type": "string",
              "example": "https://www.facebook.com"
            }
          }
        }
      },
      "CrmEntity": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "example": "Lead example"
          },
          "owner": {
            "type": "integer",
            "example": 1
          },
          "source": {
            "type": "string",
            "example": "shop"
          },
          "email": {
            "$ref": "#/components/schemas/multipleEmail"
          },
          "phone": {
            "$ref": "#/components/schemas/Phone"
          },
          "messengers": {
            "$ref": "#/components/schemas/SocialMedia"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 105,
      "1": 145,
      "2": 108,
      "3": 28,
      "4": 165,
      "5": 162,
      "6": 20,
      "7": 148,
      "8": 43,
      "9": 242,
      "10": 235,
      "11": 56
    }
  }
}
```