curl --request POST \
--url http://localhost:8080/api/v1/macros \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"created_at": "2025-08-28T10:00:00Z",
"updated_at": "2025-08-28T10:00:00Z",
"name": "Close and Thank",
"actions": {},
"visibility": "global",
"visible_when": [
"conversation_open"
],
"message_content": "Thank you for contacting us!",
"user_id": "1",
"team_id": "1",
"usage_count": 25
}'
{
"status": "success",
"data": {
"id": 1,
"created_at": "2025-08-28T10:00:00Z",
"updated_at": "2025-08-28T10:00:00Z",
"name": "Close and Thank",
"actions": {},
"visibility": "global",
"visible_when": [
"conversation_open"
],
"message_content": "Thank you for contacting us!",
"user_id": "1",
"team_id": "1",
"usage_count": 25
}
}
curl --request POST \
--url http://localhost:8080/api/v1/macros \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"created_at": "2025-08-28T10:00:00Z",
"updated_at": "2025-08-28T10:00:00Z",
"name": "Close and Thank",
"actions": {},
"visibility": "global",
"visible_when": [
"conversation_open"
],
"message_content": "Thank you for contacting us!",
"user_id": "1",
"team_id": "1",
"usage_count": 25
}'
{
"status": "success",
"data": {
"id": 1,
"created_at": "2025-08-28T10:00:00Z",
"updated_at": "2025-08-28T10:00:00Z",
"name": "Close and Thank",
"actions": {},
"visibility": "global",
"visible_when": [
"conversation_open"
],
"message_content": "Thank you for contacting us!",
"user_id": "1",
"team_id": "1",
"usage_count": 25
}
}
Basic authentication using base64 encoded API key and secret. Format: Authorization: Basic <base64(api_key:api_secret)>
Macro configuration
The body is of type object
.
Macro created successfully
The response is of type object
.
Was this page helpful?