Macros
Returns a single macro by ID.
Rate limit: 300 requests per minute
Authorization: Bearer
The ID of the macro.
The request ID for tracking.
The authenticated caller or organization is not allowed to access this endpoint or operation.
An unexpected internal error occurred.
GET /macros/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": {
"actions": [
{
"type": "text"
}
],
"created_at": "text",
"has_actions": true,
"id": "text",
"macro_group_id": "text",
"name": "text",
"text_html": "text",
"text_type": "text",
"updated_at": "text",
"visibility": {
"team_ids": [
"text"
],
"type": "text",
"user_ids": [
"text"
]
}
},
"request_id": "text"
}Returns all macros for the organization. Optionally filter by macro group ID.
Rate limit: 300 requests per minute
Authorization: Bearer
Filter macros by macro group ID.
The request ID for tracking.
The authenticated caller or organization is not allowed to access this endpoint or operation.
An unexpected internal error occurred.
GET /macros HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"actions": [
{
"type": "text"
}
],
"created_at": "text",
"has_actions": true,
"id": "text",
"macro_group_id": "text",
"name": "text",
"text_html": "text",
"text_type": "text",
"updated_at": "text",
"visibility": {
"team_ids": [
"text"
],
"type": "text",
"user_ids": [
"text"
]
}
}
],
"request_id": "text"
}Permanently deletes a macro by ID.
Rate limit: 120 requests per minute
Authorization: Bearer
The ID of the macro to delete.
The request ID for tracking.
The request was invalid or could not be completed.
The authenticated caller or organization is not allowed to access this endpoint or operation.
An unexpected internal error occurred.
DELETE /macros/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"request_id": "text"
}Returns all macro groups for the organization.
Rate limit: 300 requests per minute
Authorization: Bearer
The request ID for tracking.
The authenticated caller or organization is not allowed to access this endpoint or operation.
An unexpected internal error occurred.
GET /macro-groups HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"created_at": "text",
"id": "text",
"title": "text",
"updated_at": "text"
}
],
"request_id": "text"
}Updates an existing macro by ID. All fields are optional; only provided fields will be updated.
Rate limit: 300 requests per minute
Authorization: Bearer
The ID of the macro to update.
The ID of the macro group this macro belongs to.
The name of the macro.
The HTML content of the macro.
The type of text: "reply", "note", or "email".
The request ID for tracking.
The request was invalid or could not be completed.
The authenticated caller or organization is not allowed to access this endpoint or operation.
An unexpected internal error occurred.
PATCH /macros/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 295
{
"conditions": {
"field": "text",
"operator": "equals",
"subfilters": [
{
"field": "state",
"operator": "equals",
"value": "new"
}
],
"value": "text",
"values": [
"text"
]
},
"macro_group_id": "text",
"name": "text",
"text_html": "text",
"text_type": "text",
"visibility": {
"team_ids": [
"text"
],
"type": "org",
"user_ids": [
"text"
]
}
}{
"data": {
"actions": [
{
"type": "text"
}
],
"created_at": "text",
"has_actions": true,
"id": "text",
"macro_group_id": "text",
"name": "text",
"text_html": "text",
"text_type": "text",
"updated_at": "text",
"visibility": {
"team_ids": [
"text"
],
"type": "text",
"user_ids": [
"text"
]
}
},
"request_id": "text"
}Creates a new macro within the specified macro group.
Rate limit: 300 requests per minute
Authorization: Bearer
The ID of the macro group this macro belongs to.
The name of the macro.
The HTML content of the macro.
The type of text: "reply", "note", or "email". Defaults to "reply".
The request ID for tracking.
The request was invalid or could not be completed.
The authenticated caller or organization is not allowed to access this endpoint or operation.
An unexpected internal error occurred.
POST /macros HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 295
{
"conditions": {
"field": "text",
"operator": "equals",
"subfilters": [
{
"field": "state",
"operator": "equals",
"value": "new"
}
],
"value": "text",
"values": [
"text"
]
},
"macro_group_id": "text",
"name": "text",
"text_html": "text",
"text_type": "text",
"visibility": {
"team_ids": [
"text"
],
"type": "org",
"user_ids": [
"text"
]
}
}{
"data": {
"actions": [
{
"type": "text"
}
],
"created_at": "text",
"has_actions": true,
"id": "text",
"macro_group_id": "text",
"name": "text",
"text_html": "text",
"text_type": "text",
"updated_at": "text",
"visibility": {
"team_ids": [
"text"
],
"type": "text",
"user_ids": [
"text"
]
}
},
"request_id": "text"
}Last updated
Was this helpful?

