for owner, author, student, and affiliate
GET /api/v1/email_receipts/preview.html
Parameters
| Name |
Description |
|
message_id
|
ID of message to preview
|
|
subject
|
subject of email
|
|
body
|
body of email
|
Request
Headers
Route
GET /api/v1/email_receipts/preview.html?message_id=4&subject=is+forbidden
Query Parameters
message_id: 4
subject: is forbidden
cURL
curl "http://localhost:3000/api/v1/email_receipts/preview.html?message_id=4&subject=is+forbidden" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: pso7Ra9MyiSLmXLaHQ3xpiapouLoMuQeTQ" \
-H "X-Api-Email: user-536@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
401 Unauthorized
Body
<!DOCTYPE html>
<html>
<head>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:32,height:32/https://teachable.com/images/favicons/favicon.ico' rel='icon' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:72,height:72/https://teachable.com/images/favicons/apple-touch-icon-180x180.png' rel='apple-touch-icon' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:144,height:144/https://teachable.com/images/favicons/apple-touch-icon-180x180.png' rel='apple-touch-icon' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:320,height:345/https://www.filepicker.io/api/file/vaUu9fNQa2qVhk0nw73U' rel='apple-touch-startup-image' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:640,height:690/https://www.filepicker.io/api/file/vaUu9fNQa2qVhk0nw73U' rel='apple-touch-startup-image' type='image/png'>
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta charset="UTF-8">
<script src='//fast.wistia.com/assets/external/E-v1.js'></script>
<script src='https://www.google.com/recaptcha/api.js' async defer></script>
<link href="/blog/rss" rel="alternate" title="RSS Feed" type="application/rss+xml" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
<meta http-content='IE=Edge' http-equiv='X-UA-Compatible'>
<meta content='width=device-width,initial-scale=1.0,user-scalable=no' name='viewport'>
<meta id="fedora-keys" data-commit-sha="20191031175808" data-env="test" data-sentry-public-dsn="null" data-stripe="pk_test_LWFbNUPbMWYSW2TcXwk4P3tN" data-track-all-ahoy="false" data-track-changes-ahoy="false" data-track-clicks-ahoy="false" data-track-sumbits-ahoy="false" data-filepicker="ADNupMnWyR7kCWRvm76Laz" data-taxamo="public_test_S2A_8ZzsVjcpUOa85J1-SgP-tL35KM8_GuAz37aQdlc" data-iris-url="https://eventable.zeachable.cloud" /><meta id="fedora-data" data-school-id="433" data-school-launched="true" data-preview="null" data-turn-off-fedora-branding="false" data-plan-supports-whitelabeling="false" data-powered-by-text="Powered by" data-asset-path="/assets/footer/teachable-logo-white-efd32576079839534d5b6e87bf4424e99b12624f854b2c500a4d3f0b6e2af46b.svg" data-school-preferences="{"ssl_forced":"false","bazaar_enabled":"false","paypal_enabled":"false","autoplay_lectures":"true","comments_threaded":"true","course_blocks_beta":"true","eu_vat_tax_enabled":"false","legacy_back_office":"false","themeable_disabled":"false","back_office_enabled":"false","comments_moderation":"false","eu_vat_tax_eligible":"true","charge_exclusive_tax":"true","autocomplete_lectures":"false","class_periods_enabled":"false","css_properties_enabled":"false","preenrollments_enabled":"false","new_text_editor_enabled":"false","require_terms_agreement":"true","ssl_forced_from_creation":"false","turn_off_fedora_branding":"false","allow_comment_attachments":"true","authors_can_email_students":"true","authors_can_manage_coupons":"false","teachable_payments_enabled":"true","authors_can_import_students":"false","authors_can_publish_courses":"false","internal_subscriptions_beta":"true","recaptcha_enabled_on_signup":"false","tax_form_collection_enabled":"false","display_vat_inclusive_prices":"true","single_page_checkout_enabled":"false","authors_can_set_course_prices":"false","affiliate_cookie_duration_days":"365","authors_can_issue_certificates":"false","store_student_cards_separately":"true","authors_can_manage_certificates":"false","authors_can_manage_course_pages":"false","disable_js_course_event_tracking":"false","exclusive_vat_on_custom_gateways":"true","prevent_payment_plan_cancellation":"true","automatically_add_disqus_attachments":"true","recalc_course_pct_on_lecture_publish":"false","turn_off_myteachable_sign_up_branding":"false"}" data-accessible-features="[]" data-course-data="{}" data-vat-country="null" data-hellosign-id="null" /><meta id="analytics-keys" name="analytics" />
<h1 class="page-error" style="padding: 30px;"><center>You can't do that!</center></h1>
</body>
</html>
Request
Headers
Route
GET /api/v1/email_receipts/preview.html?message_id=4&subject=is+forbidden
Query Parameters
message_id: 4
subject: is forbidden
cURL
curl "http://localhost:3000/api/v1/email_receipts/preview.html?message_id=4&subject=is+forbidden" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: pso7Ra9MyiSLmXLaHQ3xpiapouLoMuQeTQ" \
-H "X-Api-Email: user-536@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
401 Unauthorized
Body
<!DOCTYPE html>
<html>
<head>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:32,height:32/https://teachable.com/images/favicons/favicon.ico' rel='icon' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:72,height:72/https://teachable.com/images/favicons/apple-touch-icon-180x180.png' rel='apple-touch-icon' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:144,height:144/https://teachable.com/images/favicons/apple-touch-icon-180x180.png' rel='apple-touch-icon' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:320,height:345/https://www.filepicker.io/api/file/vaUu9fNQa2qVhk0nw73U' rel='apple-touch-startup-image' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:640,height:690/https://www.filepicker.io/api/file/vaUu9fNQa2qVhk0nw73U' rel='apple-touch-startup-image' type='image/png'>
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta charset="UTF-8">
<script src='//fast.wistia.com/assets/external/E-v1.js'></script>
<script src='https://www.google.com/recaptcha/api.js' async defer></script>
<link href="/blog/rss" rel="alternate" title="RSS Feed" type="application/rss+xml" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
<meta http-content='IE=Edge' http-equiv='X-UA-Compatible'>
<meta content='width=device-width,initial-scale=1.0,user-scalable=no' name='viewport'>
<meta id="fedora-keys" data-commit-sha="20191031175808" data-env="test" data-sentry-public-dsn="null" data-stripe="pk_test_LWFbNUPbMWYSW2TcXwk4P3tN" data-track-all-ahoy="false" data-track-changes-ahoy="false" data-track-clicks-ahoy="false" data-track-sumbits-ahoy="false" data-filepicker="ADNupMnWyR7kCWRvm76Laz" data-taxamo="public_test_S2A_8ZzsVjcpUOa85J1-SgP-tL35KM8_GuAz37aQdlc" data-iris-url="https://eventable.zeachable.cloud" /><meta id="fedora-data" data-school-id="433" data-school-launched="true" data-preview="null" data-turn-off-fedora-branding="false" data-plan-supports-whitelabeling="false" data-powered-by-text="Powered by" data-asset-path="/assets/footer/teachable-logo-white-efd32576079839534d5b6e87bf4424e99b12624f854b2c500a4d3f0b6e2af46b.svg" data-school-preferences="{"ssl_forced":"false","bazaar_enabled":"false","paypal_enabled":"false","autoplay_lectures":"true","comments_threaded":"true","course_blocks_beta":"true","eu_vat_tax_enabled":"false","legacy_back_office":"false","themeable_disabled":"false","back_office_enabled":"false","comments_moderation":"false","eu_vat_tax_eligible":"true","charge_exclusive_tax":"true","autocomplete_lectures":"false","class_periods_enabled":"false","css_properties_enabled":"false","preenrollments_enabled":"false","new_text_editor_enabled":"false","require_terms_agreement":"true","ssl_forced_from_creation":"false","turn_off_fedora_branding":"false","allow_comment_attachments":"true","authors_can_email_students":"true","authors_can_manage_coupons":"false","teachable_payments_enabled":"true","authors_can_import_students":"false","authors_can_publish_courses":"false","internal_subscriptions_beta":"true","recaptcha_enabled_on_signup":"false","tax_form_collection_enabled":"false","display_vat_inclusive_prices":"true","single_page_checkout_enabled":"false","authors_can_set_course_prices":"false","affiliate_cookie_duration_days":"365","authors_can_issue_certificates":"false","store_student_cards_separately":"true","authors_can_manage_certificates":"false","authors_can_manage_course_pages":"false","disable_js_course_event_tracking":"false","exclusive_vat_on_custom_gateways":"true","prevent_payment_plan_cancellation":"true","automatically_add_disqus_attachments":"true","recalc_course_pct_on_lecture_publish":"false","turn_off_myteachable_sign_up_branding":"false"}" data-accessible-features="[]" data-course-data="{}" data-vat-country="null" data-hellosign-id="null" /><meta id="analytics-keys" name="analytics" />
<h1 class="page-error" style="padding: 30px;"><center>You can't do that!</center></h1>
</body>
</html>
Request
Headers
Route
GET /api/v1/email_receipts/preview.html?message_id=4&subject=is+forbidden
Query Parameters
message_id: 4
subject: is forbidden
cURL
curl "http://localhost:3000/api/v1/email_receipts/preview.html?message_id=4&subject=is+forbidden" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: pso7Ra9MyiSLmXLaHQ3xpiapouLoMuQeTQ" \
-H "X-Api-Email: user-536@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
401 Unauthorized
Body
<!DOCTYPE html>
<html>
<head>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:32,height:32/https://teachable.com/images/favicons/favicon.ico' rel='icon' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:72,height:72/https://teachable.com/images/favicons/apple-touch-icon-180x180.png' rel='apple-touch-icon' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:144,height:144/https://teachable.com/images/favicons/apple-touch-icon-180x180.png' rel='apple-touch-icon' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:320,height:345/https://www.filepicker.io/api/file/vaUu9fNQa2qVhk0nw73U' rel='apple-touch-startup-image' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:640,height:690/https://www.filepicker.io/api/file/vaUu9fNQa2qVhk0nw73U' rel='apple-touch-startup-image' type='image/png'>
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta charset="UTF-8">
<script src='//fast.wistia.com/assets/external/E-v1.js'></script>
<script src='https://www.google.com/recaptcha/api.js' async defer></script>
<link href="/blog/rss" rel="alternate" title="RSS Feed" type="application/rss+xml" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
<meta http-content='IE=Edge' http-equiv='X-UA-Compatible'>
<meta content='width=device-width,initial-scale=1.0,user-scalable=no' name='viewport'>
<meta id="fedora-keys" data-commit-sha="20191031175808" data-env="test" data-sentry-public-dsn="null" data-stripe="pk_test_LWFbNUPbMWYSW2TcXwk4P3tN" data-track-all-ahoy="false" data-track-changes-ahoy="false" data-track-clicks-ahoy="false" data-track-sumbits-ahoy="false" data-filepicker="ADNupMnWyR7kCWRvm76Laz" data-taxamo="public_test_S2A_8ZzsVjcpUOa85J1-SgP-tL35KM8_GuAz37aQdlc" data-iris-url="https://eventable.zeachable.cloud" /><meta id="fedora-data" data-school-id="433" data-school-launched="true" data-preview="null" data-turn-off-fedora-branding="false" data-plan-supports-whitelabeling="false" data-powered-by-text="Powered by" data-asset-path="/assets/footer/teachable-logo-white-efd32576079839534d5b6e87bf4424e99b12624f854b2c500a4d3f0b6e2af46b.svg" data-school-preferences="{"ssl_forced":"false","bazaar_enabled":"false","paypal_enabled":"false","autoplay_lectures":"true","comments_threaded":"true","course_blocks_beta":"true","eu_vat_tax_enabled":"false","legacy_back_office":"false","themeable_disabled":"false","back_office_enabled":"false","comments_moderation":"false","eu_vat_tax_eligible":"true","charge_exclusive_tax":"true","autocomplete_lectures":"false","class_periods_enabled":"false","css_properties_enabled":"false","preenrollments_enabled":"false","new_text_editor_enabled":"false","require_terms_agreement":"true","ssl_forced_from_creation":"false","turn_off_fedora_branding":"false","allow_comment_attachments":"true","authors_can_email_students":"true","authors_can_manage_coupons":"false","teachable_payments_enabled":"true","authors_can_import_students":"false","authors_can_publish_courses":"false","internal_subscriptions_beta":"true","recaptcha_enabled_on_signup":"false","tax_form_collection_enabled":"false","display_vat_inclusive_prices":"true","single_page_checkout_enabled":"false","authors_can_set_course_prices":"false","affiliate_cookie_duration_days":"365","authors_can_issue_certificates":"false","store_student_cards_separately":"true","authors_can_manage_certificates":"false","authors_can_manage_course_pages":"false","disable_js_course_event_tracking":"false","exclusive_vat_on_custom_gateways":"true","prevent_payment_plan_cancellation":"true","automatically_add_disqus_attachments":"true","recalc_course_pct_on_lecture_publish":"false","turn_off_myteachable_sign_up_branding":"false"}" data-accessible-features="[]" data-course-data="{}" data-vat-country="null" data-hellosign-id="null" /><meta id="analytics-keys" name="analytics" />
<h1 class="page-error" style="padding: 30px;"><center>You can't do that!</center></h1>
</body>
</html>
Request
Headers
Route
GET /api/v1/email_receipts/preview.html?message_id=4&subject=is+forbidden
Query Parameters
message_id: 4
subject: is forbidden
cURL
curl "http://localhost:3000/api/v1/email_receipts/preview.html?message_id=4&subject=is+forbidden" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: pso7Ra9MyiSLmXLaHQ3xpiapouLoMuQeTQ" \
-H "X-Api-Email: user-536@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
401 Unauthorized
Body
<!DOCTYPE html>
<html>
<head>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:32,height:32/https://teachable.com/images/favicons/favicon.ico' rel='icon' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:72,height:72/https://teachable.com/images/favicons/apple-touch-icon-180x180.png' rel='apple-touch-icon' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:144,height:144/https://teachable.com/images/favicons/apple-touch-icon-180x180.png' rel='apple-touch-icon' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:320,height:345/https://www.filepicker.io/api/file/vaUu9fNQa2qVhk0nw73U' rel='apple-touch-startup-image' type='image/png'>
<link href='https://process.fs.teachablecdn.com/ADNupMnWyR7kCWRvm76Laz/resize=width:640,height:690/https://www.filepicker.io/api/file/vaUu9fNQa2qVhk0nw73U' rel='apple-touch-startup-image' type='image/png'>
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta charset="UTF-8">
<script src='//fast.wistia.com/assets/external/E-v1.js'></script>
<script src='https://www.google.com/recaptcha/api.js' async defer></script>
<link href="/blog/rss" rel="alternate" title="RSS Feed" type="application/rss+xml" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
<meta http-content='IE=Edge' http-equiv='X-UA-Compatible'>
<meta content='width=device-width,initial-scale=1.0,user-scalable=no' name='viewport'>
<meta id="fedora-keys" data-commit-sha="20191031175808" data-env="test" data-sentry-public-dsn="null" data-stripe="pk_test_LWFbNUPbMWYSW2TcXwk4P3tN" data-track-all-ahoy="false" data-track-changes-ahoy="false" data-track-clicks-ahoy="false" data-track-sumbits-ahoy="false" data-filepicker="ADNupMnWyR7kCWRvm76Laz" data-taxamo="public_test_S2A_8ZzsVjcpUOa85J1-SgP-tL35KM8_GuAz37aQdlc" data-iris-url="https://eventable.zeachable.cloud" /><meta id="fedora-data" data-school-id="433" data-school-launched="true" data-preview="null" data-turn-off-fedora-branding="false" data-plan-supports-whitelabeling="false" data-powered-by-text="Powered by" data-asset-path="/assets/footer/teachable-logo-white-efd32576079839534d5b6e87bf4424e99b12624f854b2c500a4d3f0b6e2af46b.svg" data-school-preferences="{"ssl_forced":"false","bazaar_enabled":"false","paypal_enabled":"false","autoplay_lectures":"true","comments_threaded":"true","course_blocks_beta":"true","eu_vat_tax_enabled":"false","legacy_back_office":"false","themeable_disabled":"false","back_office_enabled":"false","comments_moderation":"false","eu_vat_tax_eligible":"true","charge_exclusive_tax":"true","autocomplete_lectures":"false","class_periods_enabled":"false","css_properties_enabled":"false","preenrollments_enabled":"false","new_text_editor_enabled":"false","require_terms_agreement":"true","ssl_forced_from_creation":"false","turn_off_fedora_branding":"false","allow_comment_attachments":"true","authors_can_email_students":"true","authors_can_manage_coupons":"false","teachable_payments_enabled":"true","authors_can_import_students":"false","authors_can_publish_courses":"false","internal_subscriptions_beta":"true","recaptcha_enabled_on_signup":"false","tax_form_collection_enabled":"false","display_vat_inclusive_prices":"true","single_page_checkout_enabled":"false","authors_can_set_course_prices":"false","affiliate_cookie_duration_days":"365","authors_can_issue_certificates":"false","store_student_cards_separately":"true","authors_can_manage_certificates":"false","authors_can_manage_course_pages":"false","disable_js_course_event_tracking":"false","exclusive_vat_on_custom_gateways":"true","prevent_payment_plan_cancellation":"true","automatically_add_disqus_attachments":"true","recalc_course_pct_on_lecture_publish":"false","turn_off_myteachable_sign_up_branding":"false"}" data-accessible-features="[]" data-course-data="{}" data-vat-country="null" data-hellosign-id="null" /><meta id="analytics-keys" name="analytics" />
<h1 class="page-error" style="padding: 30px;"><center>You can't do that!</center></h1>
</body>
</html>