GTM - Newsletter

Subscribe

Public signup endpoint. Writes to local DB AND Beehiiv.

Idempotent — if email exists and was unsubscribed, reactivates. If active, returns existing.

post/api/v1/gtm/newsletter/subscribe

Request

  • Base URL: https://api.gemstoneaiapp.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.gemstoneaiapp.com/api/v1/gtm/newsletter/subscribe
  • Auth: none declared

Headers

x-admin-keystring nullable

Request body

emailstring email required
first_namestring nullable
last_namestring nullable
company_namestring nullable
sourcestring
segmentsstring[] nullable
utm_sourcestring nullable
utm_mediumstring nullable
utm_campaignstring nullable
referring_sitestring nullable

Response

Successful Response

idinteger required
emailstring required
statusstring required
beehiiv_idstring nullable
created_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.