ghl_clientportal_get_project_publish_job
Reads a project's publish job progress; poll until status is succeeded to get the live publishedUrl, or failed to see the error reason.
Instructions
CLIENT PORTAL AI BUILDER API (/ai-builder-api) — side-effecting: opens/edits sandboxes and starts builds. Edit a sandbox only once sandbox.status is ready; checkpoint after edits and before starting the run that builds them; 409 means a cloud build owns the sandbox or it is not running.
Read a publish job's progress.
Reports a publish job's progress. Poll it every few seconds until status is succeeded, when publishedUrl is the live site, or failed, when error says why.
Endpoint: GET /ai-builder-api/projects/{projectId}/infra/publish-jobs/{publishJobId} (Version header: v3; source: v3/clientportal-ai-v3.json)
OAuth scopes: clientportal-ai.readonly
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The project. | |
| publishJobId | Yes | The publish job promote-to-production returned. |