SendLit logoSendLit Docs
API ReferenceContacts

Create a contact

Creates a contact (subscriber). If a contact with the same email already exists for this team, the existing contact is returned.

POST
/contacts

Creates a contact (subscriber). If a contact with the same email already exists for this team, the existing contact is returned.

x-sendlit-apikey<token>

In: header

Request Body

application/json

Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://api.sendlit.dev/contacts" \  -H "Content-Type: application/json" \  -d '{    "email": "user@example.com"  }'
{
  "contactId": "string",
  "email": "string",
  "name": "string",
  "subscribed": true,
  "customFields": {},
  "tags": [
    "string"
  ],
  "unsubscribeToken": "string",
  "createdAt": "string",
  "updatedAt": "string"
}