cURL
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>" }
Add a single subscriber. Requires API key with AUDIENCE_WRITE.
JWT Bearer token authentication. Use 'Authorization: Bearer ' where the JWT token is obtained from the login endpoint.
Subscriber created
Show child attributes
active
unsubscribed
bounced
complained
Was this page helpful?