API Documentation
Integrate StoneShot data with your website, CRM, CMS and much more to implement smarter marketing strategies and give your clients a personalised experience. Here is everything you need to get started.
Getting started
Authentication
The StoneShot API currently supports authentication via an API Key using basic HTTP Authentication. You can generate your API key from the Integrations page when logged into your StoneShot account. When making an API request you will provide your API key (Base64 encoded) as the password, the username value can be left empty as it is not used for authentication.
To quickly test calls to the API with your API key, you can use a tool such as cURL via the command line. You’ll find cURL examples for each method in the following guide. Here’s an example of a cURL request to the ping endpoint to check the current status of the API.
curl -L -X GET \
"https://api.stoneshot.com/v1/ping" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Requests
Requests to the StoneShot API are formed based on a number of rules and parameters. Full details of the supported parameters for each request are detailed in the documentation below. Here is a description of each of the key pieces that make up a request to the API.
Root
All requests to the StoneShot API will stem from the API root:
https://api.stoneshot.com/v1/
Path parameters
Path parameters are required when targeting a specific record, here’s an example of a request endpoint to retrieve a specific list, in this case [list_id] is the path parameter.
https://api.stoneshot.com/v1/lists/[list_id]
Query parameters
Query parameters are used in requests to the API to restrict the properties returned in a given request by explicitly including those fields as part of the ‘select’ query parameter. By default the common fields will be returned as part of any request, the ‘select’ query parameter can be included if the defaults do not cover your needs. A ‘select’ query string should be included for each field required.
Here’s an example of the ‘select’ query parameter being used to only bring back the name field when retrieving all lists.
https://api.stoneshot.com/v1/lists?select=name
Query parameters can also be used to filter, sort and limit results. Examples of using these query parameters can be found within each request detail in the following documentation. Here’s an example of a request to get no more than 50 lists with ‘StoneShot’ in the name sorted by most recently created.
https://api.stoneshot.com/v1/lists?name=stoneshot&count=50&sort_by=-create_date_utc
Body parameters
Body parameters are often required for POST and PATCH requests to the StoneShot API. The body of the request should be in JSON format, examples of body parameters can be found in the cURL snippets for each of the requests in the following documentation. Here’s a short example of the body required to create a new static list.
{
"name": "StoneShot API List",
"tags":[
{
"name": "api"
}
],
"teams":[
{
"name": "StoneShot"
}
]
}
Responses
API responses are served in JSON (JavaScript Object Notation) format. This includes both success and error responses.
Example responses are given for each request in the following documentation.
Response status codes
Each request to the API will return a response partnered by a HTTP status code representing the status of the request. A successful request will return a HTTP Status 200 response and the relevant response object. For example when creating a list via the API, on successful create you will receive a HTTP status 200 and the newly created list object in the response.
Requests that fail will return the relevant HTTP status code along with a custom response code and message which will provide more detail on the error itself. Here’s an example of an error returned when an invalid API key is offered.
{
"code": 104,
"message": "Invalid key"
}
Rate limiting
The StoneShot API endpoints are subject to rate limiting based on the number of requests over a period of time. The default rate is limit 10,000 requests every 60 minutes.
Requests made to the API once the limit has been reached, will return a response such as below, the response headers will include additional information on the your rate limit and the time at which it is reset. If you find that you are regularly hitting the limit, please contact StoneShot support to discuss your options.
X-Rate-Limit-Limit: 10000
X-Rate-Limit-Remaining: 0
X-Rate-Limit-Reset: "17/01/2020 17:43:25"
{
"code": 114,
"message": "Too many requests in time frame; check RateLimit headers"
}
Contact matching
A number of the API requests will involve retrieving or updating an existing contact record. The API supports a number of individual StoneShot fields in order to determine which contact to match on, these fields being:
- Member Url Id
- StoneShot Contact Id
- CRM ID (SalesforceId, Microsoft Dynamics Id, Siebel Id or Unique User Id)
- Email Address (Cannot be used as a path parameter)
When one of the seven identifiers is required in a request to the API, it should be passed through using the ‘identifier’ keyword. The matching criteria will then be determined automatically as part of the request.
Campaigns
Retrieve your contacts who have been sent a campaign or send a campaign to your contacts.
Get campaigns
More
Less
Retrieve campaigns associated with your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/campaigns" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"campaigns": [
{
"campaign_id": 0,
"name": "string",
"date_sent_utc": "2019-06-13T15:00:45Z",
"sends": 0,
"total_opens": 0,
"total_clicks": 0,
"bounces": 0,
"reach": 0,
"opt-outs": 0,
"open_rate_%": 0.0,
"click_rate_%": 0.0,
"click_to_open_rate_%": 0.0,
"delivery_rate_%": 0.0,
"last_open_or_click_date_utc": "2019-06-13T15:00:45Z",
"tags": [
{
"name": "string"
}
],
"communication_type": "string",
"audience": "string",
"is_ab": bool
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get campaign
More
Less
Get information for a specific campaign in your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/campaigns/[campaign_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"campaign": [
{
"campaign_id": 0,
"name": "string",
"date_sent_utc": "2019-06-13T15:00:45Z",
"sends": 0,
"total_opens": 0,
"total_clicks": 0,
"bounces": 0,
"reach": 0,
"opt-outs": 0,
"open_rate_%": 0.0,
"click_rate_%": 0.0,
"click_to_open_rate_%": 0.0,
"delivery_rate_%": 0.0,
"last_open_or_click_date_utc": "2019-06-13T15:00:45Z",
"tags": [
{
"name": "string"
}
],
"communication_type": "string",
"audience": "string",
"is_ab": bool
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Get campaign contacts
More
Less
Get contacts who have been sent a specified campaign.
Path parameters
Query parameters
custom_fields.valuecustom_fields.custom_field.custom_field_idcustom_fields.custom_field.namecustom_fields.custom_field.display_namecontact_guid
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/campaigns/[campaign_id]/contacts" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"contacts": [
{
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2019-06-13T15:00:45Z",
"last_active_utc": "2020-08-06T15:03:10Z"
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get campaign sends
More
Less
Get sends for a specified campaign.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/campaigns/[campaign_id]/sends" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"sends": [
{
"send_date_utc": "2019-06-13T15:00:45Z",
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2020-10-07T19:03:11Z",
"last_active_utc": "2020-12-22T16:29:30Z"
}
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get campaign opens
More
Less
Get opens for a specified campaign.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/campaigns/[campaign_id]/opens" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"opens": [
{
"open_date_utc": "2019-06-13T15:00:45Z",
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2020-10-07T19:03:11Z",
"last_active_utc": "2020-12-22T16:29:30Z"
}
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get campaign opens for a specific contact
More
Less
Get opens for a contact in a specified campaign.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/campaigns/[campaign_id]/opens/contacts/[identifier]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2017-05-17T11:09:07Z",
"last_active_utc": "2021-01-05T15:24:14Z",
"opens": [
{
"open_date_utc": "2020-12-03T15:40:26Z",
"device": {
"name": "string",
"type": "string"
}
}
]
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Get campaign clicks
More
Less
Get clicks for a specified campaign.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/campaigns/[campaign_id]/clicks" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"clicks": [
{
"click_date_utc": "2019-06-13T15:00:45Z",
"url": "string",
"device": {
"name": "string",
"type": "string"
},
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2020-10-07T19:03:11Z",
"last_active_utc": "2020-12-22T16:29:30Z"
}
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get campaign clicks for a specific contact
More
Less
Get clicks for a contact in a specified campaign.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/campaigns/[campaign_id]/clicks/contacts/[identifier]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2017-05-17T11:09:07Z",
"last_active_utc": "2021-01-05T15:24:14Z",
"clicks": [
{
"click_date_utc": "2020-12-03T15:40:26Z",
"url": "string",
"device": {
"name": "string",
"type": "string"
}
}
]
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Get campaign links
More
Less
Get links for a specified campaign.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/campaigns/[campaign_id]/links" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"links": [
{
"link_id": 0,
"url": "string",
"tracked_url": "string",
"type": "string",
"total_clicks": 0,
"unique_clicks": 0
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get campaign unsubscribes
More
Less
Get unsubscribes for a specified campaign.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/campaigns/[campaign_id]/unsubscribes" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"unsubscribes": [
{
"unsubscribe_date_utc": "2019-06-13T15:00:45Z",
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2020-10-07T19:03:11Z",
"last_active_utc": "2020-12-22T16:29:30Z"
}
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Add contact to campaign
More
Less
Send a contact an email by adding them to an existing campaign using any of the unique contact ids.
Path parameters
Body parameters
cURL example
curl -L -X PATCH \
"https://api.stoneshot.com/v1/campaigns/[campaign_id]/contacts"
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-d '{"email": "string"}'
Success response
{
"contacts": [
{
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2019-06-13T15:00:45Z",
"last_active_utc": "2020-08-06T15:03:10Z"
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Contacts
Retrieve your StoneShot contacts information, create or update contacts and more.
Get contacts
More
Less
Retrieve contacts associated with your account.
Request parameters
custom_fields.valuecustom_fields.custom_field.custom_field_idcustom_fields.custom_field.namecustom_fields.custom_field.display_namecontact_guidlast_active_utclast_update_date_utc
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/contacts" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"contacts": [
{
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2020-01-09T15:12:17Z"
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Create contact
More
Less
Create a new contact against your account.
Body parameters
cURL example
curl -L -X POST \
"https://api.stoneshot.com/v1/contacts" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-d '{"email": "string", "first_name": "string", "last_name": "string", "segmentations": [{ "segmentation_id": integer, "segment_id": integer }], "email_preferences": [{ "segmentation_id": integer, "segment_id": integer }], "events": [{ "segmentation_id": integer, "segment_id": integer }] , "document_preferences": [{ "segmentation_id": integer, "segment_id": integer }], "content_preferences": [{ "tag_id": integer }], "custom_fields": [{ "custom_field_id": integer, "value": "string" }]}'
Success response
{
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2020-01-09T15:12:17Z",
"last_active_utc": "2020-01-09T15:12:17Z"
}
}
Error response
{
"code": "119",
"message": "Invalid email address"
}
Get contact
More
Less
Get information for a specific contact record in your account.
Path parameters
Request parameters
custom_fields.valuecustom_fields.custom_field.custom_field_idcustom_fields.custom_field.namecustom_fields.custom_field.display_namecontact_guidlast_update_date_utc
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/contacts/[identifier]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2020-01-09T15:12:17Z",
"last_active_utc": "2020-01-09T15:12:17Z"
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Update contact
More
Less
Update a contact record in your account.
Path parameters
Body parameters
cURL example
curl -L -X PATCH \
"https://api.stoneshot.com/v1/contacts/[identifier]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-d '{"email": "string", "first_name": "string", "last_name": "string", "segmentations": [{ "segmentation_id": integer, "segment_id": integer }], "email_preferences": [{ "segmentation_id": integer, "segment_id": integer }], "events": [{ "segmentation_id": integer, "segment_id": integer }] , "document_preferences": [{ "segmentation_id": integer, "segment_id": integer }], "content_preferences": [{ "tag_id": integer }], "custom_fields": [{ "custom_field_id": integer, "value": "string" }]}'
Success response
{
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2020-01-09T15:12:17Z",
"last_active_utc": "2020-01-09T15:12:17Z"
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Create or Update contact
More
Less
Create a new contact against your account, or update if that contact already exists, based on email address.
Body parameters
cURL example
curl -L -X POST \
"https://api.stoneshot.com/v1/contacts/createOrUpdate" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-d '{"email": "string", "first_name": "string", "last_name": "string", "segmentations": [{ "segmentation_id": integer, "segment_id": integer }], "email_preferences": [{ "segmentation_id": integer, "segment_id": integer }], "events": [{ "segmentation_id": integer, "segment_id": integer }] , "document_preferences": [{ "segmentation_id": integer, "segment_id": integer }], "content_preferences": [{ "tag_id": integer }], "custom_fields": [{ "custom_field_id": integer, "value": "string" }]}'
Success response
{
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2020-01-09T15:12:17Z",
"last_active_utc": "2020-01-09T15:12:17Z"
}
}
Error response
{
"code": "119",
"message": "Invalid email address"
}
Get contact campaign activity
More
Less
Retrieve all historic campaign activity for a contact associated with your account.
Path parameters
Request parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/campaigns/activity/contacts/[identifier]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"contact": [
{
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2020-01-09T15:12:17Z",
"last_active_utc": "2020-01-09T15:12:17Z",
"campaign_activity": [
{
"activity_date_utc": "2020-01-09T15:12:17Z",
"type": "string",
"campaign": {
"campaign_id": 0,
"name": "string"
}
}
]
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Content distribution system
Your StoneShot content preferences, used for managing contact content preferences.
Get content preferences
More
Less
Retrieve all content preferences against your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/content-preferences" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"content_preferences": [
{
"content_tag_id": 0,
"display_order": 0,
"tag": {
"tag_id": 0,
"name": "string"
}
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get content preference
More
Less
Get information for a specific content preference in your account.
Path parameters
Request parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/content-preferences/[content_tag_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"content_preference": {
"content_tag_id": 0,
"display_order": 0,
"tag": {
"tag_id": 0,
"name": "string"
}
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Update content preference
More
Less
Update a content tag preference in your account.
Path parameters
Body parameters
cURL example
curl -L -X PATCH \
"https://api.stoneshot.com/v1/content-preferences/[content_tag_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-d '{"name": "string"}'
Success response
{
"content_preference": {
"content_tag_id": 0,
"display_order": 0,
"tag": {
"tag_id": 0,
"name": "string"
}
}
}
Error response
{
"code": "122",
"message": "That record already exists"
}
Contact custom fields
Your StoneShot contact custom fields, used for storing custom contact information.
Get contact custom fields
More
Less
Retrieve all contact custom fields against your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/custom-fields" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"custom_fields": [
{
"custom_field_id": 0,
"name": "string",
"display_name": "string",
"display_order": 0,
"created_at_utc": "2020-01-17:43:25Z"
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Document distribution system
Your StoneShot fund document preferences, used for managing contact fund document preferences.
Get document preferences
More
Less
Retrieve all document preferences against your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/document-preferences" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"document_preferences": [
{
"document_fund_id": 2510,
"name": "PAICR_2018",
"url": null,
"subscribed_id": null,
"unsubscribed_id": null,
"last_updated_utc": "2018-09-27T15:27:25Z",
"range": null,
"documents": [
{
"document_id": 11446,
"name": "StoneShot_MA-TheGood-TheBad-TheUgly_BOSTON",
"url": "",
"last_updated_utc": "2018-09-27T15:26:38Z",
"external_id": null,
"subscribed_id": 457506,
"unsubscribed_id": 457507
}
]
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Email preferences
Your StoneShot email preferences, used for managing contact preferences.
Get email preferences
More
Less
Retrieve all email preferences against your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/email-preferences" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"email_preferences": [
{
"segmentation_id": 0,
"name": "string",
"display_order": 0,
"segments": [
{
"segment_id": 0,
"name": "string",
"display_order": 0
},
{
"segment_id": 0,
"name": "string",
"display_order": 0
}
]
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get email preference
More
Less
Get information for a specific email preference in your account.
Path parameters
Request parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/email-preferences/[segmentation_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
{
"email_preference": {
"segmentation_id": 0,
"name": "string",
"display_order": 0,
"segments": [
{
"segment_id": 0,
"name": "string",
"display_order": 0
}
]
}
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Update email preference
More
Less
Update an email preference in your account.
Path parameters
Body parameters
cURL example
curl -L -X PATCH \
"https://api.stoneshot.com/v1/email-preferences/[segmentation_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-d '{"name": "string"}'
Success response
{
{
"email_preference": {
"segmentation_id": 0,
"name": "string",
"display_order": 0,
"segments": [
{
"segment_id": 0,
"name": "string",
"display_order": 0
}
]
}
}
}
Error response
{
"code": "122",
"message": "That record already exists"
}
Events
Your StoneShot events can be managed and queried.
Get events
More
Less
Retrieve events associated with your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/events" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"events": [
{
"name": "string",
"summary": "string",
"description": "string",
"create_date_utc": "2020-10-07T08:27:25Z",
"update_date_utc": "2020-10-07T08:27:25Z",
"tags": [],
"teams": [],
"custom_fields": []
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get event
More
Less
Get information about a specific event in your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/events/[event_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"event": {
"name": "string",
"summary": "string",
"description": "string",
"create_date_utc": "2020-06-23T16:12:18Z",
"update_date_utc": "2020-06-23T16:12:18Z",
"tags": [],
"teams": [],
"custom_fields": []
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Get event sessions
More
Less
Retrieve sessions in an event associated with your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/events/[event_id]/sessions" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"sessions": [
{
"location": "string",
"description": "string",
"start_date": "2020-10-07T08:27:25",
"custom_field_values": [],
"tags": [],
"statuses": [],
"venue": [],
"speaker": [],
"moderator": [],
"agenda": []
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get event session
More
Less
Get information about a specific session in an event in your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/events/[event_id]/sessions/[session_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"session": {
"location": "string",
"description": "string",
"start_date": "2020-06-23T16:12:18",
"custom_field_values": [],
"tags": [],
"statuses": [],
"venue": [],
"speaker": [],
"moderator": [],
"agenda": []
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Get event session contacts
More
Less
Get contacts who are associated to a specific session in an event in your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/events/[event_id]/sessions/[session_id]/contacts" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"contacts": [
{
"contact_id": 0,
"email": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"status": "string"
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get speakers
More
Less
Retrieve event speakers associated with your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/events/speakers" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"speakers": [
{
"name": "string",
"job_title": "string",
"location": "string"
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get speaker
More
Less
Get information about a specific event speaker in your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/events/speakers/[speaker_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"speaker": {
"name": "string",
"job_title": "string",
"location": "string"
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Get venues
More
Less
Retrieve event venues associated with your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/events/venues" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"venues": [
{
"name": "string",
"address_1": "string",
"address_2": "string",
"address_3": "string",
"address_4": "string",
"city": "string",
"country": "string",
"postcode": "string",
"capacity": 0,
"overbook": 0
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get venue
More
Less
Get information about a specific event venue in your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/events/venues/[venue_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"venue": {
"name": "string",
"address_1": "string",
"address_2": "string",
"address_3": "string",
"address_4": "string",
"city": "string",
"country": "string",
"postcode": "string",
"capacity": 0,
"overbook": 0
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Feeds
Your StoneShot CDS feeds can be managed and queried.
Get feed articles
More
Less
Retrieve articles in a feed associated with your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/feeds/[feed_id]/articles" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"articles": [
{
"name": "string",
"summary_html": "string",
"body_html": "string",
"url": "string",
"image_url": "string",
"update_date_utc": "2018-09-27T15:27:25Z",
"publish_date_utc": "2018-09-27T15:27:25Z",
"category": "string",
"status": "string",
"type": "string",
"language": "string",
"author": "string",
"custom_field_values": [],
"tags": [],
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get feed article
More
Less
Get information about a specific article in a feed in your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/feeds/[feed_id]/articles/[article_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"article": [
{
"name": "string",
"summary_html": "string",
"body_html": "string",
"url": "string",
"image_url": "string",
"update_date_utc": "2018-09-27T15:27:25Z",
"publish_date_utc": "2018-09-27T15:27:25Z",
"category": "string",
"status": "string",
"type": "string",
"language": "string",
"author": "string",
"custom_field_values": [],
"tags": [],
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Files
Your StoneShot files can be managed and queried.
Get files
More
Less
Retrieve files associated with your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/files" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"files": [
{
"file_name": "string",
"folder_name": "string",
"file_type": "string",
"size": "string",
"url": "string",
"create_date_utc": "2020-10-07T08:27:25Z",
"update_date_utc": "2020-10-07T08:27:25Z"
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Upload file
More
Less
Upload a file to your account.
Body parameters
cURL example
curl -L -X POST \
"https://api.stoneshot.com/v1/files" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-F 'file=@/path/to/file'
Success response
{
"code": "100",
"message": "Success"
}
Error response
{
"code": "128",
"message": "Invalid file type"
}
Forms
Your StoneShot forms can be managed and queried.
Get form
More
Less
Get information for a specific form in your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/form/smart_form_id" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"files": [
{
"smart_form_id": 0,
"friendly_form_name": "string",
"url": "string",
"create_date_utc": "2020-10-07T08:27:25Z",
"update_date_utc": "2020-10-07T08:27:25Z",
"tags": [
{
"name": "string"
}
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get forms
More
Less
Retrieve forms associated with your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/forms" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"files": [
{
"smart_form_id": 0,
"friendly_form_name": "string",
"url": "string",
"create_date_utc": "2020-10-07T08:27:25Z",
"update_date_utc": "2020-10-07T08:27:25Z",
"tags": [
{
"name": "string"
}
],
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Get form submissions
More
Less
Get information for a specific form submissions in your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/forms/submissions/smart_form_id" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"form": [
"submission_id": 0,
"submitted_on_utc": "2020-10-07T08:27:25Z",
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2020-10-07T08:27:25Z",
"last_active_utc": "2020-10-07T08:27:25Z"
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Lists
Your StoneShot lists, both dynamic and static can be managed and queried.
Get lists
More
Less
Retrieve lists associated with your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/lists" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"lists": [
{
"name": "string",
"create_date_utc": "2020-10-07T08:27:25Z",
"tags": [],
"teams": [],
"type": "string"
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Create list
More
Less
Create a new static list against your account.
Body parameters
cURL example
curl -L -X POST \
"https://api.stoneshot.com/v1/lists" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-d '{"name": "string"}'
Success response
{
"list": {
"name": "string",
"create_date_utc": "2020-10-16T12:06:34Z",
"tags": [],
"teams": [],
"type": "string"
}
}
Error response
{
"code": "118",
"message": "Required parameter/s not supplied"
}
Get list
More
Less
Get information for a specific list in your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/lists/[list_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"list": {
"name": "string",
"create_date_utc": "2020-06-23T16:12:18Z",
"tags": [],
"teams": [],
"type": "string"
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Get list contacts
More
Less
Get contact information for all contacts that form part of a specific list.
Path parameters
Query parameters
custom_fields.valuecustom_fields.custom_field.custom_field_idcustom_fields.custom_field.namecustom_fields.custom_field.display_namecontact_guid
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/lists/[list_id]/contacts" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"contacts": [
{
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2020-07-14T13:16:00Z"
},
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Add contact to list
More
Less
Add an existing contact to a specific static list.
Path parameters
Body parameters
cURL example
curl -L -X PATCH \
"https://api.stoneshot.com/v1/lists/[list_id]/contacts/add"
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-d '{"email": "string"}'
Success response
{
"contacts": [
{
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2017-07-27T17:34:51Z"
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Remove contact from list
More
Less
Remove a contact from a specific static list.
Path parameters
Body parameters
cURL example
curl -L -X PATCH \
"https://api.stoneshot.com/v1/lists/[list_id]/contacts/remove"
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-d '{"email": "string"}'
Success response
{
"contacts": [
{
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2017-07-27T17:34:51Z"
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Ping
Check the StoneShot API status.
Ping request
More
Less
Ping the StoneShot API to return the current status.
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/ping" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"code": "100",
"message": "Success"
}
Segmentation
Your StoneShot segmentation, a powerful feature for segmenting contacts.
Get segmentations
More
Less
Retrieve all segmentations against your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/segmentations" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"segmentations": [
{
"segmentation_id": 0,
"name": "string",
"display_order": 0,
"segments": [
{
"segment_id": 0,
"name": "string",
"display_order": 0
},
{
"segment_id": 0,
"name": "string",
"display_order": 0
}
]
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get segmentation
More
Less
Retrieve segmentation against your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/segmentations/[segmentation_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"segmentation": [
{
"segmentation_id": 0,
"name": "string",
"display_order": 0,
"segments": [
{
"segment_id": 0,
"name": "string",
"display_order": 0
},
{
"segment_id": 0,
"name": "string",
"display_order": 0
}
]
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Templates
Your StoneShot templates can be managed and queried.
Get templates
More
Less
Retrieve templates associated with your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/templates" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"templates": [
{
"name": "string",
"create_date_utc": "2020-10-07T08:27:25Z",
"tags": [],
"teams": [],
"subject": "string",
"from_name": "string",
"from_email": "string"
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get template
More
Less
Get information for a specific template in your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/templates/[template_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"template": {
"name": "string",
"html_share_link": "string",
"text_share_link": "string",
"create_date_utc": "2020-06-23T16:12:18Z",
"tags": [],
"teams": [],
"subject": "string",
"from_name": "string",
"from_email": "string",
"list": {
"list_id": 0,
"name": "string",
"create_date_utc": "2020-06-23T16:12:18Z",
"type": "string"
}
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Users
Your StoneShot users can be managed and queried.
Get users
More
Less
Retrieve users associated with your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/users" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"users": [
{
"user_id": 0,
"login_name": "string",
"email": "string",
"enabled": boolean,
"last_login_date_utc": "2020-06-23T16:12:18Z",
"first_name": "string",
"last_name": "string"
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get user
More
Less
Get information for a specific user in your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/users/[user_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"user": {
"user_id": 0,
"login_name": "string",
"email": "string",
"enabled": boolean,
"last_login_date_utc": "2020-06-23T16:12:18Z",
"first_name": "string",
"last_name": "string"
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Update user
More
Less
Update the details for a user in your account.
Path parameters
Body parameters
cURL example
curl -L -X PATCH \
"https://api.stoneshot.com/v1/users/[user_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-d '{"email": "string", "last_name": "string", "enabled": boolean}'
Success response
{
"user": {
"user_id": 0,
"login_name": "string",
"email": "string",
"enabled": boolean,
"last_login_date_utc": "2020-06-23T16:12:18Z",
"first_name": "string",
"last_name": "string"
}
}
Error response
{
"code": "130",
"message": "Admin/API-only users cannot be updated"
}
Visit Tracking
Your StoneShot tracked sites can be managed and queried.
Get sites
More
Less
Retrieve tracked sites associated with your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/sites" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"sites": [
{
"site_id": 0,
"name": "string",
"main_url": "string",
"created_date_utc": "2020-09-15T15:19:45Z"
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get site visitors
More
Less
Retrieve details of visits to your tracked site. Visits from unknown contacts are grouped together into one child.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/sites/[site_id]/visitors" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"visitors": {
"visits": 0,
"page_views": 0,
"total_bounces": 0,
"site": {
"site_id": 0,
"name": "string",
"main_url": "string",
"created_date_utc": "2018-12-14T22:38:26Z"
},
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2018-05-16T08:47:33Z",
"last_active_utc": "2021-01-27T16:22:08Z"
}
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Get site visitor
More
Less
Retrieve details of visits to your tracked site from a specific contact.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/sites/[site_id]/visitors/[identifier]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"visitor": {
"visits": 0,
"page_views": 0,
"total_bounces": 0,
"site": {
"site_id": 0,
"name": "string",
"main_url": "string",
"created_date_utc": "2018-12-14T22:38:26Z"
},
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2018-05-16T08:47:33Z",
"last_active_utc": "2021-01-27T16:22:08Z"
}
}
}
Error response
{
"code": "132",
"message": "Invalid date format. Please provide dates in the following format: {yyyy-MM-ddTHH:mm:ss.fffZ}"
}
Get site visit activities
More
Less
Retrieve visit activity details for your tracked site.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/sites/[site_id]/visits/activities" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"activities": {
"activity_date_utc": "2020-01-20T11:12:31Z",
"page_visited": "string",
"location_ip": "string",
"friendly_page_name": "string",
"site": {
"site_id": 0,
"name": "string",
"main_url": "string",
"created_date_utc": "2018-12-14T22:38:26Z"
},
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2018-05-16T08:47:33Z",
"last_active_utc": "2021-01-27T16:22:08Z"
},
"campaign": {
"campaign_id": 0,
"name": "string"
},
"new_or_returning": "string"
}
}
Error response
{
"code": "132",
"message": "Invalid date format. Please provide dates in the following format: {yyyy-MM-ddTHH:mm:ss.fffZ}"
}
Get site visitor activities
More
Less
Retrieve details of visit activity on your tracked site by a specific contact.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/sites/[site_id]/visits/activities/contacts/[identifier]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"contact": {
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2018-10-29T18:03:09Z",
"last_active_utc": "2021-01-07T14:37:37Z",
"visit_activities": [
{
"activity_date_utc": "2021-01-19T17:40:59Z",
"page_visited": "string",
"location_ip": "string",
"friendly_page_name": "string",
"site": {
"site_id": 0,
"name": "string",
"main_url": "string",
"created_date_utc": "2018-12-14T22:38:26Z"
},
"campaign": {
"campaign_id": 0,
"name": "string"
},
"new_or_returning": "string"
}
]
}
}
Error response
{
"code": "132",
"message": "Invalid date format. Please provide dates in the following format: {yyyy-MM-ddTHH:mm:ss.fffZ}"
}
Get goals for site
More
Less
Retrieve details of goals assigned to your tracked site.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/sites/{site_id}/goals" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"goals": [
{
"goal_id": 0,
"site_id": 0,
"name": "string",
"match_attribute": 0,
"pattern": "string",
"pattern_type": 0,
"is_case_sensitive": false,
"allow_multiple": false,
"archived": false,
"weighting_id": 0
},
{
"goal_id": 0,
"site_id": 0,
"name": "string",
"match_attribute": 0,
"pattern": "string",
"pattern_type": 0,
"is_case_sensitive": false,
"allow_multiple": false,
"archived": false,
"weighting_id": 0
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Get goal for site
More
Less
Retrieve details of a goal assigned to your tracked site.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/goals/{goal_id}" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"goal": {
"goal_id": 0,
"site_id": 0,
"name": "string",
"match_attribute": 0,
"pattern": "string",
"pattern_type": 0,
"is_case_sensitive": false,
"allow_multiple": false,
"archived": false,
"weighting_id": 0
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Get conversions for site
More
Less
Retrieve details of conversions assigned to your tracked site.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/sites/{site_id}/conversions" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"trackerConversions": [
{
"conversion_id": 0,
"site_id": 0,
"visit_id": 0,
"visitor_id": "string",
"goal_id": 0,
"visit_action_id": 0,
"when_converted_utc": "2021-09-17T20:58:23Z",
"url_action_lookup_id": 0,
"url": "string",
"visitor_days_since_first": 0,
"visitor_returning": false,
"visitor_count_visits": 0,
"referer_keyword": null,
"referer_name": null,
"referer_type": false,
"custom_var_k1": null,
"custom_var_v1": null,
"custom_var_k2": null,
"custom_var_v2": null,
"custom_var_k3": null,
"custom_var_v3": null,
"custom_var_k4": null,
"custom_var_v4": null,
"custom_var_k5": null,
"custom_var_v5": null,
"contact_id": null,
"activity_detail_id": null
},
{
"conversion_id": 0,
"site_id": 0,
"visit_id": 0,
"visitor_id": "string",
"goal_id": 0,
"visit_action_id": 0,
"when_converted_utc": "2021-09-17T20:58:23Z",
"url_action_lookup_id": 0,
"url": "string",
"visitor_days_since_first": 0,
"visitor_returning": false,
"visitor_count_visits": 0,
"referer_keyword": null,
"referer_name": null,
"referer_type": false,
"custom_var_k1": null,
"custom_var_v1": null,
"custom_var_k2": null,
"custom_var_v2": null,
"custom_var_k3": null,
"custom_var_v3": null,
"custom_var_k4": null,
"custom_var_v4": null,
"custom_var_k5": null,
"custom_var_v5": null,
"contact_id": null,
"activity_detail_id": null
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Get conversions for goal
More
Less
Retrieve details of conversions assigned to your goal.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/goals/{goal_id}/conversions" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"trackerConversions": [
{
"conversion_id": 0,
"site_id": 0,
"visit_id": 0,
"visitor_id": "string",
"goal_id": 0,
"visit_action_id": 0,
"when_converted_utc": "2021-09-17T20:58:23Z",
"url_action_lookup_id": 0,
"url": "string",
"visitor_days_since_first": 0,
"visitor_returning": false,
"visitor_count_visits": 0,
"referer_keyword": null,
"referer_name": null,
"referer_type": false,
"custom_var_k1": null,
"custom_var_v1": null,
"custom_var_k2": null,
"custom_var_v2": null,
"custom_var_k3": null,
"custom_var_v3": null,
"custom_var_k4": null,
"custom_var_v4": null,
"custom_var_k5": null,
"custom_var_v5": null,
"contact_id": null,
"activity_detail_id": null
},
{
"conversion_id": 0,
"site_id": 0,
"visit_id": 0,
"visitor_id": "string",
"goal_id": 0,
"visit_action_id": 0,
"when_converted_utc": "2021-09-17T20:58:23Z",
"url_action_lookup_id": 0,
"url": "string",
"visitor_days_since_first": 0,
"visitor_returning": false,
"visitor_count_visits": 0,
"referer_keyword": null,
"referer_name": null,
"referer_type": false,
"custom_var_k1": null,
"custom_var_v1": null,
"custom_var_k2": null,
"custom_var_v2": null,
"custom_var_k3": null,
"custom_var_v3": null,
"custom_var_k4": null,
"custom_var_v4": null,
"custom_var_k5": null,
"custom_var_v5": null,
"contact_id": null,
"activity_detail_id": null
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Workflows
Your StoneShot marketing automation workflows can be managed and queried.
Get workflows
More
Less
Retrieve workflows associated with your account.
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/workflows" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"workflows": [
{
"workflow_id": 0,
"status": boolean,
"name": "string",
"description": "string",
"created_date_utc": "2020-09-15T15:19:45Z",
"modified_date_utc": "2020-09-29T11:47:56Z",
"last_start_date_utc": "2020-09-29T11:47:56Z",
"last_end_date_utc": "2020-09-29T11:47:56Z"
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Get workflow
More
Less
Retrieve specific workflow associated with your account.
Path parameters
Query parameters
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/workflows/[workflow_id]" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"workflow": {
"workflow_id": 0,
"status": boolean,
"name": "string",
"description": "string",
"created_date_utc": "2020-09-15T15:19:45Z",
"modified_date_utc": "2020-09-29T11:47:56Z",
"last_start_date_utc": "2020-09-29T11:47:56Z",
"last_end_date_utc": "2020-09-29T11:47:56Z"
}
}
Error response
{
"code": "117",
"message": "No data found"
}
Get workflow contacts
More
Less
Retrieve contacts associated to a specific workflow.
Path parameters
Query parameters
custom_fields.valuecustom_fields.custom_field.custom_field_idcustom_fields.custom_field.namecustom_fields.custom_field.display_namecontact_guid
cURL example
curl -L -X GET \
"https://api.stoneshot.com/v1/workflows/[workflow_id]/contacts" \
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]"
Success response
{
"contacts": [
{
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2019-06-13T15:00:45Z",
"last_active_utc": "2020-08-06T15:03:10Z"
}
]
}
Error response
{
"code": "116",
"message": "Invalid sort_by field. Please check your input"
}
Add contact to workflow
More
Less
Add a contact to a specific workflow.
Path parameters
Body parameters
cURL example
curl -L -X PATCH \
"https://api.stoneshot.com/v1/workflows/[workflow_id]/contacts/add"
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-d '{"email": "string"}'
Success response
{
"contacts": [
{
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2017-07-27T17:34:51Z"
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}
Remove contact from workflow
More
Less
Remove a contact from a specific workflow.
Path parameters
Body parameters
cURL example
curl -L -X PATCH \
"https://api.stoneshot.com/v1/workflows/[workflow_id]/contacts/remove"
-H "Authorization: Basic [PASSWORD_BASE_64_ENCODED]" \
-H "Content-Type: application/JSON" \
-d '{"email": "string"}'
Success response
{
"contacts": [
{
"contact_id": 0,
"email": "string",
"title": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"create_date_utc": "2017-07-27T17:34:51Z"
}
]
}
Error response
{
"code": "117",
"message": "No data found"
}