v1

latestOpenAPI 3.0.0Superhuman Developer Terms2026-08-06124404444.0 KB
Packs

Upload Pack source code.

Request a signed s3 URL to upload your Pack source code.

post/packs/{packId}/uploadSourceCode

Path parameters

packIdinteger required

ID of a Pack

Request body

payloadHashstring required

The SHA-256 hash of the image to be uploaded.

filenamestring required
packVersionstring

Example request

{
  "payloadHash": "f0e4c2f76c58916ec258f246851bea091d14d4247a2fc3e18694461b1816e13b",
  "filename": "main.ts",
  "packVersion": "1.0.0"
}

Response

The information indicating where to upload the Pack source code.

uploadUrlstring url required

A signed URL to be used for uploading a Pack source code.

uploadedPathNamestring required

An endpoint to mark the upload as complete.

headersobject required

Key-value pairs of authorization headers to include in the upload request.

Example response

{
  "uploadUrl": "https://coda-us-west-2-prod-packs-upload.s3-accelerate.amazonaws.com/packUploads/123/1/main.ts",
  "uploadedPathName": "/packs/123/versions/1/sourceCode/uploadComplete"
}