Create Contact
POSThttps://api.tinyemail.com/v1/contacts
Create a new contact list with members in it
Request
- application/json
Body
required
name stringrequired
members object[]
Responses
- 200
- 400
- 401
- 405
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
id uuid
{
"id": "00000000-0000-0000-0000-000000000000"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "Some error message"
}
API key is missing or invalid
Method Not Allowed
Authorization: X-API-KEY
name: X-API-KEYtype: apiKeyin: headerdescription: To obtain API-KEY, please contact our customer support by email support@tinyemail.com or directly by chat.
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://api.tinyemail.com/v1/contacts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-API-KEY: <API_KEY_VALUE>' \
--data-raw '{
"name": "my contacts",
"members": [
{
"email": "test@tinyemail.com",
"firstName": "John",
"lastName": "Doe",
"source": "sales_force",
"birthday": "04/23/1946",
"tags": [
"string"
],
"currency": "SOS",
"country": "Argentina",
"province": "Massachusetts",
"city": "Burnsville",
"address1": "31641 Candace Locks",
"address2": "Apt. 452",
"phone": "(123) 456-7890",
"postalCode": "87774",
"company": "Bode Inc",
"lastPurchaseOrder": "Super Bike",
"lastPurchasePrice": "3500",
"latestOrderId": "Order#50993961"
}
]
}'
ResponseClear