Upload pack contents as a multipart archive
const url = 'https://your-org.evershell.ai/v1/packs/upload';const form = new FormData();form.append('archive', 'file');form.append('visibility', 'org');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-org.evershell.ai/v1/packs/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form archive=@file \ --form visibility=orgPermissions: caps:write.
Streams a .tar.gz of the pack directory (containing
pack.yaml plus content files). The CP builds the OCI
image internally and creates the pack record. Use this
when you don’t have a registry to push to first.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Tar.gz of the pack directory.
Responses
Section titled “ Responses ”Created
object
Owning org id. Redacted to absent on packs the caller
doesn’t own (platform-shipped + foreign community
packs) — use owned to distinguish.
Caps.yaml fragment shipped by the pack
Comma-separated names of related packs (display hint).
Where the image was pushed from (upload, image_ref, clone).
True when the pack is org-scoped to the caller’s org.
Example
{ "id": "pack_01HZ", "version": "1.2.0", "tier": "recommended", "visibility": "org"}Validation failure
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}State conflict (in-use cascade guard, last-owner, etc.)
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}Tenant is past_due, decommissioning, or trial-expired
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}