1. Requests, Preview
AiQ Cortex
  • Invitations
    • List organization invitations
      GET
    • Create invitation
      POST
    • Revoke invitation
      DELETE
    • Validate invitation token
      GET
    • Resend invitation
      POST
    • Accept invitation
      POST
  • Notifications
    • List notifications
      GET
    • Mark all notifications as read
      PUT
    • Mark notification as read
      PUT
  • Organizations
    • List organizations
      GET
    • Get organization details
      GET
    • Update organization
      PUT
    • Get organization usage
      GET
    • List organization users
      GET
  • Projects
    • List projects
      GET
    • Get project details
      GET
    • Update project
      PUT
    • Get project configuration
      GET
  • Requests
    • Get request details
      GET
    • Update request
      PUT
    • List project requests
      GET
    • Create request
      POST
    • delete-requests-{id}-interview-reset
      DELETE
    • Assign user to request
      POST
  • Requests, Activity
    • List request activity
    • Add activity entry
  • Requests, Development
    • Cancel development session
    • Start development session
    • Get development session status
    • Stream development session progress
    • Sync session status from Cursor
  • Requests, Interview
    • Get interview conversation
    • Complete interview
    • Send interview message
    • Stream interview response
  • Requests, Preview
    • Trigger preview deployment
      POST
    • Get preview deployment info
      GET
    • Get detailed preview deployment status
      GET
  • Requests, Workflow
    • Get available transitions
    • Trigger workflow transition
  • Users
    • Get current user
    • Update current user
  • Profile
    • GET /api/profile
    • PATCH /api/profile
  • Api-keys
    • GET /api/api-keys
    • POST /api/api-keys
    • GET /api/api-keys/[id]
    • DELETE /api/api-keys/[id]
    • POST /api/api-keys/[id]/revoke
  • Admin
    • get-admin-config
    • GET /api/admin/connections
    • POST /api/admin/connections
    • GET /api/admin/organizations
    • POST /api/admin/organizations
    • GET /api/admin/projects
    • POST /api/admin/projects
    • get-admin-stats
    • GET /api/admin/users
    • POST /api/admin/users
    • PATCH /api/admin/users
    • GET /api/admin/connections/[id]
    • PATCH /api/admin/connections/[id]
    • DELETE /api/admin/connections/[id]
    • GET /api/admin/github/authorize
    • GET /api/admin/organizations/[id]
    • GET /api/admin/github/callback
    • PUT /api/admin/organizations/[id]
    • GET /api/admin/github/orgs
    • DELETE /api/admin/organizations/[id]
    • POST /api/admin/github/refresh
    • GET /api/admin/projects/[id]
    • GET /api/admin/github/repos
    • PUT /api/admin/projects/[id]
    • POST /api/admin/github/repos
    • DELETE /api/admin/projects/[id]
    • GET /api/admin/github/status
    • GET /api/admin/users/[id]
    • DELETE /api/admin/github/status
    • PUT /api/admin/users/[id]
    • DELETE /api/admin/users/[id]
    • GET /api/admin/connections/[id]/projects
    • POST /api/admin/connections/[id]/projects
    • =============================================================================
    • POST /api/admin/connections/[id]/test
    • =============================================================================
    • GET /api/admin/connections/github/authorize
    • GET /api/admin/connections/github/callback
    • GET /api/admin/connections/vercel/authorize
    • GET /api/admin/connections/vercel/callback
    • GET /api/admin/organizations/[id]/connections
    • POST /api/admin/organizations/[id]/logo
    • DELETE /api/admin/organizations/[id]/logo
    • GET /api/admin/projects/[id]/connections
    • =============================================================================
    • DELETE /api/admin/connections/[id]/projects/[projectId]
    • POST /api/admin/projects/[id]/config/sync
  • Labels
    • List labels for organization
    • Create label
    • Get label details
    • Update label
    • Delete label
  • Requests, Comments
    • List request comments
    • Create comment
    • Get single comment
    • Update comment
    • Delete comment
  • Requests, Labels
    • List labels on request
    • Add label to request
    • Remove label from request
    • Replace all labels on request
  • Cron
    • GET /api/cron/poll-agents
  • Requests, Development, Admin
    • Reset development session (Admin only)
  • Webhooks
    • =============================================================================
  • Requests, PR
    • Create pull request for a request
    • Check PR status and update request if merged/closed
  • Schemas
    • IdPathParamSchema
    • 400
    • RevokeInvitationResponseSchema
    • 401
    • ResendInvitationResponseSchema
    • InvitationsQuerySchema
    • 403
    • InvitationsResponseSchema
    • 404
    • CreateInvitationBodySchema
    • 409
    • InvitationResponseSchema
    • 500
    • TokenPathParamSchema
    • InvitationAcceptResponseSchema
    • InvitationValidationResponseSchema
    • NotificationResponseSchema
    • MarkAllNotificationsReadResponseSchema
    • NotificationsQuerySchema
    • NotificationsResponseSchema
    • OrganizationResponseSchema
    • UpdateOrganizationBodySchema
    • UsageStatsResponseSchema
    • PaginationQuerySchema
    • OrganizationUsersResponseSchema
    • OrganizationsResponseSchema
    • ProjectConfigResponseSchema
    • RequestQuerySchema
    • RequestsResponseSchema
    • CreateRequestBodySchema
    • RequestResponseSchema
    • ProjectResponseSchema
    • UpdateProjectBodySchema
    • ProjectsQuerySchema
    • ProjectsResponseSchema
    • ActivityQuerySchema
    • ActivitiesResponseSchema
    • CreateActivityBodySchema
    • ActivityResponseSchema
    • AvailableTransitionsResponseSchema
    • CancelDevelopmentResponseSchema
    • StartDevelopmentResponseSchema
    • DevelopmentSessionStatusResponseSchema
    • text/event-stream
    • InterviewCompleteResponseSchema
    • InterviewMessageBodySchema
    • InterviewMessageResponseSchema
    • InterviewResponseSchema
    • InterviewStreamQuerySchema
    • StartPreviewResponseSchema
    • PreviewInfoResponseSchema
    • PreviewDetailedStatusResponseSchema
    • UpdateRequestBodySchema
    • TransitionBodySchema
    • TransitionResponseSchema
    • CurrentUserResponseSchema
    • UpdateUserProfileBodySchema
    • messageSchema
    • ApiMetaSchema
    • OrganizationSchema
    • UserProfileSchema
    • ProjectConfigSchema
    • ProjectSchema
    • RequestTypeEnum
    • RequestPriorityEnum
    • RequestStatusEnum
    • RequestSchema
    • WorkflowActionEnum
    • TransitionPayloadSchema
    • LabelSchema
    • createInvitationSchema
    • createApiKeySchema
    • createOrganizationSchema
    • CreateLabelBodySchema
    • ActivityTypeEnum
    • updateUserSchema
    • linkProjectSchema
    • UpdateLabelBodySchema
    • ActivitySchema
    • updateConnectionSchema
    • CommentSchema
    • NotificationSchema
    • listConnectionsSchema
    • CreateCommentBodySchema
    • InvitationRoleEnum
    • createConnectionSchema
    • UpdateCommentBodySchema
    • InvitationStatusEnum
    • refreshSchema
    • AddLabelBodySchema
    • InvitationSchema
    • fetchReposSchema
    • SetLabelsBodySchema
    • InterviewMessageSchema
    • RequestLabelsResponseSchema
    • DevelopmentSessionStatusEnum
    • AssignRequestBodySchema
    • DevelopmentStatusSchema
    • AssignmentResponseSchema
    • UsagePeriodSchema
    • createProjectSchema
    • UsageLimitsSchema
    • UsageStatsSchema
    • inviteUserSchema
    • vercelConfigSchema
    • OrganizationUserSchema
    • updateConfigSchema
    • PreviewDeploymentStatusEnum
    • testSchema
    • projectSchema
    • updateOrganizationSchema
    • ApiKeyStatusEnum
    • ProjectFormData
    • updateUserProfileSchema
    • ApiKeySchema
    • inviteSchema
    • updateProjectSchema
    • ApiKeysResponseSchema
    • createRequestSchema
    • CreateApiKeyBodySchema
    • updateRequestSchema
    • ApiKeyCreatedSchema
    • createActivitySchema
    • ApiKeyCreatedResponseSchema
    • workflowAction
    • RevokeApiKeyResponseSchema
    • transitionRequestSchema
    • DeleteApiKeyResponseSchema
    • apiKeyStatus
    • apiKeyResponseSchema
    • apiKeyCreatedResponseSchema
    • RequestIdPathParamSchema
    • LabelIdPathParamSchema
    • CommentIdPathParamSchema
    • hexColorSchema
    • createLabelSchema
    • updateLabelSchema
    • createCommentSchema
    • updateCommentSchema
    • addLabelSchema
    • setLabelsSchema
    • assignRequestSchema
  1. Requests, Preview

Get detailed preview deployment status

GET
/requests/{id}/preview/status
Returns detailed status information about a preview deployment. This endpoint is designed to be polled by the frontend to track deployment progress. Returns status updates, preview URL when ready, error details if failed, and build metrics.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Responses

🟢200OK
application/json
Successful response
Body

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/requests/123/preview/status' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "data": {
        "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
        "status": "not_started",
        "branchName": "string",
        "previewUrl": "http://example.com",
        "deploymentId": "string",
        "error": {
            "code": "string",
            "message": "string",
            "suggestion": "string"
        },
        "buildDurationMs": 0,
        "createdAt": "string",
        "readyAt": "string"
    }
}
Modified at 2026-02-08 16:57:15
Previous
Get preview deployment info
Next
Get available transitions
Built with