IMPLEMENTATION

API Authentication

API Documentation

API Authentication

Header Key: Authorization
Header Value: Bearer

To Add a Contact

Endpoint: POST https://sw.onramplab.com/api/contacts
Content-Type: JSON

Accepted Fields

first_name: optional
last_name: optional
email: required (at least 1 of either email or phone is required)
phone: required (at least 1 of either email or phone is required)
address: optional
city: optional
state: optional
zipcode: optional
utm_medium: optional
utm_source: optional
utm_campaign: optional
utm_content: optional
utm_term: optional
utm_placement: optional
batch_id: optional

Sample Request:

{"first_name": "Anakin",
"last_name": "Skywalker",
"email": "[email protected]",
"phone": "1112223333",
"city": "Los Angeles",
"state": "CA",
"zipcode": "90001",
"address": "100 Corusant Blvd.",
"utm_medium": "stormtroopers",
"utm_source": "the_emperor",
"utm_campaign": "order_66",
"utm_content": "execute",
"utm_term": "jedi",
"utm_placement": "the_galaxy",
"custom": {
      "meesa": "jar jar binks",
       "anything": "goes here",
       "use": "freely"}}

Sample Request:

{"first_name": "Anakin",
"last_name": "Skywalker",
"email": "[email protected]",
"phone": "1112223333",
"city": "Los Angeles",
"state": "CA",
"zipcode": "90001",
"address": "100 Corusant Blvd.",
"utm_medium": "stormtroopers",
"utm_source": "the_emperor",
"utm_campaign": "order_66",
"utm_content": "execute",
"utm_term": "jedi",
"utm_placement": "the_galaxy",
"custom": {
      "meesa": "jar jar binks",
       "anything": "goes here",
       "use": "freely"}}