Trash

List the trash

The key owner's Pens and Collections in the trash, newest deletion first. Each is restorable until expires_at, three days after deletion.

get/v2/trash

Request

  • Base URL
    https://api.codepen.io
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Query parameters

pageinteger

The page, from 1.

per_pageinteger

Items per page. A value over 100 is reduced to 100, not refused.

sort'created' | 'updated'

The order: by creation or update time.

direction'asc' | 'desc'

desc, the default, lists newest first.

Response

A page of trash items.

deleted_atstring date-time required
expires_atstring date-time required
idstring required
item_idstring required

The Pen's or Collection's id, for the restore endpoints.

titlestring required
type'Pen' | 'Collection' required

Changes

No recorded changes to this operation across all 1 revision of this API.