Create a contact on Peach
POST
/subscribers
contacts
Request
Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Body Params application/json
name
string
optional
Example:
Alfred Hitchcock
email
string
optional
Example:
alfred@example.com
phone_number
string
required
Example:
+19019019191 or +919876543210
Example
{
"name": "Alfred Hitchcock",
"email": "alfred@example.com",
"phone_number": "+19019019191 or +919876543210"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/subscribers' \
--header 'Content-Type: application/json' \
--header 'Authorization;' \
--data-raw '{
"name": "Alfred Hitchcock",
"email": "alfred@example.com",
"phone_number": "+19019019191 or +919876543210"
}'
Responses
🟢201Created
application/json
Body
name
string
optional
Example:
Alfred Hitchcock
email
string
optional
Example:
alfred@example.com
phone_number
string
required
Example:
+19019019191 or +919876543210
Example
{
"name": "Alfred Hitchcock",
"email": "alfred@example.com",
"phone_number": "+19019019191 or +919876543210"
}
🟠422Parameter Error