|
1946 | 1946 | } |
1947 | 1947 | } |
1948 | 1948 | }, |
| 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 | + }, |
1949 | 2032 | "/api/v2/list-messages/message/{messageId}/lists": { |
1950 | 2033 | "get": { |
1951 | 2034 | "tags": [ |
|
5899 | 5982 | }, |
5900 | 5983 | "type": "object" |
5901 | 5984 | }, |
| 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 | + |
| 6020 | + "nullable": true |
| 6021 | + } |
| 6022 | + }, |
| 6023 | + "type": "object" |
| 6024 | + }, |
5902 | 6025 | "MessageContentRequest": { |
5903 | 6026 | "required": [ |
5904 | 6027 | "subject", |
|
6074 | 6197 | }, |
6075 | 6198 | "type": "object" |
6076 | 6199 | }, |
| 6200 | + "ForwardRecipientResult": { |
| 6201 | + "properties": { |
| 6202 | + "email": { |
| 6203 | + "type": "string", |
| 6204 | + "format": "email", |
| 6205 | + |
| 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 | + }, |
6077 | 6246 | "ListMessage": { |
6078 | 6247 | "properties": { |
6079 | 6248 | "id": { |
|
6145 | 6314 | "type": "string", |
6146 | 6315 | "example": "text", |
6147 | 6316 | "nullable": true |
6148 | | - }, |
6149 | | - "format_options": { |
6150 | | - "type": "array", |
6151 | | - "items": { |
6152 | | - "type": "string" |
6153 | | - }, |
6154 | | - "example": [ |
6155 | | - "as_html", |
6156 | | - "as_text" |
6157 | | - ] |
6158 | 6317 | } |
6159 | 6318 | }, |
6160 | 6319 | "type": "object" |
|
0 commit comments