curl --request POST \
--url https://api.bizzyco.ai/v1/email-opt-ins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"capturedOn": "2026-09-01",
"evidence": "https://example.com/newsletter-signup"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '[email protected]',
capturedOn: '2026-09-01',
evidence: 'https://example.com/newsletter-signup'
})
};
fetch('https://api.bizzyco.ai/v1/email-opt-ins', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bizzyco.ai/v1/email-opt-ins"
payload = {
"email": "[email protected]",
"capturedOn": "2026-09-01",
"evidence": "https://example.com/newsletter-signup"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bizzyco.ai/v1/email-opt-ins"
payload := strings.NewReader("{\n \"email\": \"[email protected]\",\n \"capturedOn\": \"2026-09-01\",\n \"evidence\": \"https://example.com/newsletter-signup\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"basis": "express_consent",
"source": "web_form",
"capturedOn": "2023-12-25",
"evidence": "<string>",
"createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"withdrawnAt": "2023-11-07T05:31:56Z",
"withdrawnByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"meta": {
"pagination": {
"limit": 123,
"offset": 123,
"hasMore": true,
"total": 123
}
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}Record email opt-in
Record that a recipient agreed to receive your marketing email. Marketing email reaches only addresses with a live opt-in, and an address that unsubscribed stays unsubscribed whatever you record here. Records are never edited or deleted: an address can have one live opt-in at a time, so a second one for the same address returns 409 with code EMAIL_OPT_IN_EXISTS. To replace a record, withdraw it and record a new one.
curl --request POST \
--url https://api.bizzyco.ai/v1/email-opt-ins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"capturedOn": "2026-09-01",
"evidence": "https://example.com/newsletter-signup"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '[email protected]',
capturedOn: '2026-09-01',
evidence: 'https://example.com/newsletter-signup'
})
};
fetch('https://api.bizzyco.ai/v1/email-opt-ins', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bizzyco.ai/v1/email-opt-ins"
payload = {
"email": "[email protected]",
"capturedOn": "2026-09-01",
"evidence": "https://example.com/newsletter-signup"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bizzyco.ai/v1/email-opt-ins"
payload := strings.NewReader("{\n \"email\": \"[email protected]\",\n \"capturedOn\": \"2026-09-01\",\n \"evidence\": \"https://example.com/newsletter-signup\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"basis": "express_consent",
"source": "web_form",
"capturedOn": "2023-12-25",
"evidence": "<string>",
"createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"withdrawnAt": "2023-11-07T05:31:56Z",
"withdrawnByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"meta": {
"pagination": {
"limit": 123,
"offset": 123,
"hasMore": true,
"total": 123
}
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": "<unknown>"
}
}Authorizations
API key authentication via Bearer token
Headers
Key that makes this request safe to retry. Reuse the same value when retrying a request that may already have succeeded — the original response is replayed with an Idempotency-Replay: true header. Use a new value for a new operation.
1 - 255"9f8c2b1a-4d3e-4a6b-8c1d-2e3f4a5b6c7d"
Body
The recipient address
How the recipient agreed: express_consent means they said yes to marketing email (a ticked box, a spoken or written yes); confirmed_opt_in means they then also confirmed it by email (double opt-in). A purchased, scraped or cold-outreach address qualifies under neither.
express_consent, confirmed_opt_in Where the recipient agreed: web_form (a website sign-up form), checkout (checkout or booking), in_person, phone (a phone call), email (an email from the recipient), paper_form, or other.
web_form, checkout, in_person, phone, email, paper_form, other The date the recipient agreed (YYYY-MM-DD), in their own calendar. It can be long before you record it, but not in the future.
"2026-09-01"
Where the proof of this opt-in is kept: a form URL, a signed-sheet reference, a booking or order ID. Required, up to 1000 characters.
1 - 1000"https://example.com/newsletter-signup"