Menu
Get Macro
Retrieve a macro
GET
/api/macros/{id}Use it in a workflow
- Add a step and choose the Gorgias connector.
- Pick the Get Macro action (under Macros).
- Fill in the fields below, then reference the result from later steps as
{{getMacro.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getMacro.response.data.<field>}}.
{
"id": 23453,
"external_id": "CUS-324512",
"name": "Order status inquiry",
"intent": "discount/request",
"language": "en",
"usage": 58392,
"actions": [
{
"arguments": {
"tags": "question, order-status"
},
"name": "addTags",
"title": "add tags",
"type": "user"
},
{
"arguments": {
"body_html": "<div>Hi {{ticket.customer.firstname}},</div><br><div>Your order has been delivered.</div>",
"body_text": "Hi {{ticket.customer.firstname}},\n\nYour order has been delivered."
},
"name": "setResponseText",
"title": "add tags",
"type": "user"
}
],
"created_datetime": "2019-11-23T15:59:41.966927",
"updated_datetime": "2020-01-30T11:04:34.345123",
"archived_datetime": "2019-11-23T15:59:41.966927",
"uri": "string"
}
Need more? See the Gorgias guide for connection setup and behaviour shared by every action.
Was this page helpful?