TrigCode AI
    TemplatesShowcasePricing
    Help center

    Getting started

    Welcome to TrigCodeBuild your first appChoose an app typeWrite effective promptsNavigate the TrigCode workspace

    Building and editing

    Understand the build lifecycleEdit an app with conversationPreview and test your appWork with code and filesUse checkpoints and rollbackOrganize work with projects and templatesUse reference images and app secrets

    Export and deploy

    Export source codeConnect GitHub, GitLab, or BitbucketDeploy on TrigCodeDeploy to external providersPreview mobile apps and build an APKConnect a custom domain

    Plans, credits, and account

    Plans and feature accessCredits and action costsBilling, renewals, and plan changesAccount and security settings

    Teams and enterprise

    Teams workspacesRoles, budgets, and governanceConfigure SSO and SCIMShared prompts, usage, and audit history

    API and automation

    API authentication and scopesAPI task referenceAPI organization resource referenceReceive signed webhooks

    Troubleshooting

    Troubleshoot builds and editsTroubleshoot previewsTroubleshoot deployments and domainsTroubleshoot billing and creditsGet support
    Help/API and automation/API task reference

    API and automation

    API task reference

    10 min readReviewed 9 September 2026

    Create builds, list tasks, poll status, read files, and download exports through API v1.

    On this pageTask endpointsCreate a buildAccepted response and pollingRead and export

    Task endpoints

    MethodEndpointScope
    GET/api/v1/taskstasks:read
    POST/api/v1/taskstasks:write
    GET/api/v1/tasks/{id}tasks:read
    GET/api/v1/tasks/{id}/filestasks:read
    GET/api/v1/tasks/{id}/exporttasks:export

    Create a build

    POST /tasks requires an Idempotency-Key header containing 8–128 visible ASCII characters. Reusing the same value inside one organization returns the original task instead of charging or creating a duplicate.

    FieldTypeNotes
    promptstringRequired; non-empty; at most 20,000 characters.
    app_typestringfullstack, landing, site3d, mobile, or game; default fullstack.
    ai_modelstringUse auto unless the plan allows a specific model.
    is_publicbooleanDefault true; private builds require plan access.
    with_authbooleanApplied only to full-stack builds.
    project_idstring or nullMust identify a project in the same organization.
    imagesarray or nullOptional accepted data-URL reference images.
    Create requestbash
    curl -X POST https://trigcode.com/api/v1/tasks \
    +  -H 'Authorization: Bearer tck_live_REPLACE_WITH_YOUR_KEY' \
    +  -H 'Idempotency-Key: release-2026-09-09-dashboard' \
    +  -H 'Content-Type: application/json' \
    +  -d '{
        "prompt": "Build a full-stack client portal...",
        "app_type": "fullstack",
        "ai_model": "auto",
        "is_public": false,
        "with_auth": true,
        "project_id": null
      }'

    Accepted response and polling

    An in-flight build returns HTTP 202. Poll status_url or subscribe to organization webhooks. The API answers automated clarification questions with the planner's recommended first choices so a headless build can continue.

    Examplejson
    {
      "data": {
        "id": "short-task-id",
        "status": "pending",
        "credits_charged": 60,
        "status_url": "/api/v1/tasks/short-task-id"
      },
      "meta": { "accepted": true }
    }
    Do not retry with a new idempotency key

    If the HTTP connection ends after submission, repeat the same request with the same key. A new key can create and charge a second build.

    Read and export

    Task identifiers accept the short public ID or internal task ID. GET /tasks supports status, page, and per_page query parameters. The files endpoint returns path/content pairs sorted by path. The export endpoint returns application/zip and includes deployment-kit content when the workspace entitlement allows it.

    Still need help?Open a support ticket from your workspace or contact the TrigCode team.
    Contact support

    Related guides

    API authentication and scopesCreate an organization API key and understand authentication, scopes, limits, and envelopes.API organization resource referenceReference the organization, projects, usage, and members endpoints.Receive signed webhooksSubscribe an HTTPS endpoint, verify signatures, deduplicate deliveries, and handle retries.
    PreviousAPI authentication and scopesNextAPI organization resource reference

    On this page

    Task endpointsCreate a buildAccepted response and pollingRead and export
    TrigCode AI

    Bring your ideas to life with AI.
    Build, refine, and make them yours.

    Start building

    Product

    • AI app builder
    • Templates
    • Showcase
    • Pricing
    • Teams & enterprise

    Build

    • Websites
    • Web apps
    • Mobile apps
    • Games
    • Dashboards
    • CRM
    • SaaS
    • Scheduling
    • AI assistants

    Resources

    • Help center
    • Building guides
    • Compare builders
    • Vibe coding explained
    • What you can build

    Company

    • About TrigCode
    • Contact us
    • Trust & security
    • Get support

    © 2026 THS CyberSecure Private Limited.All rights reserved.

    Privacy policyTerms of service