JobEmail ======== Quick Reference --------------- .. list-table:: :header-rows: 1 :widths: 10 40 50 * - Method - Endpoint - Description * - POST - /api/job/{jobDisplayId}/email/senddocument - * - POST - /api/job/{jobDisplayId}/email - * - POST - /api/job/{jobDisplayId}/email/createtransactionalemail - * - POST - /api/job/{jobDisplayId}/email/{emailTemplateGuid}/send - .. _post-apijobjobdisplayidemailsenddocument: POST /api/job/{jobDisplayId}/email/senddocument ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.post( "/api/job/{jobDisplayId}/email/senddocument" , jobDisplayId="2000000" , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/job/{jobDisplayId}/email/senddocument \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "example": "data" }' \ 'https://api.abconnect.co/api/job/2000000/email/senddocument' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" } ---- .. _post-apijobjobdisplayidemail: POST /api/job/{jobDisplayId}/email ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.post( "/api/job/{jobDisplayId}/email" , jobDisplayId="2000000" , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/job/{jobDisplayId}/email \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "example": "data" }' \ 'https://api.abconnect.co/api/job/2000000/email' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" } ---- .. _post-apijobjobdisplayidemailcreatetransactionalemail: POST /api/job/{jobDisplayId}/email/createtransactionalemail ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.post( "/api/job/{jobDisplayId}/email/createtransactionalemail" , jobDisplayId="2000000" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/job/{jobDisplayId}/email/createtransactionalemail \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ 'https://api.abconnect.co/api/job/2000000/email/createtransactionalemail' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" } ---- .. _post-apijobjobdisplayidemailemailtemplateguidsend: POST /api/job/{jobDisplayId}/email/{emailTemplateGuid}/send ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `emailTemplateGuid` (string, path) *(required)*: No description available - `jobDisplayId` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.post( "/api/job/{jobDisplayId}/email/{emailTemplateGuid}/send" , emailTemplateGuid="789e0123-e89b-12d3-a456-426614174002" , jobDisplayId="2000000" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/job/{jobDisplayId}/email/{emailTemplateGuid}/send \ emailTemplateGuid=789e0123-e89b-12d3-a456-426614174002 \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ 'https://api.abconnect.co/api/job/2000000/email/789e0123-e89b-12d3-a456-426614174002/send' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" }