Publishing
Declare files, upload the missing ones, finalize the version and follow long operations.
On this page
Concepts: Publishing
Endpoint summaries come from the OpenAPI document.
POST/v1/publish
Declare files for a new version; returns upload URLs for missing files. Without credentials a new ownerless project is created and its project key is returned once
- Operation (MCP tool)
publish- Authentication
- API key (pfa_…)Project key (pfc_…)No credentials
Parameters
Request body
application/jsonPublishRequestRequired
Responses
Related error codes
Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.
- access_change_forbidden
- anonymous_project_limit
- config_file_not_allowed
- content_blocked
- docs_unavailable
- file_too_large
- files_invalid
- files_required
- forbidden
- hosting_unavailable
- idempotency_key_in_progress
- idempotency_key_reused
- included_usage_exhausted
- not_found
- path_blocked
- path_case_conflict
- path_duplicate
- path_invalid
- path_too_long
- path_traversal
- payload_too_large
- plan_limit_projects
- project_name_invalid
- project_name_taken
- project_name_unavailable
- project_taken_down
- rate_limited
- sha256_invalid
- size_invalid
- spend_limit_reached
- team_suspended
- too_many_files
- unauthorized
- validation_error
- version_too_large
PUT/v1/uploads/{token}
Upload one file's bytes to a signed upload URL
- Operation (MCP tool)
uploadFile- Authentication
- Signed URL from an earlier response
Parameters
Request body
application/octet-streamstringRequired
Responses
Related error codes
Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.
POST/v1/versions/{version}/finalize
Finalize uploads and deploy; waits until ready (up to `wait` seconds)
- Operation (MCP tool)
finalizeVersion- Authentication
- API key (pfa_…)OAuth token (pfo_…)Project key (pfc_…)
Parameters
Responses
Related error codes
Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.
GET/v1/operations/{operation}
Status of a long-running operation
- Operation (MCP tool)
getOperation- Authentication
- API key (pfa_…)OAuth token (pfo_…)Project key (pfc_…)
Parameters
Responses
Related error codes
Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.