CRADמפתחים
עברית

Check the original send outcome

לפני שימוש חי — בדקו יכולות פרוסות, הרשאות ומוכנות של החיבור שלכם.

בדקו את היכולות הפרוסות, הרשאות המפתח ומוכנות העסק בסביבה שלכם. דוגמאות HTTP נלכדו בבדיקות מבודדות; הסימון local-unreleased שלהן אינו אומר שה־API אינו פועל, ואינו מאשר את החיבור שלכם. במסלול הלקוח מאמתים טלפון בתבנית WhatsApp שהעסק הגדיר; SMS אינו נתמך. רישום בידי אדמין מורשה הוא פעולה נפרדת ללא קוד.

GET/v1/management/conversation-sends/{operationId}

Behavior

Pure recovery for the same integration under current authority. found returns the original receipt and current outcome; neither checking nor replay resends. not_found is a point-in-time observation and does not cancel an earlier request. Keep the exact original request for an explicit retry. If its body was lost, do not reconstruct it. Receipts survive transcript expiry; current can be unavailable after conversation removal.

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

conversations:readconversations:send

Explicit whole-business conversation access. Provider selections do not narrow it; customer, calendar or sending scopes do not grant it. Keep the Management key on your backend. Inbox enablement remains separate.

Request

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

Successful responses

200 · BusinessConversationSendOperation

Current authorized result.

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

application/json · BusinessConversationSendOperation

Read-only lookup under current authority for the same integration. not_found is a point-in-time observation, not proof an earlier request cannot finish. Do not replace the original operation UUID.

Exactly one of these variants must match.

  • oneOf 1 · status = "not_found"objectSchema branch
    View branch fields and rules
    • statusstringRequired in this branch

      Value: "not_found"

    • additionalPropertiesno value allowedSchema rule
  • oneOf 2 · status = "found"object; allOf (unspecified)Schema branch

    All of these schema rules apply together.

    View branch fields and rules
    • statusstringRequired in this branch

      Value: "found"

    • receiptobjectRequired in this branch
      View nested fields
      • operationIdstring · uuidRequired in this branch
      • conversationIdstring · uuidRequired in this branch
      • expectedVersionstringRequired in this branch

        Original control version, as acknowledged by the conversation API. Never replace this value during recovery.

        pattern: "^cv(?:0|[1-9][0-9]*)$"

      • kindstringRequired in this branch

        Allowed values: ["text","media","template"]

      • requestHashstringRequired in this branch

        pattern: "^[a-f0-9]{64}$"

      • externalActorRefanyOf (string | null)Required in this branch

        Optional audit label from your backend, preserved exactly. CRAD does not verify this external user identity; it grants no permission.

        At least one of these variants must match.

        View nested fields
        • anyOf 1stringSchema branch

          maxLength: 200minLength: 1pattern: "^[^\\u0000-\\u001f\\u007f]*\\S[^\\u0000-\\u001f\\u007f]*$"

        • anyOf 2nullSchema branch
      • additionalPropertiesno value allowedSchema rule
    • currentanyOf (object | null)Required in this branch

      At least one of these variants must match.

      View nested fields
      • anyOf 1objectSchema branch

        accepted means Meta accepted the send; it does not mean delivered or read. unknown means delivery cannot yet be established. reviewed only acknowledges this uncertainty and never resends. A later verified callback can settle the original attempt.

        View branch fields and rules
        • messageIdanyOf (string | null)Required in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1string · uuidSchema branch
          • anyOf 2nullSchema branch
        • attemptIdstring · uuidRequired in this branch
        • statestringRequired in this branch

          Allowed values: ["pending","accepted","rejected","unknown"]

        • errorCodeanyOf (string | null)Required in this branch

          At least one of these variants must match.

          View nested fields
          • anyOf 1stringSchema branch

            pattern: "^[a-z][a-z0-9_]{0,79}$"

          • anyOf 2nullSchema branch
        • reviewedbooleanRequired in this branch
        • deliveryanyOf (object; allOf (unspecified) | null)Optional in this branch

          Optional current delivery evidence for the exact retained message. Separate from dispatch acceptance. Null or absent means no retained verdict; it never permits a resend.

          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
            • statusstringRequired in this branch

              Allowed values: ["pending","sent","delivered","read","played","failed","unknown"]

            • updatedAtstring | null · date-timeRequired in this branch
            • erroranyOf (object | null)Required in this branch

              Bounded Meta delivery-error code, when supplied. No raw provider payload. A code does not prove the recipient-specific cause.

              At least one of these variants must match.

              View nested fields
              • anyOf 1objectSchema branch
                View branch fields and rules
                • codeintegerRequired in this branch

                  minimum: 1maximum: 2147483647

                • additionalPropertiesno value allowedSchema rule
              • anyOf 2nullSchema branch
            • allOf 1unspecifiedSchema branch
              View branch fields and rules
              • ifobjectSchema rule
                View branch fields and rules
                • statusunspecifiedCondition predicate
                  View nested fields
                  • notstringSchema rule

                    This rule must not match.

                    Value: "failed"

              • thenobjectSchema rule
                View branch fields and rules
                • errornullOptional in this branch
            • additionalPropertiesno value allowedSchema rule
          • anyOf 2nullSchema branch
        • additionalPropertiesno value allowedSchema rule
      • anyOf 2nullSchema branch
    • currentUnavailableReasonstring | nullRequired in this branch

      Allowed values: ["conversation_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: "conversation_not_found"

      • elseobjectSchema rule
        View branch fields and rules
        • currentUnavailableReasonnullOptional in this branch
    • additionalPropertiesno value allowedSchema rule
Complete schema and nested fields
JSON Schema
{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "status": {
          "const": "not_found"
        }
      },
      "required": [
        "status"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "status": {
          "const": "found"
        },
        "receipt": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "operationId": {
              "type": "string",
              "format": "uuid"
            },
            "conversationId": {
              "type": "string",
              "format": "uuid"
            },
            "expectedVersion": {
              "type": "string",
              "pattern": "^cv(?:0|[1-9][0-9]*)$",
              "description": "Original control version, as acknowledged by the conversation API. Never replace this value during recovery."
            },
            "kind": {
              "enum": [
                "text",
                "media",
                "template"
              ]
            },
            "requestHash": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "externalActorRef": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^[^\\u0000-\\u001f\\u007f]*\\S[^\\u0000-\\u001f\\u007f]*$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Optional audit label from your backend, preserved exactly. CRAD does not verify this external user identity; it grants no permission."
            }
          },
          "required": [
            "operationId",
            "conversationId",
            "expectedVersion",
            "kind",
            "requestHash",
            "externalActorRef"
          ]
        },
        "current": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "messageId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "attemptId": {
                  "type": "string",
                  "format": "uuid"
                },
                "state": {
                  "enum": [
                    "pending",
                    "accepted",
                    "rejected",
                    "unknown"
                  ]
                },
                "errorCode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,79}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reviewed": {
                  "type": "boolean"
                },
                "delivery": {
                  "anyOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "status": {
                          "enum": [
                            "pending",
                            "sent",
                            "delivered",
                            "read",
                            "played",
                            "failed",
                            "unknown"
                          ]
                        },
                        "updatedAt": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        },
                        "error": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "code": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 2147483647
                                }
                              },
                              "required": [
                                "code"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Bounded Meta delivery-error code, when supplied. No raw provider payload. A code does not prove the recipient-specific cause."
                        }
                      },
                      "required": [
                        "status",
                        "updatedAt",
                        "error"
                      ],
                      "allOf": [
                        {
                          "if": {
                            "properties": {
                              "status": {
                                "not": {
                                  "const": "failed"
                                }
                              }
                            },
                            "required": [
                              "status"
                            ]
                          },
                          "then": {
                            "properties": {
                              "error": {
                                "type": "null"
                              }
                            }
                          }
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Optional current delivery evidence for the exact retained message. Separate from dispatch acceptance. Null or absent means no retained verdict; it never permits a resend."
                }
              },
              "required": [
                "messageId",
                "attemptId",
                "state",
                "errorCode",
                "reviewed"
              ],
              "description": "accepted means Meta accepted the send; it does not mean delivered or read. unknown means delivery cannot yet be established. reviewed only acknowledges this uncertainty and never resends. A later verified callback can settle the original attempt."
            },
            {
              "type": "null"
            }
          ]
        },
        "currentUnavailableReason": {
          "enum": [
            "conversation_not_found",
            null
          ]
        },
        "replayed": {
          "type": "boolean"
        }
      },
      "required": [
        "status",
        "receipt",
        "current",
        "currentUnavailableReason",
        "replayed"
      ],
      "allOf": [
        {
          "if": {
            "properties": {
              "current": {
                "type": "null"
              }
            }
          },
          "then": {
            "properties": {
              "currentUnavailableReason": {
                "const": "conversation_not_found"
              }
            }
          },
          "else": {
            "properties": {
              "currentUnavailableReason": {
                "type": "null"
              }
            }
          }
        }
      ]
    }
  ],
  "description": "Read-only lookup under current authority for the same integration. not_found is a point-in-time observation, not proof an earlier request cannot finish. Do not replace the original operation UUID."
}

Errors and recovery

Error responses declared in the contract (9)

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

401 · Missing or invalid 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 authority or scope denied, browser Origin refused, or inbox not enabled.
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"
  ]
}
404 · Conversation, retained message or usable media not found. Expired or foreign upload handles cannot be sent.
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 HTTP 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"
  ]
}
409 · Connection, consent, control ownership or service window prevents this command; OPERATION_CONFLICT means the same UUID was used with different input. Unknown prior sends require review, never automatic redispatch.
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 or ambiguous input, unsupported query parameter, UUID or body field.
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 or send quota exceeded. Honor Retry-After when present.
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"
  ]
}
502 · Provider templates or media are temporarily unavailable.
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"
  ]
}
503 · Outcome may be uncertain. Keep the original request identity and use the read-only recovery endpoint; do not create a fresh send.
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"
  ]
}