Skip to main content
POST
/
v1
/
subscribers
Add Subscriber
curl --request POST \
  --url https://api.migma.ai/v1/subscribers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "projectId": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "country": "<string>",
  "language": "<string>",
  "tags": [
    "<string>"
  ],
  "customFields": {}
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "email": "[email protected]",
    "firstName": "<string>",
    "lastName": "<string>",
    "country": "<string>",
    "language": "<string>",
    "tags": [
      "<string>"
    ],
    "customFields": {},
    "status": "active",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use 'Authorization: Bearer ' where the JWT token is obtained from the login endpoint.

Body

application/json
email
string<email>
required
projectId
string
required
firstName
string
lastName
string
country
string
language
string
tags
string[]
customFields
object

Response

Subscriber created

success
boolean
required
data
object
error
string | null