Is AI recommending you? Ask Contentstack Canoe for free
Is AI recommending your brand? Find out with Contentstack Canoe for free
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs

Platform

  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing

Solutions

  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases

Resources

  • Academy
  • Docs
  • Contentstack for Developers
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Podcasts
  • Glossary
  • Content generative library
  • Community
  • Headless CMS
  • Composable AXP
  • Personalization
  • CDP

Customers

  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support

Partners

  • Overview
  • Find a partner
  • Login

Company

  • About us
  • News
  • Customer support portal
  • Contact

Social

  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X
LegalTermsPrivacyTrust Center

Cookie settings

Copyright © 2026 Contentstack Inc. All rights reserved.
/
  1. Home
  2. APIs
  3. Lytics API
  4. V1
  5. Work

Work

markdownView as Markdown

Work is an *integration* unit, typically for imports and exports.

Most run continually, while some run to completion.

You generally would only use it through the Webadmin Integrations.

* *Workflow* A specific type of integration is a Workflow, must belong to a *Provider*

* *Provider* A company that provides api's. Facebook, Google Analytics, Marketo, etc.

* *Auth* An authentication/authorization for a provider to allow *work* to run.

* *Work* A single running instance of a workflow for an account.

Work List

GEThttps://api.lytics.io/api/work

Get list of all running integrations (work) for this account.

Sample Response
Status|200 OK
1234567891011121314151617181920212223242526272829
{
  "data": [
    {
      "account_id": "4f7b525bdba058fc096757a6",
      "aid": 12,
      "config": {
        "delimiter": null,
        "email_to": "[email protected]",
        "fields": [],
        "limit": null,
        "segment_id": "d5975ab901f7f660845c95ee6aa3cadd",
        "table": "user",
        "write_headers": true
      },
      "hidden": false,
      "id": "ca756c13469228b723652f1e5168650f",
      "created": "2014-08-04T21:18:20.124Z",
      "updated": "2014-08-04T21:18:20.124Z",
      "runtime": "",
      "statuscode": "completed",
      "deleted": false,
      "tag": "",
      "user_id": "50f4c7c6e327a73ae8000004",
      "work_state_version": 0,
      "workflow": "lytics_simple_csv_export",
      "workflow_id": "75ce615fdfa048b7a5d5ea41fe7c1260"
    }
  ]
}

Work Create

POSThttps://api.lytics.io/api/work

There are a list of available work-types in the workflow api.

To create a work unit, there is a *config* block with the work configuration

settings, with the fields listed in the workflow.

``sh

curl -s -H "Authorization: $LIOKEY" \

-XPOST "https://api.lytics.io/api/work" -d '

{

"workflow_id":"eventscopy"

, "name":"Ecommerce Demo Copy"

, "config":{

"destination_aid": "2223"

}

}

' | jq '.'

``

Sample Request
123456789101112
{
  "config": {
    "delimiter": null,
    "email_to": "[email protected]",
    "fields": [],
    "limit": null,
    "segment_id": "d5975ab901f7f660845c95ee6aa3cadd",
    "table": "user",
    "write_headers": true
  },
  "workflow_id": "75ce615fdfa048b7a5d5ea41fe7c1260"
}
Sample Response
Status|201 Created
12345678910111213141516171819202122232425262728
{
  "data": {
    "account_id": "4f7b525bdba058fc096757a6",
    "aid": 12,
    "config": {
      "delimiter": null,
      "email_to": "[email protected]",
      "fields": [],
      "limit": null,
      "segment_id": "d5975ab901f7f660845c95ee6aa3cadd",
      "table": "user",
      "write_headers": true
    },
    "state": {},
    "statuscode": "completed",
    "hidden": false,
    "id": "ca756c13469228b723652f1e5168650f",
    "created": "2014-08-04T21:18:20.124Z",
    "updated": "2014-08-04T21:18:20.124Z",
    "runtime": "",
    "deleted": false,
    "tag": "",
    "user_id": "50f4c7c6e327a73ae8000004",
    "work_state_version": 0,
    "workflow": "lytics_simple_csv_export",
    "workflow_id": "75ce615fdfa048b7a5d5ea41fe7c1260"
  }
}

Work Fetch

GEThttps://api.lytics.io/api/work/{id}

Get single work resource

Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728
{
  "data": {
    "account_id": "4f7b525bdba058fc096757a6",
    "aid": 12,
    "config": {
      "delimiter": null,
      "email_to": "[email protected]",
      "fields": [],
      "limit": null,
      "segment_id": "d5975ab901f7f660845c95ee6aa3cadd",
      "table": "user",
      "write_headers": true
    },
    "state": {},
    "statuscode": "completed",
    "hidden": false,
    "id": "ca756c13469228b723652f1e5168650f",
    "created": "2014-08-04T21:18:20.124Z",
    "updated": "2014-08-04T21:18:20.124Z",
    "runtime": "",
    "deleted": false,
    "tag": "",
    "user_id": "50f4c7c6e327a73ae8000004",
    "work_state_version": 0,
    "workflow": "lytics_simple_csv_export",
    "workflow_id": "75ce615fdfa048b7a5d5ea41fe7c1260"
  }
}

Work Delete

DELETEhttps://api.lytics.io/api/work/{id}


Sample Response
Status|204 No Content
1
No Content

Retrieve Work Status

GEThttps://api.lytics.io/api/work/_status


Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728
{
  "data": {
    "account_id": "4f7b525bdba058fc096757a6",
    "aid": 12,
    "config": {
      "delimiter": null,
      "email_to": "[email protected]",
      "fields": [],
      "limit": null,
      "segment_id": "d5975ab901f7f660845c95ee6aa3cadd",
      "table": "user",
      "write_headers": true
    },
    "state": {},
    "statuscode": "completed",
    "hidden": false,
    "id": "ca756c13469228b723652f1e5168650f",
    "created": "2014-08-04T21:18:20.124Z",
    "updated": "2014-08-04T21:18:20.124Z",
    "runtime": "",
    "deleted": false,
    "tag": "",
    "user_id": "50f4c7c6e327a73ae8000004",
    "work_state_version": 0,
    "workflow": "lytics_simple_csv_export",
    "workflow_id": "75ce615fdfa048b7a5d5ea41fe7c1260"
  }
}

Work Command Post

POSThttps://api.lytics.io/api/work/{id}/{cmd}

Send a work command

Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728
{
  "data": {
    "account_id": "4f7b525bdba058fc096757a6",
    "aid": 12,
    "config": {
      "delimiter": null,
      "email_to": "[email protected]",
      "fields": [],
      "limit": null,
      "segment_id": "d5975ab901f7f660845c95ee6aa3cadd",
      "table": "user",
      "write_headers": true
    },
    "state": {},
    "statuscode": "completed",
    "hidden": false,
    "id": "ca756c13469228b723652f1e5168650f",
    "created": "2014-08-04T21:18:20.124Z",
    "updated": "2014-08-04T21:18:20.124Z",
    "runtime": "",
    "deleted": false,
    "tag": "",
    "user_id": "50f4c7c6e327a73ae8000004",
    "work_state_version": 0,
    "workflow": "lytics_simple_csv_export",
    "workflow_id": "75ce615fdfa048b7a5d5ea41fe7c1260"
  }
}

Work Bounce

POSThttps://api.lytics.io/api/work/_bounceall


Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728
{
  "data": {
    "account_id": "4f7b525bdba058fc096757a6",
    "aid": 12,
    "config": {
      "delimiter": null,
      "email_to": "[email protected]",
      "fields": [],
      "limit": null,
      "segment_id": "d5975ab901f7f660845c95ee6aa3cadd",
      "table": "user",
      "write_headers": true
    },
    "state": {},
    "statuscode": "completed",
    "hidden": false,
    "id": "ca756c13469228b723652f1e5168650f",
    "created": "2014-08-04T21:18:20.124Z",
    "updated": "2014-08-04T21:18:20.124Z",
    "runtime": "",
    "deleted": false,
    "tag": "",
    "user_id": "50f4c7c6e327a73ae8000004",
    "work_state_version": 0,
    "workflow": "lytics_simple_csv_export",
    "workflow_id": "75ce615fdfa048b7a5d5ea41fe7c1260"
  }
}
Hide Parameters

Query Parameters

account_idoptionalstring

Your Lytics account ID.

showhiddenoptionalstring

True/False show all hidden work items

stateoptionalstring

True/False show all state

showcompletedoptionalstring

True/False show all completed work items

showdeletedoptionalstring

True/False show all deleted work items (works that was deleted using work/{id}/delete command)

Headers

Authorizationoptionalstring

Hide Parameters

Query Parameters

account_idoptionalstring

Your Lytics account ID.

Headers

Authorizationoptionalstring

Body Parameters

configoptionalobject
config.delimiteroptionalany
config.email_tooptionalstring
config.fieldsoptionalany[]
config.limitoptionalany
config.segment_idoptionalstring
config.tableoptionalstring
config.write_headersoptionalboolean
workflow_idoptionalstring
Hide Parameters

URL Parameters

idrequiredstring

id of work

Query Parameters

account_idoptionalstring

Your Lytics account ID.

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

idrequiredstring

id of work

Query Parameters

account_idoptionalstring

Your Lytics account ID.

Headers

Authorizationoptionalstring

Hide Parameters

Query Parameters

account_idoptionalstring

Your Lytics account ID.

statusoptionalstring

one of runnable, errorwait, paused, killed

workflow_idoptionalstring

Example:

123abc
resumeoptionalstring

True/False for resume this item as well

acctidoptionalstring

Example:

123abc

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

idrequiredstring

Example:

abc123
cmdrequiredstring

Example:

'pause'

Query Parameters

account_idoptionalstring

Your Lytics account ID.

foroptionalstring

Example:

1h

Headers

Authorizationoptionalstring

Hide Parameters

Query Parameters

account_idoptionalstring

Your Lytics account ID.

statusoptionalstring

Example:

runnable
all_accountsoptionalstring

All accounts?

cmdoptionalstring

Example:

'pause'

Headers

Authorizationoptionalstring