דלג לתוכן הראשי
POST
/
quick-replies
curl --request POST \
  --url https://{projectID}.texterchat.com/server/api/v2/quick-replies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "send": {
    "contents": [
      {
        "type": "text",
        "text": "Thanks for reaching out! An agent will reply shortly."
      }
    ],
    "target": [
      {
        "name": "whatsapp",
        "accountId": "972586640430"
      }
    ]
  },
  "display": {
    "position": "top",
    "title": "Greeting"
  }
}
'
{
  "_id": "<string>",
  "send": {
    "contents": [
      {}
    ],
    "betweenMessagesDelay": 123,
    "target": [
      {
        "accountId": "<string>",
        "id": "<string>"
      }
    ]
  },
  "display": {
    "title": "<string>",
    "note": "<string>",
    "departments": [
      "<string>"
    ],
    "users": [
      "<string>"
    ]
  },
  "metadata": {
    "created": 123,
    "updated": 123,
    "client": {}
  }
}

הרשאות

Authorization
string
header
נדרש

API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.

גוף

application/json
send
object
נדרש
display
object

How and where the quick reply is displayed in Texter

תגובה

The created quick reply. Field-by-field reference: The Quick Reply object

A quick reply - one or more prepared messages agents (or the AI assistant) can send into matching chats

_id
string

Unique identifier of the quick reply

send
object
display
object

How and where the quick reply is displayed in Texter

metadata
object