# List all deleted conversation IDs

`GET /conversations/deleted`

> This is a subset of the full specification, limited to the `GET /conversations/deleted` operation.
>
> You can find the full specification here: /_bundle/docs/references/@2.17/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.17'
  description: This is a subset of the full specification, limited to the `GET /conversations/deleted` operation.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
tags:
  - name: Conversations
    description: Everything about your Conversations
    externalDocs:
      description: What is a conversation?
      url: https://www.intercom.com/help/en/articles/4323904-what-is-a-conversation
paths:
  /conversations/deleted:
    get:
      summary: List all deleted conversation IDs
      parameters:
        - name: Intercom-Version
          in: header
          schema:
            $ref: '#/components/schemas/intercom_version'
        - name: page
          in: query
          required: false
          description: The page of results to fetch. Defaults to first page
          example: 1
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          description: How many results per page
          schema:
            type: integer
            default: 20
            maximum: 60
        - name: order
          in: query
          required: false
          description: '`asc` or `desc`. Returns the conversation IDs in ascending or descending order. Defaults to desc'
          example: desc
          schema:
            type: string
      tags:
        - Conversations
      operationId: listDeletedConversationIds
      description: |-
        List all deleted conversation IDs.

        **Pagination**

        You can use pagination to limit the number of results returned. The default is `20` results per page. You can navigate to next pages using the `page` param.
      responses:
        '200':
          description: View all deleted conversation IDs
          content:
            application/json:
              examples:
                successful:
                  value:
                    type: conversations.list
                    total_count: 4
                    pages:
                      type: pages
                      next: https://api.intercom.io/conversations/deleted?per_page=2&order=desc&page=2
                      page: 1
                      per_page: 2
                      total_pages: 2
                    conversations:
                      - type: conversation
                        id: '512'
                        metrics_retained: false
                        deleted_at: 1734537460
                      - type: conversation
                        id: '513'
                        metrics_retained: true
                        deleted_at: 1734537400
              schema:
                $ref: '#/components/schemas/deleted_conversation_list'
        '400':
          description: Resource not available
          content:
            application/json:
              examples:
                Resource not available:
                  value:
                    type: error.list
                    request_id: 7a80b950-b392-499f-85db-ea7c6c424d37
                    errors:
                      - code: intercom_version_invalid
                        message: Requested resource is not available in current API version
              schema:
                $ref: '#/components/schemas/error'
        '401':
          description: Unauthorized
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    type: error.list
                    request_id: 310f55b0-2660-43e8-bed4-7e82b2f40920
                    errors:
                      - code: unauthorized
                        message: Access Token Invalid
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: API plan restricted
          content:
            application/json:
              examples:
                API plan restricted:
                  value:
                    type: error.list
                    request_id: 58d2b7e4-1f93-4a60-9c05-4e8b3a6d0c17
                    errors:
                      - code: api_plan_restricted
                        message: Active subscription needed.
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    deleted_conversation_item:
      title: Conversation
      type: object
      x-tags:
        - Conversation
      description: A deleted conversation record containing its ID, metrics retained status and deletion timestamp.
      properties:
        type:
          type: string
          description: String representing the object's type. Always has the value `conversation`.
          example: conversation
        id:
          type: string
          description: The ID of the deleted conversation.
          example: '512'
        metrics_retained:
          type: boolean
          description: Whether reporting metrics are retained for this conversation ID
          example: true
        deleted_at:
          type: integer
          format: date-time
          description: The time when the conversation was deleted.
          example: 1734537745
    deleted_conversation_list:
      title: Conversations
      type: object
      description: A paginated list of deleted conversation IDs.
      properties:
        type:
          type: string
          description: String representing the object's type. Always has the value `conversations.list`.
          example: conversations.list
        conversations:
          type: array
          description: The list of deleted conversation IDs.
          items:
            $ref: '#/components/schemas/deleted_conversation_item'
        total_count:
          type: integer
          description: Total number of items available.
          example: 10
        pages:
          $ref: '#/components/schemas/pages_link'
    error:
      type: object
      title: Error
      description: The API will return an Error List for a failed request, which will contain one or more Error objects.
      properties:
        type:
          type: string
          description: The type is error.list
          example: error.list
        request_id:
          type: string
          nullable: true
          format: uuid
          description: ''
          example: f93ecfa8-d08a-4325-8694-89aeb89c8f85
        errors:
          type: array
          description: An array of one or more error objects
          items:
            properties:
              code:
                anyOf:
                  - type: string
                  - type: integer
                description: A string indicating the kind of error, used to further qualify the HTTP response code. A few request validation errors send an HTTP status code as an integer here instead, for example `422`.
                example: unauthorized
              message:
                type: string
                nullable: true
                description: Optional. Human readable description of the error.
                example: Access Token Invalid
              data:
                type: object
                nullable: true
                additionalProperties: true
                description: Optional. Extra detail about the error, for example `required_permissions` on a 403 `action_forbidden` error.
                example:
                  required_permissions:
                    - read_conversations
            required:
              - code
      required:
        - type
        - errors
    intercom_version:
      description: Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.
      type: string
      example: '2.17'
      enum:
        - '1.0'
        - '1.1'
        - '1.2'
        - '1.3'
        - '1.4'
        - '2.0'
        - '2.1'
        - '2.2'
        - '2.3'
        - '2.4'
        - '2.5'
        - '2.6'
        - '2.7'
        - '2.8'
        - '2.9'
        - '2.10'
        - '2.11'
        - '2.12'
        - '2.13'
        - '2.14'
        - '2.15'
        - '2.16'
        - '2.17'
    pages_link:
      title: Pagination Object
      type: object
      description: |
        The majority of list resources in the API are paginated to allow clients to traverse data over multiple requests.

        Their responses are likely to contain a pages object that hosts pagination links which a client can use to paginate through the data without having to construct a query. The link relations for the pages field are as follows.
      properties:
        type:
          type: string
          example: pages
          enum:
            - pages
        page:
          type: integer
          example: 1
        next:
          type: string
          format: uri
          description: A link to the next page of results. Omitted or `null` on the last page, depending on the list. Some lists never include `next` or `prev`, so compare `page` with `total_pages` to tell whether more pages remain.
          nullable: true
        prev:
          type: string
          format: uri
          description: A link to the previous page of results. Omitted on the first page.
          nullable: true
        per_page:
          type: integer
          example: 50
        total_pages:
          type: integer
          example: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
