邮件

分页获取邮件(API密钥)

get
Query parameters
to_emailstringRequired

收件人邮箱

provider_typestringOptional

邮件提供商类型

from_emailstringOptional

发件人邮箱

subjectstringOptional

邮件主题

start_timestringOptional

开始时间

end_timestringOptional

结束时间

is_readstringOptional

是否已读

pageinteger · min: 1Optional

页码

Default: 1
sizeinteger · max: 200Optional

每页数量

Default: 20
Body
anyOptional
Responses
200

Successful Response

application/json
get
/api/v1/sys/email/api
GET /api/v1/sys/email/api?to_email=text HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
{
	"code": 200,
	"msg": "请求成功",
	"data": {
		"items": [
			{
				"id": 0,
				"from_email": "",
				"from_name": "",
				"to_email": "",
				"to_name": "",
				"subject": "",
				"has_attachments": "",
				"is_read": "",
				"is_claimed": "",
				"created_time": ""
			}
		],
		"total": 0,
		"page": 0,
		"size": 0,
		"total_pages": 0,
		"links": {
			"first": "",
			"last": "",
			"self": "",
			"next": "",
			"prev": ""
		}
	}
}

获取邮件详情(API密钥)

get
Path parameters
pkintegerRequired

邮件 ID

Body
anyOptional
Responses
200

Successful Response

application/json
get
/api/v1/sys/email/api/{pk}
GET /api/v1/sys/email/api/{pk} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
{
	"code": 200,
	"msg": "请求成功",
	"data": {
		"from_email": "",
		"from_name": "",
		"to_email": "",
		"to_name": "",
		"subject": "",
		"summary": "",
		"content": "",
		"has_attachments": "",
		"is_claimed": "",
		"user_id": "",
		"provider_type": "",
		"lease_id": "",
		"id": 0,
		"created_time": ""
	}
}