TrackingControllerApi

All URIs are relative to https://api.mailslurp.com

MethodHTTP requestDescription
create_tracking_pixelpost /tracking/pixelsCreate tracking pixel
get_all_tracking_pixelsget /tracking/pixelsGet tracking pixels
get_tracking_pixelget /tracking/pixels/{id}Get pixel

create_tracking_pixel

crate::models::TrackingPixelDto create_tracking_pixel(create_tracking_pixel_options) Create tracking pixel

Create a tracking pixel. A tracking pixel is an image that can be embedded in an email. When the email is viewed and the image is seen MailSlurp will mark the pixel as seen. Use tracking pixels to monitor email open events. You can receive open notifications via webhook or by fetching the pixel.

Parameters

NameTypeDescriptionRequiredNotes
create_tracking_pixel_optionsCreateTrackingPixelOptionscreateTrackingPixelOptions[required]

Return type

crate::models::TrackingPixelDto

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to ]

get_all_tracking_pixels

crate::models::PageTrackingPixelProjection get_all_tracking_pixels(page, search_filter, size, sort) Get tracking pixels

List tracking pixels in paginated form

Parameters

NameTypeDescriptionRequiredNotes
pageOption<i32>Optional page in list pagination[default to 0]
search_filterOption<String>Optional search filter
sizeOption<i32>Optional page size in list pagination[default to 20]
sortOption<String>Optional createdAt sort direction ASC or DESC[default to ASC]

Return type

crate::models::PageTrackingPixelProjection

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to ]

get_tracking_pixel

crate::models::TrackingPixelDto get_tracking_pixel(id) Get pixel

Parameters

NameTypeDescriptionRequiredNotes
idStringid[required]

Return type

crate::models::TrackingPixelDto

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to ]