Zoho recycle bin API

The recycle bin API from Zoho — 5 operation(s) for recycle bin.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/v1/recycleBin/restore Restore deleted records from the recycle bin · Restore deleted resources #
Ask an LLM
“How do I bring back records I deleted from the recycle bin?”
“Can I restore a record along with its child records?”
Tell an agent
Restore deleted records {ids}.
Restore {ids} from the recycle bin with child records {isChildNeedToBeRestored}.
POST /api/v1/recycleBin/restoreAll Restore every record in the recycle bin · Restore all resources from Recycle Bin #
Ask an LLM
“How do I restore all records from the recycle bin at once?”
“Is there a way to empty the recycle bin by restoring everything?”
Tell an agent
Restore all records in the recycle bin.
Bring back every deleted record from the recycle bin.
GET /api/v1/recycleBin List deleted records in the recycle bin · List deleted resources #
Ask an LLM
“Which records are sitting in the recycle bin?”
“Can I list recycle bin records for one module?”
Tell an agent
List deleted records in the recycle bin.
Show {limit} recycle bin records for module {moduleId}.
POST /api/v1/recycleBin/delete Permanently delete records from the recycle bin · Delete resources from Recycle Bin #
Ask an LLM
“How do I permanently delete records from the recycle bin?”
“Can I remove child records when deleting recycle bin entries?”
Tell an agent destructive · confirm first
Permanently delete records {ids} from the recycle bin.
Remove {ids} from the recycle bin, including child records.
POST /api/v1/recycleBin/deleteAll Permanently delete everything in the recycle bin · Delete all resources from Recycle Bin #
Ask an LLM
“How do I empty the recycle bin permanently?”
“Is there a way to clear all recycle bin records at once?”
Tell an agent destructive · confirm first
Permanently delete all records in the recycle bin.
Empty the recycle bin completely.

Documentation

Specifications

Code Examples

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/zoho:zoho-recycle-bin-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

zoho-recycle-bin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Recyclebin API
  version: 1.0.0
tags:
- name: recycle bin
paths:
  /api/v1/recycleBin/restore:
    post:
      tags:
      - recycle bin
      summary: Restore deleted resources
      description: This API restores the deleted resources specified in the API request. Additionally, the parent resources are also restored.
      operationId: restoreEntities
      parameters:
      - $ref: ./Common.json#/components/parameters/orgId
      requestBody:
        $ref: '#/components/requestBodies/restoreEntities'
      responses:
        '422':
          $ref: ./Common.json#/components/responses/invalidDataErrorResponse
        '401':
          $ref: ./Common.json#/components/responses/unauthorizedErrorResponse
        '200':
          $ref: ./MassActionResponse.json#/components/responses/massActionListResponse
      security:
      - iam-oauth2-schema:
        - Desk.settings.UPDATE
      x-audience:
      - external-public
  /api/v1/recycleBin/restoreAll:
    post:
      tags:
      - recycle bin
      summary: Restore all resources from Recycle Bin
      description: This API restores all deleted resources from the Recycle Bin.
      operationId: restoreAllEntities
      parameters:
      - $ref: ./Common.json#/components/parameters/orgId
      responses:
        '422':
          $ref: ./Common.json#/components/responses/multipleUnprocessEntityResponse
        '202':
          $ref: ./Common.json#/components/responses/emptyResponse
      security:
      - iam-oauth2-schema:
        - Desk.settings.UPDATE
      x-audience:
      - external-public
  /api/v1/recycleBin:
    get:
      tags:
      - recycle bin
      summary: List deleted resources
      description: This API lists a particular number of deleted resources, based on the limit specified.
      operationId: getRecycleBinEntities
      parameters:
      - name: include
        in: query
        description: 'Additional information related to the resources. Values allowed are: @department@ and @deletedBy@. You can pass multiple values by separating them with commas in the API request.'
        required: false
        style: simple
        explode: true
        schema:
          type:
          - 'null'
          - array
          description: 'Additional information related to the resources. Values allowed are: @department@ and @deletedBy@. You can pass multiple values by separating them with commas in the API request.'
          items:
            type:
            - string
            - 'null'
            enum:
            - deletedBy
            - department
            maxLength: 100
            minLength: 0
          uniqueItems: true
      - name: departmentId
        in: query
        description: ID of the department to which the deleted resources belong.
        required: false
        style: form
        explode: true
        schema:
          type:
          - string
          - 'null'
          - integer
          format: int64
          description: ID of the department to which the deleted resources belong.
          pattern: ([0-9]+)
      - name: limit
        in: query
        description: Number of resources to list. The default value is 10 and the maximum value supported is 100.
        required: false
        style: form
        explode: true
        schema:
          type:
          - string
          - 'null'
          - integer
          format: int32
          description: Number of resources to list. The default value is 10 and the maximum value supported is 100.
          maximum: 50
          minimum: 1
          pattern: ([0-9]+)
      - name: from
        in: query
        description: Index number, starting from which the resources must be fetched.
        required: false
        style: form
        explode: true
        schema:
          type:
          - string
          - 'null'
          - integer
          format: int32
          description: Index number, starting from which the resources must be fetched.
          pattern: ([0-9]+)
      - name: moduleId
        in: query
        description: ID of the module to which the deleted resources belong.
        required: false
        style: form
        explode: true
        schema:
          type:
          - string
          - 'null'
          - integer
          format: int64
          description: ID of the module to which the deleted resources belong.
          pattern: ([0-9]+)
      - $ref: ./Common.json#/components/parameters/orgId
      responses:
        '422':
          $ref: ./Common.json#/components/responses/multipleUnprocessEntityResponse
        '200':
          $ref: '#/components/responses/getRecycleBinEntities'
      security:
      - iam-oauth2-schema:
        - Desk.settings.READ
      x-audience:
      - external-public
  /api/v1/recycleBin/delete:
    post:
      tags:
      - recycle bin
      summary: Delete resources from Recycle Bin
      description: This API permanently deletes the resources specified in the API request. Additionally, the child resources are also permanently deleted.
      operationId: deleteEntities
      parameters:
      - $ref: ./Common.json#/components/parameters/orgId
      requestBody:
        $ref: '#/components/requestBodies/deleteEntities'
      responses:
        '422':
          $ref: ./Common.json#/components/responses/invalidDataErrorResponse
        '401':
          $ref: ./Common.json#/components/responses/unauthorizedErrorResponse
        '200':
          $ref: ./MassActionResponse.json#/components/responses/massActionListResponse
      security:
      - iam-oauth2-schema:
        - Desk.settings.UPDATE
      x-audience:
      - external-public
  /api/v1/recycleBin/deleteAll:
    post:
      tags:
      - recycle bin
      summary: Delete all resources from Recycle Bin
      description: This API permanently deletes all resources from the Recycle Bin.
      operationId: deleteAllEntities
      parameters:
      - $ref: ./Common.json#/components/parameters/orgId
      responses:
        '422':
          $ref: ./Common.json#/components/responses/multipleUnprocessEntityResponse
        '202':
          $ref: ./Common.json#/components/responses/emptyResponse
      security:
      - iam-oauth2-schema:
        - Desk.settings.UPDATE
      x-audience:
      - external-public
components:
  requestBodies:
    deleteEntities:
      content:
        application/json:
          schema:
            type:
            - 'null'
            - object
            additionalProperties: false
            properties:
              ids:
                $ref: ./Recyclebin.json#/components/schemas/ids
            required:
            - ids
          examples:
            Valid requestBody Definitions:
              value:
                ids:
                - '232323'
                - '3213123'
                - '40000000561232'
                - '4000000056156'
    restoreEntities:
      content:
        application/json:
          schema:
            type:
            - 'null'
            - object
            additionalProperties: false
            properties:
              isChildNeedToBeRestored:
                type:
                - boolean
                - 'null'
              ids:
                $ref: ./Recyclebin.json#/components/schemas/ids
            required:
            - ids
          examples:
            Valid requestBody Definitions:
              value:
                isChildNeedToBeRestored: 'true'
                ids:
                - '232323'
                - '400000005634'
                - '232'
                - '4000000056156'
  responses:
    getRecycleBinEntities:
      description: getRecycleBinEntities template definitions
      content:
        application/json:
          schema:
            allOf:
            - type: object
              properties:
                data:
                  type: array
                  items:
                    type: object
                    properties:
                      department:
                        type:
                        - 'null'
                        - object
                        additionalProperties: false
                        maxProperties: 2
                        minProperties: 2
                        properties:
                          name:
                            type:
                            - string
                            - 'null'
                            maxLength: 200
                            minLength: 0
                            pattern: ([0-9a-zA-Z_\-\.\$@\?\,\:\'\/\!\P{InBasicLatin}\s])+
                          id:
                            type:
                            - string
                            - 'null'
                            - integer
                            format: int64
                            pattern: ([0-9]+)
                        required:
                        - id
                        - name
                      deletedBy:
                        type:
                        - 'null'
                        - object
                        additionalProperties: false
                        maxProperties: 5
                        minProperties: 5
                        properties:
                          photoURL:
                            type:
                            - string
                            - 'null'
                            maxLength: 200
                            minLength: 0
                            pattern: (^(ht|f)tp(s?)\://[-.\w]*(/?)([a-zA-Z0-9\-\.\?\,\:\'/\\+=&%\$#_@]*)?$)
                          firstName:
                            type:
                            - string
                            - 'null'
                            maxLength: 50
                            minLength: 0
                          lastName:
                            type:
                            - string
                            - 'null'
                            maxLength: 50
                            minLength: 0
                          id:
                            type:
                            - string
                            - 'null'
                            - integer
                            format: int64
                            pattern: ([0-9]+)
                          email:
                            type:
                            - string
                            - 'null'
                            maxLength: 100
                            minLength: 0
                            pattern: ^[a-zA-Z0-9\_]([a-zA-Z0-9\_\+\-\.\'&]*)@(?=.{4,256}$)(([a-zA-Z0-9]+)(([\-\_]*[a-zA-Z0-9])*)[\.])+[a-zA-Z]{2,22}$
                        required:
                        - email
                        - firstName
                        - id
                        - lastName
                        - photoURL
            - type:
              - 'null'
              - object
              additionalProperties: false
              properties:
                data:
                  $ref: ./Recyclebin.json#/components/schemas/data
              required:
              - data
          examples:
            Valid responses Definitions:
              value:
                data:
                - displayName: Sample display name
                  departmentId: null
                  deletedById: '4000000000059'
                  id: '4000000046163'
                  type: Attachments
                  deletedTime: '2020-06-21T16:16:16.000Z'
                - displayName: Sample display name
                  departmentId: '4000000013244'
                  deletedById: '4000000000059'
                  id: '4000000046093'
                  type: Calls
                  deletedTime: '2020-06-21T16:16:16.000Z'
                - displayName: Sample display name
                  departmentId: '4000000013244'
                  deletedById: '4000000000059'
                  id: '4000000017184'
                  type: Tickets
                  deletedTime: '2020-06-21T16:16:16.000Z'
                - displayName: Sample display name
                  departmentId: '4000000013244'
                  deletedById: '4000000000059'
                  id: '4000000046029'
                  type: Tickets
                  deletedTime: '2020-06-21T16:16:16.000Z'
                - displayName: Sample display name
                  departmentId: null
                  deletedById: '4000000000059'
                  id: '4000000019005'
                  type: Contacts
                  deletedTime: '2020-06-21T16:16:16.000Z'
                - displayName: Sample display name
                  departmentId: '4000000013244'
                  deletedById: '4000000000059'
                  id: '4000000046131'
                  type: Events
                  deletedTime: '2020-06-21T16:16:16.000Z'
                - displayName: Sample display name
                  departmentId: '4000000013244'
                  deletedById: '4000000000059'
                  id: '4000000046111'
                  type: Tasks
                  deletedTime: '2020-06-21T16:16:16.000Z'
                - displayName: Sample display name
                  departmentId: '4000000013244'
                  deletedById: '4000000000059'
                  id: '4000000046153'
                  type: Time Entry
                  deletedTime: '2020-06-21T16:16:16.000Z'
  securitySchemes:
    iam-oauth2-schema:
      $ref: ./Common.json#/components/securitySchemes/iam-oauth2-schema
x-entity: Recyclebin