Skip to main content
POST
/
v1
/
contacts
cURL
curl --request POST \
  --url https://api.transmit.dev/v1/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jsmith@example.com",
  "phone_number": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "email_subscribed": true,
  "sms_subscribed": true
}'
{
  "id": "<string>",
  "email": "jsmith@example.com",
  "phone_number": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "email_subscribed": true,
  "sms_subscribed": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Enter your API key with 'tx_' prefix. Get your API key from the dashboard.

Body

application/json
email
string<email>
phone_number
string
first_name
string
last_name
string
email_subscribed
boolean
sms_subscribed
boolean

Response

Contact created successfully

id
string
required

Contact ID

email_subscribed
boolean
required

Email subscription status

sms_subscribed
boolean
required

SMS subscription status

created_at
string<date-time>
required

Creation timestamp

updated_at
string<date-time>
required

Last update timestamp

email
string<email>

Contact email address

phone_number
string

Contact phone number

first_name
string

First name

last_name
string

Last name

⌘I