unsubscribe<\/a><\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Click
- here to unsubscribe: {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":false,"custom_tracking_enabled":false,"custom_tracking_subdomain":"email","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-28T12:20:46.000000Z","totals":[]},{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"domain_stats":{"total":49,"queued":0,"sent":0,"rejected":2,"delivered":47},"has_not_queued_messages":false,"not_queued_messages_count":0,"domain_settings":{"send_paused":true,"track_clicks":false,"track_opens":false,"track_opens_pixel_on_top":false,"track_unsubscribe":false,"track_unsubscribe_html":"Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":false,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-28T12:22:48.000000Z","totals":[]}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/domains?page=1","last":"https:\/\/api.mailersend.com\/v1\/domains?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/domains?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/domains","per_page":10,"to":2,"total":2}}'
- headers:
- CF-RAY:
- - 966c87d14e06aeaa-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:29 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/domains_recipients_basic.yaml b/tests/fixtures/cassettes/domains_recipients_basic.yaml
deleted file mode 100644
index 0cafcb7..0000000
--- a/tests/fixtures/cassettes/domains_recipients_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/recipients?page=1&limit=25
- response:
- body:
- string: '{"data":[{"id":"67efa6b0bc82b271476e086f","email":"ig.or@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":""},{"id":"67efa6b06eebb6cf5947ec61","email":"igo.r@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":""},{"id":"67ec6ab5bef95df839307ebb","email":"igor@mailerlite.com","created_at":"2025-04-01T22:37:41.000000Z","updated_at":"2025-04-01T22:37:41.000000Z","deleted_at":""},{"id":"67efa816963207eb25a039f5","email":"ms-sdk-bcc@igor.fail","created_at":"2025-04-04T09:36:22.000000Z","updated_at":"2025-04-04T09:36:22.000000Z","deleted_at":""},{"id":"67efa8167b4d692450bdf95b","email":"ms-sdk-cc@igor.fail","created_at":"2025-04-04T09:36:22.000000Z","updated_at":"2025-04-04T09:36:22.000000Z","deleted_at":""}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/recipients","per_page":25,"to":5}}'
- headers:
- CF-RAY:
- - 966c8863de5ae293-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:52 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/domains_recipients_builder.yaml b/tests/fixtures/cassettes/domains_recipients_builder.yaml
deleted file mode 100644
index 2e6f557..0000000
--- a/tests/fixtures/cassettes/domains_recipients_builder.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/recipients?page=1&limit=20
- response:
- body:
- string: '{"data":[{"id":"67efa6b0bc82b271476e086f","email":"ig.or@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":""},{"id":"67efa6b06eebb6cf5947ec61","email":"igo.r@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":""},{"id":"67ec6ab5bef95df839307ebb","email":"igor@mailerlite.com","created_at":"2025-04-01T22:37:41.000000Z","updated_at":"2025-04-01T22:37:41.000000Z","deleted_at":""},{"id":"67efa816963207eb25a039f5","email":"ms-sdk-bcc@igor.fail","created_at":"2025-04-04T09:36:22.000000Z","updated_at":"2025-04-04T09:36:22.000000Z","deleted_at":""},{"id":"67efa8167b4d692450bdf95b","email":"ms-sdk-cc@igor.fail","created_at":"2025-04-04T09:36:22.000000Z","updated_at":"2025-04-04T09:36:22.000000Z","deleted_at":""}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/recipients","per_page":20,"to":5}}'
- headers:
- CF-RAY:
- - 966c8865cc57e28f-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:53 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/domains_recipients_pagination.yaml b/tests/fixtures/cassettes/domains_recipients_pagination.yaml
deleted file mode 100644
index d44c2f5..0000000
--- a/tests/fixtures/cassettes/domains_recipients_pagination.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/recipients?page=2&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/recipients?page=1","last":null,"prev":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/recipients?page=1","next":null},"meta":{"current_page":2,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/recipients","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966c8864dad496e0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:52 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/domains_settings_workflow.yaml b/tests/fixtures/cassettes/domains_settings_workflow.yaml
deleted file mode 100644
index 95e7859..0000000
--- a/tests/fixtures/cassettes/domains_settings_workflow.yaml
+++ /dev/null
@@ -1,200 +0,0 @@
-interactions:
-- request:
- body: '{"send_paused": false, "track_clicks": true, "track_opens": true, "track_unsubscribe":
- true, "track_content": true, "custom_tracking_enabled": true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '148'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/settings
- response:
- body:
- string: '{"data":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"domain_stats":{"total":49,"queued":0,"sent":0,"rejected":2,"delivered":47},"has_not_queued_messages":false,"not_queued_messages_count":0,"domain_settings":{"send_paused":false,"track_clicks":true,"track_opens":true,"track_opens_pixel_on_top":false,"track_unsubscribe":true,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":true,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:13:52.000000Z","totals":[]}}'
- headers:
- CF-RAY:
- - 966c886c28ec562e-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12
- response:
- body:
- string: '{"data":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"domain_stats":{"total":49,"queued":0,"sent":0,"rejected":2,"delivered":47},"has_not_queued_messages":false,"not_queued_messages_count":0,"domain_settings":{"send_paused":false,"track_clicks":true,"track_opens":true,"track_opens_pixel_on_top":false,"track_unsubscribe":true,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":true,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:13:52.000000Z","totals":{"sent":0,"delivered":47,"hard_bounced":2,"soft_bounced":0}}}'
- headers:
- CF-RAY:
- - 966c886d5f429857-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: '{"send_paused": true, "track_clicks": false, "track_opens": false, "track_unsubscribe":
- false, "track_content": false}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '118'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/settings
- response:
- body:
- string: '{"data":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"domain_stats":{"total":49,"queued":0,"sent":0,"rejected":2,"delivered":47},"has_not_queued_messages":false,"not_queued_messages_count":0,"domain_settings":{"send_paused":true,"track_clicks":false,"track_opens":false,"track_opens_pixel_on_top":false,"track_unsubscribe":false,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":false,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:13:54.000000Z","totals":[]}}'
- headers:
- CF-RAY:
- - 966c886e597a96e0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12
- response:
- body:
- string: '{"data":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"domain_stats":{"total":49,"queued":0,"sent":0,"rejected":2,"delivered":47},"has_not_queued_messages":false,"not_queued_messages_count":0,"domain_settings":{"send_paused":true,"track_clicks":false,"track_opens":false,"track_opens_pixel_on_top":false,"track_unsubscribe":false,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":false,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:13:54.000000Z","totals":{"sent":0,"delivered":47,"hard_bounced":2,"soft_bounced":0}}}'
- headers:
- CF-RAY:
- - 966c886f3875e296-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/domains_update_settings_builder.yaml b/tests/fixtures/cassettes/domains_update_settings_builder.yaml
deleted file mode 100644
index ea49673..0000000
--- a/tests/fixtures/cassettes/domains_update_settings_builder.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-interactions:
-- request:
- body: '{"send_paused": false, "track_clicks": true, "track_opens": true, "track_unsubscribe":
- true, "track_content": true, "custom_tracking_subdomain": "track"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '153'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/settings
- response:
- body:
- string: '{"data":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"domain_stats":{"total":49,"queued":0,"sent":0,"rejected":2,"delivered":47},"has_not_queued_messages":false,"not_queued_messages_count":0,"domain_settings":{"send_paused":false,"track_clicks":true,"track_opens":true,"track_opens_pixel_on_top":false,"track_unsubscribe":true,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":true,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:13:51.000000Z","totals":[]}}'
- headers:
- CF-RAY:
- - 966c88597b74f339-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:51 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/domains_update_settings_pause.yaml b/tests/fixtures/cassettes/domains_update_settings_pause.yaml
deleted file mode 100644
index 11dadcc..0000000
--- a/tests/fixtures/cassettes/domains_update_settings_pause.yaml
+++ /dev/null
@@ -1,52 +0,0 @@
-interactions:
-- request:
- body: '{"send_paused": true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '21'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/settings
- response:
- body:
- string: '{"data":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"domain_stats":{"total":49,"queued":0,"sent":0,"rejected":2,"delivered":47},"has_not_queued_messages":false,"not_queued_messages_count":0,"domain_settings":{"send_paused":true,"track_clicks":true,"track_opens":true,"track_opens_pixel_on_top":false,"track_unsubscribe":true,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":true,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:13:50.000000Z","totals":[]}}'
- headers:
- CF-RAY:
- - 966c88588816e295-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:50 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/domains_update_settings_tracking.yaml b/tests/fixtures/cassettes/domains_update_settings_tracking.yaml
deleted file mode 100644
index 10df4b8..0000000
--- a/tests/fixtures/cassettes/domains_update_settings_tracking.yaml
+++ /dev/null
@@ -1,55 +0,0 @@
-interactions:
-- request:
- body: '{"send_paused": false, "track_clicks": true, "track_opens": true, "track_unsubscribe":
- true, "track_content": true, "track_unsubscribe_html": "
Custom unsubscribe
- {{unsubscribe}}
", "track_unsubscribe_plain": "Custom unsubscribe {{unsubscribe}}",
- "custom_tracking_enabled": true, "custom_tracking_subdomain": "track"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '322'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/settings
- response:
- body:
- string: '{"data":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"domain_stats":{"total":49,"queued":0,"sent":0,"rejected":2,"delivered":47},"has_not_queued_messages":false,"not_queued_messages_count":0,"domain_settings":{"send_paused":false,"track_clicks":true,"track_opens":true,"track_opens_pixel_on_top":false,"track_unsubscribe":true,"track_unsubscribe_html":"Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":true,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:13:50.000000Z","totals":[]}}'
- headers:
- CF-RAY:
- - 966c88576be5f969-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:50 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/domains_verification_not_found.yaml b/tests/fixtures/cassettes/domains_verification_not_found.yaml
deleted file mode 100644
index 4cc2b23..0000000
--- a/tests/fixtures/cassettes/domains_verification_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/non-existent-domain-id/verify
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966c8862e9dcc239-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:52 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/domains_verification_status.yaml b/tests/fixtures/cassettes/domains_verification_status.yaml
deleted file mode 100644
index ed38bbe..0000000
--- a/tests/fixtures/cassettes/domains_verification_status.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/verify
- response:
- body:
- string: '{"message":"The domain is verified.","data":{"dkim":true,"spf":true,"mx":true,"tracking":false,"cname":false,"rp_cname":true}}'
- headers:
- CF-RAY:
- - 966c885d1a2ee291-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:13:52 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_bulk.yaml b/tests/fixtures/cassettes/email_send_bulk.yaml
deleted file mode 100644
index 30789b1..0000000
--- a/tests/fixtures/cassettes/email_send_bulk.yaml
+++ /dev/null
@@ -1,52 +0,0 @@
-interactions:
-- request:
- body: '[{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test Email", "html":
- "
First Email
"}, {"from": {"email": "ms-sdk@igor.fail", "name": "Sender"},
- "to": [{"email": "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test
- Email", "html": "Second Email
"}]'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '355'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/bulk-email
- response:
- body:
- string: '{"message":"The bulk email is being processed.","bulk_email_id":"6888dfbc0beb2661ce76f512"}'
- headers:
- CF-RAY:
- - 966d6dfb6ca1126d-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:50:36 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 202
- message: Accepted
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_bulk_workflow.yaml b/tests/fixtures/cassettes/email_send_bulk_workflow.yaml
deleted file mode 100644
index 753fb65..0000000
--- a/tests/fixtures/cassettes/email_send_bulk_workflow.yaml
+++ /dev/null
@@ -1,98 +0,0 @@
-interactions:
-- request:
- body: '[{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test Email", "html":
- "First Email
"}, {"from": {"email": "ms-sdk@igor.fail", "name": "Sender"},
- "to": [{"email": "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test
- Email", "html": "Second Email
"}]'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '355'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/bulk-email
- response:
- body:
- string: '{"message":"The bulk email is being processed.","bulk_email_id":"6888dfbd45fcac796bfecfb6"}'
- headers:
- CF-RAY:
- - 966d6dfcc8e8aeaa-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:50:37 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/bulk-email/6888dfbd45fcac796bfecfb6
- response:
- body:
- string: '{"data":{"id":"6888dfbd45fcac796bfecfb6","state":"queued","total_recipients_count":2,"suppressed_recipients_count":0,"suppressed_recipients":null,"validation_errors_count":0,"validation_errors":null,"messages_id":null,"created_at":"2025-07-29T14:50:37.000000Z","updated_at":"2025-07-29T14:50:37.000000Z"}}'
- headers:
- CF-RAY:
- - 966d6dfddaabe294-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:50:37 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_text_only.yaml b/tests/fixtures/cassettes/email_send_text_only.yaml
deleted file mode 100644
index 88c8c5a..0000000
--- a/tests/fixtures/cassettes/email_send_text_only.yaml
+++ /dev/null
@@ -1,54 +0,0 @@
-interactions:
-- request:
- body: '{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test Email", "text":
- "This is a test email"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '177'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email
- response:
- body:
- string: ''
- headers:
- CF-RAY:
- - 966d6deabfd9dcf8-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - text/html; charset=UTF-8
- Date:
- - Tue, 29 Jul 2025 14:50:34 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- x-message-id:
- - 6888dfbaf3cba3da787e6017
- x-send-paused:
- - 'true'
- status:
- code: 202
- message: Accepted
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_with_attachments.yaml b/tests/fixtures/cassettes/email_send_with_attachments.yaml
deleted file mode 100644
index c1bad49..0000000
--- a/tests/fixtures/cassettes/email_send_with_attachments.yaml
+++ /dev/null
@@ -1,55 +0,0 @@
-interactions:
-- request:
- body: '{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test Email", "html":
- "This is a test email
", "attachments": [{"content": "VGhpcyBpcyBhIHRlc3QgYXR0YWNobWVudCBmaWxlLg==",
- "disposition": "attachment", "filename": "test_attachment.txt"}]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '326'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email
- response:
- body:
- string: ''
- headers:
- CF-RAY:
- - 966d6defe93fbbed-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - text/html; charset=UTF-8
- Date:
- - Tue, 29 Jul 2025 14:50:35 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- x-message-id:
- - 6888dfbbfdf2d4b386c9ef6e
- x-send-paused:
- - 'true'
- status:
- code: 202
- message: Accepted
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_with_base_params.yaml b/tests/fixtures/cassettes/email_send_with_base_params.yaml
deleted file mode 100644
index 41ef1a3..0000000
--- a/tests/fixtures/cassettes/email_send_with_base_params.yaml
+++ /dev/null
@@ -1,54 +0,0 @@
-interactions:
-- request:
- body: '{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test Email", "html":
- "This is a test email
"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '184'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email
- response:
- body:
- string: ''
- headers:
- CF-RAY:
- - 966d6de8cca4b654-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - text/html; charset=UTF-8
- Date:
- - Tue, 29 Jul 2025 14:50:33 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- x-message-id:
- - 6888dfb97e2b7a6ce588f6de
- x-send-paused:
- - 'true'
- status:
- code: 202
- message: Accepted
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_with_cc_bcc.yaml b/tests/fixtures/cassettes/email_send_with_cc_bcc.yaml
deleted file mode 100644
index c77e3bd..0000000
--- a/tests/fixtures/cassettes/email_send_with_cc_bcc.yaml
+++ /dev/null
@@ -1,55 +0,0 @@
-interactions:
-- request:
- body: '{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "cc": [{"email": "ms-sdk-cc@igor.fail",
- "name": "Recipient"}], "bcc": [{"email": "ms-sdk-bcc@igor.fail", "name": "Recipient"}],
- "subject": "Test Email", "html": "This is a test email
"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '312'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email
- response:
- body:
- string: ''
- headers:
- CF-RAY:
- - 966d6dec8b5aa2c1-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - text/html; charset=UTF-8
- Date:
- - Tue, 29 Jul 2025 14:50:34 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- x-message-id:
- - 6888dfbac89a067d6f805520
- x-send-paused:
- - 'true'
- status:
- code: 202
- message: Accepted
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_with_headers.yaml b/tests/fixtures/cassettes/email_send_with_headers.yaml
deleted file mode 100644
index 3db6aa9..0000000
--- a/tests/fixtures/cassettes/email_send_with_headers.yaml
+++ /dev/null
@@ -1,55 +0,0 @@
-interactions:
-- request:
- body: '{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test Email", "html":
- "This is a test email
", "headers": [{"name": "X-Custom-Header", "value":
- "Custom Value"}]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '251'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email
- response:
- body:
- string: ''
- headers:
- CF-RAY:
- - 966d6df75d1871a6-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - text/html; charset=UTF-8
- Date:
- - Tue, 29 Jul 2025 14:50:36 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- x-message-id:
- - 6888dfbc49f14409301e4d5c
- x-send-paused:
- - 'true'
- status:
- code: 202
- message: Accepted
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_with_reply_to.yaml b/tests/fixtures/cassettes/email_send_with_reply_to.yaml
deleted file mode 100644
index 46bb11a..0000000
--- a/tests/fixtures/cassettes/email_send_with_reply_to.yaml
+++ /dev/null
@@ -1,55 +0,0 @@
-interactions:
-- request:
- body: '{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "reply_to": {"email": "ms-sdk-replyto@igor.fail",
- "name": "Reply Handler"}, "subject": "Test Email", "html": "This is a test
- email
"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '260'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email
- response:
- body:
- string: ''
- headers:
- CF-RAY:
- - 966d6df8e8a60a8e-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - text/html; charset=UTF-8
- Date:
- - Tue, 29 Jul 2025 14:50:36 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- x-message-id:
- - 6888dfbc1b82c3def7569208
- x-send-paused:
- - 'true'
- status:
- code: 202
- message: Accepted
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_with_tags.yaml b/tests/fixtures/cassettes/email_send_with_tags.yaml
deleted file mode 100644
index 39f7dd9..0000000
--- a/tests/fixtures/cassettes/email_send_with_tags.yaml
+++ /dev/null
@@ -1,54 +0,0 @@
-interactions:
-- request:
- body: '{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test Email", "html":
- "This is a test email
", "tags": ["test", "automation", "api-test"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '228'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email
- response:
- body:
- string: ''
- headers:
- CF-RAY:
- - 966d6df208bfe290-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - text/html; charset=UTF-8
- Date:
- - Tue, 29 Jul 2025 14:50:35 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- x-message-id:
- - 6888dfbb37648449d59f51ac
- x-send-paused:
- - 'true'
- status:
- code: 202
- message: Accepted
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_with_template.yaml b/tests/fixtures/cassettes/email_send_with_template.yaml
deleted file mode 100644
index 8170bba..0000000
--- a/tests/fixtures/cassettes/email_send_with_template.yaml
+++ /dev/null
@@ -1,55 +0,0 @@
-interactions:
-- request:
- body: '{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test Email", "html":
- "This is a test email
", "template_id": "351ndgwkr8xgzqx8", "personalization":
- [{"email": "igor@mailerlite.com", "data": {"name": "Recipient Name"}}]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '310'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email
- response:
- body:
- string: ''
- headers:
- CF-RAY:
- - 966d6df59c8acf86-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - text/html; charset=UTF-8
- Date:
- - Tue, 29 Jul 2025 14:50:36 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- x-message-id:
- - 6888dfbb94808450972a2cb5
- x-send-paused:
- - 'true'
- status:
- code: 202
- message: Accepted
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_with_text_priority.yaml b/tests/fixtures/cassettes/email_send_with_text_priority.yaml
deleted file mode 100644
index 7a819b2..0000000
--- a/tests/fixtures/cassettes/email_send_with_text_priority.yaml
+++ /dev/null
@@ -1,55 +0,0 @@
-interactions:
-- request:
- body: '{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test Email", "text":
- "This is a plain text email for testing.", "html": "This is a test email
",
- "precedence_bulk": true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '260'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email
- response:
- body:
- string: ''
- headers:
- CF-RAY:
- - 966d6dee582ff832-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - text/html; charset=UTF-8
- Date:
- - Tue, 29 Jul 2025 14:50:34 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- x-message-id:
- - 6888dfba8942efdecfd82b5c
- x-send-paused:
- - 'true'
- status:
- code: 202
- message: Accepted
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_with_threading.yaml b/tests/fixtures/cassettes/email_send_with_threading.yaml
deleted file mode 100644
index 2bdde8c..0000000
--- a/tests/fixtures/cassettes/email_send_with_threading.yaml
+++ /dev/null
@@ -1,55 +0,0 @@
-interactions:
-- request:
- body: '{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test Email", "html":
- "This is a test email
", "in_reply_to": "ms-sdk-replyto@igor.fail", "references":
- ["123456"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '253'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email
- response:
- body:
- string: ''
- headers:
- CF-RAY:
- - 966d6dfa3afcdfc0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - text/html; charset=UTF-8
- Date:
- - Tue, 29 Jul 2025 14:50:36 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- x-message-id:
- - 6888dfbccbaaa97910fa1420
- x-send-paused:
- - 'true'
- status:
- code: 202
- message: Accepted
-version: 1
diff --git a/tests/fixtures/cassettes/email_send_with_tracking.yaml b/tests/fixtures/cassettes/email_send_with_tracking.yaml
deleted file mode 100644
index dfb6e4b..0000000
--- a/tests/fixtures/cassettes/email_send_with_tracking.yaml
+++ /dev/null
@@ -1,55 +0,0 @@
-interactions:
-- request:
- body: '{"from": {"email": "ms-sdk@igor.fail", "name": "Sender"}, "to": [{"email":
- "igor@mailerlite.com", "name": "Recipient"}], "subject": "Test Email", "html":
- "This is a test email
", "settings": {"track_clicks": true, "track_opens":
- true, "track_content": false}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '265'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email
- response:
- body:
- string: ''
- headers:
- CF-RAY:
- - 966d6df3ef4955ad-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - text/html; charset=UTF-8
- Date:
- - Tue, 29 Jul 2025 14:50:35 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- x-message-id:
- - 6888dfbb555eb58cce8aeabe
- x-send-paused:
- - 'true'
- status:
- code: 202
- message: Accepted
-version: 1
diff --git a/tests/fixtures/cassettes/email_verification_api_response_structure.yaml b/tests/fixtures/cassettes/email_verification_api_response_structure.yaml
deleted file mode 100644
index 3820f06..0000000
--- a/tests/fixtures/cassettes/email_verification_api_response_structure.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/email-verification?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"k68zxl2805lj9057","name":"Test Verification List","total":4,"verification_started":null,"verification_ended":null,"created_at":"2025-07-29T12:22:38.000000Z","updated_at":"2025-07-29T12:22:39.000000Z","status":{"name":"created","count":0},"source":"api","statistics":{"valid":0,"catch_all":0,"mailbox_full":0,"role_based":0,"unknown":0,"syntax_error":0,"typo":0,"mailbox_not_found":0,"disposable":0,"mailbox_blocked":0,"failed":0,"not_verified":4}},{"id":"0p7kx4xr9249yjre","name":"Comprehensive
- Test List","total":4,"verification_started":null,"verification_ended":null,"created_at":"2025-07-29T12:22:40.000000Z","updated_at":"2025-07-29T12:22:40.000000Z","status":{"name":"created","count":0},"source":"api","statistics":{"valid":0,"catch_all":0,"mailbox_full":0,"role_based":0,"unknown":0,"syntax_error":0,"typo":0,"mailbox_not_found":0,"disposable":0,"mailbox_blocked":0,"failed":0,"not_verified":4}}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/email-verification?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/email-verification","per_page":"10","to":2}}'
- headers:
- CF-RAY:
- - 966c9547ef9fbbed-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:22:40 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/email_verification_comprehensive_workflow.yaml b/tests/fixtures/cassettes/email_verification_comprehensive_workflow.yaml
deleted file mode 100644
index eafa82a..0000000
--- a/tests/fixtures/cassettes/email_verification_comprehensive_workflow.yaml
+++ /dev/null
@@ -1,186 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Comprehensive Test List", "emails": ["test1@example.com", "test2@example.com",
- "invalid-email", "test3@validexample.com"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '132'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email-verification
- response:
- body:
- string: '{"data":{"id":"neqvygmw1840p7w2","name":"Comprehensive Test List","total":0,"verification_started":null,"verification_ended":null,"created_at":"2025-07-29T12:25:11.000000Z","updated_at":"2025-07-29T12:25:11.000000Z","status":{"name":"uploading","count":0},"source":"api","statistics":{"valid":0,"catch_all":0,"mailbox_full":0,"role_based":0,"unknown":0,"syntax_error":0,"typo":0,"mailbox_not_found":0,"disposable":0,"mailbox_blocked":0,"failed":0,"not_verified":0}}}'
- headers:
- CF-RAY:
- - 966c98f8bdfb9d41-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:25:12 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 201
- message: Created
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/email-verification/neqvygmw1840p7w2
- response:
- body:
- string: '{"data":{"id":"neqvygmw1840p7w2","name":"Comprehensive Test List","total":0,"verification_started":null,"verification_ended":null,"created_at":"2025-07-29T12:25:11.000000Z","updated_at":"2025-07-29T12:25:11.000000Z","status":{"name":"uploading","count":0},"source":"api","statistics":{"valid":0,"catch_all":0,"mailbox_full":0,"role_based":0,"unknown":0,"syntax_error":0,"typo":0,"mailbox_not_found":0,"disposable":0,"mailbox_blocked":0,"failed":0,"not_verified":0}}}'
- headers:
- CF-RAY:
- - 966c98fb4801d87b-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:25:12 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/email-verification/neqvygmw1840p7w2/verify
- response:
- body:
- string: '{"message":"The email addresses are still being uploaded, wait for
- the upload to finish to continue."}'
- headers:
- CF-RAY:
- - 966c98fcba1a1479-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:25:12 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/email-verification/neqvygmw1840p7w2/results?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/email-verification\/neqvygmw1840p7w2\/results?1=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/email-verification\/neqvygmw1840p7w2\/results","per_page":"10","to":null}}'
- headers:
- CF-RAY:
- - 966c98fe3f273a0d-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:25:12 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/email_verification_create_list.yaml b/tests/fixtures/cassettes/email_verification_create_list.yaml
deleted file mode 100644
index ae1f093..0000000
--- a/tests/fixtures/cassettes/email_verification_create_list.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Test Verification List", "emails": ["test1@example.com", "test2@example.com",
- "invalid-email", "test3@validexample.com"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '131'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/email-verification
- response:
- body:
- string: '{"data":{"id":"k68zxl2805lj9057","name":"Test Verification List","total":0,"verification_started":null,"verification_ended":null,"created_at":"2025-07-29T12:22:38.000000Z","updated_at":"2025-07-29T12:22:38.000000Z","status":{"name":"uploading","count":0},"source":"api","statistics":{"valid":0,"catch_all":0,"mailbox_full":0,"role_based":0,"unknown":0,"syntax_error":0,"typo":0,"mailbox_not_found":0,"disposable":0,"mailbox_blocked":0,"failed":0,"not_verified":0}}}'
- headers:
- CF-RAY:
- - 966c953c19250db0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:22:39 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 201
- message: Created
-version: 1
diff --git a/tests/fixtures/cassettes/email_verification_empty_list.yaml b/tests/fixtures/cassettes/email_verification_empty_list.yaml
deleted file mode 100644
index 290d495..0000000
--- a/tests/fixtures/cassettes/email_verification_empty_list.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/email-verification?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"k68zxl2805lj9057","name":"Test Verification List","total":4,"verification_started":null,"verification_ended":null,"created_at":"2025-07-29T12:22:38.000000Z","updated_at":"2025-07-29T12:22:39.000000Z","status":{"name":"created","count":0},"source":"api","statistics":{"valid":0,"catch_all":0,"mailbox_full":0,"role_based":0,"unknown":0,"syntax_error":0,"typo":0,"mailbox_not_found":0,"disposable":0,"mailbox_blocked":0,"failed":0,"not_verified":4}},{"id":"0p7kx4xr9249yjre","name":"Comprehensive
- Test List","total":4,"verification_started":null,"verification_ended":null,"created_at":"2025-07-29T12:22:40.000000Z","updated_at":"2025-07-29T12:22:40.000000Z","status":{"name":"created","count":0},"source":"api","statistics":{"valid":0,"catch_all":0,"mailbox_full":0,"role_based":0,"unknown":0,"syntax_error":0,"typo":0,"mailbox_not_found":0,"disposable":0,"mailbox_blocked":0,"failed":0,"not_verified":4}}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/email-verification?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/email-verification","per_page":"10","to":2}}'
- headers:
- CF-RAY:
- - 966c9548cd8c9857-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:22:40 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/email_verification_get_not_found.yaml b/tests/fixtures/cassettes/email_verification_get_not_found.yaml
deleted file mode 100644
index 94b98ca..0000000
--- a/tests/fixtures/cassettes/email_verification_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/email-verification/non-existent-list-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966c95400fade28f-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:22:39 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/email_verification_get_results.yaml b/tests/fixtures/cassettes/email_verification_get_results.yaml
deleted file mode 100644
index 8f1e7db..0000000
--- a/tests/fixtures/cassettes/email_verification_get_results.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/email-verification/test-verification-list-id/results?page=1&limit=10
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966c97f00914babc-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:24:29 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/email_verification_get_single.yaml b/tests/fixtures/cassettes/email_verification_get_single.yaml
deleted file mode 100644
index d9b33fb..0000000
--- a/tests/fixtures/cassettes/email_verification_get_single.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/email-verification/test-verification-list-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966c953eebfde290-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:22:39 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/email_verification_list_basic.yaml b/tests/fixtures/cassettes/email_verification_list_basic.yaml
deleted file mode 100644
index b458276..0000000
--- a/tests/fixtures/cassettes/email_verification_list_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/email-verification?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/email-verification?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/email-verification","per_page":"10","to":null}}'
- headers:
- CF-RAY:
- - 966c94ec299fc1f9-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:22:26 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/email_verification_list_with_pagination.yaml b/tests/fixtures/cassettes/email_verification_list_with_pagination.yaml
deleted file mode 100644
index 9d69b6e..0000000
--- a/tests/fixtures/cassettes/email_verification_list_with_pagination.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/email-verification?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"k68zxl2805lj9057","name":"Test Verification List","total":4,"verification_started":null,"verification_ended":null,"created_at":"2025-07-29T12:22:38.000000Z","updated_at":"2025-07-29T12:22:39.000000Z","status":{"name":"created","count":0},"source":"api","statistics":{"valid":0,"catch_all":0,"mailbox_full":0,"role_based":0,"unknown":0,"syntax_error":0,"typo":0,"mailbox_not_found":0,"disposable":0,"mailbox_blocked":0,"failed":0,"not_verified":4}},{"id":"0p7kx4xr9249yjre","name":"Comprehensive
- Test List","total":4,"verification_started":null,"verification_ended":null,"created_at":"2025-07-29T12:22:40.000000Z","updated_at":"2025-07-29T12:22:40.000000Z","status":{"name":"created","count":0},"source":"api","statistics":{"valid":0,"catch_all":0,"mailbox_full":0,"role_based":0,"unknown":0,"syntax_error":0,"typo":0,"mailbox_not_found":0,"disposable":0,"mailbox_blocked":0,"failed":0,"not_verified":4}}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/email-verification?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/email-verification","per_page":"10","to":2}}'
- headers:
- CF-RAY:
- - 966c97ee7eff8f2b-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:24:29 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/email_verification_verify_list.yaml b/tests/fixtures/cassettes/email_verification_verify_list.yaml
deleted file mode 100644
index 4523d68..0000000
--- a/tests/fixtures/cassettes/email_verification_verify_list.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/email-verification/test-verification-list-id/verify
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966c9540c9d5e295-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:22:39 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/identities_create_not_available.yaml b/tests/fixtures/cassettes/identities_create_not_available.yaml
deleted file mode 100644
index 7a2beb5..0000000
--- a/tests/fixtures/cassettes/identities_create_not_available.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-interactions:
-- request:
- body: '{"domain_id": "65qngkdovk8lwr12", "name": "Test Identity", "email": "ms-sdk@igor.fail",
- "reply_to_email": "ms-sdk@igor.fail", "reply_to_name": "Reply Test", "add_note":
- true, "personal_note": "Test identity for integration testing"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '232'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/identities
- response:
- body:
- string: '{"message":"The email has already been taken.","errors":{"email":["The
- email has already been taken."]}}'
- headers:
- CF-RAY:
- - 9684c6c4badff339-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:50:46 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/identities_delete_by_email.yaml b/tests/fixtures/cassettes/identities_delete_by_email.yaml
deleted file mode 100644
index c91eece..0000000
--- a/tests/fixtures/cassettes/identities_delete_by_email.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/identities/email/test@example.com
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c6ccfcd5bbed-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:50:47 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/identities_delete_by_id.yaml b/tests/fixtures/cassettes/identities_delete_by_id.yaml
deleted file mode 100644
index fd9d0e2..0000000
--- a/tests/fixtures/cassettes/identities_delete_by_id.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/identities/test-identity-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c6cc0ca3076b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:50:47 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/identities_get_by_email.yaml b/tests/fixtures/cassettes/identities_get_by_email.yaml
deleted file mode 100644
index aca4701..0000000
--- a/tests/fixtures/cassettes/identities_get_by_email.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/identities/email/test@example.com
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c6c85d461f09-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:50:46 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/identities_get_single.yaml b/tests/fixtures/cassettes/identities_get_single.yaml
deleted file mode 100644
index b536d1f..0000000
--- a/tests/fixtures/cassettes/identities_get_single.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/identities/test-identity-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c6c70b1ce296-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:50:46 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/identities_update_by_email.yaml b/tests/fixtures/cassettes/identities_update_by_email.yaml
deleted file mode 100644
index 1caae89..0000000
--- a/tests/fixtures/cassettes/identities_update_by_email.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Updated Test Identity"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '33'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/identities/email/test@example.com
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c6cb0b621b8b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:50:47 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/identities_update_by_id.yaml b/tests/fixtures/cassettes/identities_update_by_id.yaml
deleted file mode 100644
index 2a92dad..0000000
--- a/tests/fixtures/cassettes/identities_update_by_id.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Updated Test Identity"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '33'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/identities/test-identity-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c6c9b884f969-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:50:46 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_api_response_structure.yaml b/tests/fixtures/cassettes/inbound_api_response_structure.yaml
deleted file mode 100644
index 65cf752..0000000
--- a/tests/fixtures/cassettes/inbound_api_response_structure.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/inbound?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","last":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/inbound","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966cbd2d1e0371a6-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:49:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_builder_create_invalid_domain.yaml b/tests/fixtures/cassettes/inbound_builder_create_invalid_domain.yaml
deleted file mode 100644
index d2ed22a..0000000
--- a/tests/fixtures/cassettes/inbound_builder_create_invalid_domain.yaml
+++ /dev/null
@@ -1,149 +0,0 @@
-interactions:
-- request:
- body: '{"domain_id": "invalid-domain-id", "name": "Test Route", "domain_enabled":
- false, "catch_filter": {"type": "catch_all"}, "match_filter": {"type": "match_all"},
- "forwards": [{"type": "email", "value": "test@example.com"}]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '221'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/inbound
- response:
- body:
- string: "{\n \"message\": \"You cannot create a resource at the moment. Please
- wait a while before retrying.\"\n}"
- headers:
- CF-RAY:
- - 9684ca5098130380-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:53:11 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 429
- message: Too Many Requests
-- request:
- body: '{"domain_id": "invalid-domain-id", "name": "Test Route", "domain_enabled":
- false, "catch_filter": {"type": "catch_all"}, "match_filter": {"type": "match_all"},
- "forwards": [{"type": "email", "value": "test@example.com"}]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '221'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/inbound
- response:
- body:
- string: "{\n \"message\": \"You cannot create a resource at the moment. Please
- wait a while before retrying.\"\n}"
- headers:
- CF-RAY:
- - 9684ca520f3f0a8e-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:53:11 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 429
- message: Too Many Requests
-- request:
- body: '{"domain_id": "invalid-domain-id", "name": "Test Route", "domain_enabled":
- false, "catch_filter": {"type": "catch_all"}, "match_filter": {"type": "match_all"},
- "forwards": [{"type": "email", "value": "test@example.com"}]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '221'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/inbound
- response:
- body:
- string: '{"message":"The domain id field is required. #MS42209","errors":{"domain_id":["The
- domain id field is required. #MS42209"]}}'
- headers:
- CF-RAY:
- - 9684ca572aad9857-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:53:12 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_builder_get_not_found.yaml b/tests/fixtures/cassettes/inbound_builder_get_not_found.yaml
deleted file mode 100644
index f748364..0000000
--- a/tests/fixtures/cassettes/inbound_builder_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/inbound/test-inbound-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966cbd319c948e88-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:49:55 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_builder_list_basic.yaml b/tests/fixtures/cassettes/inbound_builder_list_basic.yaml
deleted file mode 100644
index 5c7924f..0000000
--- a/tests/fixtures/cassettes/inbound_builder_list_basic.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/inbound?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","last":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/inbound","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966cbd2f9c02c687-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:49:55 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_builder_list_with_domain.yaml b/tests/fixtures/cassettes/inbound_builder_list_with_domain.yaml
deleted file mode 100644
index 526eb6b..0000000
--- a/tests/fixtures/cassettes/inbound_builder_list_with_domain.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/inbound?page=1&limit=10&domain_id=65qngkdovk8lwr12
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","last":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/inbound","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966cbd308f235165-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:49:55 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_comprehensive_workflow.yaml b/tests/fixtures/cassettes/inbound_comprehensive_workflow.yaml
deleted file mode 100644
index b2d2f5d..0000000
--- a/tests/fixtures/cassettes/inbound_comprehensive_workflow.yaml
+++ /dev/null
@@ -1,140 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/inbound?page=1&limit=10&domain_id=65qngkdovk8lwr12
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","last":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/inbound","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966cbe9f7caddfc0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:50:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/inbound?page=1&limit=10&domain_id=65qngkdovk8lwr12
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","last":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/inbound","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966cbea08e64e295-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:50:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/inbound/non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966cbea1ba5871a3-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:50:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_create_invalid_domain.yaml b/tests/fixtures/cassettes/inbound_create_invalid_domain.yaml
deleted file mode 100644
index 7ff1503..0000000
--- a/tests/fixtures/cassettes/inbound_create_invalid_domain.yaml
+++ /dev/null
@@ -1,52 +0,0 @@
-interactions:
-- request:
- body: '{"domain_id": "invalid-domain-id", "name": "Test Inbound Route", "domain_enabled":
- false, "catch_filter": {"type": "catch_all"}, "catch_type": "all", "match_filter":
- {"type": "match_all"}, "match_type": "all", "forwards": [{"type": "email", "value":
- "ms-sdk@igor.fail"}]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '271'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/inbound
- response:
- body:
- string: '{"message":"The domain id field is required. #MS42209","errors":{"domain_id":["The
- domain id field is required. #MS42209"]}}'
- headers:
- CF-RAY:
- - 9684ca4d2ae2b018-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:53:10 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_delete_not_found.yaml b/tests/fixtures/cassettes/inbound_delete_not_found.yaml
deleted file mode 100644
index ceddac2..0000000
--- a/tests/fixtures/cassettes/inbound_delete_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/inbound/test-inbound-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966cbd2c5abf55ad-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:49:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_empty_result.yaml b/tests/fixtures/cassettes/inbound_empty_result.yaml
deleted file mode 100644
index d695b91..0000000
--- a/tests/fixtures/cassettes/inbound_empty_result.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/inbound?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","last":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/inbound","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966cbd2e98cfc687-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:49:55 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_get_not_found.yaml b/tests/fixtures/cassettes/inbound_get_not_found.yaml
deleted file mode 100644
index c570d02..0000000
--- a/tests/fixtures/cassettes/inbound_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/inbound/test-inbound-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966cbd2879dce295-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:49:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_list_basic.yaml b/tests/fixtures/cassettes/inbound_list_basic.yaml
deleted file mode 100644
index d89c02b..0000000
--- a/tests/fixtures/cassettes/inbound_list_basic.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/inbound?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","last":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/inbound","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966cbd242e1ef969-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:49:53 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_list_with_domain_filter.yaml b/tests/fixtures/cassettes/inbound_list_with_domain_filter.yaml
deleted file mode 100644
index fe22ff4..0000000
--- a/tests/fixtures/cassettes/inbound_list_with_domain_filter.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/inbound?page=1&limit=10&domain_id=65qngkdovk8lwr12
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","last":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/inbound","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966cbd277a6a0380-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:49:53 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_list_with_pagination.yaml b/tests/fixtures/cassettes/inbound_list_with_pagination.yaml
deleted file mode 100644
index 13bcfb0..0000000
--- a/tests/fixtures/cassettes/inbound_list_with_pagination.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/inbound?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","last":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/inbound","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966cbd25fe38b01e-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:49:53 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/inbound_update_not_found.yaml b/tests/fixtures/cassettes/inbound_update_not_found.yaml
deleted file mode 100644
index 908309e..0000000
--- a/tests/fixtures/cassettes/inbound_update_not_found.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Test Inbound Route", "domain_enabled": false, "catch_filter":
- {"type": "catch_all"}, "catch_type": "all", "match_filter": {"type": "match_all"},
- "match_type": "all", "forwards": [{"type": "email", "value": "ms-sdk@igor.fail"}]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '237'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/inbound/test-inbound-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684ca4eea11f969-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:53:11 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/invites_cancel.yaml b/tests/fixtures/cassettes/invites_cancel.yaml
deleted file mode 100644
index 7881e2f..0000000
--- a/tests/fixtures/cassettes/invites_cancel.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/invites/test-invite-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d3dcfff125165-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:17:43 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/invites_get_single.yaml b/tests/fixtures/cassettes/invites_get_single.yaml
deleted file mode 100644
index 5c9bccc..0000000
--- a/tests/fixtures/cassettes/invites_get_single.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/invites/test-invite-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d3dcd8e9b8e88-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:17:43 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/invites_list_basic.yaml b/tests/fixtures/cassettes/invites_list_basic.yaml
deleted file mode 100644
index 8f6712b..0000000
--- a/tests/fixtures/cassettes/invites_list_basic.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/invites?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/invites?page=1","last":"https:\/\/api.mailersend.com\/v1\/invites?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/invites?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/invites","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966d3dcc8f53e297-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:17:43 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/invites_resend.yaml b/tests/fixtures/cassettes/invites_resend.yaml
deleted file mode 100644
index d0f7a5f..0000000
--- a/tests/fixtures/cassettes/invites_resend.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/invites/test-invite-id/resend
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d3dced892f339-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:17:43 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/messages_api_response_structure.yaml b/tests/fixtures/cassettes/messages_api_response_structure.yaml
deleted file mode 100644
index f88a5ad..0000000
--- a/tests/fixtures/cassettes/messages_api_response_structure.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"6888bb9efa41a66318120533","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bb9ee6a7f64df5de96ad","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bc42dbd40844151919b7","created_at":"2025-07-29T12:19:14.000000Z","updated_at":"2025-07-29T12:19:14.000000Z"},{"id":"6888bb59bbd49a78d3334484","created_at":"2025-07-29T12:15:21.000000Z","updated_at":"2025-07-29T12:15:21.000000Z"},{"id":"6888bbb9b713a022b0acd094","created_at":"2025-07-29T12:16:57.000000Z","updated_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/messages?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/messages","per_page":10,"to":5}}'
- headers:
- CF-RAY:
- - 966d2816ee94dfc0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/messages_builder_get_not_found.yaml b/tests/fixtures/cassettes/messages_builder_get_not_found.yaml
deleted file mode 100644
index e02a75f..0000000
--- a/tests/fixtures/cassettes/messages_builder_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages/test-message-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d281c5e83126d-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/messages_builder_list_basic.yaml b/tests/fixtures/cassettes/messages_builder_list_basic.yaml
deleted file mode 100644
index 89c2b3b..0000000
--- a/tests/fixtures/cassettes/messages_builder_list_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"6888bb9efa41a66318120533","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bb9ee6a7f64df5de96ad","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bc42dbd40844151919b7","created_at":"2025-07-29T12:19:14.000000Z","updated_at":"2025-07-29T12:19:14.000000Z"},{"id":"6888bb59bbd49a78d3334484","created_at":"2025-07-29T12:15:21.000000Z","updated_at":"2025-07-29T12:15:21.000000Z"},{"id":"6888bbb9b713a022b0acd094","created_at":"2025-07-29T12:16:57.000000Z","updated_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/messages?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/messages","per_page":10,"to":5}}'
- headers:
- CF-RAY:
- - 966d281a0b580db0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/messages_builder_list_with_custom_limit.yaml b/tests/fixtures/cassettes/messages_builder_list_with_custom_limit.yaml
deleted file mode 100644
index b5a4658..0000000
--- a/tests/fixtures/cassettes/messages_builder_list_with_custom_limit.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages?page=1&limit=50
- response:
- body:
- string: '{"data":[{"id":"6888bb9efa41a66318120533","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bb9ee6a7f64df5de96ad","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bc42dbd40844151919b7","created_at":"2025-07-29T12:19:14.000000Z","updated_at":"2025-07-29T12:19:14.000000Z"},{"id":"6888bb59bbd49a78d3334484","created_at":"2025-07-29T12:15:21.000000Z","updated_at":"2025-07-29T12:15:21.000000Z"},{"id":"6888bbb9b713a022b0acd094","created_at":"2025-07-29T12:16:57.000000Z","updated_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/messages?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/messages","per_page":50,"to":5}}'
- headers:
- CF-RAY:
- - 966d281b2ec90380-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/messages_comprehensive_workflow.yaml b/tests/fixtures/cassettes/messages_comprehensive_workflow.yaml
deleted file mode 100644
index 4e3aa74..0000000
--- a/tests/fixtures/cassettes/messages_comprehensive_workflow.yaml
+++ /dev/null
@@ -1,178 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"6888bb9efa41a66318120533","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bb9ee6a7f64df5de96ad","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bc42dbd40844151919b7","created_at":"2025-07-29T12:19:14.000000Z","updated_at":"2025-07-29T12:19:14.000000Z"},{"id":"6888bb59bbd49a78d3334484","created_at":"2025-07-29T12:15:21.000000Z","updated_at":"2025-07-29T12:15:21.000000Z"},{"id":"6888bbb9b713a022b0acd094","created_at":"2025-07-29T12:16:57.000000Z","updated_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/messages?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/messages","per_page":10,"to":5}}'
- headers:
- CF-RAY:
- - 966d281d4e841b8b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:55 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages?page=1&limit=25
- response:
- body:
- string: '{"data":[{"id":"6888bb9efa41a66318120533","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bb9ee6a7f64df5de96ad","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bc42dbd40844151919b7","created_at":"2025-07-29T12:19:14.000000Z","updated_at":"2025-07-29T12:19:14.000000Z"},{"id":"6888bb59bbd49a78d3334484","created_at":"2025-07-29T12:15:21.000000Z","updated_at":"2025-07-29T12:15:21.000000Z"},{"id":"6888bbb9b713a022b0acd094","created_at":"2025-07-29T12:16:57.000000Z","updated_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/messages?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/messages","per_page":25,"to":5}}'
- headers:
- CF-RAY:
- - 966d281ebed8d814-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:55 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages/non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d281fde9d8e88-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:55 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages/another-non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2820d8d6e28f-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:55 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/messages_empty_result.yaml b/tests/fixtures/cassettes/messages_empty_result.yaml
deleted file mode 100644
index 269d7ca..0000000
--- a/tests/fixtures/cassettes/messages_empty_result.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"6888bb9efa41a66318120533","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bb9ee6a7f64df5de96ad","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bc42dbd40844151919b7","created_at":"2025-07-29T12:19:14.000000Z","updated_at":"2025-07-29T12:19:14.000000Z"},{"id":"6888bb59bbd49a78d3334484","created_at":"2025-07-29T12:15:21.000000Z","updated_at":"2025-07-29T12:15:21.000000Z"},{"id":"6888bbb9b713a022b0acd094","created_at":"2025-07-29T12:16:57.000000Z","updated_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/messages?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/messages","per_page":10,"to":5}}'
- headers:
- CF-RAY:
- - 966d2818ab22076b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/messages_get_not_found.yaml b/tests/fixtures/cassettes/messages_get_not_found.yaml
deleted file mode 100644
index ba26203..0000000
--- a/tests/fixtures/cassettes/messages_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages/test-message-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d28159a8adfc0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:53 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/messages_list_basic.yaml b/tests/fixtures/cassettes/messages_list_basic.yaml
deleted file mode 100644
index 48f8f80..0000000
--- a/tests/fixtures/cassettes/messages_list_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"6888bb9efa41a66318120533","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bb9ee6a7f64df5de96ad","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bc42dbd40844151919b7","created_at":"2025-07-29T12:19:14.000000Z","updated_at":"2025-07-29T12:19:14.000000Z"},{"id":"6888bb59bbd49a78d3334484","created_at":"2025-07-29T12:15:21.000000Z","updated_at":"2025-07-29T12:15:21.000000Z"},{"id":"6888bbb9b713a022b0acd094","created_at":"2025-07-29T12:16:57.000000Z","updated_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/messages?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/messages","per_page":10,"to":5}}'
- headers:
- CF-RAY:
- - 966d28106b321f09-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:53 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/messages_list_different_limit.yaml b/tests/fixtures/cassettes/messages_list_different_limit.yaml
deleted file mode 100644
index 127b643..0000000
--- a/tests/fixtures/cassettes/messages_list_different_limit.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages?page=1&limit=25
- response:
- body:
- string: '{"data":[{"id":"6888bb9efa41a66318120533","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bb9ee6a7f64df5de96ad","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bc42dbd40844151919b7","created_at":"2025-07-29T12:19:14.000000Z","updated_at":"2025-07-29T12:19:14.000000Z"},{"id":"6888bb59bbd49a78d3334484","created_at":"2025-07-29T12:15:21.000000Z","updated_at":"2025-07-29T12:15:21.000000Z"},{"id":"6888bbb9b713a022b0acd094","created_at":"2025-07-29T12:16:57.000000Z","updated_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/messages?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/messages","per_page":25,"to":5}}'
- headers:
- CF-RAY:
- - 966d2813d9160380-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:53 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/messages_list_with_pagination.yaml b/tests/fixtures/cassettes/messages_list_with_pagination.yaml
deleted file mode 100644
index 734d87b..0000000
--- a/tests/fixtures/cassettes/messages_list_with_pagination.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/messages?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"6888bb9efa41a66318120533","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bb9ee6a7f64df5de96ad","created_at":"2025-07-29T12:16:30.000000Z","updated_at":"2025-07-29T12:16:30.000000Z"},{"id":"6888bc42dbd40844151919b7","created_at":"2025-07-29T12:19:14.000000Z","updated_at":"2025-07-29T12:19:14.000000Z"},{"id":"6888bb59bbd49a78d3334484","created_at":"2025-07-29T12:15:21.000000Z","updated_at":"2025-07-29T12:15:21.000000Z"},{"id":"6888bbb9b713a022b0acd094","created_at":"2025-07-29T12:16:57.000000Z","updated_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/messages?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/messages","per_page":10,"to":5}}'
- headers:
- CF-RAY:
- - 966d28124ca3e298-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:02:53 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_add_hard_bounces.yaml b/tests/fixtures/cassettes/recipients_add_hard_bounces.yaml
deleted file mode 100644
index ff7f045..0000000
--- a/tests/fixtures/cassettes/recipients_add_hard_bounces.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: '{"domain_id": "test-domain-id", "recipients": ["test@example.com"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '67'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/suppressions/hard-bounces
- response:
- body:
- string: '{"message":"The domain id field is required. #MS42209","errors":{"domain_id":["The
- domain id field is required. #MS42209"]}}'
- headers:
- CF-RAY:
- - 966ca7f02ace4341-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:35:24 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_add_spam_complaints.yaml b/tests/fixtures/cassettes/recipients_add_spam_complaints.yaml
deleted file mode 100644
index 49179ba..0000000
--- a/tests/fixtures/cassettes/recipients_add_spam_complaints.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: '{"domain_id": "test-domain-id", "recipients": ["test@example.com"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '67'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/suppressions/spam-complaints
- response:
- body:
- string: '{"message":"The domain id field is required. #MS42209","errors":{"domain_id":["The
- domain id field is required. #MS42209"]}}'
- headers:
- CF-RAY:
- - 966ca7f1986b1ef8-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:35:25 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_add_to_blocklist.yaml b/tests/fixtures/cassettes/recipients_add_to_blocklist.yaml
deleted file mode 100644
index 4099dd3..0000000
--- a/tests/fixtures/cassettes/recipients_add_to_blocklist.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: '{"domain_id": "test-domain-id", "recipients": ["test@example.com"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '67'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/suppressions/blocklist
- response:
- body:
- string: '{"message":"The selected domain id is invalid.","errors":{"domain_id":["The
- selected domain id is invalid."]}}'
- headers:
- CF-RAY:
- - 966ca7eedfdc23b5-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:35:24 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_add_unsubscribes.yaml b/tests/fixtures/cassettes/recipients_add_unsubscribes.yaml
deleted file mode 100644
index f6f85c5..0000000
--- a/tests/fixtures/cassettes/recipients_add_unsubscribes.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: '{"domain_id": "test-domain-id", "recipients": ["test@example.com"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '67'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/suppressions/unsubscribes
- response:
- body:
- string: '{"message":"The domain id field is required. #MS42209","errors":{"domain_id":["The
- domain id field is required. #MS42209"]}}'
- headers:
- CF-RAY:
- - 966ca7f2fd05cb7b-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:35:25 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_api_response_structure.yaml b/tests/fixtures/cassettes/recipients_api_response_structure.yaml
deleted file mode 100644
index 94ecf90..0000000
--- a/tests/fixtures/cassettes/recipients_api_response_structure.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/recipients?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"67efa6b0bc82b271476e086f","email":"ig.or@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":""},{"id":"67efa6b06eebb6cf5947ec61","email":"igo.r@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":""},{"id":"67ec6ab5bef95df839307ebb","email":"igor@mailerlite.com","created_at":"2025-04-01T22:37:41.000000Z","updated_at":"2025-04-01T22:37:41.000000Z","deleted_at":""},{"id":"67efa816963207eb25a039f5","email":"ms-sdk-bcc@igor.fail","created_at":"2025-04-04T09:36:22.000000Z","updated_at":"2025-04-04T09:36:22.000000Z","deleted_at":""},{"id":"67efa8167b4d692450bdf95b","email":"ms-sdk-cc@igor.fail","created_at":"2025-04-04T09:36:22.000000Z","updated_at":"2025-04-04T09:36:22.000000Z","deleted_at":""}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/recipients","per_page":10,"to":5}}'
- headers:
- CF-RAY:
- - 966ca5d4deb8b01e-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:33:58 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_blocklist_basic.yaml b/tests/fixtures/cassettes/recipients_blocklist_basic.yaml
deleted file mode 100644
index b910de7..0000000
--- a/tests/fixtures/cassettes/recipients_blocklist_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/suppressions/blocklist?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/suppressions\/blocklist?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/suppressions\/blocklist","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966ca5c7bc02126d-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:33:56 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_comprehensive_workflow.yaml b/tests/fixtures/cassettes/recipients_comprehensive_workflow.yaml
deleted file mode 100644
index d5c908a..0000000
--- a/tests/fixtures/cassettes/recipients_comprehensive_workflow.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: '{"domain_id": "test-domain-id", "recipients": ["workflow-test@example.com"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '76'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/suppressions/blocklist
- response:
- body:
- string: '{"message":"The selected domain id is invalid.","errors":{"domain_id":["The
- selected domain id is invalid."]}}'
- headers:
- CF-RAY:
- - 966ca7f5db07562e-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:35:25 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_delete_from_blocklist.yaml b/tests/fixtures/cassettes/recipients_delete_from_blocklist.yaml
deleted file mode 100644
index 5980e78..0000000
--- a/tests/fixtures/cassettes/recipients_delete_from_blocklist.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: '{"domain_id": "test-domain-id", "ids": ["test-id"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '51'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/suppressions/blocklist
- response:
- body:
- string: '{"message":"The selected domain id is invalid. (and 1 more error)","errors":{"domain_id":["The
- selected domain id is invalid."],"ids.0":["The selected ids.0 is invalid."]}}'
- headers:
- CF-RAY:
- - 966ca7f45aeac0d0-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:35:25 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_delete_success.yaml b/tests/fixtures/cassettes/recipients_delete_success.yaml
deleted file mode 100644
index f0e5690..0000000
--- a/tests/fixtures/cassettes/recipients_delete_success.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/recipients/test-recipient-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966ca5c6db5de290-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:33:56 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_empty_list.yaml b/tests/fixtures/cassettes/recipients_empty_list.yaml
deleted file mode 100644
index 2ddaa70..0000000
--- a/tests/fixtures/cassettes/recipients_empty_list.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/recipients?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"67efa6b0bc82b271476e086f","email":"ig.or@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":""},{"id":"67efa6b06eebb6cf5947ec61","email":"igo.r@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":""},{"id":"67ec6ab5bef95df839307ebb","email":"igor@mailerlite.com","created_at":"2025-04-01T22:37:41.000000Z","updated_at":"2025-04-01T22:37:41.000000Z","deleted_at":""},{"id":"67efa816963207eb25a039f5","email":"ms-sdk-bcc@igor.fail","created_at":"2025-04-04T09:36:22.000000Z","updated_at":"2025-04-04T09:36:22.000000Z","deleted_at":""},{"id":"67efa8167b4d692450bdf95b","email":"ms-sdk-cc@igor.fail","created_at":"2025-04-04T09:36:22.000000Z","updated_at":"2025-04-04T09:36:22.000000Z","deleted_at":""}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/recipients","per_page":10,"to":5}}'
- headers:
- CF-RAY:
- - 966ca5d5bfccb30f-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:33:58 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_get_single.yaml b/tests/fixtures/cassettes/recipients_get_single.yaml
deleted file mode 100644
index 233bffd..0000000
--- a/tests/fixtures/cassettes/recipients_get_single.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/recipients/test-recipient-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966ca5c578ed3267-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:33:56 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_hard_bounces_basic.yaml b/tests/fixtures/cassettes/recipients_hard_bounces_basic.yaml
deleted file mode 100644
index 8e256cb..0000000
--- a/tests/fixtures/cassettes/recipients_hard_bounces_basic.yaml
+++ /dev/null
@@ -1,52 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/suppressions/hard-bounces?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"67efa6f1b810e35168ead88e","reason":"The email account
- that you tried to reach does not exist. Please try double-checking the recipient''s
- email address for typos or unnecessary spaces.","created_at":"2025-04-04T09:31:29.000000Z","recipient":{"id":"67efa6b06eebb6cf5947ec61","email":"igo.r@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":"","domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}}},{"id":"67efa6f13f3ebb599dc1210e","reason":"The
- email account that you tried to reach does not exist. Please try double-checking
- the recipient''s email address for typos or unnecessary spaces.","created_at":"2025-04-04T09:31:29.000000Z","recipient":{"id":"67efa6b0bc82b271476e086f","email":"ig.or@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":"","domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}}}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/suppressions\/hard-bounces?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/suppressions\/hard-bounces","per_page":10,"to":2}}'
- headers:
- CF-RAY:
- - 966ca5c8ada5fa43-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:33:56 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_list_basic.yaml b/tests/fixtures/cassettes/recipients_list_basic.yaml
deleted file mode 100644
index e1e20d8..0000000
--- a/tests/fixtures/cassettes/recipients_list_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/recipients?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"67efa6b0bc82b271476e086f","email":"ig.or@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":""},{"id":"67efa6b06eebb6cf5947ec61","email":"igo.r@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":""},{"id":"67ec6ab5bef95df839307ebb","email":"igor@mailerlite.com","created_at":"2025-04-01T22:37:41.000000Z","updated_at":"2025-04-01T22:37:41.000000Z","deleted_at":""},{"id":"67efa816963207eb25a039f5","email":"ms-sdk-bcc@igor.fail","created_at":"2025-04-04T09:36:22.000000Z","updated_at":"2025-04-04T09:36:22.000000Z","deleted_at":""},{"id":"67efa8167b4d692450bdf95b","email":"ms-sdk-cc@igor.fail","created_at":"2025-04-04T09:36:22.000000Z","updated_at":"2025-04-04T09:36:22.000000Z","deleted_at":""}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/recipients","per_page":10,"to":5}}'
- headers:
- CF-RAY:
- - 966ca5a73abc8e61-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:33:51 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_list_with_pagination.yaml b/tests/fixtures/cassettes/recipients_list_with_pagination.yaml
deleted file mode 100644
index d2185b5..0000000
--- a/tests/fixtures/cassettes/recipients_list_with_pagination.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/recipients?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"67efa6b0bc82b271476e086f","email":"ig.or@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":""},{"id":"67efa6b06eebb6cf5947ec61","email":"igo.r@mailerlite.com","created_at":"2025-04-04T09:30:24.000000Z","updated_at":"2025-04-04T09:31:29.000000Z","deleted_at":""},{"id":"67ec6ab5bef95df839307ebb","email":"igor@mailerlite.com","created_at":"2025-04-01T22:37:41.000000Z","updated_at":"2025-04-01T22:37:41.000000Z","deleted_at":""},{"id":"67efa816963207eb25a039f5","email":"ms-sdk-bcc@igor.fail","created_at":"2025-04-04T09:36:22.000000Z","updated_at":"2025-04-04T09:36:22.000000Z","deleted_at":""},{"id":"67efa8167b4d692450bdf95b","email":"ms-sdk-cc@igor.fail","created_at":"2025-04-04T09:36:22.000000Z","updated_at":"2025-04-04T09:36:22.000000Z","deleted_at":""}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/recipients","per_page":10,"to":5}}'
- headers:
- CF-RAY:
- - 966ca5c3f89a96e0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:33:56 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_spam_complaints_basic.yaml b/tests/fixtures/cassettes/recipients_spam_complaints_basic.yaml
deleted file mode 100644
index 9213503..0000000
--- a/tests/fixtures/cassettes/recipients_spam_complaints_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/suppressions/spam-complaints?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/suppressions\/spam-complaints?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/suppressions\/spam-complaints","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966ca5ca3c6ae295-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:33:57 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/recipients_unsubscribes_basic.yaml b/tests/fixtures/cassettes/recipients_unsubscribes_basic.yaml
deleted file mode 100644
index 33cade8..0000000
--- a/tests/fixtures/cassettes/recipients_unsubscribes_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/suppressions/unsubscribes?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/suppressions\/unsubscribes?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/suppressions\/unsubscribes","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966ca5cbae405165-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:33:57 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/schedules_api_response_structure.yaml b/tests/fixtures/cassettes/schedules_api_response_structure.yaml
deleted file mode 100644
index 2e76bfa..0000000
--- a/tests/fixtures/cassettes/schedules_api_response_structure.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/message-schedules?page=1&limit=10
- response:
- body:
- string: '{"data":[{"message_id":"6888bb59bbd49a78d3334484","subject":"Test Email","send_at":"2025-07-30T12:15:21.000000Z","status":"scheduled","status_message":null,"created_at":"2025-07-29T12:15:21.000000Z"},{"message_id":"6888bbb9b713a022b0acd094","subject":"Test
- Email","send_at":"2025-07-30T12:16:57.000000Z","status":"scheduled","status_message":null,"created_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","last":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/message-schedules","per_page":10,"to":2,"total":2}}'
- headers:
- CF-RAY:
- - 966d2ecd8f40e297-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:29 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/schedules_delete.yaml b/tests/fixtures/cassettes/schedules_delete.yaml
deleted file mode 100644
index 2ac7341..0000000
--- a/tests/fixtures/cassettes/schedules_delete.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/message-schedules/test-message-id
- response:
- body:
- string: "{\n \"message\": \"This message is scheduled to be sent shortly
- or has already been sent, it's not possible to delete it.\"\n}"
- headers:
- CF-RAY:
- - 966d2ecbffe3e296-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:28 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/schedules_empty_result.yaml b/tests/fixtures/cassettes/schedules_empty_result.yaml
deleted file mode 100644
index bcb68f8..0000000
--- a/tests/fixtures/cassettes/schedules_empty_result.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/message-schedules?page=1&limit=10
- response:
- body:
- string: '{"data":[{"message_id":"6888bb59bbd49a78d3334484","subject":"Test Email","send_at":"2025-07-30T12:15:21.000000Z","status":"scheduled","status_message":null,"created_at":"2025-07-29T12:15:21.000000Z"},{"message_id":"6888bbb9b713a022b0acd094","subject":"Test
- Email","send_at":"2025-07-30T12:16:57.000000Z","status":"scheduled","status_message":null,"created_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","last":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/message-schedules","per_page":10,"to":2,"total":2}}'
- headers:
- CF-RAY:
- - 966d2ece7865d814-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:29 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/schedules_get_single.yaml b/tests/fixtures/cassettes/schedules_get_single.yaml
deleted file mode 100644
index 4bb9c51..0000000
--- a/tests/fixtures/cassettes/schedules_get_single.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/message-schedules/test-message-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2ecb1c39aeaa-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:28 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/schedules_list_basic.yaml b/tests/fixtures/cassettes/schedules_list_basic.yaml
deleted file mode 100644
index 1c06432..0000000
--- a/tests/fixtures/cassettes/schedules_list_basic.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/message-schedules?page=1&limit=10
- response:
- body:
- string: '{"data":[{"message_id":"6888bb59bbd49a78d3334484","subject":"Test Email","send_at":"2025-07-30T12:15:21.000000Z","status":"scheduled","status_message":null,"created_at":"2025-07-29T12:15:21.000000Z"},{"message_id":"6888bbb9b713a022b0acd094","subject":"Test
- Email","send_at":"2025-07-30T12:16:57.000000Z","status":"scheduled","status_message":null,"created_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","last":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/message-schedules","per_page":10,"to":2,"total":2}}'
- headers:
- CF-RAY:
- - 966d2d97deaee296-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:06:39 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/schedules_list_with_domain_filter.yaml b/tests/fixtures/cassettes/schedules_list_with_domain_filter.yaml
deleted file mode 100644
index a29622a..0000000
--- a/tests/fixtures/cassettes/schedules_list_with_domain_filter.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/message-schedules?domain_id=65qngkdovk8lwr12&page=1&limit=10
- response:
- body:
- string: '{"data":[{"message_id":"6888bb59bbd49a78d3334484","subject":"Test Email","send_at":"2025-07-30T12:15:21.000000Z","status":"scheduled","status_message":null,"created_at":"2025-07-29T12:15:21.000000Z"},{"message_id":"6888bbb9b713a022b0acd094","subject":"Test
- Email","send_at":"2025-07-30T12:16:57.000000Z","status":"scheduled","status_message":null,"created_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","last":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/message-schedules","per_page":10,"to":2,"total":2}}'
- headers:
- CF-RAY:
- - 966d2ec87a65c239-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:28 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/schedules_list_with_pagination.yaml b/tests/fixtures/cassettes/schedules_list_with_pagination.yaml
deleted file mode 100644
index a650403..0000000
--- a/tests/fixtures/cassettes/schedules_list_with_pagination.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/message-schedules?page=1&limit=10
- response:
- body:
- string: '{"data":[{"message_id":"6888bb59bbd49a78d3334484","subject":"Test Email","send_at":"2025-07-30T12:15:21.000000Z","status":"scheduled","status_message":null,"created_at":"2025-07-29T12:15:21.000000Z"},{"message_id":"6888bbb9b713a022b0acd094","subject":"Test
- Email","send_at":"2025-07-30T12:16:57.000000Z","status":"scheduled","status_message":null,"created_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","last":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/message-schedules","per_page":10,"to":2,"total":2}}'
- headers:
- CF-RAY:
- - 966d2ec709ed1b8b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:28 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/schedules_list_with_status_filter.yaml b/tests/fixtures/cassettes/schedules_list_with_status_filter.yaml
deleted file mode 100644
index a5707ef..0000000
--- a/tests/fixtures/cassettes/schedules_list_with_status_filter.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/message-schedules?status=scheduled&page=1&limit=10
- response:
- body:
- string: '{"data":[{"message_id":"6888bb59bbd49a78d3334484","subject":"Test Email","send_at":"2025-07-30T12:15:21.000000Z","status":"scheduled","status_message":null,"created_at":"2025-07-29T12:15:21.000000Z"},{"message_id":"6888bbb9b713a022b0acd094","subject":"Test
- Email","send_at":"2025-07-30T12:16:57.000000Z","status":"scheduled","status_message":null,"created_at":"2025-07-29T12:16:57.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","last":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/message-schedules","per_page":10,"to":2,"total":2}}'
- headers:
- CF-RAY:
- - 966d2eca1b761b8b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:28 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_api_response_structure.yaml b/tests/fixtures/cassettes/sms_activity_api_response_structure.yaml
deleted file mode 100644
index 5f6d1a0..0000000
--- a/tests/fixtures/cassettes/sms_activity_api_response_structure.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-activity?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-activity?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-activity","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d5dfa9bf3e296-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:39:41 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_builder_get_not_found.yaml b/tests/fixtures/cassettes/sms_activity_builder_get_not_found.yaml
deleted file mode 100644
index 34a8dd3..0000000
--- a/tests/fixtures/cassettes/sms_activity_builder_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-messages/test-sms-message-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d5e000bddbbed-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:39:42 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_builder_list_basic.yaml b/tests/fixtures/cassettes/sms_activity_builder_list_basic.yaml
deleted file mode 100644
index 28638c8..0000000
--- a/tests/fixtures/cassettes/sms_activity_builder_list_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-activity?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-activity?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-activity","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d5dfcac06c687-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:39:41 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_builder_list_with_filters.yaml b/tests/fixtures/cassettes/sms_activity_builder_list_with_filters.yaml
deleted file mode 100644
index 8269e54..0000000
--- a/tests/fixtures/cassettes/sms_activity_builder_list_with_filters.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-activity?date_from=1753195200&date_to=1753800000&status%5B%5D=sent&status%5B%5D=delivered&page=1&limit=25
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-activity?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-activity","per_page":25,"to":null}}'
- headers:
- CF-RAY:
- - 966d60908826b01b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:41:27 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_builder_list_with_sms_number.yaml b/tests/fixtures/cassettes/sms_activity_builder_list_with_sms_number.yaml
deleted file mode 100644
index 827c0c1..0000000
--- a/tests/fixtures/cassettes/sms_activity_builder_list_with_sms_number.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-activity?sms_number_id=test-sms-number-id&page=1&limit=10
- response:
- body:
- string: '{"message":"The selected sms number id is invalid.","errors":{"sms_number_id":["The
- selected sms number id is invalid."]}}'
- headers:
- CF-RAY:
- - 966d5dff2a3f55ad-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:39:42 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_comprehensive_workflow.yaml b/tests/fixtures/cassettes/sms_activity_comprehensive_workflow.yaml
deleted file mode 100644
index 7443cb5..0000000
--- a/tests/fixtures/cassettes/sms_activity_comprehensive_workflow.yaml
+++ /dev/null
@@ -1,178 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-activity?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-activity?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-activity","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d6091cd1e8e88-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:41:27 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-activity?date_from=1753195200&date_to=1753800000&status%5B%5D=sent&page=1&limit=25
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-activity?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-activity","per_page":25,"to":null}}'
- headers:
- CF-RAY:
- - 966d60937a5a870d-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:41:27 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-messages/non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d6094bdf6870d-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:41:27 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-messages/another-non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d609608e2562e-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:41:28 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_empty_result.yaml b/tests/fixtures/cassettes/sms_activity_empty_result.yaml
deleted file mode 100644
index ee36d8e..0000000
--- a/tests/fixtures/cassettes/sms_activity_empty_result.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-activity?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-activity?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-activity","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d5dfb8912b30c-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:39:41 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_get_message_not_found.yaml b/tests/fixtures/cassettes/sms_activity_get_message_not_found.yaml
deleted file mode 100644
index 9cb4920..0000000
--- a/tests/fixtures/cassettes/sms_activity_get_message_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-messages/test-sms-message-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d5df98e27b311-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:39:41 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_list_basic.yaml b/tests/fixtures/cassettes/sms_activity_list_basic.yaml
deleted file mode 100644
index 59ee2a0..0000000
--- a/tests/fixtures/cassettes/sms_activity_list_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-activity?page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-activity?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-activity","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d5df24b8faeaa-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:39:40 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_list_with_date_range.yaml b/tests/fixtures/cassettes/sms_activity_list_with_date_range.yaml
deleted file mode 100644
index 8a10b3c..0000000
--- a/tests/fixtures/cassettes/sms_activity_list_with_date_range.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-activity?date_from=1753195200&date_to=1753800000&page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-activity?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-activity","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d608eb816c239-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:41:27 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_list_with_pagination.yaml b/tests/fixtures/cassettes/sms_activity_list_with_pagination.yaml
deleted file mode 100644
index 52018d3..0000000
--- a/tests/fixtures/cassettes/sms_activity_list_with_pagination.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-activity?page=1&limit=25
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-activity?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-activity","per_page":25,"to":null}}'
- headers:
- CF-RAY:
- - 966d5df42e5f1f09-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:39:40 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_list_with_sms_number_filter.yaml b/tests/fixtures/cassettes/sms_activity_list_with_sms_number_filter.yaml
deleted file mode 100644
index 00c5e67..0000000
--- a/tests/fixtures/cassettes/sms_activity_list_with_sms_number_filter.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-activity?sms_number_id=test-sms-number-id&page=1&limit=10
- response:
- body:
- string: '{"message":"The selected sms number id is invalid.","errors":{"sms_number_id":["The
- selected sms number id is invalid."]}}'
- headers:
- CF-RAY:
- - 966d5df59edee295-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:39:40 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/sms_activity_list_with_status_filter.yaml b/tests/fixtures/cassettes/sms_activity_list_with_status_filter.yaml
deleted file mode 100644
index 8b8ff37..0000000
--- a/tests/fixtures/cassettes/sms_activity_list_with_status_filter.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-activity?status%5B%5D=queued&status%5B%5D=sent&page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-activity?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-activity","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d5df808defa43-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:39:41 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_messages_api_response_structure.yaml b/tests/fixtures/cassettes/sms_messages_api_response_structure.yaml
deleted file mode 100644
index 0ba8225..0000000
--- a/tests/fixtures/cassettes/sms_messages_api_response_structure.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-messages?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-messages","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966caa4b8e7daeaa-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:37:01 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_messages_comprehensive_workflow.yaml b/tests/fixtures/cassettes/sms_messages_comprehensive_workflow.yaml
deleted file mode 100644
index 2b1eba8..0000000
--- a/tests/fixtures/cassettes/sms_messages_comprehensive_workflow.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-messages?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-messages","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966caa4c9e36cf86-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:37:01 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_messages_get_not_found.yaml b/tests/fixtures/cassettes/sms_messages_get_not_found.yaml
deleted file mode 100644
index 9ccf7cd..0000000
--- a/tests/fixtures/cassettes/sms_messages_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-messages/non-existent-message-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966caa491ebfa8bc-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:37:01 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_messages_get_single.yaml b/tests/fixtures/cassettes/sms_messages_get_single.yaml
deleted file mode 100644
index 0390ba5..0000000
--- a/tests/fixtures/cassettes/sms_messages_get_single.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-messages/test-sms-message-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966caa47ddaee28f-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:37:00 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_messages_list_basic.yaml b/tests/fixtures/cassettes/sms_messages_list_basic.yaml
deleted file mode 100644
index 8e55ce5..0000000
--- a/tests/fixtures/cassettes/sms_messages_list_basic.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-messages?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-messages","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966ca9f5db1adfc0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:36:47 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_messages_list_empty.yaml b/tests/fixtures/cassettes/sms_messages_list_empty.yaml
deleted file mode 100644
index 2b1a4cb..0000000
--- a/tests/fixtures/cassettes/sms_messages_list_empty.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-messages?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-messages","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966caa458c881b8b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:37:00 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_messages_list_with_filters.yaml b/tests/fixtures/cassettes/sms_messages_list_with_filters.yaml
deleted file mode 100644
index 1e23b1b..0000000
--- a/tests/fixtures/cassettes/sms_messages_list_with_filters.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-messages
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-messages","per_page":25,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966caa4a5d1b126d-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:37:01 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_messages_list_with_pagination.yaml b/tests/fixtures/cassettes/sms_messages_list_with_pagination.yaml
deleted file mode 100644
index 061a6d1..0000000
--- a/tests/fixtures/cassettes/sms_messages_list_with_pagination.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-messages?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-messages","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966caa43dfca076b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 12:37:00 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_numbers_api_response_structure.yaml b/tests/fixtures/cassettes/sms_numbers_api_response_structure.yaml
deleted file mode 100644
index 87e0ebc..0000000
--- a/tests/fixtures/cassettes/sms_numbers_api_response_structure.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-numbers
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-numbers","per_page":15,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966d57d00f301f09-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:35:28 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_numbers_delete_not_found.yaml b/tests/fixtures/cassettes/sms_numbers_delete_not_found.yaml
deleted file mode 100644
index 3eff10d..0000000
--- a/tests/fixtures/cassettes/sms_numbers_delete_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/sms-numbers/test-sms-number-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d57cf2e01f339-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:35:28 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_numbers_empty_result.yaml b/tests/fixtures/cassettes/sms_numbers_empty_result.yaml
deleted file mode 100644
index 3d88607..0000000
--- a/tests/fixtures/cassettes/sms_numbers_empty_result.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-numbers
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-numbers","per_page":15,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966d57d0fca61b8b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:35:28 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_numbers_get_not_found.yaml b/tests/fixtures/cassettes/sms_numbers_get_not_found.yaml
deleted file mode 100644
index 17b79a6..0000000
--- a/tests/fixtures/cassettes/sms_numbers_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-numbers/test-sms-number-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d57cb3beafa43-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:35:27 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_numbers_list_active_only.yaml b/tests/fixtures/cassettes/sms_numbers_list_active_only.yaml
deleted file mode 100644
index 902680b..0000000
--- a/tests/fixtures/cassettes/sms_numbers_list_active_only.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-numbers?paused=false&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-numbers","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966d57c9ef058e88-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:35:27 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_numbers_list_basic.yaml b/tests/fixtures/cassettes/sms_numbers_list_basic.yaml
deleted file mode 100644
index 7bf3ef9..0000000
--- a/tests/fixtures/cassettes/sms_numbers_list_basic.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-numbers
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-numbers","per_page":15,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966d5780d8b0e292-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:35:16 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_numbers_list_paused_only.yaml b/tests/fixtures/cassettes/sms_numbers_list_paused_only.yaml
deleted file mode 100644
index 257ac2d..0000000
--- a/tests/fixtures/cassettes/sms_numbers_list_paused_only.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-numbers?paused=true&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-numbers","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966d57c80972076b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:35:27 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_numbers_list_with_filters.yaml b/tests/fixtures/cassettes/sms_numbers_list_with_filters.yaml
deleted file mode 100644
index 402b566..0000000
--- a/tests/fixtures/cassettes/sms_numbers_list_with_filters.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-numbers?paused=false&page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-numbers","per_page":10,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966d57c71b8ce292-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:35:27 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_numbers_update_not_found.yaml b/tests/fixtures/cassettes/sms_numbers_update_not_found.yaml
deleted file mode 100644
index 62803b9..0000000
--- a/tests/fixtures/cassettes/sms_numbers_update_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"paused": true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '16'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/sms-numbers/test-sms-number-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d57cbfe4896e0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:35:28 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_numbers_update_pause.yaml b/tests/fixtures/cassettes/sms_numbers_update_pause.yaml
deleted file mode 100644
index c92c497..0000000
--- a/tests/fixtures/cassettes/sms_numbers_update_pause.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"paused": true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '16'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/sms-numbers/test-sms-number-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d57cd78d78e88-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:35:28 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_numbers_update_unpause.yaml b/tests/fixtures/cassettes/sms_numbers_update_unpause.yaml
deleted file mode 100644
index efcae5e..0000000
--- a/tests/fixtures/cassettes/sms_numbers_update_unpause.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"paused": false}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '17'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/sms-numbers/test-sms-number-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d57ce49ace291-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:35:28 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_api_response_structure.yaml b/tests/fixtures/cassettes/sms_recipients_api_response_structure.yaml
deleted file mode 100644
index d292388..0000000
--- a/tests/fixtures/cassettes/sms_recipients_api_response_structure.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-recipients","per_page":"10","to":null}}'
- headers:
- CF-RAY:
- - 966d52917c9c076b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:31:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_builder_get_not_found.yaml b/tests/fixtures/cassettes/sms_recipients_builder_get_not_found.yaml
deleted file mode 100644
index 165d581..0000000
--- a/tests/fixtures/cassettes/sms_recipients_builder_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients/test-sms-recipient-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d52981e38870d-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:31:55 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_builder_list_basic.yaml b/tests/fixtures/cassettes/sms_recipients_builder_list_basic.yaml
deleted file mode 100644
index 0e14efe..0000000
--- a/tests/fixtures/cassettes/sms_recipients_builder_list_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-recipients","per_page":"10","to":null}}'
- headers:
- CF-RAY:
- - 966d52940e9fbbed-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:31:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_builder_list_with_sms_number.yaml b/tests/fixtures/cassettes/sms_recipients_builder_list_with_sms_number.yaml
deleted file mode 100644
index 7b423e6..0000000
--- a/tests/fixtures/cassettes/sms_recipients_builder_list_with_sms_number.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients?sms_number_id=test-sms-number-id&limit=10
- response:
- body:
- string: '{"message":"The selected sms number id is invalid.","errors":{"sms_number_id":["The
- selected sms number id is invalid."]}}'
- headers:
- CF-RAY:
- - 966d54ecac96b018-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:33:30 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_builder_list_with_status.yaml b/tests/fixtures/cassettes/sms_recipients_builder_list_with_status.yaml
deleted file mode 100644
index ccc798b..0000000
--- a/tests/fixtures/cassettes/sms_recipients_builder_list_with_status.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients?status=active
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-recipients","per_page":25,"to":null}}'
- headers:
- CF-RAY:
- - 966d52950c425165-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:31:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_builder_update_not_found.yaml b/tests/fixtures/cassettes/sms_recipients_builder_update_not_found.yaml
deleted file mode 100644
index f650ca9..0000000
--- a/tests/fixtures/cassettes/sms_recipients_builder_update_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"status": "opt_out"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '21'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/sms-recipients/test-sms-recipient-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d529919e2b01d-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:31:55 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_comprehensive_workflow.yaml b/tests/fixtures/cassettes/sms_recipients_comprehensive_workflow.yaml
deleted file mode 100644
index 1f189d2..0000000
--- a/tests/fixtures/cassettes/sms_recipients_comprehensive_workflow.yaml
+++ /dev/null
@@ -1,178 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-recipients","per_page":"10","to":null}}'
- headers:
- CF-RAY:
- - 966d54ee3c053267-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:33:30 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients?status=active
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-recipients","per_page":25,"to":null}}'
- headers:
- CF-RAY:
- - 966d54efba6bf969-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:33:30 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients/non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d54f0bd42f969-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:33:31 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients/another-non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d54f16ca4dfc0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:33:31 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_empty_result.yaml b/tests/fixtures/cassettes/sms_recipients_empty_result.yaml
deleted file mode 100644
index 071a578..0000000
--- a/tests/fixtures/cassettes/sms_recipients_empty_result.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-recipients","per_page":"10","to":null}}'
- headers:
- CF-RAY:
- - 966d5292ea9be297-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:31:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_get_not_found.yaml b/tests/fixtures/cassettes/sms_recipients_get_not_found.yaml
deleted file mode 100644
index 0d81ef3..0000000
--- a/tests/fixtures/cassettes/sms_recipients_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients/test-sms-recipient-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d528f28afc747-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:31:53 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_list_basic.yaml b/tests/fixtures/cassettes/sms_recipients_list_basic.yaml
deleted file mode 100644
index 8389af4..0000000
--- a/tests/fixtures/cassettes/sms_recipients_list_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-recipients","per_page":"10","to":null}}'
- headers:
- CF-RAY:
- - 966d52896efd8eb1-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:31:52 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_list_with_pagination.yaml b/tests/fixtures/cassettes/sms_recipients_list_with_pagination.yaml
deleted file mode 100644
index 01d725e..0000000
--- a/tests/fixtures/cassettes/sms_recipients_list_with_pagination.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-recipients","per_page":25,"to":null}}'
- headers:
- CF-RAY:
- - 966d528ac84011d5-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:31:52 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_list_with_sms_number_filter.yaml b/tests/fixtures/cassettes/sms_recipients_list_with_sms_number_filter.yaml
deleted file mode 100644
index 41b7776..0000000
--- a/tests/fixtures/cassettes/sms_recipients_list_with_sms_number_filter.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients?sms_number_id=test-sms-number-id&limit=10
- response:
- body:
- string: '{"message":"The selected sms number id is invalid.","errors":{"sms_number_id":["The
- selected sms number id is invalid."]}}'
- headers:
- CF-RAY:
- - 966d54eb3a0a8e88-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:33:30 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_list_with_status_filter.yaml b/tests/fixtures/cassettes/sms_recipients_list_with_status_filter.yaml
deleted file mode 100644
index f486c7c..0000000
--- a/tests/fixtures/cassettes/sms_recipients_list_with_status_filter.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-recipients?status=active&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-recipients?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-recipients","per_page":"10","to":null}}'
- headers:
- CF-RAY:
- - 966d528c7ec30b0f-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:31:53 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/sms_recipients_update_not_found.yaml b/tests/fixtures/cassettes/sms_recipients_update_not_found.yaml
deleted file mode 100644
index 0134a7c..0000000
--- a/tests/fixtures/cassettes/sms_recipients_update_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"status": "opt_out"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '21'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/sms-recipients/test-sms-recipient-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d528ffb32d814-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:31:53 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_send_basic.yaml b/tests/fixtures/cassettes/sms_send_basic.yaml
deleted file mode 100644
index 927143c..0000000
--- a/tests/fixtures/cassettes/sms_send_basic.yaml
+++ /dev/null
@@ -1,52 +0,0 @@
-interactions:
-- request:
- body: '{"from": "+1234567890", "to": ["+1234567890"], "text": "Hello, this
- is a test SMS message!"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '96'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/sms
- response:
- body:
- string: '{"message":"The from field contains an invalid number. (and 2 more
- errors)","errors":{"from":["The from field contains an invalid number."],"to":["Daily
- quota for this number exceeded."],"to.0":["The to.0 field contains an invalid
- number."]}}'
- headers:
- CF-RAY:
- - 966d52c86efaaeaa-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:32:02 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/sms_send_long_message.yaml b/tests/fixtures/cassettes/sms_send_long_message.yaml
deleted file mode 100644
index 733e538..0000000
--- a/tests/fixtures/cassettes/sms_send_long_message.yaml
+++ /dev/null
@@ -1,68 +0,0 @@
-interactions:
-- request:
- body: '{"from": "+1234567890", "to": ["+1234567890"], "text": "This is a long
- SMS message. This is a long SMS message. This is a long SMS message. This is
- a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. This is a long SMS message.
- This is a long SMS message. This is a long SMS message. "}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '1462'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/sms
- response:
- body:
- string: '{"message":"The from field contains an invalid number. (and 2 more
- errors)","errors":{"from":["The from field contains an invalid number."],"to":["Daily
- quota for this number exceeded."],"to.0":["The to.0 field contains an invalid
- number."]}}'
- headers:
- CF-RAY:
- - 966d533d3969e294-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:32:21 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/sms_send_multiple_recipients.yaml b/tests/fixtures/cassettes/sms_send_multiple_recipients.yaml
deleted file mode 100644
index 54c585b..0000000
--- a/tests/fixtures/cassettes/sms_send_multiple_recipients.yaml
+++ /dev/null
@@ -1,52 +0,0 @@
-interactions:
-- request:
- body: '{"from": "+1234567890", "to": ["+1234567890"], "text": "Message for
- multiple recipients"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '93'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/sms
- response:
- body:
- string: '{"message":"The from field contains an invalid number. (and 2 more
- errors)","errors":{"from":["The from field contains an invalid number."],"to":["Daily
- quota for this number exceeded."],"to.0":["The to.0 field contains an invalid
- number."]}}'
- headers:
- CF-RAY:
- - 966d533e5c36e294-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:32:21 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/sms_send_with_personalization.yaml b/tests/fixtures/cassettes/sms_send_with_personalization.yaml
deleted file mode 100644
index 97b85ab..0000000
--- a/tests/fixtures/cassettes/sms_send_with_personalization.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-interactions:
-- request:
- body: '{"from": "+1234567890", "to": ["+1234567890"], "text": "Hello {{name}},
- this is a personalized message!", "personalization": [{"phone_number": "+1234567890",
- "data": {"name": "John"}}]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '191'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/sms
- response:
- body:
- string: '{"message":"The from field contains an invalid number. (and 2 more
- errors)","errors":{"from":["The from field contains an invalid number."],"to":["Daily
- quota for this number exceeded."],"to.0":["The to.0 field contains an invalid
- number."]}}'
- headers:
- CF-RAY:
- - 966d533c3e1cc687-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:32:21 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/sms_webhooks_create_invalid_sms_number.yaml b/tests/fixtures/cassettes/sms_webhooks_create_invalid_sms_number.yaml
deleted file mode 100644
index 45c39dd..0000000
--- a/tests/fixtures/cassettes/sms_webhooks_create_invalid_sms_number.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-interactions:
-- request:
- body: '{"url": "https://example.com/webhook", "name": "Test SMS Webhook", "events":
- ["sms.sent", "sms.delivered"], "sms_number_id": "test-sms-number-id", "enabled":
- true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '163'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/sms-webhooks
- response:
- body:
- string: '{"message":"The sms number id field is required. #MS42209","errors":{"sms_number_id":["The
- sms number id field is required. #MS42209"]}}'
- headers:
- CF-RAY:
- - 966d689b9b428e88-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:46:56 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/sms_webhooks_create_with_all_events.yaml b/tests/fixtures/cassettes/sms_webhooks_create_with_all_events.yaml
deleted file mode 100644
index 91f4ffc..0000000
--- a/tests/fixtures/cassettes/sms_webhooks_create_with_all_events.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-interactions:
-- request:
- body: '{"url": "https://example.com/all-events", "name": "All Events Webhook",
- "events": ["sms.sent", "sms.delivered", "sms.failed"], "sms_number_id": "test-sms-number-id",
- "enabled": true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '182'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/sms-webhooks
- response:
- body:
- string: '{"message":"The sms number id field is required. #MS42209","errors":{"sms_number_id":["The
- sms number id field is required. #MS42209"]}}'
- headers:
- CF-RAY:
- - 966d689d1ffa96e0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:46:57 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/sms_webhooks_delete_not_found.yaml b/tests/fixtures/cassettes/sms_webhooks_delete_not_found.yaml
deleted file mode 100644
index df7308d..0000000
--- a/tests/fixtures/cassettes/sms_webhooks_delete_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/sms-webhooks/test-sms-webhook-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d68a09990e295-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:46:57 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_webhooks_get_not_found.yaml b/tests/fixtures/cassettes/sms_webhooks_get_not_found.yaml
deleted file mode 100644
index aca5d4e..0000000
--- a/tests/fixtures/cassettes/sms_webhooks_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-webhooks/test-sms-webhook-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d689a2a27d814-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:46:56 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_webhooks_list_basic.yaml b/tests/fixtures/cassettes/sms_webhooks_list_basic.yaml
deleted file mode 100644
index 63a7746..0000000
--- a/tests/fixtures/cassettes/sms_webhooks_list_basic.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-webhooks?sms_number_id=test-sms-number-id
- response:
- body:
- string: '{"message":"The sms number id field is required. #MS42209","errors":{"sms_number_id":["The
- sms number id field is required. #MS42209"]}}'
- headers:
- CF-RAY:
- - 966d65a14e711b8b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:44:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/sms_webhooks_list_with_invalid_sms_number.yaml b/tests/fixtures/cassettes/sms_webhooks_list_with_invalid_sms_number.yaml
deleted file mode 100644
index 533b533..0000000
--- a/tests/fixtures/cassettes/sms_webhooks_list_with_invalid_sms_number.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/sms-webhooks?sms_number_id=invalid-sms-number-id
- response:
- body:
- string: '{"message":"The sms number id field is required. #MS42209","errors":{"sms_number_id":["The
- sms number id field is required. #MS42209"]}}'
- headers:
- CF-RAY:
- - 966d6898da8a076b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:46:56 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/sms_webhooks_update_disable.yaml b/tests/fixtures/cassettes/sms_webhooks_update_disable.yaml
deleted file mode 100644
index 946785d..0000000
--- a/tests/fixtures/cassettes/sms_webhooks_update_disable.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"enabled": false}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '18'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/sms-webhooks/test-sms-webhook-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d689f5b4de291-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:46:57 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/sms_webhooks_update_not_found.yaml b/tests/fixtures/cassettes/sms_webhooks_update_not_found.yaml
deleted file mode 100644
index 0f6141f..0000000
--- a/tests/fixtures/cassettes/sms_webhooks_update_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Updated SMS Webhook", "enabled": false}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '49'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/sms-webhooks/test-sms-webhook-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d689e6c28b01b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:46:57 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_api_response_structure.yaml b/tests/fixtures/cassettes/smtp_users_api_response_structure.yaml
deleted file mode 100644
index f54876d..0000000
--- a/tests/fixtures/cassettes/smtp_users_api_response_structure.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d2f8bee235165-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:59 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_builder_create_invalid_domain.yaml b/tests/fixtures/cassettes/smtp_users_builder_create_invalid_domain.yaml
deleted file mode 100644
index db686cc..0000000
--- a/tests/fixtures/cassettes/smtp_users_builder_create_invalid_domain.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Test User", "enabled": true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '38'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/domains/invalid-domain-id/smtp-users
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2f915ae8c239-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:08:00 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_builder_delete_not_found.yaml b/tests/fixtures/cassettes/smtp_users_builder_delete_not_found.yaml
deleted file mode 100644
index 7bf3bf7..0000000
--- a/tests/fixtures/cassettes/smtp_users_builder_delete_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users/test-smtp-user-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2f92e81ac239-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:08:00 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_builder_get_not_found.yaml b/tests/fixtures/cassettes/smtp_users_builder_get_not_found.yaml
deleted file mode 100644
index 35ab9b8..0000000
--- a/tests/fixtures/cassettes/smtp_users_builder_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users/test-smtp-user-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2f908cd99857-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:08:00 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_builder_list_basic.yaml b/tests/fixtures/cassettes/smtp_users_builder_list_basic.yaml
deleted file mode 100644
index 58465c8..0000000
--- a/tests/fixtures/cassettes/smtp_users_builder_list_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d2f8e382d076b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:59 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_builder_list_with_custom_limit.yaml b/tests/fixtures/cassettes/smtp_users_builder_list_with_custom_limit.yaml
deleted file mode 100644
index bfef72b..0000000
--- a/tests/fixtures/cassettes/smtp_users_builder_list_with_custom_limit.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users?limit=50
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users","per_page":50,"to":null}}'
- headers:
- CF-RAY:
- - 966d2f8f6a5d71a3-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:08:00 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_builder_update_not_found.yaml b/tests/fixtures/cassettes/smtp_users_builder_update_not_found.yaml
deleted file mode 100644
index 769e42c..0000000
--- a/tests/fixtures/cassettes/smtp_users_builder_update_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Updated User", "enabled": false}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '42'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users/test-smtp-user-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2f922de60380-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:08:00 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_comprehensive_workflow.yaml b/tests/fixtures/cassettes/smtp_users_comprehensive_workflow.yaml
deleted file mode 100644
index a608e5e..0000000
--- a/tests/fixtures/cassettes/smtp_users_comprehensive_workflow.yaml
+++ /dev/null
@@ -1,222 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d2f93adb7076b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:08:00 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users","per_page":25,"to":null}}'
- headers:
- CF-RAY:
- - 966d2f948d30e292-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:08:00 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users/non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2f955b36e297-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:08:00 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-- request:
- body: '{"name": "Test User"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '21'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/domains/invalid-domain/smtp-users
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2f96198ce292-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:08:01 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users/another-non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2f971a850a8e-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:08:01 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_create_invalid_domain.yaml b/tests/fixtures/cassettes/smtp_users_create_invalid_domain.yaml
deleted file mode 100644
index ec5ce11..0000000
--- a/tests/fixtures/cassettes/smtp_users_create_invalid_domain.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Test SMTP User", "enabled": true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '43'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/domains/invalid-domain-id/smtp-users
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2f88ce72af0a-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:58 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_delete_not_found.yaml b/tests/fixtures/cassettes/smtp_users_delete_not_found.yaml
deleted file mode 100644
index 6ed30d1..0000000
--- a/tests/fixtures/cassettes/smtp_users_delete_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users/test-smtp-user-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2f8b1806e295-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:59 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_empty_result.yaml b/tests/fixtures/cassettes/smtp_users_empty_result.yaml
deleted file mode 100644
index ab2e45a..0000000
--- a/tests/fixtures/cassettes/smtp_users_empty_result.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d2f8cba1d8e88-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:59 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_get_not_found.yaml b/tests/fixtures/cassettes/smtp_users_get_not_found.yaml
deleted file mode 100644
index a4cf791..0000000
--- a/tests/fixtures/cassettes/smtp_users_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users/test-smtp-user-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2f879f255db9-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:58 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_list_basic.yaml b/tests/fixtures/cassettes/smtp_users_list_basic.yaml
deleted file mode 100644
index 858d5cd..0000000
--- a/tests/fixtures/cassettes/smtp_users_list_basic.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users?limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d2f83cf2e3ec1-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:58 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_list_invalid_domain.yaml b/tests/fixtures/cassettes/smtp_users_list_invalid_domain.yaml
deleted file mode 100644
index e755f28..0000000
--- a/tests/fixtures/cassettes/smtp_users_list_invalid_domain.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/invalid-domain-id/smtp-users?limit=10
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2f867de68eb1-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:58 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_list_with_limit.yaml b/tests/fixtures/cassettes/smtp_users_list_with_limit.yaml
deleted file mode 100644
index 87632ea..0000000
--- a/tests/fixtures/cassettes/smtp_users_list_with_limit.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/domains\/65qngkdovk8lwr12\/smtp-users","per_page":25,"to":null}}'
- headers:
- CF-RAY:
- - 966d2f850e51b654-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:58 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/smtp_users_update_not_found.yaml b/tests/fixtures/cassettes/smtp_users_update_not_found.yaml
deleted file mode 100644
index 1e470e0..0000000
--- a/tests/fixtures/cassettes/smtp_users_update_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Updated SMTP User", "enabled": false}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '47'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/domains/65qngkdovk8lwr12/smtp-users/test-smtp-user-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d2f8a0d08afe9-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:07:59 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/templates_api_response_structure.yaml b/tests/fixtures/cassettes/templates_api_response_structure.yaml
deleted file mode 100644
index a8e9893..0000000
--- a/tests/fixtures/cassettes/templates_api_response_structure.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/templates?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_neqvygmmmkjg0p7w.png","variables":{"variables":[],"personalization":{"account_name":""}},"created_at":"2024-10-29T05:19:09.000000Z","category":null,"categories":[]},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_0r83ql3mwxmgzw1j.png","variables":{"variables":[],"personalization":{"account_name":""}},"created_at":"2025-03-27T11:49:37.000000Z","category":null,"categories":[]},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_z3m5jgrk1wxldpyo.png","variables":{"variables":[],"personalization":[]},"created_at":"2024-11-04T13:05:39.000000Z","category":null,"categories":[]},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_351ndgwkr8xgzqx8.png","variables":{"variables":[],"personalization":{"name":"","account_name":""}},"created_at":"2025-04-04T12:33:42.000000Z","category":null,"categories":[]}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/templates?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/templates","per_page":10,"to":4}}'
- headers:
- CF-RAY:
- - 966d35841d48d814-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:12:04 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/templates_delete.yaml b/tests/fixtures/cassettes/templates_delete.yaml
deleted file mode 100644
index d7a34d9..0000000
--- a/tests/fixtures/cassettes/templates_delete.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/templates/test-template-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d3582eb4b126d-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:12:03 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/templates_empty_result.yaml b/tests/fixtures/cassettes/templates_empty_result.yaml
deleted file mode 100644
index 0f8e2f7..0000000
--- a/tests/fixtures/cassettes/templates_empty_result.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/templates?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_neqvygmmmkjg0p7w.png","variables":{"variables":[],"personalization":{"account_name":""}},"created_at":"2024-10-29T05:19:09.000000Z","category":null,"categories":[]},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_0r83ql3mwxmgzw1j.png","variables":{"variables":[],"personalization":{"account_name":""}},"created_at":"2025-03-27T11:49:37.000000Z","category":null,"categories":[]},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_z3m5jgrk1wxldpyo.png","variables":{"variables":[],"personalization":[]},"created_at":"2024-11-04T13:05:39.000000Z","category":null,"categories":[]},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_351ndgwkr8xgzqx8.png","variables":{"variables":[],"personalization":{"name":"","account_name":""}},"created_at":"2025-04-04T12:33:42.000000Z","category":null,"categories":[]}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/templates?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/templates","per_page":10,"to":4}}'
- headers:
- CF-RAY:
- - 966d35866a92cf86-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:12:04 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/templates_get_single.yaml b/tests/fixtures/cassettes/templates_get_single.yaml
deleted file mode 100644
index 7a8fa11..0000000
--- a/tests/fixtures/cassettes/templates_get_single.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/templates/test-template-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d3581e8d4e294-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:12:03 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/templates_list_basic.yaml b/tests/fixtures/cassettes/templates_list_basic.yaml
deleted file mode 100644
index cfe6ff2..0000000
--- a/tests/fixtures/cassettes/templates_list_basic.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/templates?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_neqvygmmmkjg0p7w.png","variables":{"variables":[],"personalization":{"account_name":""}},"created_at":"2024-10-29T05:19:09.000000Z","category":null,"categories":[]},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_0r83ql3mwxmgzw1j.png","variables":{"variables":[],"personalization":{"account_name":""}},"created_at":"2025-03-27T11:49:37.000000Z","category":null,"categories":[]},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_z3m5jgrk1wxldpyo.png","variables":{"variables":[],"personalization":[]},"created_at":"2024-11-04T13:05:39.000000Z","category":null,"categories":[]},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_351ndgwkr8xgzqx8.png","variables":{"variables":[],"personalization":{"name":"","account_name":""}},"created_at":"2025-04-04T12:33:42.000000Z","category":null,"categories":[]}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/templates?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/templates","per_page":10,"to":4}}'
- headers:
- CF-RAY:
- - 966d34802a46babc-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:11:22 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/templates_list_no_params.yaml b/tests/fixtures/cassettes/templates_list_no_params.yaml
deleted file mode 100644
index 427bc30..0000000
--- a/tests/fixtures/cassettes/templates_list_no_params.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/templates?page=1&limit=25
- response:
- body:
- string: '{"data":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_neqvygmmmkjg0p7w.png","variables":{"variables":[],"personalization":{"account_name":""}},"created_at":"2024-10-29T05:19:09.000000Z","category":null,"categories":[]},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_0r83ql3mwxmgzw1j.png","variables":{"variables":[],"personalization":{"account_name":""}},"created_at":"2025-03-27T11:49:37.000000Z","category":null,"categories":[]},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_z3m5jgrk1wxldpyo.png","variables":{"variables":[],"personalization":[]},"created_at":"2024-11-04T13:05:39.000000Z","category":null,"categories":[]},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_351ndgwkr8xgzqx8.png","variables":{"variables":[],"personalization":{"name":"","account_name":""}},"created_at":"2025-04-04T12:33:42.000000Z","category":null,"categories":[]}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/templates?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/templates","per_page":25,"to":4}}'
- headers:
- CF-RAY:
- - 966d357bfba996e0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:12:02 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/templates_list_with_domain_filter.yaml b/tests/fixtures/cassettes/templates_list_with_domain_filter.yaml
deleted file mode 100644
index b8ce219..0000000
--- a/tests/fixtures/cassettes/templates_list_with_domain_filter.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/templates?domain_id=65qngkdovk8lwr12&page=1&limit=10
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/templates?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/templates","per_page":10,"to":null}}'
- headers:
- CF-RAY:
- - 966d35810b7396e0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:12:03 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/templates_list_with_pagination.yaml b/tests/fixtures/cassettes/templates_list_with_pagination.yaml
deleted file mode 100644
index 4a22594..0000000
--- a/tests/fixtures/cassettes/templates_list_with_pagination.yaml
+++ /dev/null
@@ -1,49 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/templates?page=1&limit=10
- response:
- body:
- string: '{"data":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_neqvygmmmkjg0p7w.png","variables":{"variables":[],"personalization":{"account_name":""}},"created_at":"2024-10-29T05:19:09.000000Z","category":null,"categories":[]},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_0r83ql3mwxmgzw1j.png","variables":{"variables":[],"personalization":{"account_name":""}},"created_at":"2025-03-27T11:49:37.000000Z","category":null,"categories":[]},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_z3m5jgrk1wxldpyo.png","variables":{"variables":[],"personalization":[]},"created_at":"2024-11-04T13:05:39.000000Z","category":null,"categories":[]},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_351ndgwkr8xgzqx8.png","variables":{"variables":[],"personalization":{"name":"","account_name":""}},"created_at":"2025-04-04T12:33:42.000000Z","category":null,"categories":[]}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/templates?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/templates","per_page":10,"to":4}}'
- headers:
- CF-RAY:
- - 966d357e8add5165-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:12:03 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_api_response_structure.yaml b/tests/fixtures/cassettes/tokens_api_response_structure.yaml
deleted file mode 100644
index 26e9126..0000000
--- a/tests/fixtures/cassettes/tokens_api_response_structure.yaml
+++ /dev/null
@@ -1,59 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token?limit=10
- response:
- body:
- string: '{"data":[{"id":"b8d6dba0fe12b9bfdf402a7437dd5c80e3e9530534931edcf82a2d0d2423f931f544fc2845f84653","name":"SDK
- API Token","status":"unpause","created_at":"2025-06-27T08:18:52.000000Z","scopes":["email_full","tokens_full","webhooks_full","templates_full","inbounds_full","domains_full","activity_full","analytics_full","suppressions_full","sms_full","email_verification_full","recipients_full","sender_identity_full","smtp_users_full","users_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"977ac54690b9c84121d9871a3240b0c4aaa783dd8d61e2eb3a1c446e5d8c85d6b321520eb0c9cdd7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:21.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d2935faa05d1c78e71b49e2cddcc37da1d3c4acfa9e8eac8f7fbb92a3c40ba1f02fb36e096a5e674","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:22.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"7d08eef84314952f272fa5a4d3bcf08572f3baff809d5e2c288431433c2c40bd087f45107d351ca9","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:23.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"2fc12954461160db570aa14c05d8308a9eb134863d2edba6a0e1b4dca5a37719e445e9f54e5feca8","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:28.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"0ca92ac0af3cf0b350762ba4ac8cb890eedfd43bb90973acf26f2015ee9dec95f7a291d5dd0cb9e6","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:30.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"13f03ba70c21276276b6c34d02e69e1450beef71e28d272dc4d69456f83fbe4fa26561dd9d7e62f0","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:31.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"3f475e85bdf6a57b185945dda0b4129d4a19d495077c0788f8c1c2e7e5249158b62ec4a0a9a1e3e7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:47:23.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d4cd83261ff508f98869020e50a620563942e38e1ce7dcc268789ea79588d4f30938aefed9abd20c","name":"Monitoring
- BlackBox Exporter","status":"unpause","created_at":"2022-02-14T16:13:07.000000Z","scopes":["email_full","domains_full","activity_full","analytics_full","tokens_full","webhooks_full","templates_full","suppressions_full","sms_full","email_verification_full","recipients_full"],"domain":null}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","last":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/token","per_page":10,"to":9,"total":9}}'
- headers:
- CF-RAY:
- - 9684c1d4ead555ad-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:23 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_builder_create_basic.yaml b/tests/fixtures/cassettes/tokens_builder_create_basic.yaml
deleted file mode 100644
index 7fd5075..0000000
--- a/tests/fixtures/cassettes/tokens_builder_create_basic.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Test Token", "domain_id": "65qngkdovk8lwr12", "scopes": ["email_full"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '81'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/token
- response:
- body:
- string: '{"data":{"id":"76527c5c823a91eb565857e0efe46f46dd4a2b00ab48c661ca7fd55c2bdbafbab877fda7f4441860","accessToken":"***FILTERED***","name":"Test
- Token","created_at":"2025-08-01T10:47:24.000000Z","scopes":["email_full"],"has_full":false,"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"mx":true,"tracking":false,"is_verified":true,"is_dns_active":true,"is_trial_domain":false,"domain_settings":{"send_paused":false,"track_clicks":true,"track_opens":true,"track_opens_pixel_on_top":false,"track_unsubscribe":true,"track_unsubscribe_html":"Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":true,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"can":{"manage":true},"totals":[],"is_dkim_txt":false,"show_dkim_info":false,"is_being_verified":true},"preview":"***FILTERED***","expires_at":null}}'
- headers:
- CF-RAY:
- - 9684c1da4d44f969-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:24 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_builder_delete_not_found.yaml b/tests/fixtures/cassettes/tokens_builder_delete_not_found.yaml
deleted file mode 100644
index 2896ffc..0000000
--- a/tests/fixtures/cassettes/tokens_builder_delete_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/token/test-token-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c1dd69b70380-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:25 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_builder_get_not_found.yaml b/tests/fixtures/cassettes/tokens_builder_get_not_found.yaml
deleted file mode 100644
index 800117c..0000000
--- a/tests/fixtures/cassettes/tokens_builder_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token/test-token-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c1d958be8e88-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:24 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_builder_list_basic.yaml b/tests/fixtures/cassettes/tokens_builder_list_basic.yaml
deleted file mode 100644
index 62511ff..0000000
--- a/tests/fixtures/cassettes/tokens_builder_list_basic.yaml
+++ /dev/null
@@ -1,59 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token?limit=10
- response:
- body:
- string: '{"data":[{"id":"b8d6dba0fe12b9bfdf402a7437dd5c80e3e9530534931edcf82a2d0d2423f931f544fc2845f84653","name":"SDK
- API Token","status":"unpause","created_at":"2025-06-27T08:18:52.000000Z","scopes":["email_full","tokens_full","webhooks_full","templates_full","inbounds_full","domains_full","activity_full","analytics_full","suppressions_full","sms_full","email_verification_full","recipients_full","sender_identity_full","smtp_users_full","users_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"977ac54690b9c84121d9871a3240b0c4aaa783dd8d61e2eb3a1c446e5d8c85d6b321520eb0c9cdd7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:21.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d2935faa05d1c78e71b49e2cddcc37da1d3c4acfa9e8eac8f7fbb92a3c40ba1f02fb36e096a5e674","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:22.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"7d08eef84314952f272fa5a4d3bcf08572f3baff809d5e2c288431433c2c40bd087f45107d351ca9","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:23.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"2fc12954461160db570aa14c05d8308a9eb134863d2edba6a0e1b4dca5a37719e445e9f54e5feca8","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:28.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"0ca92ac0af3cf0b350762ba4ac8cb890eedfd43bb90973acf26f2015ee9dec95f7a291d5dd0cb9e6","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:30.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"13f03ba70c21276276b6c34d02e69e1450beef71e28d272dc4d69456f83fbe4fa26561dd9d7e62f0","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:31.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"3f475e85bdf6a57b185945dda0b4129d4a19d495077c0788f8c1c2e7e5249158b62ec4a0a9a1e3e7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:47:23.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d4cd83261ff508f98869020e50a620563942e38e1ce7dcc268789ea79588d4f30938aefed9abd20c","name":"Monitoring
- BlackBox Exporter","status":"unpause","created_at":"2022-02-14T16:13:07.000000Z","scopes":["email_full","domains_full","activity_full","analytics_full","tokens_full","webhooks_full","templates_full","suppressions_full","sms_full","email_verification_full","recipients_full"],"domain":null}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","last":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/token","per_page":10,"to":9,"total":9}}'
- headers:
- CF-RAY:
- - 9684c1d7480ea8bc-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:24 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_builder_list_with_custom_limit.yaml b/tests/fixtures/cassettes/tokens_builder_list_with_custom_limit.yaml
deleted file mode 100644
index 4af2ed7..0000000
--- a/tests/fixtures/cassettes/tokens_builder_list_with_custom_limit.yaml
+++ /dev/null
@@ -1,59 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token?limit=50
- response:
- body:
- string: '{"data":[{"id":"b8d6dba0fe12b9bfdf402a7437dd5c80e3e9530534931edcf82a2d0d2423f931f544fc2845f84653","name":"SDK
- API Token","status":"unpause","created_at":"2025-06-27T08:18:52.000000Z","scopes":["email_full","tokens_full","webhooks_full","templates_full","inbounds_full","domains_full","activity_full","analytics_full","suppressions_full","sms_full","email_verification_full","recipients_full","sender_identity_full","smtp_users_full","users_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"977ac54690b9c84121d9871a3240b0c4aaa783dd8d61e2eb3a1c446e5d8c85d6b321520eb0c9cdd7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:21.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d2935faa05d1c78e71b49e2cddcc37da1d3c4acfa9e8eac8f7fbb92a3c40ba1f02fb36e096a5e674","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:22.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"7d08eef84314952f272fa5a4d3bcf08572f3baff809d5e2c288431433c2c40bd087f45107d351ca9","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:23.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"2fc12954461160db570aa14c05d8308a9eb134863d2edba6a0e1b4dca5a37719e445e9f54e5feca8","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:28.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"0ca92ac0af3cf0b350762ba4ac8cb890eedfd43bb90973acf26f2015ee9dec95f7a291d5dd0cb9e6","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:30.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"13f03ba70c21276276b6c34d02e69e1450beef71e28d272dc4d69456f83fbe4fa26561dd9d7e62f0","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:31.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"3f475e85bdf6a57b185945dda0b4129d4a19d495077c0788f8c1c2e7e5249158b62ec4a0a9a1e3e7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:47:23.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d4cd83261ff508f98869020e50a620563942e38e1ce7dcc268789ea79588d4f30938aefed9abd20c","name":"Monitoring
- BlackBox Exporter","status":"unpause","created_at":"2022-02-14T16:13:07.000000Z","scopes":["email_full","domains_full","activity_full","analytics_full","tokens_full","webhooks_full","templates_full","suppressions_full","sms_full","email_verification_full","recipients_full"],"domain":null}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/token?limit=50&page=1","last":"https:\/\/api.mailersend.com\/v1\/token?limit=50&page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/token?limit=50&page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/token","per_page":50,"to":9,"total":9}}'
- headers:
- CF-RAY:
- - 9684c1d84fabc239-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:24 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_builder_update_name_not_found.yaml b/tests/fixtures/cassettes/tokens_builder_update_name_not_found.yaml
deleted file mode 100644
index 46ab5b1..0000000
--- a/tests/fixtures/cassettes/tokens_builder_update_name_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Updated Name"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '24'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/token/test-token-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c1dcad4b076b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:25 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_builder_update_not_found.yaml b/tests/fixtures/cassettes/tokens_builder_update_not_found.yaml
deleted file mode 100644
index d34abc8..0000000
--- a/tests/fixtures/cassettes/tokens_builder_update_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"status": "pause"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '19'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/token/test-token-id/settings
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c1dbcfc4c687-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:24 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_comprehensive_workflow.yaml b/tests/fixtures/cassettes/tokens_comprehensive_workflow.yaml
deleted file mode 100644
index 60fa9d5..0000000
--- a/tests/fixtures/cassettes/tokens_comprehensive_workflow.yaml
+++ /dev/null
@@ -1,253 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token?limit=10
- response:
- body:
- string: '{"data":[{"id":"b8d6dba0fe12b9bfdf402a7437dd5c80e3e9530534931edcf82a2d0d2423f931f544fc2845f84653","name":"SDK
- API Token","status":"unpause","created_at":"2025-06-27T08:18:52.000000Z","scopes":["email_full","tokens_full","webhooks_full","templates_full","inbounds_full","domains_full","activity_full","analytics_full","suppressions_full","sms_full","email_verification_full","recipients_full","sender_identity_full","smtp_users_full","users_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"977ac54690b9c84121d9871a3240b0c4aaa783dd8d61e2eb3a1c446e5d8c85d6b321520eb0c9cdd7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:21.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d2935faa05d1c78e71b49e2cddcc37da1d3c4acfa9e8eac8f7fbb92a3c40ba1f02fb36e096a5e674","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:22.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"7d08eef84314952f272fa5a4d3bcf08572f3baff809d5e2c288431433c2c40bd087f45107d351ca9","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:23.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"2fc12954461160db570aa14c05d8308a9eb134863d2edba6a0e1b4dca5a37719e445e9f54e5feca8","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:28.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"0ca92ac0af3cf0b350762ba4ac8cb890eedfd43bb90973acf26f2015ee9dec95f7a291d5dd0cb9e6","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:30.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"13f03ba70c21276276b6c34d02e69e1450beef71e28d272dc4d69456f83fbe4fa26561dd9d7e62f0","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:31.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"3f475e85bdf6a57b185945dda0b4129d4a19d495077c0788f8c1c2e7e5249158b62ec4a0a9a1e3e7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:47:23.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"76527c5c823a91eb565857e0efe46f46dd4a2b00ab48c661ca7fd55c2bdbafbab877fda7f4441860","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:47:24.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d4cd83261ff508f98869020e50a620563942e38e1ce7dcc268789ea79588d4f30938aefed9abd20c","name":"Monitoring
- BlackBox Exporter","status":"unpause","created_at":"2022-02-14T16:13:07.000000Z","scopes":["email_full","domains_full","activity_full","analytics_full","tokens_full","webhooks_full","templates_full","suppressions_full","sms_full","email_verification_full","recipients_full"],"domain":null}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","last":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/token","per_page":10,"to":10,"total":10}}'
- headers:
- CF-RAY:
- - 9684c1de58e7e293-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:25 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token
- response:
- body:
- string: '{"data":[{"id":"b8d6dba0fe12b9bfdf402a7437dd5c80e3e9530534931edcf82a2d0d2423f931f544fc2845f84653","name":"SDK
- API Token","status":"unpause","created_at":"2025-06-27T08:18:52.000000Z","scopes":["email_full","tokens_full","webhooks_full","templates_full","inbounds_full","domains_full","activity_full","analytics_full","suppressions_full","sms_full","email_verification_full","recipients_full","sender_identity_full","smtp_users_full","users_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"977ac54690b9c84121d9871a3240b0c4aaa783dd8d61e2eb3a1c446e5d8c85d6b321520eb0c9cdd7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:21.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d2935faa05d1c78e71b49e2cddcc37da1d3c4acfa9e8eac8f7fbb92a3c40ba1f02fb36e096a5e674","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:22.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"7d08eef84314952f272fa5a4d3bcf08572f3baff809d5e2c288431433c2c40bd087f45107d351ca9","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:23.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"2fc12954461160db570aa14c05d8308a9eb134863d2edba6a0e1b4dca5a37719e445e9f54e5feca8","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:28.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"0ca92ac0af3cf0b350762ba4ac8cb890eedfd43bb90973acf26f2015ee9dec95f7a291d5dd0cb9e6","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:30.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"13f03ba70c21276276b6c34d02e69e1450beef71e28d272dc4d69456f83fbe4fa26561dd9d7e62f0","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:31.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"3f475e85bdf6a57b185945dda0b4129d4a19d495077c0788f8c1c2e7e5249158b62ec4a0a9a1e3e7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:47:23.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"76527c5c823a91eb565857e0efe46f46dd4a2b00ab48c661ca7fd55c2bdbafbab877fda7f4441860","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:47:24.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d4cd83261ff508f98869020e50a620563942e38e1ce7dcc268789ea79588d4f30938aefed9abd20c","name":"Monitoring
- BlackBox Exporter","status":"unpause","created_at":"2022-02-14T16:13:07.000000Z","scopes":["email_full","domains_full","activity_full","analytics_full","tokens_full","webhooks_full","templates_full","suppressions_full","sms_full","email_verification_full","recipients_full"],"domain":null}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/token?page=1","last":"https:\/\/api.mailersend.com\/v1\/token?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/token?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/token","per_page":25,"to":10,"total":10}}'
- headers:
- CF-RAY:
- - 9684c1df6f06aeaa-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:25 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token/non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c1e12930a8bc-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:25 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-- request:
- body: '{"name": "Test Token", "domain_id": "65qngkdovk8lwr12", "scopes": ["email_full"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '81'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/token
- response:
- body:
- string: '{"data":{"id":"ad662d4e160d123d1b61d6d2c65831e16bbc78a32e0e8af120ecaff7c4d9102ae134e04df68dfc08","accessToken":"***FILTERED***","name":"Test
- Token","created_at":"2025-08-01T10:47:25.000000Z","scopes":["email_full"],"has_full":false,"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"mx":true,"tracking":false,"is_verified":true,"is_dns_active":true,"is_trial_domain":false,"domain_settings":{"send_paused":false,"track_clicks":true,"track_opens":true,"track_opens_pixel_on_top":false,"track_unsubscribe":true,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":true,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"can":{"manage":true},"totals":[],"is_dkim_txt":false,"show_dkim_info":false,"is_being_verified":true},"preview":"***FILTERED***","expires_at":null}}'
- headers:
- CF-RAY:
- - 9684c1e219619857-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:26 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token/another-non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c1e41988870d-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:26 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_create_basic.yaml b/tests/fixtures/cassettes/tokens_create_basic.yaml
deleted file mode 100644
index 89b3a0b..0000000
--- a/tests/fixtures/cassettes/tokens_create_basic.yaml
+++ /dev/null
@@ -1,54 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Test Token", "domain_id": "65qngkdovk8lwr12", "scopes": ["email_full",
- "domains_read"]}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '97'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/token
- response:
- body:
- string: '{"data":{"id":"3f475e85bdf6a57b185945dda0b4129d4a19d495077c0788f8c1c2e7e5249158b62ec4a0a9a1e3e7","accessToken":"***FILTERED***","name":"Test
- Token","created_at":"2025-08-01T10:47:23.000000Z","scopes":["email_full","domains_read"],"has_full":false,"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"mx":true,"tracking":false,"is_verified":true,"is_dns_active":true,"is_trial_domain":false,"domain_settings":{"send_paused":false,"track_clicks":true,"track_opens":true,"track_opens_pixel_on_top":false,"track_unsubscribe":true,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":true,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"can":{"manage":true},"totals":[],"is_dkim_txt":false,"show_dkim_info":false,"is_being_verified":true},"preview":"***FILTERED***","expires_at":null}}'
- headers:
- CF-RAY:
- - 9684c1cfdd8bb018-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:23 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_delete_not_found.yaml b/tests/fixtures/cassettes/tokens_delete_not_found.yaml
deleted file mode 100644
index d8ba273..0000000
--- a/tests/fixtures/cassettes/tokens_delete_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/token/test-token-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c1d3fea65165-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:23 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_empty_result.yaml b/tests/fixtures/cassettes/tokens_empty_result.yaml
deleted file mode 100644
index c4b34f0..0000000
--- a/tests/fixtures/cassettes/tokens_empty_result.yaml
+++ /dev/null
@@ -1,59 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token?limit=10
- response:
- body:
- string: '{"data":[{"id":"b8d6dba0fe12b9bfdf402a7437dd5c80e3e9530534931edcf82a2d0d2423f931f544fc2845f84653","name":"SDK
- API Token","status":"unpause","created_at":"2025-06-27T08:18:52.000000Z","scopes":["email_full","tokens_full","webhooks_full","templates_full","inbounds_full","domains_full","activity_full","analytics_full","suppressions_full","sms_full","email_verification_full","recipients_full","sender_identity_full","smtp_users_full","users_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"977ac54690b9c84121d9871a3240b0c4aaa783dd8d61e2eb3a1c446e5d8c85d6b321520eb0c9cdd7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:21.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d2935faa05d1c78e71b49e2cddcc37da1d3c4acfa9e8eac8f7fbb92a3c40ba1f02fb36e096a5e674","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:22.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"7d08eef84314952f272fa5a4d3bcf08572f3baff809d5e2c288431433c2c40bd087f45107d351ca9","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:23.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"2fc12954461160db570aa14c05d8308a9eb134863d2edba6a0e1b4dca5a37719e445e9f54e5feca8","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:28.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"0ca92ac0af3cf0b350762ba4ac8cb890eedfd43bb90973acf26f2015ee9dec95f7a291d5dd0cb9e6","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:30.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"13f03ba70c21276276b6c34d02e69e1450beef71e28d272dc4d69456f83fbe4fa26561dd9d7e62f0","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:31.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"3f475e85bdf6a57b185945dda0b4129d4a19d495077c0788f8c1c2e7e5249158b62ec4a0a9a1e3e7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:47:23.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d4cd83261ff508f98869020e50a620563942e38e1ce7dcc268789ea79588d4f30938aefed9abd20c","name":"Monitoring
- BlackBox Exporter","status":"unpause","created_at":"2022-02-14T16:13:07.000000Z","scopes":["email_full","domains_full","activity_full","analytics_full","tokens_full","webhooks_full","templates_full","suppressions_full","sms_full","email_verification_full","recipients_full"],"domain":null}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","last":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/token","per_page":10,"to":9,"total":9}}'
- headers:
- CF-RAY:
- - 9684c1d6095fc687-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:24 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_get_not_found.yaml b/tests/fixtures/cassettes/tokens_get_not_found.yaml
deleted file mode 100644
index e77630f..0000000
--- a/tests/fixtures/cassettes/tokens_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token/test-token-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c1cf1c92076b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:22 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_list_basic.yaml b/tests/fixtures/cassettes/tokens_list_basic.yaml
deleted file mode 100644
index c41142d..0000000
--- a/tests/fixtures/cassettes/tokens_list_basic.yaml
+++ /dev/null
@@ -1,58 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token?limit=10
- response:
- body:
- string: '{"data":[{"id":"b8d6dba0fe12b9bfdf402a7437dd5c80e3e9530534931edcf82a2d0d2423f931f544fc2845f84653","name":"SDK
- API Token","status":"unpause","created_at":"2025-06-27T08:18:52.000000Z","scopes":["email_full","tokens_full","webhooks_full","templates_full","inbounds_full","domains_full","activity_full","analytics_full","suppressions_full","sms_full","email_verification_full","recipients_full","sender_identity_full","smtp_users_full","users_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"977ac54690b9c84121d9871a3240b0c4aaa783dd8d61e2eb3a1c446e5d8c85d6b321520eb0c9cdd7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:21.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d2935faa05d1c78e71b49e2cddcc37da1d3c4acfa9e8eac8f7fbb92a3c40ba1f02fb36e096a5e674","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:22.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"7d08eef84314952f272fa5a4d3bcf08572f3baff809d5e2c288431433c2c40bd087f45107d351ca9","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:23.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"2fc12954461160db570aa14c05d8308a9eb134863d2edba6a0e1b4dca5a37719e445e9f54e5feca8","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:28.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"0ca92ac0af3cf0b350762ba4ac8cb890eedfd43bb90973acf26f2015ee9dec95f7a291d5dd0cb9e6","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:30.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"13f03ba70c21276276b6c34d02e69e1450beef71e28d272dc4d69456f83fbe4fa26561dd9d7e62f0","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:31.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d4cd83261ff508f98869020e50a620563942e38e1ce7dcc268789ea79588d4f30938aefed9abd20c","name":"Monitoring
- BlackBox Exporter","status":"unpause","created_at":"2022-02-14T16:13:07.000000Z","scopes":["email_full","domains_full","activity_full","analytics_full","tokens_full","webhooks_full","templates_full","suppressions_full","sms_full","email_verification_full","recipients_full"],"domain":null}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","last":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/token","per_page":10,"to":8,"total":8}}'
- headers:
- CF-RAY:
- - 9684c1cb1951e290-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:22 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_list_different_limit.yaml b/tests/fixtures/cassettes/tokens_list_different_limit.yaml
deleted file mode 100644
index 6895cad..0000000
--- a/tests/fixtures/cassettes/tokens_list_different_limit.yaml
+++ /dev/null
@@ -1,58 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token?limit=50
- response:
- body:
- string: '{"data":[{"id":"b8d6dba0fe12b9bfdf402a7437dd5c80e3e9530534931edcf82a2d0d2423f931f544fc2845f84653","name":"SDK
- API Token","status":"unpause","created_at":"2025-06-27T08:18:52.000000Z","scopes":["email_full","tokens_full","webhooks_full","templates_full","inbounds_full","domains_full","activity_full","analytics_full","suppressions_full","sms_full","email_verification_full","recipients_full","sender_identity_full","smtp_users_full","users_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"977ac54690b9c84121d9871a3240b0c4aaa783dd8d61e2eb3a1c446e5d8c85d6b321520eb0c9cdd7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:21.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d2935faa05d1c78e71b49e2cddcc37da1d3c4acfa9e8eac8f7fbb92a3c40ba1f02fb36e096a5e674","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:22.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"7d08eef84314952f272fa5a4d3bcf08572f3baff809d5e2c288431433c2c40bd087f45107d351ca9","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:23.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"2fc12954461160db570aa14c05d8308a9eb134863d2edba6a0e1b4dca5a37719e445e9f54e5feca8","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:28.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"0ca92ac0af3cf0b350762ba4ac8cb890eedfd43bb90973acf26f2015ee9dec95f7a291d5dd0cb9e6","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:30.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"13f03ba70c21276276b6c34d02e69e1450beef71e28d272dc4d69456f83fbe4fa26561dd9d7e62f0","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:31.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d4cd83261ff508f98869020e50a620563942e38e1ce7dcc268789ea79588d4f30938aefed9abd20c","name":"Monitoring
- BlackBox Exporter","status":"unpause","created_at":"2022-02-14T16:13:07.000000Z","scopes":["email_full","domains_full","activity_full","analytics_full","tokens_full","webhooks_full","templates_full","suppressions_full","sms_full","email_verification_full","recipients_full"],"domain":null}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/token?limit=50&page=1","last":"https:\/\/api.mailersend.com\/v1\/token?limit=50&page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/token?limit=50&page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/token","per_page":50,"to":8,"total":8}}'
- headers:
- CF-RAY:
- - 9684c1ce19a2562e-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:22 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_list_with_pagination.yaml b/tests/fixtures/cassettes/tokens_list_with_pagination.yaml
deleted file mode 100644
index 8ddd8d9..0000000
--- a/tests/fixtures/cassettes/tokens_list_with_pagination.yaml
+++ /dev/null
@@ -1,58 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/token?limit=10
- response:
- body:
- string: '{"data":[{"id":"b8d6dba0fe12b9bfdf402a7437dd5c80e3e9530534931edcf82a2d0d2423f931f544fc2845f84653","name":"SDK
- API Token","status":"unpause","created_at":"2025-06-27T08:18:52.000000Z","scopes":["email_full","tokens_full","webhooks_full","templates_full","inbounds_full","domains_full","activity_full","analytics_full","suppressions_full","sms_full","email_verification_full","recipients_full","sender_identity_full","smtp_users_full","users_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"977ac54690b9c84121d9871a3240b0c4aaa783dd8d61e2eb3a1c446e5d8c85d6b321520eb0c9cdd7","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:21.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d2935faa05d1c78e71b49e2cddcc37da1d3c4acfa9e8eac8f7fbb92a3c40ba1f02fb36e096a5e674","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:22.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"7d08eef84314952f272fa5a4d3bcf08572f3baff809d5e2c288431433c2c40bd087f45107d351ca9","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:23:23.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"2fc12954461160db570aa14c05d8308a9eb134863d2edba6a0e1b4dca5a37719e445e9f54e5feca8","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:28.000000Z","scopes":["email_full","domains_read"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"0ca92ac0af3cf0b350762ba4ac8cb890eedfd43bb90973acf26f2015ee9dec95f7a291d5dd0cb9e6","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:30.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"13f03ba70c21276276b6c34d02e69e1450beef71e28d272dc4d69456f83fbe4fa26561dd9d7e62f0","name":"Test
- Token","status":"unpause","created_at":"2025-08-01T10:41:31.000000Z","scopes":["email_full"],"domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-31T12:21:21.000000Z"}},{"id":"d4cd83261ff508f98869020e50a620563942e38e1ce7dcc268789ea79588d4f30938aefed9abd20c","name":"Monitoring
- BlackBox Exporter","status":"unpause","created_at":"2022-02-14T16:13:07.000000Z","scopes":["email_full","domains_full","activity_full","analytics_full","tokens_full","webhooks_full","templates_full","suppressions_full","sms_full","email_verification_full","recipients_full"],"domain":null}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","last":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/token?limit=10&page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/token","per_page":10,"to":8,"total":8}}'
- headers:
- CF-RAY:
- - 9684c1ccb94c5165-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:22 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-08-02T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_update_name_not_found.yaml b/tests/fixtures/cassettes/tokens_update_name_not_found.yaml
deleted file mode 100644
index a3534ef..0000000
--- a/tests/fixtures/cassettes/tokens_update_name_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Updated Token Name"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '30'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/token/test-token-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c1d329668e88-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:23 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/tokens_update_not_found.yaml b/tests/fixtures/cassettes/tokens_update_not_found.yaml
deleted file mode 100644
index a547a7f..0000000
--- a/tests/fixtures/cassettes/tokens_update_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"status": "pause"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '19'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/token/test-token-id/settings
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 9684c1d1cffde296-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Fri, 01 Aug 2025 10:47:23 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/users_api_response_structure.yaml b/tests/fixtures/cassettes/users_api_response_structure.yaml
deleted file mode 100644
index 9a4004b..0000000
--- a/tests/fixtures/cassettes/users_api_response_structure.yaml
+++ /dev/null
@@ -1,57 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/users?limit=10
- response:
- body:
- string: '{"data":[{"id":"6vywj2lpnmg7oqzd","avatar":"https:\/\/www.gravatar.com\/avatar\/c73820b36111c4206a6d6e171863578e?d=","email":"nikola@mailerlite.com","last_name":"Milojevi\u0107","name":"Nikola","2fa":true,"created_at":"2020-10-01T15:33:09.000000Z","updated_at":"2025-06-18T12:23:36.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"oynrw7gymjg2k8e3","avatar":"https:\/\/storage.googleapis.com\/sso-avatars-prod\/avatars\/caFrrQXipgbxkdd6zZF8vijiVwQ4Pphq0Irchjql.jpg","email":"robert@mailerlite.com","last_name":"Gordon","name":"Robert","2fa":true,"created_at":"2020-09-30T12:04:49.000000Z","updated_at":"2025-07-23T07:09:26.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"3vz9dlem7514kj50","avatar":null,"email":"sre@remotecompany.com","last_name":"SRE","name":"Monitoring","2fa":false,"created_at":"2022-02-04T13:11:35.000000Z","updated_at":"2023-10-03T07:23:01.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"z86org8rek4ew137","avatar":"https:\/\/www.gravatar.com\/avatar\/d1a4d0a3e07ec27d64aed5c2534045e9?d=https:\/\/dashboard.mailerlite.com\/images\/user-default.png","email":"dino@mailerlite.com","last_name":"User","name":"Dino","2fa":false,"created_at":"2021-04-13T08:22:51.000000Z","updated_at":"2025-06-23T11:36:10.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"pxkjn41z5n9lz781","avatar":"https:\/\/storage.googleapis.com\/mailerlite-avatars-prod\/avatar\/avatars\/7Da4L5Z8xnZtQOYupNYN7J0nqbzR5llX66te7W5O.jpg","email":"igor@mailerlite.com","last_name":"Hrcek","name":"Igor","2fa":false,"created_at":"2022-06-15T11:29:45.000000Z","updated_at":"2024-12-19T15:51:25.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"3vz9dleyw374kj50","avatar":"https:\/\/www.gravatar.com\/avatar\/c44d3a63d59a4e4aaf084e2355bfa13f?d=https%3A%2F%2Fassets.mlcdn.com%2Fms%2Fimages%2Favatar.png","email":"yusuf@mailerlite.com","last_name":"Celebi","name":"Yusuf
- Cemal Celebi","2fa":false,"created_at":"2024-08-09T12:38:07.000000Z","updated_at":"2025-02-13T10:29:38.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"x2p0347mv7k4zdrn","avatar":"http:\/\/www.gravatar.com\/avatar\/525f9bc42472046db81568740061e61a?d=https%3A%2F%2Fassets.mlcdn.com%2Fms%2Fimages%2Favatar.png","email":"marta.parra@mailerlite.com","last_name":"MailerLite","name":"Marta","2fa":false,"created_at":"2023-12-19T11:09:07.000000Z","updated_at":"2025-06-19T13:13:28.000000Z","role":"Admin","permissions":["read-activity","read-email","read-suppressions","manage-suppressions","read-recipient"],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"jpzkmgqmxmvl059v","avatar":null,"email":"roc@mailerlite.com","last_name":"Ribera","name":"Roc","2fa":false,"created_at":"2024-08-19T09:59:53.000000Z","updated_at":"2025-05-14T10:57:53.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]}]}'
- headers:
- CF-RAY:
- - 966d3dd0da9055ad-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:17:44 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/users_delete.yaml b/tests/fixtures/cassettes/users_delete.yaml
deleted file mode 100644
index 0cba603..0000000
--- a/tests/fixtures/cassettes/users_delete.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/users/test-user-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d3dcb99ade298-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:17:43 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/users_empty_result.yaml b/tests/fixtures/cassettes/users_empty_result.yaml
deleted file mode 100644
index 706ce90..0000000
--- a/tests/fixtures/cassettes/users_empty_result.yaml
+++ /dev/null
@@ -1,57 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/users?limit=10
- response:
- body:
- string: '{"data":[{"id":"6vywj2lpnmg7oqzd","avatar":"https:\/\/www.gravatar.com\/avatar\/c73820b36111c4206a6d6e171863578e?d=","email":"nikola@mailerlite.com","last_name":"Milojevi\u0107","name":"Nikola","2fa":true,"created_at":"2020-10-01T15:33:09.000000Z","updated_at":"2025-06-18T12:23:36.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"oynrw7gymjg2k8e3","avatar":"https:\/\/storage.googleapis.com\/sso-avatars-prod\/avatars\/caFrrQXipgbxkdd6zZF8vijiVwQ4Pphq0Irchjql.jpg","email":"robert@mailerlite.com","last_name":"Gordon","name":"Robert","2fa":true,"created_at":"2020-09-30T12:04:49.000000Z","updated_at":"2025-07-23T07:09:26.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"3vz9dlem7514kj50","avatar":null,"email":"sre@remotecompany.com","last_name":"SRE","name":"Monitoring","2fa":false,"created_at":"2022-02-04T13:11:35.000000Z","updated_at":"2023-10-03T07:23:01.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"z86org8rek4ew137","avatar":"https:\/\/www.gravatar.com\/avatar\/d1a4d0a3e07ec27d64aed5c2534045e9?d=https:\/\/dashboard.mailerlite.com\/images\/user-default.png","email":"dino@mailerlite.com","last_name":"User","name":"Dino","2fa":false,"created_at":"2021-04-13T08:22:51.000000Z","updated_at":"2025-06-23T11:36:10.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"pxkjn41z5n9lz781","avatar":"https:\/\/storage.googleapis.com\/mailerlite-avatars-prod\/avatar\/avatars\/7Da4L5Z8xnZtQOYupNYN7J0nqbzR5llX66te7W5O.jpg","email":"igor@mailerlite.com","last_name":"Hrcek","name":"Igor","2fa":false,"created_at":"2022-06-15T11:29:45.000000Z","updated_at":"2024-12-19T15:51:25.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"3vz9dleyw374kj50","avatar":"https:\/\/www.gravatar.com\/avatar\/c44d3a63d59a4e4aaf084e2355bfa13f?d=https%3A%2F%2Fassets.mlcdn.com%2Fms%2Fimages%2Favatar.png","email":"yusuf@mailerlite.com","last_name":"Celebi","name":"Yusuf
- Cemal Celebi","2fa":false,"created_at":"2024-08-09T12:38:07.000000Z","updated_at":"2025-02-13T10:29:38.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"x2p0347mv7k4zdrn","avatar":"http:\/\/www.gravatar.com\/avatar\/525f9bc42472046db81568740061e61a?d=https%3A%2F%2Fassets.mlcdn.com%2Fms%2Fimages%2Favatar.png","email":"marta.parra@mailerlite.com","last_name":"MailerLite","name":"Marta","2fa":false,"created_at":"2023-12-19T11:09:07.000000Z","updated_at":"2025-06-19T13:13:28.000000Z","role":"Admin","permissions":["read-activity","read-email","read-suppressions","manage-suppressions","read-recipient"],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"jpzkmgqmxmvl059v","avatar":null,"email":"roc@mailerlite.com","last_name":"Ribera","name":"Roc","2fa":false,"created_at":"2024-08-19T09:59:53.000000Z","updated_at":"2025-05-14T10:57:53.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]}]}'
- headers:
- CF-RAY:
- - 966d3dd268cbf969-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:17:44 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/users_get_single.yaml b/tests/fixtures/cassettes/users_get_single.yaml
deleted file mode 100644
index f1865ef..0000000
--- a/tests/fixtures/cassettes/users_get_single.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/users/test-user-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d3dc78d3e71a6-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:17:42 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/users_invite.yaml b/tests/fixtures/cassettes/users_invite.yaml
deleted file mode 100644
index a7b8a41..0000000
--- a/tests/fixtures/cassettes/users_invite.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-interactions:
-- request:
- body: '{"email": "test-user@example.com", "role": "member", "permissions": ["email_send"],
- "templates": [], "domains": [], "requires_periodic_password_change": false}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '159'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/users
- response:
- body:
- string: '{"message":"The selected role is invalid. (and 2 more errors)","errors":{"role":["The
- selected role is invalid."],"templates":["Templates require a read own templates
- permission. #MS42224"],"permissions.0":["The selected permissions.0 is invalid."]}}'
- headers:
- CF-RAY:
- - 966d3dc919930a8e-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:17:42 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/users_list_basic.yaml b/tests/fixtures/cassettes/users_list_basic.yaml
deleted file mode 100644
index 78ada38..0000000
--- a/tests/fixtures/cassettes/users_list_basic.yaml
+++ /dev/null
@@ -1,57 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/users?limit=10
- response:
- body:
- string: '{"data":[{"id":"6vywj2lpnmg7oqzd","avatar":"https:\/\/www.gravatar.com\/avatar\/c73820b36111c4206a6d6e171863578e?d=","email":"nikola@mailerlite.com","last_name":"Milojevi\u0107","name":"Nikola","2fa":true,"created_at":"2020-10-01T15:33:09.000000Z","updated_at":"2025-06-18T12:23:36.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"oynrw7gymjg2k8e3","avatar":"https:\/\/storage.googleapis.com\/sso-avatars-prod\/avatars\/caFrrQXipgbxkdd6zZF8vijiVwQ4Pphq0Irchjql.jpg","email":"robert@mailerlite.com","last_name":"Gordon","name":"Robert","2fa":true,"created_at":"2020-09-30T12:04:49.000000Z","updated_at":"2025-07-23T07:09:26.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"3vz9dlem7514kj50","avatar":null,"email":"sre@remotecompany.com","last_name":"SRE","name":"Monitoring","2fa":false,"created_at":"2022-02-04T13:11:35.000000Z","updated_at":"2023-10-03T07:23:01.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"z86org8rek4ew137","avatar":"https:\/\/www.gravatar.com\/avatar\/d1a4d0a3e07ec27d64aed5c2534045e9?d=https:\/\/dashboard.mailerlite.com\/images\/user-default.png","email":"dino@mailerlite.com","last_name":"User","name":"Dino","2fa":false,"created_at":"2021-04-13T08:22:51.000000Z","updated_at":"2025-06-23T11:36:10.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"pxkjn41z5n9lz781","avatar":"https:\/\/storage.googleapis.com\/mailerlite-avatars-prod\/avatar\/avatars\/7Da4L5Z8xnZtQOYupNYN7J0nqbzR5llX66te7W5O.jpg","email":"igor@mailerlite.com","last_name":"Hrcek","name":"Igor","2fa":false,"created_at":"2022-06-15T11:29:45.000000Z","updated_at":"2024-12-19T15:51:25.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"3vz9dleyw374kj50","avatar":"https:\/\/www.gravatar.com\/avatar\/c44d3a63d59a4e4aaf084e2355bfa13f?d=https%3A%2F%2Fassets.mlcdn.com%2Fms%2Fimages%2Favatar.png","email":"yusuf@mailerlite.com","last_name":"Celebi","name":"Yusuf
- Cemal Celebi","2fa":false,"created_at":"2024-08-09T12:38:07.000000Z","updated_at":"2025-02-13T10:29:38.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"x2p0347mv7k4zdrn","avatar":"http:\/\/www.gravatar.com\/avatar\/525f9bc42472046db81568740061e61a?d=https%3A%2F%2Fassets.mlcdn.com%2Fms%2Fimages%2Favatar.png","email":"marta.parra@mailerlite.com","last_name":"MailerLite","name":"Marta","2fa":false,"created_at":"2023-12-19T11:09:07.000000Z","updated_at":"2025-06-19T13:13:28.000000Z","role":"Admin","permissions":["read-activity","read-email","read-suppressions","manage-suppressions","read-recipient"],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"jpzkmgqmxmvl059v","avatar":null,"email":"roc@mailerlite.com","last_name":"Ribera","name":"Roc","2fa":false,"created_at":"2024-08-19T09:59:53.000000Z","updated_at":"2025-05-14T10:57:53.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]}]}'
- headers:
- CF-RAY:
- - 966d3ce4bb69dfc0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:17:06 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/users_list_with_pagination.yaml b/tests/fixtures/cassettes/users_list_with_pagination.yaml
deleted file mode 100644
index bf26f94..0000000
--- a/tests/fixtures/cassettes/users_list_with_pagination.yaml
+++ /dev/null
@@ -1,57 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/users?limit=10
- response:
- body:
- string: '{"data":[{"id":"6vywj2lpnmg7oqzd","avatar":"https:\/\/www.gravatar.com\/avatar\/c73820b36111c4206a6d6e171863578e?d=","email":"nikola@mailerlite.com","last_name":"Milojevi\u0107","name":"Nikola","2fa":true,"created_at":"2020-10-01T15:33:09.000000Z","updated_at":"2025-06-18T12:23:36.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"oynrw7gymjg2k8e3","avatar":"https:\/\/storage.googleapis.com\/sso-avatars-prod\/avatars\/caFrrQXipgbxkdd6zZF8vijiVwQ4Pphq0Irchjql.jpg","email":"robert@mailerlite.com","last_name":"Gordon","name":"Robert","2fa":true,"created_at":"2020-09-30T12:04:49.000000Z","updated_at":"2025-07-23T07:09:26.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"3vz9dlem7514kj50","avatar":null,"email":"sre@remotecompany.com","last_name":"SRE","name":"Monitoring","2fa":false,"created_at":"2022-02-04T13:11:35.000000Z","updated_at":"2023-10-03T07:23:01.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"z86org8rek4ew137","avatar":"https:\/\/www.gravatar.com\/avatar\/d1a4d0a3e07ec27d64aed5c2534045e9?d=https:\/\/dashboard.mailerlite.com\/images\/user-default.png","email":"dino@mailerlite.com","last_name":"User","name":"Dino","2fa":false,"created_at":"2021-04-13T08:22:51.000000Z","updated_at":"2025-06-23T11:36:10.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"pxkjn41z5n9lz781","avatar":"https:\/\/storage.googleapis.com\/mailerlite-avatars-prod\/avatar\/avatars\/7Da4L5Z8xnZtQOYupNYN7J0nqbzR5llX66te7W5O.jpg","email":"igor@mailerlite.com","last_name":"Hrcek","name":"Igor","2fa":false,"created_at":"2022-06-15T11:29:45.000000Z","updated_at":"2024-12-19T15:51:25.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"3vz9dleyw374kj50","avatar":"https:\/\/www.gravatar.com\/avatar\/c44d3a63d59a4e4aaf084e2355bfa13f?d=https%3A%2F%2Fassets.mlcdn.com%2Fms%2Fimages%2Favatar.png","email":"yusuf@mailerlite.com","last_name":"Celebi","name":"Yusuf
- Cemal Celebi","2fa":false,"created_at":"2024-08-09T12:38:07.000000Z","updated_at":"2025-02-13T10:29:38.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"x2p0347mv7k4zdrn","avatar":"http:\/\/www.gravatar.com\/avatar\/525f9bc42472046db81568740061e61a?d=https%3A%2F%2Fassets.mlcdn.com%2Fms%2Fimages%2Favatar.png","email":"marta.parra@mailerlite.com","last_name":"MailerLite","name":"Marta","2fa":false,"created_at":"2023-12-19T11:09:07.000000Z","updated_at":"2025-06-19T13:13:28.000000Z","role":"Admin","permissions":["read-activity","read-email","read-suppressions","manage-suppressions","read-recipient"],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]},{"id":"jpzkmgqmxmvl059v","avatar":null,"email":"roc@mailerlite.com","last_name":"Ribera","name":"Roc","2fa":false,"created_at":"2024-08-19T09:59:53.000000Z","updated_at":"2025-05-14T10:57:53.000000Z","role":"Admin","permissions":[],"domains":[{"id":"xkjn41mjxp94z781","name":"bob.fail","created_at":"2025-04-01T12:54:11.000000Z","updated_at":"2025-07-29T12:20:45.000000Z"},{"id":"65qngkdovk8lwr12","name":"igor.fail","created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z"}],"templates":[{"id":"neqvygmmmkjg0p7w","name":"Template","description":null,"type":"dd","created_at":"2024-10-29T05:19:09.000000Z"},{"id":"0r83ql3mwxmgzw1j","name":"Template","description":null,"type":"rt","created_at":"2025-03-27T11:49:37.000000Z"},{"id":"z3m5jgrk1wxldpyo","name":"Template","description":null,"type":"gh","created_at":"2024-11-04T13:05:39.000000Z"},{"id":"351ndgwkr8xgzqx8","name":"SDK
- Test Template","description":"DO NOT REMOVE!","type":"rt","created_at":"2025-04-04T12:33:42.000000Z"}]}]}'
- headers:
- CF-RAY:
- - 966d3dc5ff30e294-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:17:42 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/users_update.yaml b/tests/fixtures/cassettes/users_update.yaml
deleted file mode 100644
index e5f12f7..0000000
--- a/tests/fixtures/cassettes/users_update.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-interactions:
-- request:
- body: '{"role": "member", "permissions": ["email_send"], "templates": [], "domains":
- []}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '81'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/users/test-user-id
- response:
- body:
- string: '{"message":"The selected role is invalid. (and 2 more errors)","errors":{"role":["The
- selected role is invalid."],"templates":["Templates require a read own templates
- permission. #MS42224"],"permissions.0":["The selected permissions.0 is invalid."]}}'
- headers:
- CF-RAY:
- - 966d3dca8c73bbed-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:17:42 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_api_response_structure.yaml b/tests/fixtures/cassettes/webhooks_api_response_structure.yaml
deleted file mode 100644
index c779c03..0000000
--- a/tests/fixtures/cassettes/webhooks_api_response_structure.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/webhooks?domain_id=65qngkdovk8lwr12
- response:
- body:
- string: '{"data":[{"id":"0r83ql3vxvgzw1jm","url":"https:\/\/example.com\/webhook","events":["activity.sent","activity.delivered"],"name":"Test
- Webhook","enabled":true,"editable":true,"secret":"cRP4dECSXJxo6HmuSVNXCIx1O2eiLgin","created_at":"2025-07-29T14:20:32.000000Z","updated_at":"2025-07-29T14:20:32.000000Z","domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"has_not_queued_messages":true,"not_queued_messages_count":0,"domain_settings":{"send_paused":true,"track_clicks":false,"track_opens":false,"track_opens_pixel_on_top":false,"track_unsubscribe":false,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":false,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z","totals":[]}}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","last":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/webhooks","per_page":25,"to":1,"total":1}}'
- headers:
- CF-RAY:
- - 966d41f71c6cf969-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:33 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_builder_create_basic.yaml b/tests/fixtures/cassettes/webhooks_builder_create_basic.yaml
deleted file mode 100644
index 4ea15a7..0000000
--- a/tests/fixtures/cassettes/webhooks_builder_create_basic.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-interactions:
-- request:
- body: '{"url": "https://example.com/webhook-builder", "name": "Test Webhook Builder",
- "events": ["activity.sent", "activity.delivered"], "domain_id": "65qngkdovk8lwr12",
- "enabled": true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '179'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/webhooks
- response:
- body:
- string: '{"data":{"id":"k68zxl26z3gj9057","url":"https:\/\/example.com\/webhook-builder","events":["activity.sent","activity.delivered"],"name":"Test
- Webhook Builder","enabled":true,"editable":null,"secret":"IBy7iI56gzKQTisuuGmwsAhDsKgSFFbL","created_at":"2025-07-29T14:26:54.000000Z","updated_at":"2025-07-29T14:26:54.000000Z","domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"has_not_queued_messages":true,"not_queued_messages_count":0,"domain_settings":{"send_paused":true,"track_clicks":false,"track_opens":false,"track_opens_pixel_on_top":false,"track_unsubscribe":false,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":false,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z","totals":[]}}}'
- headers:
- CF-RAY:
- - 966d4b3f4c543cc0-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:26:54 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 201
- message: Created
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_builder_delete_not_found.yaml b/tests/fixtures/cassettes/webhooks_builder_delete_not_found.yaml
deleted file mode 100644
index 7cdbde2..0000000
--- a/tests/fixtures/cassettes/webhooks_builder_delete_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/webhooks/test-webhook-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d41fd1c07f339-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:34 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_builder_get_not_found.yaml b/tests/fixtures/cassettes/webhooks_builder_get_not_found.yaml
deleted file mode 100644
index b0777ac..0000000
--- a/tests/fixtures/cassettes/webhooks_builder_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/webhooks/test-webhook-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d41fa8b17e295-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:34 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_builder_list_basic.yaml b/tests/fixtures/cassettes/webhooks_builder_list_basic.yaml
deleted file mode 100644
index a509949..0000000
--- a/tests/fixtures/cassettes/webhooks_builder_list_basic.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/webhooks?domain_id=65qngkdovk8lwr12
- response:
- body:
- string: '{"data":[{"id":"0r83ql3vxvgzw1jm","url":"https:\/\/example.com\/webhook","events":["activity.sent","activity.delivered"],"name":"Test
- Webhook","enabled":true,"editable":true,"secret":"cRP4dECSXJxo6HmuSVNXCIx1O2eiLgin","created_at":"2025-07-29T14:20:32.000000Z","updated_at":"2025-07-29T14:20:32.000000Z","domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"has_not_queued_messages":true,"not_queued_messages_count":0,"domain_settings":{"send_paused":true,"track_clicks":false,"track_opens":false,"track_opens_pixel_on_top":false,"track_unsubscribe":false,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":false,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z","totals":[]}}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","last":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/webhooks","per_page":25,"to":1,"total":1}}'
- headers:
- CF-RAY:
- - 966d41f9888ee296-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:34 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_builder_update_not_found.yaml b/tests/fixtures/cassettes/webhooks_builder_update_not_found.yaml
deleted file mode 100644
index 442e11e..0000000
--- a/tests/fixtures/cassettes/webhooks_builder_update_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Updated Name", "enabled": false}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '42'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/webhooks/test-webhook-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d41fc3acf0db0-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:34 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_comprehensive_workflow.yaml b/tests/fixtures/cassettes/webhooks_comprehensive_workflow.yaml
deleted file mode 100644
index 58c4c70..0000000
--- a/tests/fixtures/cassettes/webhooks_comprehensive_workflow.yaml
+++ /dev/null
@@ -1,284 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/webhooks?domain_id=65qngkdovk8lwr12
- response:
- body:
- string: '{"data":[{"id":"0r83ql3vxvgzw1jm","url":"https:\/\/example.com\/webhook","events":["activity.sent","activity.delivered"],"name":"Test
- Webhook","enabled":true,"editable":true,"secret":"cRP4dECSXJxo6HmuSVNXCIx1O2eiLgin","created_at":"2025-07-29T14:20:32.000000Z","updated_at":"2025-07-29T14:20:32.000000Z","domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"has_not_queued_messages":true,"not_queued_messages_count":0,"domain_settings":{"send_paused":true,"track_clicks":false,"track_opens":false,"track_opens_pixel_on_top":false,"track_unsubscribe":false,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":false,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z","totals":[]}}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","last":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/webhooks","per_page":25,"to":1,"total":1}}'
- headers:
- CF-RAY:
- - 966d41fddf87bbed-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:35 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/webhooks?domain_id=65qngkdovk8lwr12
- response:
- body:
- string: '{"data":[{"id":"0r83ql3vxvgzw1jm","url":"https:\/\/example.com\/webhook","events":["activity.sent","activity.delivered"],"name":"Test
- Webhook","enabled":true,"editable":true,"secret":"cRP4dECSXJxo6HmuSVNXCIx1O2eiLgin","created_at":"2025-07-29T14:20:32.000000Z","updated_at":"2025-07-29T14:20:32.000000Z","domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"has_not_queued_messages":true,"not_queued_messages_count":0,"domain_settings":{"send_paused":true,"track_clicks":false,"track_opens":false,"track_opens_pixel_on_top":false,"track_unsubscribe":false,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":false,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z","totals":[]}}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","last":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/webhooks","per_page":25,"to":1,"total":1}}'
- headers:
- CF-RAY:
- - 966d41feeb211b8b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:35 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/webhooks/non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d41ffddc6b01b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:35 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-- request:
- body: '{"url": "https://example.com/webhook", "name": "Test Webhook", "events":
- ["activity.sent"], "domain_id": "65qngkdovk8lwr12"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '124'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/webhooks
- response:
- body:
- string: "{\n \"message\": \"You cannot create a resource at the moment. Please
- wait a while before retrying.\"\n}"
- headers:
- CF-RAY:
- - 966d4200cacc076b-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:35 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 429
- message: Too Many Requests
-- request:
- body: '{"url": "https://example.com/webhook", "name": "Test Webhook", "events":
- ["activity.sent"], "domain_id": "65qngkdovk8lwr12"}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '124'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/webhooks
- response:
- body:
- string: '{"message":"The url has already been taken.","errors":{"url":["The
- url has already been taken."]}}'
- headers:
- CF-RAY:
- - 966d4201aa47bbed-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:35 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/webhooks/another-non-existent-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d42029ad4d814-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:35 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_create_basic.yaml b/tests/fixtures/cassettes/webhooks_create_basic.yaml
deleted file mode 100644
index 862085d..0000000
--- a/tests/fixtures/cassettes/webhooks_create_basic.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-interactions:
-- request:
- body: '{"url": "https://example.com/webhook", "name": "Test Webhook", "events":
- ["activity.sent", "activity.delivered"], "domain_id": "65qngkdovk8lwr12", "enabled":
- true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '163'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/webhooks
- response:
- body:
- string: '{"data":{"id":"0r83ql3vxvgzw1jm","url":"https:\/\/example.com\/webhook","events":["activity.sent","activity.delivered"],"name":"Test
- Webhook","enabled":true,"editable":null,"secret":"cRP4dECSXJxo6HmuSVNXCIx1O2eiLgin","created_at":"2025-07-29T14:20:32.000000Z","updated_at":"2025-07-29T14:20:32.000000Z","domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"has_not_queued_messages":true,"not_queued_messages_count":0,"domain_settings":{"send_paused":true,"track_clicks":false,"track_opens":false,"track_opens_pixel_on_top":false,"track_unsubscribe":false,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":false,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z","totals":[]}}}'
- headers:
- CF-RAY:
- - 966d41ed596be290-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:32 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 201
- message: Created
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_create_invalid_domain.yaml b/tests/fixtures/cassettes/webhooks_create_invalid_domain.yaml
deleted file mode 100644
index 14b0def..0000000
--- a/tests/fixtures/cassettes/webhooks_create_invalid_domain.yaml
+++ /dev/null
@@ -1,150 +0,0 @@
-interactions:
-- request:
- body: '{"url": "https://example.com/webhook", "name": "Test Webhook", "events":
- ["activity.sent", "activity.delivered"], "domain_id": "invalid-domain-id", "enabled":
- true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '164'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/webhooks
- response:
- body:
- string: "{\n \"message\": \"You cannot create a resource at the moment. Please
- wait a while before retrying.\"\n}"
- headers:
- CF-RAY:
- - 966d41ee89240380-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:32 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 429
- message: Too Many Requests
-- request:
- body: '{"url": "https://example.com/webhook", "name": "Test Webhook", "events":
- ["activity.sent", "activity.delivered"], "domain_id": "invalid-domain-id", "enabled":
- true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '164'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/webhooks
- response:
- body:
- string: "{\n \"message\": \"You cannot create a resource at the moment. Please
- wait a while before retrying.\"\n}"
- headers:
- CF-RAY:
- - 966d41ef8eadf969-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:32 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 429
- message: Too Many Requests
-- request:
- body: '{"url": "https://example.com/webhook", "name": "Test Webhook", "events":
- ["activity.sent", "activity.delivered"], "domain_id": "invalid-domain-id", "enabled":
- true}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '164'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: POST
- uri: https://api.mailersend.com/v1/webhooks
- response:
- body:
- string: '{"message":"The url has already been taken. (and 1 more error)","errors":{"url":["The
- url has already been taken."],"domain_id":["The domain id field is required.
- #MS42209"]}}'
- headers:
- CF-RAY:
- - 966d41f4396ee294-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:33 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_delete_not_found.yaml b/tests/fixtures/cassettes/webhooks_delete_not_found.yaml
deleted file mode 100644
index 9a0f7f4..0000000
--- a/tests/fixtures/cassettes/webhooks_delete_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: DELETE
- uri: https://api.mailersend.com/v1/webhooks/test-webhook-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d41f64f86c687-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:33 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_empty_result.yaml b/tests/fixtures/cassettes/webhooks_empty_result.yaml
deleted file mode 100644
index d7d79ad..0000000
--- a/tests/fixtures/cassettes/webhooks_empty_result.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/webhooks?domain_id=65qngkdovk8lwr12
- response:
- body:
- string: '{"data":[{"id":"0r83ql3vxvgzw1jm","url":"https:\/\/example.com\/webhook","events":["activity.sent","activity.delivered"],"name":"Test
- Webhook","enabled":true,"editable":true,"secret":"cRP4dECSXJxo6HmuSVNXCIx1O2eiLgin","created_at":"2025-07-29T14:20:32.000000Z","updated_at":"2025-07-29T14:20:32.000000Z","domain":{"id":"65qngkdovk8lwr12","name":"igor.fail","dkim":true,"spf":true,"tracking":false,"is_verified":true,"is_cname_verified":true,"is_dns_active":true,"is_cname_active":false,"is_tracking_allowed":false,"has_not_queued_messages":true,"not_queued_messages_count":0,"domain_settings":{"send_paused":true,"track_clicks":false,"track_opens":false,"track_opens_pixel_on_top":false,"track_unsubscribe":false,"track_unsubscribe_html":"
Custom
- unsubscribe {{unsubscribe}}<\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Custom
- unsubscribe {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":false,"custom_tracking_enabled":true,"custom_tracking_subdomain":"track","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false,"show_dmarc":false},"created_at":"2025-04-01T12:33:41.000000Z","updated_at":"2025-07-29T12:20:49.000000Z","totals":[]}}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","last":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/webhooks","per_page":25,"to":1,"total":1}}'
- headers:
- CF-RAY:
- - 966d41f89e2d870d-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:34 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_get_not_found.yaml b/tests/fixtures/cassettes/webhooks_get_not_found.yaml
deleted file mode 100644
index c945fac..0000000
--- a/tests/fixtures/cassettes/webhooks_get_not_found.yaml
+++ /dev/null
@@ -1,44 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/webhooks/test-webhook-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d41ec0cb38e88-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:32 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_list_basic.yaml b/tests/fixtures/cassettes/webhooks_list_basic.yaml
deleted file mode 100644
index e469b4d..0000000
--- a/tests/fixtures/cassettes/webhooks_list_basic.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/webhooks?domain_id=65qngkdovk8lwr12
- response:
- body:
- string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","last":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
- Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/webhooks?page=1","label":"1","active":true},{"url":null,"label":"Next
- »","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/webhooks","per_page":25,"to":null,"total":0}}'
- headers:
- CF-RAY:
- - 966d41e8fd6fe295-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:31 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_list_invalid_domain.yaml b/tests/fixtures/cassettes/webhooks_list_invalid_domain.yaml
deleted file mode 100644
index 19e629f..0000000
--- a/tests/fixtures/cassettes/webhooks_list_invalid_domain.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: GET
- uri: https://api.mailersend.com/v1/webhooks?domain_id=invalid-domain-id
- response:
- body:
- string: '{"message":"The domain id field is required. #MS42209","errors":{"domain_id":["The
- domain id field is required. #MS42209"]}}'
- headers:
- CF-RAY:
- - 966d4b3e0b65a638-VIE
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:26:53 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-apiquota-remaining:
- - '-1'
- x-apiquota-reset:
- - '2025-07-30T00:00:00Z'
- status:
- code: 422
- message: Unprocessable Entity
-version: 1
diff --git a/tests/fixtures/cassettes/webhooks_update_not_found.yaml b/tests/fixtures/cassettes/webhooks_update_not_found.yaml
deleted file mode 100644
index 2a5efc7..0000000
--- a/tests/fixtures/cassettes/webhooks_update_not_found.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '{"name": "Updated Webhook Name", "enabled": false}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '50'
- Content-Type:
- - application/json
- User-Agent:
- - mailersend-python/2.0.0 (Python/3.13.5; OS/Darwin 24.5.0; Impl/CPython)
- method: PUT
- uri: https://api.mailersend.com/v1/webhooks/test-webhook-id
- response:
- body:
- string: "{\n \"message\": \"Resource not found.\"\n}"
- headers:
- CF-RAY:
- - 966d41f52b339857-BEG
- Cache-Control:
- - no-cache, private
- Connection:
- - keep-alive
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json
- Date:
- - Tue, 29 Jul 2025 14:20:33 GMT
- Server:
- - cloudflare
- Transfer-Encoding:
- - chunked
- cf-cache-status:
- - DYNAMIC
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- status:
- code: 404
- message: Not Found
-version: 1
diff --git a/tests/integration/test_analytics.py b/tests/integration/test_analytics.py
index cb207f5..d2c8c80 100644
--- a/tests/integration/test_analytics.py
+++ b/tests/integration/test_analytics.py
@@ -12,7 +12,7 @@ def base_analytics_request():
# Use fixed recent timestamps within the 6-month analytics retention period
# Using June 1, 2025 as base date for consistency (within 6 months)
- base_date = datetime(2025, 6, 1, tzinfo=timezone.utc)
+ base_date = datetime(2026, 6, 1, tzinfo=timezone.utc)
end_date = int(base_date.timestamp())
start_date = int((base_date - timedelta(days=30)).timestamp())
return AnalyticsRequest(
@@ -268,7 +268,7 @@ def test_get_opens_by_reading_environment_with_recipients(self):
def test_date_builder_helpers(self):
"""Test Analytics builder date helper methods"""
# Test last 7 days using fixed date
- base_date = datetime(2025, 6, 1, tzinfo=timezone.utc)
+ base_date = datetime(2026, 6, 1, tzinfo=timezone.utc)
# Create request with 7 days range
end_date = int(base_date.timestamp())
@@ -295,19 +295,6 @@ def test_date_builder_helpers(self):
response = self.email_client.analytics.get_activity_by_date(request)
assert response.status_code == 200
- @vcr.use_cassette("tests/fixtures/cassettes/analytics_error_no_events.yaml")
- def test_activity_by_date_error_no_events(self):
- """Test that activity by date requires events"""
- from mailersend.exceptions import BadRequestError
-
- request = self.analytics_request_factory(
- self.base_analytics_request,
- event=None, # No events specified - should cause error
- )
-
- with pytest.raises(BadRequestError, match="The event must be an array"):
- self.email_client.analytics.get_activity_by_date(request)
-
@vcr.use_cassette("tests/fixtures/cassettes/analytics_comprehensive_test.yaml")
def test_comprehensive_analytics_workflow(self):
"""Test a comprehensive analytics workflow using all endpoints"""
diff --git a/tests/integration/test_inbound.py b/tests/integration/test_inbound.py
index 988fdc1..cb54747 100644
--- a/tests/integration/test_inbound.py
+++ b/tests/integration/test_inbound.py
@@ -109,12 +109,12 @@ def test_list_inbound_routes_basic(self, email_client, basic_inbound_list_reques
first_route = inbound_routes[0]
assert "id" in first_route
assert "name" in first_route
- assert "domain_id" in first_route
- assert "domain_enabled" in first_route
- assert "created_at" in first_route
- assert "catch_filter" in first_route
- assert "match_filter" in first_route
+ assert "address" in first_route
+ assert "domain" in first_route
+ assert "enabled" in first_route
+ assert "dns_checked_at" in first_route
assert "forwards" in first_route
+ assert "filters" in first_route
@vcr.use_cassette("inbound_list_with_pagination.yaml")
def test_list_inbound_routes_with_pagination(self, email_client):
diff --git a/tests/integration/test_recipients.py b/tests/integration/test_recipients.py
index 72ed25f..57fc553 100644
--- a/tests/integration/test_recipients.py
+++ b/tests/integration/test_recipients.py
@@ -144,7 +144,6 @@ def test_get_blocklist_basic(self, email_client, suppression_list_request):
if blocklist:
first_blocked = blocklist[0]
assert "id" in first_blocked
- assert "email" in first_blocked
assert "created_at" in first_blocked
@vcr.use_cassette("recipients_hard_bounces_basic.yaml")
@@ -211,7 +210,6 @@ def test_get_unsubscribes_basic(self, email_client, suppression_list_request):
if unsubscribes:
first_unsubscribe = unsubscribes[0]
assert "id" in first_unsubscribe
- assert "email" in first_unsubscribe
assert "created_at" in first_unsubscribe
@vcr.use_cassette("recipients_add_to_blocklist.yaml")
diff --git a/tests/integration/test_smtp_users.py b/tests/integration/test_smtp_users.py
index 933cc5b..929e249 100644
--- a/tests/integration/test_smtp_users.py
+++ b/tests/integration/test_smtp_users.py
@@ -67,7 +67,6 @@ def test_list_smtp_users_basic(self, email_client, basic_smtp_users_list_request
assert "id" in first_user
assert "name" in first_user
assert "enabled" in first_user
- assert "created_at" in first_user
@vcr.use_cassette("smtp_users_list_with_limit.yaml")
def test_list_smtp_users_with_limit(self, email_client, test_domain_id):
diff --git a/tests/integration/test_webhooks.py b/tests/integration/test_webhooks.py
index 6f0bdd0..e2dfbb4 100644
--- a/tests/integration/test_webhooks.py
+++ b/tests/integration/test_webhooks.py
@@ -38,7 +38,7 @@ def webhook_get_request():
def sample_webhook_data(test_domain_id):
"""Sample webhook data for testing"""
return {
- "url": "https://example.com/webhook",
+ "url": "https://i-like-distributed-systems-undermined-by.single-points-of-failure.com/",
"name": "Test Webhook",
"events": ["activity.sent", "activity.delivered"],
"domain_id": test_domain_id,
diff --git a/tests/unit/test_activity_resource.py b/tests/unit/test_activity_resource.py
index c1c2260..c682cc6 100644
--- a/tests/unit/test_activity_resource.py
+++ b/tests/unit/test_activity_resource.py
@@ -1,6 +1,9 @@
+"""Tests for Activity resource."""
+
+import inspect
+
+from unittest.mock import AsyncMock, MagicMock, Mock
import pytest
-from unittest.mock import Mock, patch
-from requests import Response
from mailersend.resources.activity import Activity
from mailersend.models.activity import (
@@ -9,159 +12,75 @@
SingleActivityRequest,
)
from mailersend.models.base import APIResponse
-from mailersend.exceptions import ValidationError
-
-
-class TestActivityResource:
- """Test the Activity resource class."""
-
- @pytest.fixture
- def activity_resource(self):
- """Create an Activity resource instance with a mocked client."""
- mock_client = Mock()
- return Activity(mock_client)
-
- @pytest.fixture
- def mock_response(self):
- """Create a mock HTTP response."""
- response = Mock(spec=Response)
- response.status_code = 200
- response.headers = {"Content-Type": "application/json"}
- response.json.return_value = {
- "data": {
- "id": "5ee0b166b251345e407c9207",
- "created_at": "2020-06-04 12:00:00",
- "updated_at": "2020-06-04 12:00:00",
- "type": "clicked",
- "email": {
- "id": "5ee0b166b251345e407c9201",
- "from": "colleen.wiza@example.net",
- "subject": "Magni aperiam sunt nam omnis.",
- "text": "Lorem ipsum dolor sit amet, consectetuer adipiscin",
- "html": "