Skip to main content
Retrieve a composition delivery

Authorizations

Authorization
string
header
required

A Tightknit admin API key, sent as Authorization: Bearer <key>.

Path Parameters

composition_delivery_id
string
required

The composition delivery's id.

Pattern: ^cpdl_[a-zA-Z0-9]{12}$

Query Parameters

expand

Repeatable. Returns the named relation inline. One of: created_by, updated_by.

Available options:
created_by,
updated_by

Response

Success

object
enum<string>
required

Always composition_delivery.

Available options:
composition_delivery
id
string
required

Unique identifier for the object.

Example:

"cpdl_4k8m2n6p9q3r"

created_at
string<date-time>
required

When the object was created.

updated_at
string<date-time>
required

When the object was last changed.

composition_id
string
required

The id of the composition this delivery sends.

Example:

"cmps_7h2k9m4n1p6q"

composition_version_id
string | null
required

The id of the composition version this delivery sent. Null until the composition is sent, while it is only where the composition is set to go.

destination
enum<string>
required

Where it goes. One of:

  • slack_channel: a post in each of slack_channel.channel_ids.
  • slack_dm: a direct message to each member slack_dm names, directly or through a group, feed or event.
Available options:
slack_channel,
slack_dm
status
enum<string>
required

How the delivery stands. One of:

  • pending: set up, and not sent yet; or sent and waiting to start.
  • scheduled: set to go out at the composition’s scheduled_at.
  • delivering: sending now.
  • delivered: reached every recipient it could.
  • partially_delivered: reached some recipients, and some failed.
  • failed: reached nobody, because every recipient failed or the delivery could not start.
  • canceled: called off before it was sent.
Available options:
pending,
scheduled,
delivering,
delivered,
partially_delivered,
failed,
canceled
identity
enum<string> | null
required

Who it sends as. One of:

  • bot: the Tightknit app.
  • community: the app under the community name and logo; channel posts only.
  • user: the Studio user who sent it, from their own Slack account. An API key cannot send as one.

Null when its settings cannot be read.

Available options:
user,
bot,
community

Whether Slack previews the message’s links. Null when left to Slack.

slack_channel
object | null
required

Where it posts. Null unless destination is slack_channel.

slack_dm
object | null
required

Who it messages. Null unless destination is slack_dm.

counts
object
required

Its recipients by how their send stands, as last rolled up. Empty until the delivery starts; a status with none is absent.

error_code
string | null
required

Why it failed as a whole, or the reason every recipient that failed shares, such as outcome_unknown when Slack could not say whether a message landed. Null otherwise.

delivered_at
string<date-time> | null
required

When it finished sending. Null until then.

created_by_id
string | null
required

The id of the profile that set it up or sent it. Null when an API key did, or once that profile is deleted.

updated_by_id
string | null
required

The id of the profile that last changed it. Null when an API key or the send itself did, or once that profile is deleted.

created_by
object | null

The profile that set it up or sent it. Present only when created_by is expanded.

updated_by
object | null

The profile that last changed it. Present only when updated_by is expanded.