PATCH /integrations/email
Updated Oct 1, 20261 minute read
Switch email support
Turning it on for the first time issues the workspace its address, so this can fail on a slug somebody else's address was already minted from. Mail sent there becomes conversations in the inbox.
Part of Integrations.
Request body
application/json, required.
| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Yes |
Responses
| Status | Description |
|---|---|
200 | The address, and whether it is taking mail. |
400 | The request is malformed, and the message names the field. |
401 | The bearer token is missing, revoked, or expired. |
429 | Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits. |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
address | string | No | |
enabled | boolean | No |
Example request
curl -X PATCH https://api.median.sh/v1/integrations/email \
-H "Authorization: Bearer $BEARER_AUTH"