Mail API reference

Mail API · Test-Sender

get/v1/workspaces/{workspace_id}/test-senderAuth

Get the test sender status

Whether this workspace's email goes out from the shared ProductCraft test sender (`test@sandbox.productcraft.co`): used while the workspace has no default sender on a verified domain. It delivers only to the verified addresses of the workspace's members, at most `daily_cap` emails a day, and switches itself off for the workspace after any bounce or spam complaint. Changes nothing.

Path parameters

workspace_id*string · uuid

Id of the workspace.

Response · 200

active*boolean

True when the test sender sends this workspace's email that names no `from` right now: it is available and the workspace has no default sender on a verified domain. Auth, Waitlist and Notify email then go out from it, to workspace members only.

Example: true

available*boolean

True when the test sender could send for this workspace (not switched off), whether or not the workspace needs it.

Example: true

has_verified_sender*boolean

True when the workspace has a default sender on a domain that sends; the test sender is then not used.

Example: false

address*string · email

The test sender address.

Example: "test@sandbox.productcraft.co"

members_only*boolean

Always true: the test sender only delivers to the verified addresses of the workspace's members. Any other recipient is refused with 422 `test_sender_recipient_not_allowed`.

Example: true

daily_cap*integer

Most emails the test sender sends for this workspace in 24 hours.

Example: 100

used_today*integer

Emails it sent for this workspace in the current 24-hour window.

Example: 3

unavailable_reason*object

Why it cannot send, or null. `off`: not offered on this deployment. `disabled_globally`: paused for every workspace. `disabled_after_bounce` / `disabled_after_complaint`: switched off for this workspace after a bounce or a spam complaint (contact support, or verify a domain). `disabled_by_staff`.

Example: null

disabled_at*string · date-time

When it was switched off for this workspace; null while it is on.

Example: null

Example

Request

GET https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/test-sender
Authorization: Bearer YOUR_TOKEN

Response

{
  "active": true,
  "available": true,
  "has_verified_sender": false,
  "address": "test@sandbox.productcraft.co",
  "members_only": true,
  "daily_cap": 100,
  "used_today": 3,
  "unavailable_reason": null,
  "disabled_at": null
}