Skip to main content
POST
Create jet stream

Authorizations

Authorization
string
header
required

Authenticate with an API access token in the Authorization header: Authorization: Bearer <token>. Create a token from the API Access Tokens page in Contractors Cloud, under Integrations.

Body

application/json
title
string
required

The stream's subject line. Required.

Example:

"Smith Roof Replacement — material delay"

user_ids
integer[]
required

The ids of the users to add as recipients on this stream, in addition to yourself as the creator. Required; must include at least one user id, each referencing a user in your organization, with no duplicates in the list.

Example:
project_id
integer | null

The id of the project to link this stream to. Optional; must reference a project in your organization.

Example:

9103

Whether to also create a task linked to this stream. Optional; defaults to false. When true, task is required.

task
object

The linked task to create together with this stream. Required when is_related_to_task is true; omit otherwise.

Response

The created jet stream.

id
integer

The jet stream's unique identifier.

Example:

55210

tenant_id
integer

The id of your organization's account.

Example:

12

company_id
integer | null

The id of the company this stream belongs to. Null if not associated with a company.

Example:

6

project_id
integer | null

The id of the project this stream is linked to. Null for streams that aren't tied to a project.

Example:

9103

from_id
integer | null

The id of the user who created this stream. Include from to embed the full user object.

Example:

1159

title
string

The stream's subject line.

Example:

"Smith Roof Replacement — material delay"

topic
string | null

A short topic label for the stream, generated automatically from its content a short time after creation. Null until it's generated. You can overwrite it with Update jet stream.

Example:

"Material delay"

Whether a task was created together with this stream.

Example:

true

is_read
boolean

Whether you've viewed this stream since its most recent activity. Always true if you aren't a participant in the stream.

Example:

false

user_count
integer

The number of participants in this stream.

Example:

3

reply_count
integer

The number of replies posted to this stream.

Example:

2

created_at
string | null

Timestamp when the stream was created, formatted as YYYY-MM-DD HH:MM:SS.

Example:

"2025-02-12 09:00:00"

updated_at
string | null

Timestamp of the stream's last activity, formatted as YYYY-MM-DD HH:MM:SS. Bumped when the stream is edited and when a reply is posted, edited, or removed.

Example:

"2025-02-12 10:45:00"