Home
Content Management API⁡𝅶‍‍𝅺⁡‍𝅴⁡𝅴𝅹‍‍⁢𝅵‍‍⁣⁣‌⁡⁣𝅺⁣⁢⁣𝅸⁠⁢‍‍‍𝅷‍‍𝅳⁡‍⁠‍‍⁢𝅵‍‍𝅳⁡⁣⁡⁣⁡​⁡⁢⁢𝅵‍𝅺‍𝅺⁢𝅸⁡⁢‍𝅹⁣‌⁡⁣𝅺⁢𝅸⁡⁢‍𝅹⁢𝅺𝅸‍𝅺⁠⁣𝅴⁡⁣𝅺⁡‍‍𝅺𝅴⁡⁣⁠𝅸⁠𝅺⁡⁣⁡𝅴⁡​⁠⁡⁢‍𝅺⁢𝅳⁢‌⁢​⁢𝅴⁢‍⁢⁠‍𝅺𝅴⁡⁣⁠𝅸⁡⁢‍𝅺⁢⁢⁢𝅴⁢𝅳⁢⁢⁢‌⁢⁡⁢𝅳⁢‌‍‍⁡𝅸
Main resources
Upload-related
Site Search
Environments
UI
Workflows
Async jobs
Roles & permissions
Webhooks
Hosting & CI integrations
Subscription
Enterprise
    Show examples in:
    Retrieve a build trigger

    Returns

    Returns a build_trigger resource object.

    Examples

    Example code:
    import { buildClient } from '@datocms/cma-client-node';
    async function run() {
    const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
    const buildTriggerId = '1822';
    const buildTrigger = await client.buildTriggers.find(buildTriggerId);
    console.log(buildTrigger);
    }
    run();
    Returned output:
    {
    id: '1822',
    name: 'Production',
    adapter: 'netlify',
    adapter_settings: {
    trigger_url: 'https://api.netlify.com/build_hooks/XXX',
    site_id: 'XXX',
    branch: 'master'
    },
    last_build_completed_at: '2017-03-30T09:29:14.872Z',
    build_status: 'success',
    webhook_token: 'xA1239ajsk123',
    webhook_url: 'https://webhooks.datocoms.com/xA1239ajsk123/deploy-results',
    indexing_status: 'success',
    frontend_url: 'https://www.mywebsite.com/',
    autotrigger_on_scheduled_publications: true,
    indexing_enabled: true
    }