مستندات
مرجع API
مرجع تمام اندپوینتهای قابل مشاهده، گروهبندیشده بر اساس تگ. اندپوینتها از مشخصات زندهٔ OpenAPI رندر میشوند.
/customer/api/v1/auth/validateValidate Customer Api Key
Validate a customer credential and return its non-secret context.
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پاسخها
truev1{
"valid": true,
"api_version": "v1",
"company": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "string"
},
"credential": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"key_prefix": "string",
"source_type": "wordpress",
"scopes": [
"*"
],
"expires_at": "2024-01-01T00:00:00Z"
},
"client": {
"reported_source_type": "string",
"client_version": "string",
"installation_id": "string",
"user_agent": "string",
"seen_at": "2024-01-01T00:00:00Z",
"source_matches": true
}
}curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/auth/validate' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
{
"valid": true,
"api_version": "v1",
"company": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "string"
},
"credential": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"key_prefix": "string",
"source_type": "wordpress",
"scopes": [
"*"
],
"expires_at": "2024-01-01T00:00:00Z"
},
"client": {
"reported_source_type": "string",
"client_version": "string",
"installation_id": "string",
"user_agent": "string",
"seen_at": "2024-01-01T00:00:00Z",
"source_matches": true
}
}/customer/api/v1/subscribers/attributesList Attributes
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پاسخها
[
{
"name": "string",
"type": "number",
"options": [
"string"
],
"description": "string"
}
]curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/subscribers/attributes' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
[
{
"name": "string",
"type": "number",
"options": [
"string"
],
"description": "string"
}
]/customer/api/v1/subscribers/attributesCreate Attribute
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>بدنهٔ درخواست
application/jsonالزامیپاسخها
{
"name": "string",
"type": "number",
"options": [
"string"
],
"description": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request POST \
--url 'https://api.jupitermail.app/customer/api/v1/subscribers/attributes' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"name": "string",
"type": "number",
"options": [
"string"
],
"description": "string"
}'Successful Response
{
"name": "string",
"type": "number",
"options": [
"string"
],
"description": "string"
}/customer/api/v1/subscribers/attributes/bulk-updateBulk Update Subscriber Attributes
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>بدنهٔ درخواست
application/jsonالزامیSelection criteria for a bulk attribute update. All fields are optional; omitting every filter targets every subscriber of the company.
Attribute values to set on every matched subscriber
پاسخها
{
"key": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request POST \
--url 'https://api.jupitermail.app/customer/api/v1/subscribers/attributes/bulk-update' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"filters": {
"status": "active",
"created_from": "2024-01-01T00:00:00Z",
"updated_from": "2024-01-01T00:00:00Z",
"attributes": {
"key": "string"
}
},
"attributes": {
"key": "string"
}
}'Successful Response
{
"key": "string"
}/customer/api/v1/subscribers/attributes/{attribute_name}Update Attribute Metadata
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| attribute_nameالزامی | string |
بدنهٔ درخواست
application/jsonالزامیپاسخها
{
"name": "string",
"type": "number",
"options": [
"string"
],
"description": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request PUT \
--url 'https://api.jupitermail.app/customer/api/v1/subscribers/attributes/string' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"description": "string"
}'Successful Response
{
"name": "string",
"type": "number",
"options": [
"string"
],
"description": "string"
}/customer/api/v1/subscribers/attributes/{attribute_name}Delete Attribute
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| attribute_nameالزامی | string |
پاسخها
{
"key": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request DELETE \
--url 'https://api.jupitermail.app/customer/api/v1/subscribers/attributes/string' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
{
"key": "string"
}/customer/api/v1/subscribers/get-by-filtersGet Subscribers By Filters
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
کوئری
| نام | نوع | توضیحات |
|---|---|---|
| page_number | integer | پیشفرض: |
| page_size | integer | پیشفرض: |
بدنهٔ درخواست
application/jsonالزامیپاسخها
{
"total_count": 0,
"page_number": 0,
"page_size": 0,
"data": [
{
"email": "[email protected]",
"first_name": "string",
"last_name": "string",
"phone_number": "string",
"attributes": {
"key": "string"
},
"sms_phone_excluded_reason": "string",
"status": "active",
"mailing_list_ids": [
"00000000-0000-0000-0000-000000000000"
],
"_id": "string",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request POST \
--url 'https://api.jupitermail.app/customer/api/v1/subscribers/get-by-filters?page_number=1&page_size=10' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '[
{
"filters": [
{
"subscriber_filter_type": "exactly",
"field": "email",
"field_type": "number",
"value": null
}
]
}
]'Successful Response
{
"total_count": 0,
"page_number": 0,
"page_size": 0,
"data": [
{
"email": "[email protected]",
"first_name": "string",
"last_name": "string",
"phone_number": "string",
"attributes": {
"key": "string"
},
"sms_phone_excluded_reason": "string",
"status": "active",
"mailing_list_ids": [
"00000000-0000-0000-0000-000000000000"
],
"_id": "string",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
]
}/customer/api/v1/subscribers/List Subscribers
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
کوئری
| نام | نوع | توضیحات |
|---|---|---|
| page_number | integer | Page number پیشفرض: |
| page_size | integer | Items per page پیشفرض: |
| status | string | پیشفرض: |
پاسخها
{
"total_count": 0,
"page_number": 0,
"page_size": 0,
"data": [
{
"email": "[email protected]",
"first_name": "string",
"last_name": "string",
"phone_number": "string",
"attributes": {
"key": "string"
},
"sms_phone_excluded_reason": "string",
"status": "active",
"mailing_list_ids": [
"00000000-0000-0000-0000-000000000000"
],
"_id": "string",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/subscribers/?page_number=1&page_size=10&status=active' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
{
"total_count": 0,
"page_number": 0,
"page_size": 0,
"data": [
{
"email": "[email protected]",
"first_name": "string",
"last_name": "string",
"phone_number": "string",
"attributes": {
"key": "string"
},
"sms_phone_excluded_reason": "string",
"status": "active",
"mailing_list_ids": [
"00000000-0000-0000-0000-000000000000"
],
"_id": "string",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
]
}/customer/api/v1/subscribers/Create Subscriber
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>بدنهٔ درخواست
application/jsonالزامیactiveپاسخها
activeMongoDB ObjectId for the subscriber
{
"email": "[email protected]",
"first_name": "string",
"last_name": "string",
"phone_number": "string",
"attributes": {
"key": "string"
},
"sms_phone_excluded_reason": "string",
"status": "active",
"mailing_list_ids": [
"00000000-0000-0000-0000-000000000000"
],
"_id": "string",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request POST \
--url 'https://api.jupitermail.app/customer/api/v1/subscribers/' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]",
"first_name": "string",
"last_name": "string",
"phone_number": "string",
"attributes": {
"key": "string"
},
"sms_phone_excluded_reason": "string",
"status": "active",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}'Successful Response
{
"email": "[email protected]",
"first_name": "string",
"last_name": "string",
"phone_number": "string",
"attributes": {
"key": "string"
},
"sms_phone_excluded_reason": "string",
"status": "active",
"mailing_list_ids": [
"00000000-0000-0000-0000-000000000000"
],
"_id": "string",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}/customer/api/v1/subscribers/{email_or_phone_number}Get Subscriber
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| email_or_phone_numberالزامی | string |
پاسخها
activeMongoDB ObjectId for the subscriber
{
"email": "[email protected]",
"first_name": "string",
"last_name": "string",
"phone_number": "string",
"attributes": {
"key": "string"
},
"sms_phone_excluded_reason": "string",
"status": "active",
"mailing_list_ids": [
"00000000-0000-0000-0000-000000000000"
],
"_id": "string",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/subscribers/string' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
{
"email": "[email protected]",
"first_name": "string",
"last_name": "string",
"phone_number": "string",
"attributes": {
"key": "string"
},
"sms_phone_excluded_reason": "string",
"status": "active",
"mailing_list_ids": [
"00000000-0000-0000-0000-000000000000"
],
"_id": "string",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}/customer/api/v1/subscribers/{email_or_phone_number}Update Subscriber
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| email_or_phone_numberالزامی | string |
بدنهٔ درخواست
application/jsonالزامیactiveپاسخها
activeMongoDB ObjectId for the subscriber
{
"email": "[email protected]",
"first_name": "string",
"last_name": "string",
"phone_number": "string",
"attributes": {
"key": "string"
},
"sms_phone_excluded_reason": "string",
"status": "active",
"mailing_list_ids": [
"00000000-0000-0000-0000-000000000000"
],
"_id": "string",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request PUT \
--url 'https://api.jupitermail.app/customer/api/v1/subscribers/string' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]",
"first_name": "string",
"last_name": "string",
"phone_number": "string",
"mailing_list_ids": [
"00000000-0000-0000-0000-000000000000"
],
"status": "active",
"attributes": {
"key": "string"
},
"updated_at": "2024-01-01T00:00:00Z"
}'Successful Response
{
"email": "[email protected]",
"first_name": "string",
"last_name": "string",
"phone_number": "string",
"attributes": {
"key": "string"
},
"sms_phone_excluded_reason": "string",
"status": "active",
"mailing_list_ids": [
"00000000-0000-0000-0000-000000000000"
],
"_id": "string",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}/customer/api/v1/subscribers/{email_or_phone_number}Delete Subscriber
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| email_or_phone_numberالزامی | string |
پاسخها
null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request DELETE \
--url 'https://api.jupitermail.app/customer/api/v1/subscribers/string' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
null/customer/api/v1/campaigns/List Campaigns
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
کوئری
| نام | نوع | توضیحات |
|---|---|---|
| page_number | integer | پیشفرض: |
| page_size | integer | پیشفرض: |
پاسخها
{
"total_count": 0,
"page_number": 0,
"page_size": 0,
"data": [
{
"title": "string",
"sender_name": "string",
"subject": "string",
"preview_text": "string",
"archive": false,
"unengaged": false,
"tags": [
"string"
],
"schedule_time": "2024-01-01T00:00:00Z",
"sender_id": "00000000-0000-0000-0000-000000000000",
"email_template_id": "00000000-0000-0000-0000-000000000000",
"step": "sender",
"status": "draft",
"settings": {
"header": "string",
"footer": "string",
"utm_tracking": false,
"utm_id": false,
"utm_name": "string",
"ignore_list": false,
"unsubscribe_page": false,
"update_profile_form": "string",
"tags": [
"string"
],
"view_template": false,
"reply_to_email": "[email protected]",
"reply_to_name": "string",
"embedded": false,
"failed_subscribers": [
"string"
],
"attachment": {
"filename": "string",
"file_path": "string",
"purpose": "library",
"company_id": "00000000-0000-0000-0000-000000000000",
"public_url": "string",
"content_type": "string",
"template_id": "00000000-0000-0000-0000-000000000000",
"expires_at": "2024-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"blob_link": "string"
}
},
"schedule_settings": {
"key": "string"
},
"task_ids": [
"string"
],
"id": "00000000-0000-0000-0000-000000000000",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_by": null,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"template_snapshot": {
"filename": "string",
"file_path": "string",
"purpose": "library",
"company_id": "00000000-0000-0000-0000-000000000000",
"public_url": "string",
"content_type": "string",
"template_id": "00000000-0000-0000-0000-000000000000",
"expires_at": "2024-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"blob_link": "string"
}
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/campaigns/?page_number=1&page_size=10' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
{
"total_count": 0,
"page_number": 0,
"page_size": 0,
"data": [
{
"title": "string",
"sender_name": "string",
"subject": "string",
"preview_text": "string",
"archive": false,
"unengaged": false,
"tags": [
"string"
],
"schedule_time": "2024-01-01T00:00:00Z",
"sender_id": "00000000-0000-0000-0000-000000000000",
"email_template_id": "00000000-0000-0000-0000-000000000000",
"step": "sender",
"status": "draft",
"settings": {
"header": "string",
"footer": "string",
"utm_tracking": false,
"utm_id": false,
"utm_name": "string",
"ignore_list": false,
"unsubscribe_page": false,
"update_profile_form": "string",
"tags": [
"string"
],
"view_template": false,
"reply_to_email": "[email protected]",
"reply_to_name": "string",
"embedded": false,
"failed_subscribers": [
"string"
],
"attachment": {
"filename": "string",
"file_path": "string",
"purpose": "library",
"company_id": "00000000-0000-0000-0000-000000000000",
"public_url": "string",
"content_type": "string",
"template_id": "00000000-0000-0000-0000-000000000000",
"expires_at": "2024-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"blob_link": "string"
}
},
"schedule_settings": {
"key": "string"
},
"task_ids": [
"string"
],
"id": "00000000-0000-0000-0000-000000000000",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_by": null,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"template_snapshot": {
"filename": "string",
"file_path": "string",
"purpose": "library",
"company_id": "00000000-0000-0000-0000-000000000000",
"public_url": "string",
"content_type": "string",
"template_id": "00000000-0000-0000-0000-000000000000",
"expires_at": "2024-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"blob_link": "string"
}
}
]
}/customer/api/v1/campaigns/{campaign_id}Get Campaign
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| campaign_idالزامی | string · uuid |
پاسخها
falsefalsesenderdraft{
"title": "string",
"sender_name": "string",
"subject": "string",
"preview_text": "string",
"archive": false,
"unengaged": false,
"tags": [
"string"
],
"schedule_time": "2024-01-01T00:00:00Z",
"sender_id": "00000000-0000-0000-0000-000000000000",
"email_template_id": "00000000-0000-0000-0000-000000000000",
"step": "sender",
"status": "draft",
"settings": {
"header": "string",
"footer": "string",
"utm_tracking": false,
"utm_id": false,
"utm_name": "string",
"ignore_list": false,
"unsubscribe_page": false,
"update_profile_form": "string",
"tags": [
"string"
],
"view_template": false,
"reply_to_email": "[email protected]",
"reply_to_name": "string",
"embedded": false,
"failed_subscribers": [
"string"
],
"attachment": {
"filename": "string",
"file_path": "string",
"purpose": "library",
"company_id": "00000000-0000-0000-0000-000000000000",
"public_url": "string",
"content_type": "string",
"template_id": "00000000-0000-0000-0000-000000000000",
"expires_at": "2024-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"blob_link": "string"
}
},
"schedule_settings": {
"key": "string"
},
"task_ids": [
"string"
],
"id": "00000000-0000-0000-0000-000000000000",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_by": null,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"template_snapshot": {
"filename": "string",
"file_path": "string",
"purpose": "library",
"company_id": "00000000-0000-0000-0000-000000000000",
"public_url": "string",
"content_type": "string",
"template_id": "00000000-0000-0000-0000-000000000000",
"expires_at": "2024-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"blob_link": "string"
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/campaigns/00000000-0000-0000-0000-000000000000' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
{
"title": "string",
"sender_name": "string",
"subject": "string",
"preview_text": "string",
"archive": false,
"unengaged": false,
"tags": [
"string"
],
"schedule_time": "2024-01-01T00:00:00Z",
"sender_id": "00000000-0000-0000-0000-000000000000",
"email_template_id": "00000000-0000-0000-0000-000000000000",
"step": "sender",
"status": "draft",
"settings": {
"header": "string",
"footer": "string",
"utm_tracking": false,
"utm_id": false,
"utm_name": "string",
"ignore_list": false,
"unsubscribe_page": false,
"update_profile_form": "string",
"tags": [
"string"
],
"view_template": false,
"reply_to_email": "[email protected]",
"reply_to_name": "string",
"embedded": false,
"failed_subscribers": [
"string"
],
"attachment": {
"filename": "string",
"file_path": "string",
"purpose": "library",
"company_id": "00000000-0000-0000-0000-000000000000",
"public_url": "string",
"content_type": "string",
"template_id": "00000000-0000-0000-0000-000000000000",
"expires_at": "2024-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"blob_link": "string"
}
},
"schedule_settings": {
"key": "string"
},
"task_ids": [
"string"
],
"id": "00000000-0000-0000-0000-000000000000",
"company_id": "00000000-0000-0000-0000-000000000000",
"created_by": null,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"template_snapshot": {
"filename": "string",
"file_path": "string",
"purpose": "library",
"company_id": "00000000-0000-0000-0000-000000000000",
"public_url": "string",
"content_type": "string",
"template_id": "00000000-0000-0000-0000-000000000000",
"expires_at": "2024-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"blob_link": "string"
}
}/customer/api/v1/campaigns/{campaign_id}/analyticsGet Campaign Analytics
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| campaign_idالزامی | string · uuid |
پاسخها
000000000000{
"sent": 0,
"recipients": 0,
"queued": 0,
"delivered": 0,
"opened": 0,
"clicked": 0,
"soft_bounced": 0,
"hard_bounced": 0,
"spam_complaints": 0,
"opened_unique": 0,
"clicked_unique": 0,
"unsubscribed": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/campaigns/00000000-0000-0000-0000-000000000000/analytics' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
{
"sent": 0,
"recipients": 0,
"queued": 0,
"delivered": 0,
"opened": 0,
"clicked": 0,
"soft_bounced": 0,
"hard_bounced": 0,
"spam_complaints": 0,
"opened_unique": 0,
"clicked_unique": 0,
"unsubscribed": 0
}/customer/api/v1/mailing-lists/List Mailing Lists
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
کوئری
| نام | نوع | توضیحات |
|---|---|---|
| page_number | integer | پیشفرض: |
| page_size | integer | پیشفرض: |
پاسخها
{
"total_count": 0,
"page_number": 0,
"page_size": 0,
"data": [
{
"name": "string",
"subscriber_custom_columns": [
"string"
],
"description": "string",
"id": "00000000-0000-0000-0000-000000000000",
"subscribers_count": 0,
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/mailing-lists/?page_number=1&page_size=10' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
{
"total_count": 0,
"page_number": 0,
"page_size": 0,
"data": [
{
"name": "string",
"subscriber_custom_columns": [
"string"
],
"description": "string",
"id": "00000000-0000-0000-0000-000000000000",
"subscribers_count": 0,
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
]
}/customer/api/v1/mailing-lists/{mailing_list_id}Get Mailing List
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| mailing_list_idالزامی | string · uuid |
پاسخها
0{
"name": "string",
"subscriber_custom_columns": [
"string"
],
"description": "string",
"id": "00000000-0000-0000-0000-000000000000",
"subscribers_count": 0,
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/mailing-lists/00000000-0000-0000-0000-000000000000' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
{
"name": "string",
"subscriber_custom_columns": [
"string"
],
"description": "string",
"id": "00000000-0000-0000-0000-000000000000",
"subscribers_count": 0,
"company_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}/customer/api/v1/mailing-lists/{mailing_list_id}/subscribersGet Mailing List Subscribers
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| mailing_list_idالزامی | string · uuid |
کوئری
| نام | نوع | توضیحات |
|---|---|---|
| page_number | integer | پیشفرض: |
| page_size | integer | پیشفرض: |
پاسخها
null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/mailing-lists/00000000-0000-0000-0000-000000000000/subscribers?page_number=1&page_size=10' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
null/customer/api/v1/transactionalSend Transactional Email
Queue a single transactional email and return its tracking id.
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
هدرها
| نام | نوع | توضیحات |
|---|---|---|
| Idempotency-Key | string | null |
بدنهٔ درخواست
application/jsonالزامیInbound payload for a single transactional send. Body/attachments are forwarded to the send task and are not persisted.
پاسخها
202 (or idempotent 200) acknowledgement returned by POST.
{
"id": "00000000-0000-0000-0000-000000000000",
"status": "queued",
"created_at": "2024-01-01T00:00:00Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request POST \
--url 'https://api.jupitermail.app/customer/api/v1/transactional' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Idempotency-Key: string' \
--header 'Content-Type: application/json' \
--data '{
"from_email": "[email protected]",
"from_name": "string",
"to_email": "[email protected]",
"to_name": "string",
"subject": "string",
"html_content": "string",
"text_content": "string",
"reply_to_email": "[email protected]",
"reply_to_name": "string",
"attachments": [
{
"id": "string",
"filename": "string",
"content": "string"
}
]
}'Successful Response
{
"id": "00000000-0000-0000-0000-000000000000",
"status": "queued",
"created_at": "2024-01-01T00:00:00Z"
}/customer/api/v1/transactional/{transactional_email_id}Get Transactional Email
Return the status record for a transactional send owned by the caller.
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| transactional_email_idالزامی | string · uuid |
پاسخها
Queryable status record returned by GET /{id}.
{
"id": "00000000-0000-0000-0000-000000000000",
"from_email": "string",
"to_email": "string",
"subject": "string",
"status": "queued",
"provider_message_id": "string",
"error_message": "string",
"opened_count": 0,
"clicked_count": 0,
"spam_complaint_count": 0,
"last_opened_at": "2024-01-01T00:00:00Z",
"last_clicked_at": "2024-01-01T00:00:00Z",
"last_spam_complaint_at": "2024-01-01T00:00:00Z",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/transactional/00000000-0000-0000-0000-000000000000' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
{
"id": "00000000-0000-0000-0000-000000000000",
"from_email": "string",
"to_email": "string",
"subject": "string",
"status": "queued",
"provider_message_id": "string",
"error_message": "string",
"opened_count": 0,
"clicked_count": 0,
"spam_complaint_count": 0,
"last_opened_at": "2024-01-01T00:00:00Z",
"last_clicked_at": "2024-01-01T00:00:00Z",
"last_spam_complaint_at": "2024-01-01T00:00:00Z",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}/customer/api/v1/files/smart-template/upload/Upload Smart Template Image
Upload a transient input asset (brand kit / screenshot / reference). Persists a durable file record; the returned blob_link is a short-lived signed URL. Store file_path, not blob_link, and re-mint via /download-url.
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>بدنهٔ درخواست
multipart/form-dataالزامیپاسخها
{
"id": "00000000-0000-0000-0000-000000000000",
"file_path": "string",
"blob_link": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request POST \
--url 'https://api.jupitermail.app/customer/api/v1/files/smart-template/upload/' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--form 'file=@/path/to/file'Successful Response
{
"id": "00000000-0000-0000-0000-000000000000",
"file_path": "string",
"blob_link": "string"
}/customer/api/v1/files/asset/upload/Upload Email Asset
Upload a durable email asset. Returned public_url never expires and is safe to embed in sent email HTML.
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>بدنهٔ درخواست
multipart/form-dataالزامیپاسخها
Response for a durable email-asset upload. public_url never expires.
{
"id": "00000000-0000-0000-0000-000000000000",
"file_path": "string",
"public_url": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request POST \
--url 'https://api.jupitermail.app/customer/api/v1/files/asset/upload/' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--form 'file=@/path/to/file'Successful Response
{
"id": "00000000-0000-0000-0000-000000000000",
"file_path": "string",
"public_url": "string"
}/customer/api/v1/files/download-url/Refresh Download Url
Mint a fresh signed download URL for a previously uploaded blob path.
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>بدنهٔ درخواست
application/jsonالزامیRe-mint a fresh signed download URL from a stored blob path.
24پاسخها
{
"file_path": "string",
"blob_link": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request POST \
--url 'https://api.jupitermail.app/customer/api/v1/files/download-url/' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"file_path": "string",
"expiry_hours": 24
}'Successful Response
{
"file_path": "string",
"blob_link": "string"
}/customer/api/v1/files/template/{template_id}/List Template Assets
List durable assets owned by a template (company-scoped).
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| template_idالزامی | string · uuid |
پاسخها
[
{
"filename": "string",
"file_path": "string",
"purpose": "library",
"company_id": "00000000-0000-0000-0000-000000000000",
"public_url": "string",
"content_type": "string",
"template_id": "00000000-0000-0000-0000-000000000000",
"expires_at": "2024-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"blob_link": "string"
}
]{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/files/template/00000000-0000-0000-0000-000000000000/' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
[
{
"filename": "string",
"file_path": "string",
"purpose": "library",
"company_id": "00000000-0000-0000-0000-000000000000",
"public_url": "string",
"content_type": "string",
"template_id": "00000000-0000-0000-0000-000000000000",
"expires_at": "2024-01-01T00:00:00Z",
"id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"blob_link": "string"
}
]/customer/api/v1/files/{file_id}/Delete File
Delete a file's blob and record after verifying company ownership.
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| file_idالزامی | string · uuid |
پاسخها
{}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request DELETE \
--url 'https://api.jupitermail.app/customer/api/v1/files/00000000-0000-0000-0000-000000000000/' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
{}/customer/api/v1/sms/verifySend Verify Sms
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
هدرها
| نام | نوع | توضیحات |
|---|---|---|
| Idempotency-Keyالزامی | string |
بدنهٔ درخواست
application/jsonالزامیپاسخها
{
"id": "00000000-0000-0000-0000-000000000000",
"to_e164": "string",
"country": "string",
"template_key": "string",
"status": "queued",
"segments": 0,
"provider_message_id": "string",
"accepted_at": "2024-01-01T00:00:00Z",
"delivered_at": "2024-01-01T00:00:00Z",
"error_code": "string",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request POST \
--url 'https://api.jupitermail.app/customer/api/v1/sms/verify' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Idempotency-Key: string' \
--header 'Content-Type: application/json' \
--data '{
"to": "string",
"template_key": "string",
"parameters": {}
}'Successful Response
{
"id": "00000000-0000-0000-0000-000000000000",
"to_e164": "string",
"country": "string",
"template_key": "string",
"status": "queued",
"segments": 0,
"provider_message_id": "string",
"accepted_at": "2024-01-01T00:00:00Z",
"delivered_at": "2024-01-01T00:00:00Z",
"error_code": "string",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}/customer/api/v1/sms/messages/{message_id}Get Sms Message
احراز هویت
این اندپوینت به توکن Bearer نیاز دارد. کلید API خود را در هر درخواست ارسال کنید:
Authorization: Bearer <API_KEY>پارامترها
مسیر
| نام | نوع | توضیحات |
|---|---|---|
| message_idالزامی | string · uuid |
پاسخها
{
"id": "00000000-0000-0000-0000-000000000000",
"to_e164": "string",
"country": "string",
"template_key": "string",
"status": "queued",
"segments": 0,
"provider_message_id": "string",
"accepted_at": "2024-01-01T00:00:00Z",
"delivered_at": "2024-01-01T00:00:00Z",
"error_code": "string",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}curl --request GET \
--url 'https://api.jupitermail.app/customer/api/v1/sms/messages/00000000-0000-0000-0000-000000000000' \
--header 'Authorization: Bearer YOUR_API_KEY'Successful Response
{
"id": "00000000-0000-0000-0000-000000000000",
"to_e164": "string",
"country": "string",
"template_key": "string",
"status": "queued",
"segments": 0,
"provider_message_id": "string",
"accepted_at": "2024-01-01T00:00:00Z",
"delivered_at": "2024-01-01T00:00:00Z",
"error_code": "string",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}