Twilio Changelog | Aug. 12, 2024

New flows parameter in Content API approval response

Starting on August 12, 2024 we will introduce a new field into the response for the Content API fetch approval status endpoints. 

Affected endpoints will include: 

Fetch Content and Approvals

Fetch an Approval Status Request

 

The new endpoint will be in preparation for an upcoming new content type twilio/flows!

For all non-flow templates, approval objects in the response will appear in a similar format as before but with an extra parameter:

{
    "account_sid": "ACXXXXXXXXX",
    "sid": "HXxxxxxxxxxxx",
    "url": "https://content.twilio.com/v1/Content/HXxxxxxxxxxxx/ApprovalRequests",
    "whatsapp": {
  "name": "template_1",
  "category": "UTILITY",
  "content_type": "twilio/card",
  "status": "approved",
  "rejection_reason": "",
  "allow_category_change": true,
  "type": "whatsapp",
  "flows": null
    }
}

A template with type twilio/flows will start seeing approval objects that appear as such: 

{
    "account_sid": "ACXXXXXXXXX",
    "sid": "HXxxxxxxxxxxx",
    "url": "https://content.twilio.com/v1/Content/HXxxxxxxxxxxx/ApprovalRequests",
    "whatsapp": {
  "name": "template_8",
  "category": "UTILITY",
  "content_type": "twilio/flows",
  "status": "approved",
  "rejection_reason": "",
  "allow_category_change": true,
  "type": "whatsapp",
  "flows": {
    "id": "test_flow_2",
    "status": "DRAFT"
  }
    }
}