Assets

Get an Asset

One Asset, with a text Asset's content.

get/v2/assets/{id}

Request

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

Response

The Asset with its content.

created_atstring date-time required
filenamestring required
idstring required
is_binaryboolean required

Text Assets are those with a text extension: SVG, HTML/HAML/Pug/Slim/Markdown, CSS/Sass/SCSS/Less/Stylus, JS/JSX/TS/TSX/CoffeeScript/JSON/source maps, Vue, GLSL and plain text. Everything else is binary.

updated_atstring date-time required
urlstring uri required
contentstring nullable required

A text Asset's content; null for a binary one, whose bytes are served at url.

Changes

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