# ContentStudio

> Manage social publishing and read workspaces, social accounts, posts, labels and media in ContentStudio.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/contentstudio

## Actions

### Add post comment

Add post comment.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Post (`post_id`, text, required): Post id.
- Comment (`comment`, text, required): Comment.
- Is note (`is_note`, true/false): Is note.
- Mentioned users (`mentioned_users`, list): Mentioned users.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "data": {
      "_id": "example",
      "author": {
        "_id": "example",
        "id": "example",
        "name": "example",
        "profile_picture": "example"
      },
      "comment": "example",
      "created_at": "example",
      "id": "example",
      "is_note": true,
      "mentioned_users": [
        {}
      ],
      "updated_at": "example"
    },
    "message": "example",
    "status": true
  }
}
```

### Create a draft post

Save a text post as a draft in your ContentStudio workspace.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Accounts (`accounts`, list): Accounts.
- Content category (`content_category_id`, text): Content category id.
- Hide client (`hide_client`, true/false): Hide client.
- Labels (`labels`, list): Labels.
- Campaign (`campaign_id`, text): Campaign id.
- Text (`text`, text, required): Text to save in the draft.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example",
      "post_url": "example",
      "warning": "example"
    },
    "message": "example",
    "status": true
  }
}
```

### Create campaign

Create campaign.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Name (`name`, text, required): Name.
- Color (`color`, text, required): Color. One of: `color_1` (Color 1), `color_2` (Color 2), `color_3` (Color 3), `color_4` (Color 4), `color_5` (Color 5), `color_6` (Color 6), `color_7` (Color 7), `color_8` (Color 8), `color_9` (Color 9), `color_10` (Color 10), and 10 more.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "data": {
      "_id": "example",
      "color": "example",
      "id": "example",
      "name": "example"
    },
    "message": "example",
    "status": true
  }
}
```

### Create label

Create label.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Name (`name`, text, required): Name.
- Color (`color`, text, required): Color. One of: `color_1` (Color 1), `color_2` (Color 2), `color_3` (Color 3), `color_4` (Color 4), `color_5` (Color 5), `color_6` (Color 6), `color_7` (Color 7), `color_8` (Color 8), `color_9` (Color 9), `color_10` (Color 10), and 10 more.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "data": {
      "_id": "example",
      "color": "example",
      "id": "example",
      "name": "example"
    },
    "message": "example",
    "status": true
  }
}
```

### Get post

Get post.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Post (`post_id`, text, required): Post id.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "data": {
      "accounts": [
        {}
      ],
      "approval": {
        "approve_option": "anyone",
        "approvers": [
          {}
        ],
        "notes": "example",
        "status": "pending_approval"
      },
      "approval_workflow": {
        "current_level": 1,
        "levels": [
          {}
        ],
        "notes": "example",
        "status": "pending",
        "submitted_at": "example",
        "total_levels": 1,
        "workflow_id": "example",
        "workflow_name": "example"
      },
      "campaign": {
        "color": "example",
        "id": "example",
        "name": "example"
      },
      "common": {
        "content": {}
      },
      "content_category_id": "example",
      "created_at": "example",
      "created_by": "example",
      "external_actions": [
        {}
      ],
      "external_comments": [
        {}
      ],
      "facebook_options": {
        "carousel": {},
        "facebook_background_id": "example"
      },
      "first_comment": {
        "accounts": [
          "example"
        ],
        "message": "example"
      },
      "gmb_options": {
        "action_type": "example",
        "cta_link": "example",
        "end_date": "example",
        "start_date": "example",
        "title": "example",
        "topic_type": "example"
      },
      "hide_client": true,
      "id": "example",
      "instagram_options": {
        "collaborators": [
          "example"
        ]
      },
      "labels": [
        {}
      ],
      "linkedin_options": {
        "accounts": [
          "example"
        ],
        "is_carousel": true,
        "poll": {},
        "post_type": "example",
        "title": "example"
      },
      "pinterest_options": {
        "link": "example",
        "title": "example"
      },
      "platform_overrides": {
        "facebook": {}
      },
      "post_type": "example",
      "post_url": "example",
      "post_video_title": "example",
      "scheduling": {
        "execute_time": "example",
        "publish_type": "draft",
        "repeat": {}
      },
      "status": "draft",
      "threads_options": {
        "has_multi_threads": true,
        "multi_threads": [
          {}
        ]
      },
      "tiktok_options": {
        "auto_add_music": true,
        "brand_content_toggle": true,
        "disable_comment": true,
        "disable_duet": true,
        "disable_stitch": true,
        "is_aigc": true,
        "privacy_level": "example"
      },
      "twitter_options": {
        "has_threaded_tweets": true,
        "threaded_tweets": [
          {}
        ]
      },
      "updated_at": "example",
      "workspace_id": "example",
      "youtube_options": {
        "category": "example",
        "license": "example",
        "made_for_kids": true,
        "privacy_status": "example",
        "tags": [
          "example"
        ],
        "title": "example"
      }
    },
    "message": "example",
    "status": true
  }
}
```

### Get profile

Get profile.

**Inputs**: None.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "data": {
      "_id": "example",
      "authenticated_at": "example",
      "created_at": "example",
      "date_format": "example",
      "email": "example",
      "firstname": "example",
      "full_name": "example",
      "id": "example",
      "image": "example",
      "lastname": "example",
      "phone_no": "example",
      "state": "example",
      "time_format": "example",
      "username": "example"
    },
    "message": "example",
    "status": true
  }
}
```

### Get workspace limits

Get workspace limits.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "data": {
      "limits": [
        {}
      ],
      "plan": {
        "billing_cycle": "monthly",
        "is_annually": true,
        "name": "example",
        "slug": "example"
      },
      "usage_reset": {
        "last_reset_at": "example",
        "next_reset_at": "example",
        "note": "example"
      }
    },
    "message": "example",
    "status": true
  }
}
```

### Get workspace settings

Get workspace settings.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "data": {
      "company_logo": "example",
      "company_name": "example",
      "first_day": {
        "day": "example",
        "key": 1
      },
      "id": "example",
      "instagram_posting_method": "api",
      "logo": "example",
      "name": "example",
      "note": "example",
      "posting": {
        "changed_by": "example",
        "paused": true,
        "paused_at": "example",
        "paused_posts_count": 1,
        "resumed_at": "example"
      },
      "slug": "example",
      "timezone": "example"
    },
    "message": "example",
    "status": true
  }
}
```

### List accounts

List accounts.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Platform (`platform`, text): Platform. One of: `facebook`, `twitter`, `linkedin`, `pinterest`, `instagram`, `gmb`, `youtube`, `tiktok`, `tumblr`, `threads`, `bluesky`, `telegram`.
- Search (`search`, text): Search.
- Page (`page`, number): Page. At least 1.
- Per page (`per_page`, number): Per page. From 1 to 100.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "data": [
      {
        "_id": "example",
        "account_name": "example",
        "connected_at": "example",
        "expires_at": "example",
        "id": "example",
        "platform": "facebook",
        "profile_picture": "example",
        "status": "example"
      }
    ],
    "from": 1,
    "last_page": 1,
    "message": "example",
    "per_page": 1,
    "status": true,
    "to": 1,
    "total": 1
  }
}
```

### List campaigns

List campaigns.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Page (`page`, number): Page. At least 1.
- Per page (`per_page`, number): Per page. From 1 to 100.
- Search (`search`, text): Search.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "data": [
      {
        "_id": "example",
        "color": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "from": 1,
    "last_page": 1,
    "message": "example",
    "per_page": 1,
    "status": true,
    "to": 1,
    "total": 1
  }
}
```

### List content categories

List content categories.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Page (`page`, number): Page. At least 1.
- Per page (`per_page`, number): Per page. From 1 to 100.
- Search (`search`, text): Search.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "data": [
      {
        "_id": "example",
        "accounts": [
          {}
        ],
        "color": "example",
        "color_code": "example",
        "id": "example",
        "name": "example",
        "posts_count": 1,
        "slots_count": 1,
        "state": "example"
      }
    ],
    "from": 1,
    "last_page": 1,
    "message": "example",
    "per_page": 1,
    "status": true,
    "to": 1,
    "total": 1
  }
}
```

### List labels

List labels.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Page (`page`, number): Page. At least 1.
- Per page (`per_page`, number): Per page. From 1 to 100.
- Search (`search`, text): Search.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "data": [
      {
        "_id": "example",
        "color": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "from": 1,
    "last_page": 1,
    "message": "example",
    "per_page": 1,
    "status": true,
    "to": 1,
    "total": 1
  }
}
```

### List media

List media.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Page (`page`, number): Page. At least 1.
- Per page (`per_page`, number): Per page. From 1 to 100.
- Type (`type`, text): Type. One of: `images`, `videos`.
- Search (`search`, text): Search.
- Sort (`sort`, text): Sort. One of: `recent`, `oldest`, `size`, `a2z`, `z2a`.
- Archived (`archived`, true/false): Archived.
- Folder (`folder_id`, text): Folder id.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "data": [
      {
        "_id": "example",
        "created_at": "example",
        "dimensions": {},
        "extension": "example",
        "folder_id": "example",
        "id": "example",
        "is_ai_generated": true,
        "is_processing": true,
        "mime_type": "example",
        "name": "example",
        "size": 1,
        "type": "image",
        "url": "example"
      }
    ],
    "from": 1,
    "last_page": 1,
    "message": "example",
    "per_page": 1,
    "status": true,
    "to": 1,
    "total": 1
  }
}
```

### List media folders

List media folders.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "folders": [
      {
        "created_at": "example",
        "folder_name": "example",
        "id": "example",
        "is_global": true,
        "is_root": true,
        "root_folder_id": "example",
        "updated_at": "example",
        "workspace_id": "example"
      }
    ],
    "message": "example",
    "status": true
  }
}
```

### List post comments

List post comments.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Post (`post_id`, text, required): Post id.
- Page (`page`, number): Page. At least 1.
- Per page (`per_page`, number): Per page. From 1 to 100.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "data": [
      {
        "_id": "example",
        "author": {},
        "comment": "example",
        "created_at": "example",
        "id": "example",
        "is_note": true,
        "mentioned_users": [
          {}
        ],
        "updated_at": "example"
      }
    ],
    "from": 1,
    "last_page": 1,
    "message": "example",
    "per_page": 1,
    "status": true,
    "to": 1,
    "total": 1
  }
}
```

### List posts

List posts.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Status (`status`, list): Status. One or more of: `draft`, `scheduled`, `published`, `failed`, `rejected`, `under_review` (Under review), `missed_review` (Missed review), `partially_failed` (Partially failed), `in_progress` (In progress), `processing`, `notification_sent` (Notification sent), `notification_declined` (Notification declined).
- Date from (`date_from`, date): Date from.
- Date to (`date_to`, date): Date to.
- Page (`page`, number): Page. At least 1.
- Per page (`per_page`, number): Per page. From 1 to 100.
- Approval assigned to (`approval_assigned_to`, list): Approval assigned to.
- Approval requested by (`approval_requested_by`, list): Approval requested by.
- Labels (`labels`, list): Labels.
- Campaigns (`campaigns`, list): Campaigns.
- Content category (`content_category`, list): Content category.
- Created by (`created_by`, list): Created by.
- Comment status (`comment_status`, text): Comment status. One of: `resolved`, `unresolved`, `all`.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "data": [
      {
        "accounts": [
          {}
        ],
        "approval": {},
        "approval_workflow": {},
        "campaign": {},
        "common": {},
        "content_category_id": "example",
        "created_at": "example",
        "created_by": "example",
        "external_actions": [
          {}
        ],
        "external_comments": [
          {}
        ],
        "facebook_options": {},
        "first_comment": {},
        "gmb_options": {},
        "hide_client": true,
        "id": "example",
        "instagram_options": {},
        "labels": [
          {}
        ],
        "linkedin_options": {},
        "pinterest_options": {},
        "platform_overrides": {},
        "post_type": "example",
        "post_url": "example",
        "post_video_title": "example",
        "scheduling": {},
        "status": "draft",
        "threads_options": {},
        "tiktok_options": {},
        "twitter_options": {},
        "updated_at": "example",
        "workspace_id": "example",
        "youtube_options": {}
      }
    ],
    "from": 1,
    "last_page": 1,
    "message": "example",
    "per_page": 1,
    "status": true,
    "to": 1,
    "total": 1
  }
}
```

### List team members

List team members.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Search (`search`, text): Search.
- Page (`page`, number): Page. At least 1.
- Per page (`per_page`, number): Per page. From 1 to 100.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "data": [
      {
        "_id": "example",
        "email": "example",
        "id": "example",
        "member_id": "example",
        "membership": "example",
        "name": "example",
        "profile_picture": "example",
        "role": "example"
      }
    ],
    "from": 1,
    "last_page": 1,
    "message": "example",
    "per_page": 1,
    "status": true,
    "to": 1,
    "total": 1
  }
}
```

### List webhook event types

List webhook event types.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "description": "example",
        "group": "posts",
        "label": "example",
        "payload_schema": "WebhookPostEventData",
        "value": "example"
      }
    ],
    "message": "example",
    "status": true
  }
}
```

### List webhooks

List webhooks.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "custom_headers": {},
        "event_types": [
          "example"
        ],
        "has_secret": true,
        "id": "example",
        "last_delivery_at": "example",
        "last_delivery_status": "delivered",
        "name": "example",
        "status": "enabled",
        "updated_at": "example",
        "url": "example"
      }
    ],
    "limit": 1,
    "message": "example",
    "status": true,
    "used": 1
  }
}
```

### List workspaces

List workspaces.

**Inputs**

- Page (`page`, number): Page. At least 1.
- Per page (`per_page`, number): Per page. From 1 to 100.

**Outputs**

- `data` (object): The response from ContentStudio.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "data": [
      {
        "_id": "example",
        "company_logo": "example",
        "company_name": "example",
        "created_at": "example",
        "id": "example",
        "logo": "example",
        "name": "example",
        "on_hold": true,
        "policy": {},
        "slug": "example",
        "timezone": "example"
      }
    ],
    "from": 1,
    "last_page": 1,
    "message": "example",
    "per_page": 1,
    "status": true,
    "to": 1,
    "total": 1
  }
}
```
