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/Receive signed webhooks

    API and automation

    Receive signed webhooks

    9 min readReviewed 9 September 2026

    Subscribe an HTTPS endpoint, verify signatures, deduplicate deliveries, and handle retries.

    On this pageAvailable eventsDelivery formatVerify the signatureRetries and endpoint health

    Available events

    EventWhen it is emitted
    task.completedAn organization task completes.
    task.failedAn organization task fails.
    deploy.aws.liveA managed AWS deployment becomes live.
    deploy.aws.failedA managed AWS deployment fails.
    member.addedA member is added through an invite or SCIM.
    member.removedA member is removed.
    review.completedAn AI Code Review completes.

    Delivery format

    TrigCode POSTs a JSON envelope with id, type, org_id, created_at, and data. The X-TrigCode-Event and X-TrigCode-Delivery headers mirror the event and unique delivery ID. Use the ID as a deduplication key.

    Envelopejson
    {
      "id": "delivery-id",
      "type": "task.completed",
      "org_id": "organization-id",
      "created_at": "2026-09-09T12:00:00.000Z",
      "data": { "task_id": "short-task-id" }
    }

    Verify the signature

    The X-TrigCode-Signature header has t=<unix-seconds>,v1=<hex-hmac>. Recreate HMAC-SHA256 over the exact bytes `${t}.${rawBody}` using the signing secret, compare in constant time, and reject timestamps outside your replay window.

    Node.js verification shapejavascript
    const signed = `${timestamp}.${rawBody}`;
    const expected = createHmac('sha256', secret).update(signed).digest('hex');
    const valid = timingSafeEqual(Buffer.from(expected, 'hex'), Buffer.from(received, 'hex'));
    Use the raw request body

    Parsing and re-stringifying JSON changes the signed bytes and will fail verification.

    Retries and endpoint health

    After the initial attempt, failed deliveries are scheduled after approximately 1 minute, 5 minutes, 30 minutes, 2 hours, and 8 hours. A delivery becomes dead after the final attempt. An endpoint automatically disables after 10 consecutive failures.

    • Endpoints must use public HTTPS URLs.
    • Redirects are not followed.
    • Respond with any 2xx status quickly after durable receipt.
    • Process slow work asynchronously.
    • Use the Send test action before enabling production automation.
    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 task referenceCreate builds, list tasks, poll status, read files, and download exports through API v1.Roles, budgets, and governanceUse organization roles, member caps, teams, audit logs, and deployment review gates.
    PreviousAPI organization resource reference

    On this page

    Available eventsDelivery formatVerify the signatureRetries and endpoint health
    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