Skip to content

Commit 858eab6

Browse files
author
github-actions
committed
Update REST API documentation Thu Feb 5 09:27:46 UTC 2026
1 parent e25ea61 commit 858eab6

File tree

1 file changed

+169
-10
lines changed

1 file changed

+169
-10
lines changed

restapi.json

Lines changed: 169 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,6 +1946,89 @@
19461946
}
19471947
}
19481948
},
1949+
"/api/v2/campaigns/{messageId}/forward": {
1950+
"post": {
1951+
"tags": [
1952+
"campaigns"
1953+
],
1954+
"summary": "Forward a message to recipients.",
1955+
"description": "🚧 **Status: Beta** – This method is under development. Avoid using in production. Queues forwarding of a campaign/message to provided recipient emails.",
1956+
"operationId": "1afdc107d604814010e51a6916aa99ce",
1957+
"parameters": [
1958+
{
1959+
"name": "php-auth-pw",
1960+
"in": "header",
1961+
"description": "Session key obtained from login",
1962+
"required": true,
1963+
"schema": {
1964+
"type": "string"
1965+
}
1966+
},
1967+
{
1968+
"name": "messageId",
1969+
"in": "path",
1970+
"description": "message ID",
1971+
"required": true,
1972+
"schema": {
1973+
"type": "string"
1974+
}
1975+
}
1976+
],
1977+
"requestBody": {
1978+
"description": "Forwarding payload",
1979+
"required": true,
1980+
"content": {
1981+
"application/json": {
1982+
"schema": {
1983+
"$ref": "#/components/schemas/ForwardMessageRequest"
1984+
}
1985+
}
1986+
}
1987+
},
1988+
"responses": {
1989+
"202": {
1990+
"description": "Accepted",
1991+
"content": {
1992+
"application/json": {
1993+
"schema": {
1994+
"$ref": "#/components/schemas/ForwardResult"
1995+
}
1996+
}
1997+
}
1998+
},
1999+
"403": {
2000+
"description": "Failure",
2001+
"content": {
2002+
"application/json": {
2003+
"schema": {
2004+
"$ref": "#/components/schemas/UnauthorizedResponse"
2005+
}
2006+
}
2007+
}
2008+
},
2009+
"404": {
2010+
"description": "Failure",
2011+
"content": {
2012+
"application/json": {
2013+
"schema": {
2014+
"$ref": "#/components/schemas/NotFoundErrorResponse"
2015+
}
2016+
}
2017+
}
2018+
},
2019+
"422": {
2020+
"description": "Failure",
2021+
"content": {
2022+
"application/json": {
2023+
"schema": {
2024+
"$ref": "#/components/schemas/ValidationErrorResponse"
2025+
}
2026+
}
2027+
}
2028+
}
2029+
}
2030+
}
2031+
},
19492032
"/api/v2/list-messages/message/{messageId}/lists": {
19502033
"get": {
19512034
"tags": [
@@ -5899,6 +5982,46 @@
58995982
},
59005983
"type": "object"
59015984
},
5985+
"ForwardMessageRequest": {
5986+
"required": [
5987+
"recipients"
5988+
],
5989+
"properties": {
5990+
"recipients": {
5991+
"type": "array",
5992+
"items": {
5993+
"type": "string",
5994+
"format": "email"
5995+
},
5996+
"example": [
5997+
5998+
5999+
]
6000+
},
6001+
"uid": {
6002+
"type": "string",
6003+
"example": "fwd-123e4567-e89b-12d3-a456-426614174000",
6004+
"nullable": true
6005+
},
6006+
"note": {
6007+
"type": "string",
6008+
"example": "Thought you might like this.",
6009+
"nullable": true
6010+
},
6011+
"from_name": {
6012+
"type": "string",
6013+
"example": "Alice",
6014+
"nullable": true
6015+
},
6016+
"from_email": {
6017+
"type": "string",
6018+
"format": "email",
6019+
"example": "[email protected]",
6020+
"nullable": true
6021+
}
6022+
},
6023+
"type": "object"
6024+
},
59026025
"MessageContentRequest": {
59036026
"required": [
59046027
"subject",
@@ -6074,6 +6197,52 @@
60746197
},
60756198
"type": "object"
60766199
},
6200+
"ForwardRecipientResult": {
6201+
"properties": {
6202+
"email": {
6203+
"type": "string",
6204+
"format": "email",
6205+
"example": "[email protected]"
6206+
},
6207+
"status": {
6208+
"type": "string",
6209+
"example": "sent"
6210+
},
6211+
"reason": {
6212+
"type": "string",
6213+
"example": "precache_failed",
6214+
"nullable": true
6215+
}
6216+
},
6217+
"type": "object"
6218+
},
6219+
"ForwardResult": {
6220+
"properties": {
6221+
"total_requested": {
6222+
"type": "integer",
6223+
"example": 3
6224+
},
6225+
"total_sent": {
6226+
"type": "integer",
6227+
"example": 2
6228+
},
6229+
"total_failed": {
6230+
"type": "integer",
6231+
"example": 1
6232+
},
6233+
"total_already_sent": {
6234+
"type": "integer",
6235+
"example": 0
6236+
},
6237+
"recipients": {
6238+
"type": "array",
6239+
"items": {
6240+
"$ref": "#/components/schemas/ForwardRecipientResult"
6241+
}
6242+
}
6243+
},
6244+
"type": "object"
6245+
},
60776246
"ListMessage": {
60786247
"properties": {
60796248
"id": {
@@ -6145,16 +6314,6 @@
61456314
"type": "string",
61466315
"example": "text",
61476316
"nullable": true
6148-
},
6149-
"format_options": {
6150-
"type": "array",
6151-
"items": {
6152-
"type": "string"
6153-
},
6154-
"example": [
6155-
"as_html",
6156-
"as_text"
6157-
]
61586317
}
61596318
},
61606319
"type": "object"

0 commit comments

Comments
 (0)