Mailbox API
The Mailbox API is a Hive Axyl Server API for sending mail and managing sent and received mail. Attachments are reference data that identify game items, currency, and coupons. Implement attachment validation and fulfillment on your app server.
Before calling the API
Use https://app-api.hiveaxyl.com as the production base URL and https://test-api.hiveaxyl.com as the test base URL.
Include the app server token obtained through Issue a token in the Authorization: Bearer {access-token} header of every request. Keep access tokens out of logs and error messages.
Add the Content-Type: application/json header to requests with a JSON body.
Mail IDs
Use mailId, the original mail ID, to retrieve, recall, or delete sent mail. Use mailRecipientId, the ID assigned to each recipient, to retrieve, mark as read, or delete received mail. Both values are UUIDs.
Success responses
Success responses use application/json. The data field contains the result or the requested items. List responses return a data array and cursor information in meta.page. In other success responses, meta is an object or null. All dates and times in this reference use Coordinated Universal Time (UTC).
Supported language codes
Use these language codes when specifying or retrieving a mail subject and body.
ko, en, ja, zh-Hans, zh-Hant, de, fr, ru, it, es, pt, pl, nl, tr, th, id, ar, hi, vi, sv, cs, fa, no, uk, ro, he, ms, da, el, hu, tl
Send mail
POST /mailbox/v1/mail/send
Sends mail to specified recipients or to all users. The server identifies the sender from the JWT credentials. Set senderDisplayName to the name recipients should see. The server stores this value at the time of sending.
To send mail to specified users, set recipientScope to DIRECT and supply their Player IDs in recipientPlayerIds. To send mail to all users, set recipientScope to BROADCAST. Broadcast mail requires a JWT with subject_type set to project or product. A request with subject_type set to user returns HTTP 400 with broadcast_mail_not_allowed_for_user.
An Idempotency-Key is valid for 60 minutes. The server treats requests with the same key and body as duplicates. Reuse the same key and body when retrying a send request.
Request parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | true | Key used to prevent duplicate processing of the same send request. |
| Body | body | SendMailRequest | true | JSON request body. |
SendMailRequest request body
| Field | Type | Required | Description |
|---|---|---|---|
mailCategory | string | false | Category used to classify mail. Maximum 64 characters. The default is DEFAULT. |
senderDisplayName | string | true | Sender display name stored at the time of sending. Maximum 100 characters. |
recipientScope | string | true | DIRECT sends mail to specified recipients. BROADCAST sends mail to all users and requires a JWT with subject_type set to project or product. |
recipientPlayerIds | array(integer(int64)) | Conditional | Array of recipient Player IDs required for DIRECT mail. Maximum 100 IDs. |
mailContentType | string | true | Mail body type. Accepted values are TEXT and ATTACHMENT. |
title | string | true | Mail subject. Maximum 300 characters. |
body | string | true | Mail body. Maximum 1,000 characters. |
language | string | true | Language code of the subject and body. If either is unavailable in the requested language, the API uses the value in this language. See Supported language codes. |
mailExtension | string | false | App-defined string for additional mail data. The mailbox server does not interpret this value. Maximum 4,096 characters. |
expiresAt | string(date-time) | true | Expiration timestamp in UTC, within the next 30 days. |
attachments | array(object) | false | Attachments for ATTACHMENT mail only. Maximum 10 attachments. |
Request body attachments[]
| Field | Type | Required | Description |
|---|---|---|---|
attachmentType | string | false | Game-defined attachment data type. Maximum 30 characters. The default is DEFAULT. |
referenceId | string | true | Identifier for attachment data managed by the game. Maximum 100 characters. |
quantity | integer(int32) | true | Attachment quantity. |
Request example
Replace {idempotency-key} with the deduplication key for this send request. Replace <expires-at-utc> with a UTC timestamp within the next 30 days.
curl -X POST 'https://test-api.hiveaxyl.com/mailbox/v1/mail/send' \
-H 'Authorization: Bearer {access-token}' \
-H 'Accept: application/json' \
-H 'Idempotency-Key: {idempotency-key}' \
-H 'Content-Type: application/json' \
--data '{
"senderDisplayName": "이벤트 운영팀",
"recipientScope": "DIRECT",
"recipientPlayerIds": [
1001,
1002
],
"mailContentType": "ATTACHMENT",
"title": "이벤트 보상",
"body": "이벤트에 참여해 주셔서 감사합니다.",
"language": "ko",
"expiresAt": "<expires-at-utc>",
"attachments": [
{
"attachmentType": "ITEM",
"referenceId": "ITEM-100123",
"quantity": 1
}
]
}'
Response
For common response formats, see Success responses and Error handling.
Success response data object
| Field | Type | Description |
|---|---|---|
data.mailId | string(uuid) | Original mail ID. |
data.acceptedAt | string(date-time) | Timestamp when the server accepted the request. |
Response example
{
"type": "/errors/common/missing-field",
"title": "Missing Field",
"status": 400,
"detail": "Required field is missing.",
"instance": "/mailbox/v1/mail/send",
"code": "missing_field",
"errors": [
{
"field": "Idempotency-Key",
"message": "Required request header 'Idempotency-Key' for method parameter type String is not present"
}
]
}
API behavior
HTTP 202 indicates that the server accepted the send request. The server sends the mail asynchronously.
Response status
| Status | Content type | Meaning | Response headers | Response body or action |
|---|---|---|---|---|
202 | application/json | Send request accepted | - | data.mailId contains the ID of the mail in the accepted request. |
400 | application/problem+json | Request validation failed or the request violated the mail sending policy | - | Check code and errors in the response for the reason. |
500 | application/problem+json | Internal server error | - | Check detail in the error response. |
API-specific error codes
| Code | Condition | Action | Additional response information |
|---|---|---|---|
broadcast_mail_not_allowed_for_user | A broadcast request used a JWT with subject_type set to user. | For broadcast mail, use a token with subject_type set to project or product. For mail to specified recipients, use DIRECT with the recipient list. | outcome is an object or null. |
List sent mail
GET /mailbox/v1/mails/sent
Lists summaries and recipient counts for mail sent by the sender, including expired and recalled mail. Deleted mail is excluded.
To retrieve the next page, check that meta.page.hasNext is true and pass nextCursor as cursor in the next request. Sent mail can be paginated forward.
Request parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
searchRequest | query | SentMailSearchRequest | true | Search criteria. Pass each field as a separate query parameter as shown in the example. |
SentMailSearchRequest query parameters
| Field | Type | Required | Description |
|---|---|---|---|
mailCategory | string | false | Category used to classify mail. Maximum 64 characters. The default is DEFAULT. |
mailContentType | string | false | Filters mail by body type. If omitted, returns all types. Accepted values are TEXT and ATTACHMENT. |
mailStatus | string | false | Filters mail by status. If omitted, returns all statuses. Accepted values are ACTIVE, REVOKED, and EXPIRED. |
cursor | string(uuid) | false | Starting point for pagination. Omit to retrieve the first page. |
size | integer(int32) | false | Number of items per page. The range is 1 to 50 and the default is 10. |
Request example
Response
For common response formats, see Success responses and Error handling.
Success response data object
| Field | Type | Description |
|---|---|---|
data | array | List of sent mail. |
Nested success response object data[]
| Field | Type | Description |
|---|---|---|
mailId | string(uuid) | Original mail ID. |
senderId | string | Sender identifier. |
senderDisplayName | string | Sender display name stored at the time of sending. Maximum 100 characters. |
mailCategory | string | Category used to classify mail. |
mailContentType | string | Mail body type. Accepted values are TEXT and ATTACHMENT. |
title | string | Mail subject. |
mailStatus | string | Current mail status. Possible values are ACTIVE, REVOKED, and EXPIRED. |
closedAt | string(date-time) or null | Timestamp when the mail status changed due to recall or expiration. Returns null for active mail. |
expiresAt | string(date-time) | Mail expiration timestamp. |
createdAt | string(date-time) | Timestamp when the data was created. |
firstRecipientPlayerId | integer(int64) or null | Player ID of the first recipient. Returns null for broadcast mail. |
recipientCount | integer(int64) or null | Number of specified recipients. Returns null for broadcast mail. |
Success response meta object
| Field | Type | Description |
|---|---|---|
meta.page.nextCursor | string or null | Cursor for the next page. |
meta.page.hasNext | boolean | Whether a next page exists. |
meta.page.previousCursor | string or null | Cursor for the previous page. |
meta.page.hasPrevious | boolean or null | Whether a previous page exists. Returns null for APIs that only paginate forward. |
Response example
{
"data": [
{
"mailId": "0196f7c3-8b2e-7f4d-a123-9c8d7e6f5a4b",
"senderId": "sender-example",
"senderDisplayName": "이벤트 운영팀",
"mailCategory": "DEFAULT",
"mailContentType": "ATTACHMENT",
"title": "이벤트 보상",
"mailStatus": "ACTIVE",
"closedAt": null,
"expiresAt": "2026-11-30T09:00:00Z",
"createdAt": "2026-11-21T09:00:00Z",
"firstRecipientPlayerId": 1001,
"recipientCount": 2
}
],
"meta": {
"page": {
"nextCursor": "0196f7c3-8b2e-7f4d-a123-9c8d7e6f5a4b",
"hasNext": true,
"previousCursor": null,
"hasPrevious": null
}
}
}
Response status
| Status | Content type | Meaning | Response headers | Response body or action |
|---|---|---|---|---|
200 | application/json | Sent mail list retrieved | - | data contains the sent mail list and meta.page contains the cursor information for the next page. |
400 | application/problem+json | Invalid request value or missing required input | - | Check code and errors for the reason. |
500 | application/problem+json | Internal server error | - | Check detail in the error response. |
Get sent mail
GET /mailbox/v1/mails/sent/{mailId}
Retrieves the details, recipient list, and attachments for an item of sent mail. Deleted mail is excluded.
Request parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
mailId | path | string | true | Original sent mail ID in uuid format. |
Request example
Response
For common response formats, see Success responses and Error handling.
Success response data object
| Field | Type | Description |
|---|---|---|
data.mailId | string(uuid) | Original mail ID. |
data.mailCategory | string | Category used to classify mail. The default is DEFAULT. |
data.mailContentType | string | Mail body type. Accepted values are TEXT and ATTACHMENT. |
data.senderType | string | Sender type. Possible values are ADMIN, HIVE_SYSTEM, PROJECT_SYSTEM, and USER. |
data.senderId | string | Sender identifier. |
data.senderDisplayName | string | Sender display name stored at the time of sending. Maximum 100 characters. |
data.recipientScope | string | Recipient scope. Possible values are BROADCAST and DIRECT. |
data.recipientPlayerIds | array(integer(int64)) | List of Player IDs the mail was sent to. |
data.title | string | Mail subject. |
data.body | string | Mail body. Maximum 1,000 characters. |
data.language | string | Default language code for the mail. See Supported language codes. |
data.mailExtension | string or null | App-defined string for additional mail data. The mailbox server does not interpret this value. |
data.expiresAt | string(date-time) | Mail expiration timestamp. |
data.mailStatus | string | Current mail status. Possible values are ACTIVE, REVOKED, and EXPIRED. |
data.closedAt | string(date-time) or null | Timestamp when the mail status changed due to recall or expiration. Returns null for active mail. |
data.createdAt | string(date-time) | Timestamp when the data was created. |
data.attachments | array(object) or null | Data for the attachments associated with the mail. |
Nested success response object data.attachments[]
| Field | Type | Description |
|---|---|---|
mailId | string(uuid) | Original mail ID. |
quantity | integer(int32) | Attachment quantity. |
attachmentType | string | Game-defined attachment data type. |
referenceId | string | Identifier for attachment data managed by the game. |
createdAt | string(date-time) | Timestamp when the data was created. |
Response example
{
"data": {
"mailId": "0196f7c3-8b2e-7f4d-a123-9c8d7e6f5a4b",
"mailCategory": "DEFAULT",
"mailContentType": "ATTACHMENT",
"senderType": "PROJECT_SYSTEM",
"senderId": "sender-example",
"senderDisplayName": "이벤트 운영팀",
"recipientScope": "DIRECT",
"recipientPlayerIds": [
1001,
1002
],
"title": "이벤트 보상",
"body": "이벤트에 참여해 주셔서 감사합니다.",
"language": "ko",
"mailExtension": null,
"expiresAt": "2026-11-30T09:00:00Z",
"mailStatus": "ACTIVE",
"closedAt": null,
"createdAt": "2026-11-21T09:00:00Z",
"attachments": [
{
"mailId": "0196f7c3-8b2e-7f4d-a123-9c8d7e6f5a4b",
"attachmentType": "ITEM",
"referenceId": "ITEM-100123",
"quantity": 1,
"createdAt": "2026-11-21T09:00:00Z"
}
]
},
"meta": null
}
Response status
| Status | Content type | Meaning | Response headers | Response body or action |
|---|---|---|---|---|
200 | application/json | Sent mail retrieved | - | data contains the mail details and attachments. |
400 | application/problem+json | Invalid request value or missing required input | - | Check code and errors for the reason. |
500 | application/problem+json | Internal server error | - | Check detail in the error response. |
Recall sent mail
POST /mailbox/v1/mails/sent/{mailId}/revoke
Changes the status of sent mail to REVOKED. Only unread copies of the mail are recalled from recipients.
Request parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
mailId | path | string | true | Original sent mail ID in uuid format. |
Request example
Response
For common response formats, see Success responses and Error handling.
Success response data object
| Field | Type | Description |
|---|---|---|
data.mailId | string(uuid) | Original mail ID. |
data.acceptedAt | string(date-time) | Timestamp when the server accepted the request. |
Response example
API behavior
HTTP 202 indicates that the server accepted the recall request. The server recalls the mail asynchronously.
Response status
| Status | Content type | Meaning | Response headers | Response body or action |
|---|---|---|---|---|
202 | application/json | Recall request accepted | - | data contains the mail ID and the timestamp when the server accepted the request. |
400 | application/problem+json | Invalid request value or missing required input | - | Check code and errors for the reason. |
500 | application/problem+json | Internal server error | - | Check detail in the error response. |
Delete sent mail
DELETE /mailbox/v1/mails/sent/{mailId}
Marks sent mail as deleted. Deleted mail is excluded from the sent mail list and detail views.
Request parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
mailId | path | string | true | Original sent mail ID in uuid format. |
Request example
Response
For common response formats, see Success responses and Error handling.
Success response data object
| Field | Type | Description |
|---|---|---|
data.mailId | string(uuid) | Original mail ID. |
data.deletedAt | string(date-time) | Deletion timestamp. |
Response example
Response status
| Status | Content type | Meaning | Response headers | Response body or action |
|---|---|---|---|---|
200 | application/json | Sent mail deleted | - | data contains the sent mail ID and deletion timestamp. |
400 | application/problem+json | Invalid request value or missing required input | - | Check code and errors for the reason. |
500 | application/problem+json | Internal server error | - | Check detail in the error response. |
List received mail
GET /mailbox/v1/mails/received
Lists received mail using cursor pagination. Expired, recalled, and deleted mail is excluded. Set language to return mail subjects in that language. If a translation is unavailable, the API returns the subject in the default language. To retrieve the body, see Get received mail.
Omit cursor to retrieve the first page. To retrieve the next page, use direction=NEXT with the response's nextCursor. To retrieve the previous page, use direction=PREVIOUS with the response's previousCursor.
Request parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
searchRequest | query | ReceivedMailSearchRequest | true | Search criteria. Pass each field as a separate query parameter as shown in the example. |
ReceivedMailSearchRequest query parameters
| Field | Type | Required | Description |
|---|---|---|---|
language | string | false | Language code for the subject. If a translation is unavailable in the requested language, the API returns the value in the default language. See Supported language codes. |
mailCategory | string | false | Filters mail by category. Omit to include all categories. |
mailContentType | string | false | Filters mail by body type. Omit to include all types. Accepted values are TEXT and ATTACHMENT. |
textRead | boolean | false | Set to true to list mail with a read body or false to list mail with an unread body. |
attachmentRead | boolean | false | Set to true to list mail with read attachments or false to list mail with unread attachments. |
cursor | string(uuid) | false | Starting point for pagination. Omit to retrieve the first page. |
direction | string | false | Pagination direction. NEXT retrieves the next page and PREVIOUS retrieves the previous page. The default is NEXT. |
size | integer(int32) | false | Number of items per page. The range is 1 to 50 and the default is 10. |
Request example
Response
For common response formats, see Success responses and Error handling.
Success response data object
| Field | Type | Description |
|---|---|---|
data | array | List of received mail. |
Nested success response object data[]
| Field | Type | Description |
|---|---|---|
mailRecipientId | string(uuid) | Received mail ID assigned to the recipient. |
mailId | string(uuid) | Original mail ID. |
recipientPlayerId | integer(int64) | Recipient's Player ID. |
deliveredAt | string(date-time) | Timestamp when the mail arrived in the recipient's mailbox. |
textReadAt | string(date-time) or null | Timestamp when the body was first marked as read. Returns null if it has never been marked as read. |
attachmentReadAt | string(date-time) or null | Timestamp when the attachments were first marked as read. Returns null if they have never been marked as read. |
expiresAt | string(date-time) | Mail expiration timestamp. |
mailCategory | string | Category used to classify mail. |
mailContentType | string | Mail body type. Accepted values are TEXT and ATTACHMENT. |
title | string | Mail subject. |
senderId | string | Sender identifier. |
senderType | string | Sender type. Possible values are ADMIN, HIVE_SYSTEM, PROJECT_SYSTEM, and USER. |
senderDisplayName | string | Sender display name stored at the time of sending. Maximum 100 characters. |
Success response meta object
| Field | Type | Description |
|---|---|---|
meta.page.nextCursor | string or null | Cursor for the next page. |
meta.page.hasNext | boolean | Whether a next page exists. |
meta.page.previousCursor | string or null | Cursor for the previous page. |
meta.page.hasPrevious | boolean or null | Whether a previous page exists. Returns null for APIs that only paginate forward. |
Response example
{
"data": [
{
"mailId": "0196f7c3-8b2e-7f4d-a123-9c8d7e6f5a4b",
"expiresAt": "2026-11-30T09:00:00Z",
"mailCategory": "DEFAULT",
"mailContentType": "ATTACHMENT",
"title": "이벤트 보상",
"senderId": "sender-example",
"senderType": "PROJECT_SYSTEM",
"senderDisplayName": "이벤트 운영팀",
"mailRecipientId": "0196f7c4-0c71-72b8-a921-a765dd574669",
"recipientPlayerId": 1001,
"deliveredAt": "2026-11-21T09:00:01Z",
"textReadAt": null,
"attachmentReadAt": null
}
],
"meta": {
"page": {
"nextCursor": "0196f7c4-0c71-72b8-a921-a765dd574669",
"hasNext": true,
"previousCursor": null,
"hasPrevious": null
}
}
}
Response status
| Status | Content type | Meaning | Response headers | Response body or action |
|---|---|---|---|---|
200 | application/json | Received mail list retrieved | - | data contains the received mail list and meta.page contains the cursor information for pagination. |
400 | application/problem+json | Invalid request value or missing required input | - | Check code and errors for the reason. |
500 | application/problem+json | Internal server error | - | Check detail in the error response. |
Get received mail
GET /mailbox/v1/mails/received/{mailRecipientId}
Retrieves the body, recipient-specific status, and attachments for an item of received mail. Set language to the language in which to retrieve the subject and body. Expired, recalled, and deleted mail is excluded.
To record the time the mail was read after retrieving it, call Mark mail as read. Use data.recipientPlayerId to identify the recipient.
Request parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
mailRecipientId | path | string | true | Received mail ID assigned to the recipient in uuid format. |
language | query | string | true | Language code for the subject and body. |
Request example
Response
For common response formats, see Success responses and Error handling.
Success response data object
| Field | Type | Description |
|---|---|---|
data.mailRecipientId | string(uuid) | Received mail ID assigned to the recipient. |
data.mail | object | Original mail details referenced by the received mail. |
data.recipientPlayerId | integer(int64) | Recipient's Player ID. |
data.deliveredAt | string(date-time) | Timestamp when the mail arrived in the recipient's mailbox. |
data.textReadAt | string(date-time) or null | Timestamp when the body was first marked as read. Returns null if it has never been marked as read. |
data.attachmentReadAt | string(date-time) or null | Timestamp when the attachments were first marked as read. Returns null if they have never been marked as read. |
data.expiresAt | string(date-time) | Mail expiration timestamp. |
Nested success response object data.mail
| Field | Type | Description |
|---|---|---|
data.mail.mailId | string(uuid) | Original mail ID. |
data.mail.mailCategory | string | Category used to classify mail. The default is DEFAULT. |
data.mail.mailContentType | string | Mail body type. Accepted values are TEXT and ATTACHMENT. |
data.mail.senderType | string | Sender type. Possible values are ADMIN, HIVE_SYSTEM, PROJECT_SYSTEM, and USER. |
data.mail.senderId | string | Sender identifier. |
data.mail.senderDisplayName | string | Sender display name stored at the time of sending. Maximum 100 characters. |
data.mail.recipientScope | string | Recipient scope. Possible values are BROADCAST and DIRECT. |
data.mail.recipientPlayerIds | array(integer(int64)) | List of Player IDs the mail was sent to. |
data.mail.title | string | Mail subject. |
data.mail.body | string | Mail body. Maximum 1,000 characters. |
data.mail.language | string | Default language code for the mail. See Supported language codes. |
data.mail.mailExtension | string or null | App-defined string for additional mail data. The mailbox server does not interpret this value. |
data.mail.expiresAt | string(date-time) | Mail expiration timestamp. |
data.mail.mailStatus | string | Current mail status. Possible values are ACTIVE, REVOKED, and EXPIRED. |
data.mail.closedAt | string(date-time) or null | Timestamp when the mail status changed due to recall or expiration. Returns null for active mail. |
data.mail.createdAt | string(date-time) | Timestamp when the data was created. |
data.mail.attachments | array(object) or null | Data for the attachments associated with the mail. |
Nested success response object data.mail.attachments[]
| Field | Type | Description |
|---|---|---|
mailId | string(uuid) | Original mail ID. |
quantity | integer(int32) | Attachment quantity. |
attachmentType | string | Game-defined attachment data type. |
referenceId | string | Identifier for attachment data managed by the game. |
createdAt | string(date-time) | Timestamp when the data was created. |
Response example
{
"data": {
"mailRecipientId": "0196f7c4-0c71-72b8-a921-a765dd574669",
"mail": {
"mailId": "0196f7c3-8b2e-7f4d-a123-9c8d7e6f5a4b",
"mailCategory": "DEFAULT",
"mailContentType": "ATTACHMENT",
"senderType": "PROJECT_SYSTEM",
"senderId": "sender-example",
"senderDisplayName": "이벤트 운영팀",
"recipientScope": "DIRECT",
"title": "이벤트 보상",
"body": "이벤트에 참여해 주셔서 감사합니다.",
"language": "ko",
"mailExtension": null,
"expiresAt": "2026-11-30T09:00:00Z",
"mailStatus": "ACTIVE",
"closedAt": null,
"createdAt": "2026-11-21T09:00:00Z",
"attachments": [
{
"mailId": "0196f7c3-8b2e-7f4d-a123-9c8d7e6f5a4b",
"attachmentType": "ITEM",
"referenceId": "ITEM-100123",
"quantity": 1,
"createdAt": "2026-11-21T09:00:00Z"
}
]
},
"recipientPlayerId": 1001,
"deliveredAt": "2026-11-21T09:00:01Z",
"textReadAt": null,
"attachmentReadAt": null,
"expiresAt": "2026-11-30T09:00:00Z"
},
"meta": null
}
Response status
| Status | Content type | Meaning | Response headers | Response body or action |
|---|---|---|---|---|
200 | application/json | Received mail retrieved | - | data contains the original mail details and recipient-specific status. |
400 | application/problem+json | Invalid request value or missing required input | - | Check code and errors for the reason. |
500 | application/problem+json | Internal server error | - | Check detail in the error response. |
Mark mail as read
POST /mailbox/v1/mails/received/{mailRecipientId}/mark-as-read
Marks the body or attachments of received mail as read. Set target to TEXT for the body, ATTACHMENT for attachments, or ALL for both. Repeated requests for the same target preserve the original read timestamp.
The attachment read timestamp records the mail status. Validate and fulfill any attachments on your app server.
Request parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
X-App-Id | header | — | true | App ID that identifies the app. |
X-Platform | header | — | false | Client platform. |
X-SDK-Version | header | — | false | Client SDK version. |
X-OS-Version | header | — | false | Client operating system version. |
Accept-Language | header | — | false | Client language setting. |
traceparent | header | — | false | W3C Trace Context header. |
User-Agent | header | — | false | Client information. |
mailRecipientId | path | string | true | Received mail ID assigned to the recipient in uuid format. |
| Body | body | MarkMailRequest | true | JSON request body. |
MarkMailRequest request body
| Field | Type | Required | Description |
|---|---|---|---|
target | string | true | What to mark as read. Use TEXT for the body, ATTACHMENT for attachments, or ALL for both. |
Request example
Response
For common response formats, see Success responses and Error handling.
Success response data object
| Field | Type | Description |
|---|---|---|
data.mailRecipientId | string(uuid) | Received mail ID assigned to the recipient. |
data.textReadAt | string(date-time) or null | Timestamp when the body was first marked as read. Returns null if it has never been marked as read. |
data.attachmentReadAt | string(date-time) or null | Timestamp when the attachments were first marked as read. Returns null if they have never been marked as read. |
Response example
Response status
| Status | Content type | Meaning | Response headers | Response body or action |
|---|---|---|---|---|
200 | application/json | Mail marked as read | - | data contains the received mail ID and the read timestamps for the body and attachments. |
400 | application/problem+json | Invalid request value or missing required input | - | Check code and errors for the reason. |
500 | application/problem+json | Internal server error | - | Check detail in the error response. |
Delete received mail
DELETE /mailbox/v1/mails/received/{mailRecipientId}
Marks mail in the recipient's mailbox as deleted. You can also delete expired mail. The response contains the received mail ID, the original mail ID, and the deletion timestamp.
Request parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
mailRecipientId | path | string | true | Received mail ID assigned to the recipient in uuid format. |
Request example
Response
For common response formats, see Success responses and Error handling.
Success response data object
| Field | Type | Description |
|---|---|---|
data.mailRecipientId | string(uuid) | Received mail ID assigned to the recipient. |
data.mailId | string(uuid) | Original mail ID. |
data.deletedAt | string(date-time) | Deletion timestamp. |
Response example
Response status
| Status | Content type | Meaning | Response headers | Response body or action |
|---|---|---|---|---|
200 | application/json | Received mail deleted | - | data contains the received mail ID, original mail ID, and deletion timestamp. |
400 | application/problem+json | Invalid request value or missing required input | - | Check code and errors for the reason. |
500 | application/problem+json | Internal server error | - | Check detail in the error response. |
Error handling
Error responses use application/problem+json. For definitions of the common fields type, title, status, detail, instance, and code, see Hive Axyl Server API error handling. If the response contains an errors array, check each item's field for the field name and message for the reason it failed. The type of a mailbox-specific error begins with /errors/mailbox/ and the error includes an outcome field whose value is an object or null.
| HTTP status | Code | Applies when | Action |
|---|---|---|---|
400 | bad_request | The send request is invalid | Check the request body and sending requirements. |
400 | invalid_parameter | A request parameter is invalid | Check parameter values and types. |
400 | missing_field | A required field or header is missing | Check the required inputs for the API. |
500 | internal_error | An internal server error occurred | Check the details in the response body. |