CRADDevelopers
English

Check template request submission

Before going live — check deployed capabilities, grants and your integration’s readiness.

Check deployed capabilities, key grants and business readiness in your environment. HTTP examples were captured in isolated tests; their local-unreleased provenance neither says the API is offline nor certifies your integration. Customer self-service uses the business-configured WhatsApp authentication template; SMS is not supported. Authorized admin contact recording is a separate action without a code.

GET/v1/management/template-request-operations/{operationId}

Notify one customer that a document is ready

Request a template once with a saved Idempotency-Key. Track receipt.request.requestId through /template-requests/{requestId}; recover a lost response through /template-request-operations/{savedUuid}. A request marked done records staff assistance, not Meta approval.

Select the actual name and language from /campaign-templates only when status is APPROVED and supported is true. Send the authenticated portal entry as its parameter; keep clinical details, document contents and access/login tokens out of the message and URL. Obtain permission for document-ready notices separately: appointment consent is not blanket permission for documents. Honor opt-outs.

Permissions for this step

template-requests:readtemplate-requests:write

Continue with the clinic notification workflow

Behavior

Check the original operation without creating or resending a request. not_found does not cancel an in-flight request; retain the UUID and exact input for an explicit retry. receipt is immutable. current:null with request_not_found means the request was removed, while the accepted receipt remains. This API cannot mark a request done.

Authentication

ManagementCredential

Credential rules

One server-only owner-issued wbm_ API key can carry both management and integration permissions. Additional permissions require an explicit owner-issued grant. GET /v1/management returns the management discovery view, which may be empty for a booking-only key. For credentials with appointments:read, this discovery view omits whatsapp-templates:read, whatsapp-templates:write, whatsapp-profile:read and whatsapp-profile:write to preserve calendar-client compatibility. Discover these grants through GET /v1/management/messaging-capabilities. Template/profile command authorization still uses the stored grants. Server-only owner-issued Management authority with explicit application permissions. Calling this API does not expand a credential's grants. contacts:read/write/block/sync/fields:read/fields:write are separate approvals for canonical business contacts; fields also require current typed owner grants. contacts:record remains contact recording/recovery only. These grants create no customer phone proof, booking authority, messaging consent or automatic synchronization. Hours/blocks retain their independent resource grants. booking-policy:read/write separately delegate whole-business booking settings, without schedule/provider grants; write requires read. They preserve existing appointments and create no duration-rewrite authority. Provider duration policy additionally requires explicit provider-booking-policy:read/write and exact current providerIds; booking-duration:rewrite is separately approved and does not itself grant policy read/write. Service catalogue requires explicit services:read/write, independent of provider/calendar/schedule resources; write requires read. These operations do not expand an existing credential's grants. Public presentation and reviewed service selection require explicit website-content:read/write; write requires read, independently from services:* and provider resources. Existing provider metadata/activity/assignment additionally requires providers:read/write and a nonempty explicit current providerIds grant; write requires read. This grants no provider creation, deletion, login, invitation or schedule authority. WhatsApp template/profile management requires separate whatsapp-templates:read, whatsapp-templates:write, whatsapp-profile:read and whatsapp-profile:write application scopes. Write requires its matching read scope. These grants require explicit owner approval; Meta OAuth permissions remain separate.

Required application permissions

template-requests:readtemplate-requests:write

Requires fresh read and write grants for the same integration. An authorized replacement key can recover the original operation.

Request

  • operationIdpath · stringRequired
    Format and constraints
    operationId schema
    {
      "type": "string",
      "format": "uuid"
    }

Successful responses

200 · application/json

Accepted receipt/current state, or not_found.

Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

application/json

Exactly one of these variants must match.

  • oneOf 1object; allOf (unspecified)Schema branch

    All of these schema rules apply together.

    View branch fields and rules
    • receiptobjectRequired in this branch
      View nested fields
      • operationIdstring · uuidRequired in this branch
      • requestallOf (object; allOf (unspecified) & object)Required in this branch

        All of these schema rules apply together.

        View nested fields
        • allOf 1object; allOf (unspecified)Schema branch

          All of these schema rules apply together.

          View branch fields and rules
          • requestIdstring · uuidRequired in this branch
          • purposestringRequired in this branch

            minLength: 1maxLength: 300

          • exampleTextstring | nullRequired in this branch

            maxLength: 1024

          • languagesarrayRequired in this branch

            Historical requests may contain no languages or repeated languages; those values are preserved.

            maxItems: 3

            View nested fields
            • []stringArray item

              Allowed values: ["he","ar","en"]

          • statusstringRequired in this branch

            CRAD request handling only. done does not attest Meta approval or permission to send.

            Allowed values: ["open","done"]

          • createdAtstring · date-timeRequired in this branch
          • completedAtanyOf (string | null)Required in this branch

            At least one of these variants must match.

            View nested fields
            • anyOf 1string · date-timeSchema branch
            • anyOf 2nullSchema branch
          • sourcestringRequired in this branch

            Native CRAD account or delegated integration. Actor and credential identities are not disclosed.

            Allowed values: ["native","integration"]

          • allOf 1unspecifiedSchema branch
            View branch fields and rules
            • ifobjectSchema rule
              View branch fields and rules
              • statusstringCondition predicate

                Value: "open"

            • thenobjectSchema rule
              View branch fields and rules
              • completedAtnullOptional in this branch
            • elseobjectSchema rule
              View branch fields and rules
              • completedAtstring · date-timeOptional in this branch
          • additionalPropertiesno value allowedSchema rule
        • allOf 2 · status = "open"objectSchema branch
          View branch fields and rules
          • statusstringOptional in this branch

            Value: "open"

          • completedAtnullOptional in this branch
      • additionalPropertiesno value allowedSchema rule
    • currentanyOf (object; allOf (unspecified) | null)Required in this branch

      At least one of these variants must match.

      View nested fields
      • anyOf 1object; allOf (unspecified)Schema branch

        All of these schema rules apply together.

        View branch fields and rules
        • requestIdstring · uuidRequired in this branch
        • purposestringRequired in this branch

          minLength: 1maxLength: 300

        • exampleTextstring | nullRequired in this branch

          maxLength: 1024

        • languagesarrayRequired in this branch

          Historical requests may contain no languages or repeated languages; those values are preserved.

          maxItems: 3

          View nested fields
          • []stringArray item

            Allowed values: ["he","ar","en"]

        • statusstringRequired in this branch

          CRAD request handling only. done does not attest Meta approval or permission to send.

          Allowed values: ["open","done"]

        • createdAtstring · date-timeRequired in this branch
        • completedAtanyOf (string | null)Required in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1string · date-timeSchema branch
          • anyOf 2nullSchema branch
        • sourcestringRequired in this branch

          Native CRAD account or delegated integration. Actor and credential identities are not disclosed.

          Allowed values: ["native","integration"]

        • allOf 1unspecifiedSchema branch
          View branch fields and rules
          • ifobjectSchema rule
            View branch fields and rules
            • statusstringCondition predicate

              Value: "open"

          • thenobjectSchema rule
            View branch fields and rules
            • completedAtnullOptional in this branch
          • elseobjectSchema rule
            View branch fields and rules
            • completedAtstring · date-timeOptional in this branch
        • additionalPropertiesno value allowedSchema rule
      • anyOf 2nullSchema branch
    • currentUnavailableReasonstring | nullRequired in this branch

      Allowed values: ["request_not_found",null]

    • replayedbooleanRequired in this branch
    • allOf 1unspecifiedSchema branch
      View branch fields and rules
      • ifobjectSchema rule
        View branch fields and rules
        • currentnullCondition predicate
      • thenobjectSchema rule
        View branch fields and rules
        • currentUnavailableReasonstringOptional in this branch

          Value: "request_not_found"

      • elseobjectSchema rule
        View branch fields and rules
        • currentUnavailableReasonnullOptional in this branch
    • additionalPropertiesno value allowedSchema rule
  • oneOf 2 · status = "not_found"objectSchema branch
    View branch fields and rules
    • statusstringRequired in this branch

      Value: "not_found"

    • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "receipt",
        "current",
        "currentUnavailableReason",
        "replayed"
      ],
      "properties": {
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "operationId",
            "request"
          ],
          "properties": {
            "operationId": {
              "type": "string",
              "format": "uuid"
            },
            "request": {
              "allOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "requestId",
                    "purpose",
                    "exampleText",
                    "languages",
                    "status",
                    "createdAt",
                    "completedAt",
                    "source"
                  ],
                  "properties": {
                    "requestId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "purpose": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 300
                    },
                    "exampleText": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "maxLength": 1024
                    },
                    "languages": {
                      "type": "array",
                      "maxItems": 3,
                      "items": {
                        "type": "string",
                        "enum": [
                          "he",
                          "ar",
                          "en"
                        ]
                      },
                      "description": "Historical requests may contain no languages or repeated languages; those values are preserved."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "open",
                        "done"
                      ],
                      "description": "CRAD request handling only. done does not attest Meta approval or permission to send."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "completedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "native",
                        "integration"
                      ],
                      "description": "Native CRAD account or delegated integration. Actor and credential identities are not disclosed."
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "status": {
                            "const": "open"
                          }
                        }
                      },
                      "then": {
                        "properties": {
                          "completedAt": {
                            "type": "null"
                          }
                        }
                      },
                      "else": {
                        "properties": {
                          "completedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  ]
                },
                {
                  "properties": {
                    "status": {
                      "const": "open"
                    },
                    "completedAt": {
                      "type": "null"
                    }
                  }
                }
              ]
            }
          }
        },
        "current": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "requestId",
                "purpose",
                "exampleText",
                "languages",
                "status",
                "createdAt",
                "completedAt",
                "source"
              ],
              "properties": {
                "requestId": {
                  "type": "string",
                  "format": "uuid"
                },
                "purpose": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 300
                },
                "exampleText": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "maxLength": 1024
                },
                "languages": {
                  "type": "array",
                  "maxItems": 3,
                  "items": {
                    "type": "string",
                    "enum": [
                      "he",
                      "ar",
                      "en"
                    ]
                  },
                  "description": "Historical requests may contain no languages or repeated languages; those values are preserved."
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "open",
                    "done"
                  ],
                  "description": "CRAD request handling only. done does not attest Meta approval or permission to send."
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "completedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "native",
                    "integration"
                  ],
                  "description": "Native CRAD account or delegated integration. Actor and credential identities are not disclosed."
                }
              },
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "status": {
                        "const": "open"
                      }
                    }
                  },
                  "then": {
                    "properties": {
                      "completedAt": {
                        "type": "null"
                      }
                    }
                  },
                  "else": {
                    "properties": {
                      "completedAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    }
                  }
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "currentUnavailableReason": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "request_not_found",
            null
          ]
        },
        "replayed": {
          "type": "boolean"
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "current": {
                "type": "null"
              }
            }
          },
          "then": {
            "properties": {
              "currentUnavailableReason": {
                "const": "request_not_found"
              }
            }
          },
          "else": {
            "properties": {
              "currentUnavailableReason": {
                "type": "null"
              }
            }
          }
        }
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "status"
      ],
      "properties": {
        "status": {
          "const": "not_found"
        }
      }
    }
  ]
}

Errors and recovery

Error responses declared in the contract (6)

The pinned contract shares generic error definitions across operations. This list is not an exhaustive list of runtime errors.

401 · Invalid or missing Management credential.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
403 · Current key/integration/scope authority denied, platform suspension, or browser Origin refused.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
405 · Unsupported method.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
422 · Invalid operationId UUID or unsupported query/body.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
429 · Request quota reached; honor Retry-After.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}
Retry-After · When supplied, seconds to wait before checking again; not permission to create another command.
Retry-After schema
{
  "type": "integer",
  "minimum": 1
}

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}
503 · Temporary result-check failure. Keep the original operation UUID and input. Retry this read after any supplied Retry-After; checking never creates or resubmits a request.
Cache-Control
Cache-Control schema
{
  "const": "no-store"
}
Retry-After · When supplied, seconds to wait before checking again; not permission to create another command.
Retry-After schema
{
  "type": "integer",
  "minimum": 1
}

application/json · Error

  • errorobjectRequired
    View nested fields
    • codestringRequired
    • requestIdstring · uuidRequired
    • retryAfterintegerOptional

      minimum: 1

    • additionalPropertiesno value allowedSchema rule
  • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "requestId": {
          "type": "string",
          "format": "uuid"
        },
        "retryAfter": {
          "type": "integer",
          "minimum": 1
        }
      },
      "required": [
        "code",
        "requestId"
      ]
    }
  },
  "required": [
    "error"
  ]
}