Skip to content

Sign a reader up for a magnet from your server

On this page
POST/v1/magnets/{magnet_id}/signupscreate_magnet_signup
Riskwrite
AuthenticationAPI key or OAuth access token
Scopesmagnets:write
Idempotencysupported: send an Idempotency-Key header to make retries safe
Dry runyes: add dry_run=true to the query
Success status200
Response typeapplication/json

What it does#

  • Use when: Your site or checkout collects an address for a magnet; the reader confirms by email.
  • Do not use when: the reader is not present to consent, or you exceed 60 calls an hour per key.
  • Side effects: Creates a pending subscriber; Queues one confirmation email; Counts toward the monthly sign-up cap.
  • Reversible: Yes, call unsubscribe_subscriber.
  • Required scope: magnets:write.
  • Idempotency: supported (Idempotency-Key header).
  • Typical next step: call list_magnet_claims later to see confirmation.

Scopes#

  • magnets:write: Sign a reader up for a magnet from your own server.

Side effects#

  • Creates a pending subscriber
  • Queues one confirmation email
  • Counts toward the monthly sign-up cap

Request#

Path parameters#

FieldTypeDescription
magnet_idstring

Query parameters#

None.

Every mutation also accepts dry_run=true: it runs every check and returns {"dry_run": true, "would": {...}} without writing anything.

Body (application/json)#

FieldTypeRequiredDescription
emailstring, max 254 charactersyes
namestring, max 400 charactersno

Response#

FieldTypeRequiredDescription
statusone of "confirmation_sent", "confirmation_pending"yes
claim_idstringyes
subscriber_idstringyes
messagestringyes

Examples#

signup#

Request:

curl -X POST 'https://api.seemly.com/v1/magnets/mag_0123456789abcdefghjkmnpq/signups' \
  -H "Authorization: Bearer $SEEMLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "[email protected]",
  "name": "Sam"
}'

Response: 200:

JSON
{
  "status": "confirmation_sent",
  "claim_id": "clm_0123456789abcdefghjkmnpq",
  "subscriber_id": "sub_0123456789abcdefghjkmnpq",
  "message": "A confirmation email is on its way. The reader is not on your list until they confirm."
}

Errors#

Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.

Typical next steps#

View this page as MarkdownReport a problem with this page

Type to search. Try a method and path, an operation name or an error code.