# CodePen POST to Prefill API

**Canonical:** https://apis.io/apis/codepen/post-to-prefill/  
**Provider:** CodePen — https://apis.io/providers/codepen/  
**Base URL:** https://codepen.io/pen/define/  
**Documentation:** https://blog.codepen.io/documentation/prefill/

CodePen POST to Prefill API is one of 4 APIs that [CodePen](https://apis.io/providers/codepen/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include Front-End Development and Developer Tools. The published artifact set on APIs.io includes API documentation.

HTTP POST endpoint that accepts JSON-encoded code and configuration and opens a new (unsaved) Pen in the CodePen editor pre-populated with that content. Supports HTML, CSS, and JS content fields, preprocessor choices, external resources, and editor layout. No authentication is required.

## Machine-readable artifacts (1)

- **Documentation** — https://blog.codepen.io/documentation/prefill/

## Other CodePen APIs (3)

- [CodePen oEmbed API](https://apis.io/apis/codepen/oembed/)
- [CodePen Embed API](https://apis.io/apis/codepen/embed/)
- [CodePen Prefill Embeds API](https://apis.io/apis/codepen/prefill-embeds/)

## Tags

Front-End Development, Developer Tools

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/codepen/post-to-prefill/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/codepen/.
