Skip to main content

Twilio/content

@keeb/twilio/contentv2026.08.25.2· 20d agoMODELS
01README

Twilio content API models

02Release Notes
  • Updated: content_and_approval_v2, content_and_approval, content_v2, content, legacy_content
03Models7
@keeb/twilio/content/approval-createv2026.08.25.1approval_create.ts

Global Arguments

ArgumentTypeDescription
account_sid?stringTwilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable.
content_sidstringPath scope for the approval create: content_sid
namestringName of the template.
categorystringA WhatsApp recognized template category.
send_ttl_seconds?numberTime-to-live in seconds for attempting to send a message with this Content
auth_token?stringTwilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault.
api_key_sid?stringTwilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID.
api_key_secret?stringTwilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault.
fn create()
Create a approval create

Resources

state(infinite)— Approval create resource state
@keeb/twilio/content/approval-fetchv2026.08.25.1approval_fetch.ts

Global Arguments

ArgumentTypeDescription
account_sid?stringTwilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable.
sidstringPath scope for the approval fetch: sid
name?stringInstance name for this resource (used as the unique identifier in the factory pattern)
auth_token?stringTwilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault.
api_key_sid?stringTwilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID.
api_key_secret?stringTwilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault.
fn get()
Get a approval fetch
fn sync()
Sync approval fetch state from Twilio

Resources

state(infinite)— Approval fetch resource state
@keeb/twilio/content/contentv2026.08.25.2content.ts

Global Arguments

ArgumentTypeDescription
account_sid?stringTwilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable.
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
friendly_name?stringUser defined name of the content
variables?recordKey value pairs of variable name to value
languagestringLanguage code for the content
typesobjectContent types
auth_token?stringTwilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault.
api_key_sid?stringTwilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID.
api_key_secret?stringTwilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault.
fn create()
Create a content
fn get(id: string)
Get a content
ArgumentTypeDescription
idstringThe sid of the content
fn lookup(max_items?: number)
List contents and record each as a data artifact (capped at 200 by default; writes a content_lookup record with the coverage of the walk)
ArgumentTypeDescription
max_items?numberStop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the content_lookup record reports truncated: true.
fn update()
Update content attributes
fn delete(id: string)
Delete the content
ArgumentTypeDescription
idstringThe sid of the content
fn sync()
Sync content state from Twilio

Resources

state(infinite)— Content resource state
content_lookup(infinite)— Content lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/content/content-and-approvalv2026.08.25.2content_and_approval.ts

Global Arguments

ArgumentTypeDescription
account_sid?stringTwilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable.
name?stringInstance name for this resource (used as the unique identifier in the factory pattern)
auth_token?stringTwilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault.
api_key_sid?stringTwilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID.
api_key_secret?stringTwilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault.
fn lookup(max_items?: number)
List content and approvals and record each as a data artifact (capped at 200 by default; writes a content_and_approval_lookup record with the coverage of the walk)
ArgumentTypeDescription
max_items?numberStop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the content_and_approval_lookup record reports truncated: true.

Resources

state(infinite)— Content and approval resource state
content_and_approval_lookup(infinite)— Content and approval lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/content/content-and-approval-v2v2026.08.25.2content_and_approval_v2.ts

Global Arguments

ArgumentTypeDescription
account_sid?stringTwilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable.
name?stringInstance name for this resource (used as the unique identifier in the factory pattern)
auth_token?stringTwilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault.
api_key_sid?stringTwilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID.
api_key_secret?stringTwilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault.
fn lookup(sort_by_date?: string, sort_by_content_name?: string, date_created_after?: string, date_created_before?: string, content_name?: string, content?: string, language?: string, content_type?: string, channel_eligibility?: string, max_items?: number)
List content and approval v2s and record each as a data artifact (capped at 200 by default; writes a content_and_approval_v2_lookup record with the coverage of the walk)
ArgumentTypeDescription
sort_by_date?stringWhether to sort by ascending or descending date updated
sort_by_content_name?stringWhether to sort by ascending or descending content name
date_created_after?stringFilter by >=[date-time]
date_created_before?stringFilter by <=[date-time]
content_name?stringFilter by Regex Pattern in content name
content?stringFilter by Regex Pattern in template content
language?stringFilter by array of valid language(s)
content_type?stringFilter by array of contentType(s)
channel_eligibility?stringFilter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
max_items?numberStop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the content_and_approval_v2_lookup record reports truncated: true.

Resources

state(infinite)— Content and approval v2 resource state
content_and_approval_v2_lookup(infinite)— Content and approval v2 lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/content/content-v2v2026.08.25.2content_v2.ts

Global Arguments

ArgumentTypeDescription
account_sid?stringTwilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable.
name?stringInstance name for this resource (used as the unique identifier in the factory pattern)
auth_token?stringTwilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault.
api_key_sid?stringTwilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID.
api_key_secret?stringTwilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault.
fn lookup(sort_by_date?: string, sort_by_content_name?: string, date_created_after?: string, date_created_before?: string, content_name?: string, content?: string, language?: string, content_type?: string, channel_eligibility?: string, max_items?: number)
List content v2s and record each as a data artifact (capped at 200 by default; writes a content_v2_lookup record with the coverage of the walk)
ArgumentTypeDescription
sort_by_date?stringWhether to sort by ascending or descending date updated
sort_by_content_name?stringWhether to sort by ascending or descending content name
date_created_after?stringFilter by >=[date-time]
date_created_before?stringFilter by <=[date-time]
content_name?stringFilter by Regex Pattern in content name
content?stringFilter by Regex Pattern in template content
language?stringFilter by array of valid language(s)
content_type?stringFilter by array of contentType(s)
channel_eligibility?stringFilter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
max_items?numberStop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the content_v2_lookup record reports truncated: true.

Resources

state(infinite)— Content v2 resource state
content_v2_lookup(infinite)— Content v2 lookup coverage — whether the page walk exhausted the collection
@keeb/twilio/content/legacy-contentv2026.08.25.2legacy_content.ts

Global Arguments

ArgumentTypeDescription
account_sid?stringTwilio Account SID (starts with AC). Also substituted for {AccountSid} path parameters. Overrides the TWILIO_ACCOUNT_SID environment variable.
name?stringInstance name for this resource (used as the unique identifier in the factory pattern)
auth_token?stringTwilio auth token, used as the HTTP Basic password when no API key is set. Overrides TWILIO_AUTH_TOKEN. Wire with a vault.get(...) expression to source it from a vault.
api_key_sid?stringTwilio API key SID (starts with SK). Takes precedence over auth_token. Overrides TWILIO_API_KEY_SID.
api_key_secret?stringTwilio API key secret, paired with api_key_sid. Overrides TWILIO_API_KEY_SECRET. Wire with a vault.get(...) expression to source it from a vault.
fn lookup(max_items?: number)
List legacy contents and record each as a data artifact (capped at 200 by default; writes a legacy_content_lookup record with the coverage of the walk)
ArgumentTypeDescription
max_items?numberStop after this many results (default 200, ceiling 1000000). Raise deliberately: Twilio's message and call logs are effectively endless, and every result becomes its own data artifact. When the walk stops here with rows still on offer, the legacy_content_lookup record reports truncated: true.

Resources

state(infinite)— Legacy content resource state
legacy_content_lookup(infinite)— Legacy content lookup coverage — whether the page walk exhausted the collection
04Stats
B
85 / 100
Downloads
0
Archive size
31.3 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository0/2missing
05Platforms
06Labels