Docs
API · contacts

Resubscribe a contact

A convenience flip that opts a contact back in: sets subscribed to true and clears unsubscribedAt.

POST/v1/contacts/{id}/resubscribe

01 Path parameters

idstringRequired
The contact id to opt back in.

This endpoint takes no request body.

Only with explicit consentRe-subscribing flips an app-level flag, but it does not give you permission to email someone who asked to stop. Re-subscribe only when the contact has explicitly opted back in.

02 Request

curl -X POST https://api.drin.run/v1/contacts/ct_7Yh2Lp/resubscribe \
  -H "Authorization: Bearer $DRIN_API_KEY"

03 Response

Returns 200 OK with the contact, now showing subscribed: true and unsubscribedAt: null. The call is idempotent. An unknown id returns 404 not_found.

200 OK
{
  "id": "ct_7Yh2Lp",
  "email": "ada@example.com",
  "firstName": "Ada",
  "lastName": "Lovelace",
  "subscribed": true,
  "unsubscribedAt": null,
  "metadata": { "plan": "pro" },
  "createdAt": "2026-06-02T17:30:00.000Z",
  "updatedAt": "2026-06-02T18:20:05.000Z"
}