post
https://app.coderpad.io/api/pads
Creates a pad owned by you, or by another user of your organization with user_email. Creating a pad counts towards your pad quota.
Fields you omit use your account defaults (privacy, code execution, language) and your organization's AI Assist setting.
A pad starts with one of:
- A question from your question bank (
question_id). - A single-file language: set
languageto the language key and optionally send the starter code incontents. - A project template (for example
multifile_pythonorreact): setlanguageto the template slug. The pad opens on the template's files, or on your own files sent either:- in
file_contents: the files replace the template files with the same path or are added, and the other template files are kept."deleted": trueremoves a template file. - as a zip archive in
zip_file(multipart request): the archive replaces all the template files, except the template's.cpadconfiguration file, which is kept unless the archive has one. A single enclosing folder is removed from the paths.
- in
These cannot be combined: question_id excludes contents, file_contents and zip_file; a project template excludes contents; a single-file language excludes file_contents and zip_file.
A project template pad has a null language and contents in responses; its files are available through pad_environment_ids and GET /pad_environments/{id}.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…