Flows
Send Flow

Create authentication template w/ OTP copy code button

post/{Version}/{WABA-ID}/message_templates

Request

  • Base URL
    https://graph.facebook.com
  • URL
    https://graph.facebook.com/{Version}/{WABA-ID}/message_templates
  • Auth
    HTTP bearer

Request body

categorystring
languagestring
namestring

Example request

{
  "category": "MARKETING",
  "components": [
    {
      "text": "Check out this new offer",
      "type": "body"
    },
    {
      "buttons": [
        {
          "flow_action": "navigate",
          "flow_id": "{{Flow-ID}}",
          "navigate_screen": "<SCREEN_ID>",
          "text": "Check out this offer!",
          "type": "FLOW"
        }
      ],
      "type": "BUTTONS"
    }
  ],
  "language": "en_US",
  "name": "<TEMPLATE_NAME>"
}

Response

Example response / Example response / Example response / Example response / Example response / Example response / Example response / Example response / Create Flow Template Message by Name / Create Flow Template Message by Flow JSON / Create Flow Template Message by ID

categorystring
idstring
statusstring

Example response

{
  "category": "AUTHENTICATION",
  "id": "1473688840035974",
  "status": "APPROVED"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.