/v1/workspaces/{workspace_id}/test-senderAuthGet 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 · uuidId of the workspace.
Response · 200
active*booleanTrue 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*booleanTrue when the test sender could send for this workspace (not switched off), whether or not the workspace needs it.
Example: true
has_verified_sender*booleanTrue when the workspace has a default sender on a domain that sends; the test sender is then not used.
Example: false
address*string · emailThe test sender address.
Example: "test@sandbox.productcraft.co"
members_only*booleanAlways 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*integerMost emails the test sender sends for this workspace in 24 hours.
Example: 100
used_today*integerEmails it sent for this workspace in the current 24-hour window.
Example: 3
unavailable_reason*objectWhy 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-timeWhen 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_TOKENResponse
{
"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
}