Campaigntrackly API
seamlessly share your data with upstream and downstream applications
Version: 1.0
BasePath:/wp-json/campaigntrackly/v1/
All rights reserved
http://apache.org/licenses/LICENSE-2.0.html
Access
- APIKey KeyParamName:x-ct-key KeyInQuery:false KeyInHeader:true
- APIKey KeyParamName:x-ct-secret KeyInQuery:false KeyInHeader:true
[ Jump to Models ]
Table of Contents
Get user's campaigns (userCampaigns)
Get user's campaigns
Query parameters
date_range (optional)
Query Parameter — Get campaigns date range.Use if you want to get range of specific dates
date (optional)
Query Parameter — Get campaigns by date (full-date, for example, 2021-01-21) or set date range start date format: date
date_to (optional)
Query Parameter — Set campaigns date range end date (for example, 2021-01-21) format: date
category (optional)
Query Parameter — Campaign Category Id
limit (optional)
Query Parameter — Items per page, max. 50, default 20
offset (optional)
Query Parameter — Integer offset for paging
Return type
Example data
Content-Type: application/json
{
"total" : 0,
"campaigns" : [ {
"date" : "2000-01-23",
"name" : "Campaign Name",
"links" : [ {
"url" : "https://app.campaigntrackly.com/"
}, {
"url" : "https://app.campaigntrackly.com/"
} ],
"category" : "Category Name"
}, {
"date" : "2000-01-23",
"name" : "Campaign Name",
"links" : [ {
"url" : "https://app.campaigntrackly.com/"
}, {
"url" : "https://app.campaigntrackly.com/"
} ],
"category" : "Category Name"
} ]
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
CampaignsData
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Get user's campaign links data (userCampaignsExport)
Get user's campaign links data
Query parameters
id (required)
Query Parameter — Campaign Id
Return type
Example data
Content-Type: application/json
{
"date" : "2000-01-23",
"name" : "Campaign Name",
"links" : [ {
"date" : "2023-02-23T03:50:54Z",
"id" : 0,
"long_url" : "https://app.campaigntrackly.com/",
"short_url" : "https://ctrly.io/abc",
"tags" : [ {
"name" : "Tag Name",
"value" : "Tag Value"
}, {
"name" : "Tag Name",
"value" : "Tag Value"
} ]
}, {
"date" : "2023-02-23T03:50:54Z",
"id" : 0,
"long_url" : "https://app.campaigntrackly.com/",
"short_url" : "https://ctrly.io/abc",
"tags" : [ {
"name" : "Tag Name",
"value" : "Tag Value"
}, {
"name" : "Tag Name",
"value" : "Tag Value"
} ]
} ],
"category" : "Category Name"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
Export
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Get user's campaigns categories (userCategories)
Get user's campaigns categories
Query parameters
limit (optional)
Query Parameter — Items per page, max. 50, default 20
offset (optional)
Query Parameter — Integer offset for paging
Return type
Example data
Content-Type: application/json
{
"total" : 0,
"categories" : [ {
"favorites" : 1,
"name" : "Category Name",
"folder_id" : 6
}, {
"favorites" : 1,
"name" : "Category Name",
"folder_id" : 6
} ]
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
CategoriesData
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Update user's campaign names (userPostCampaigns)
Consumes
This API call consumes the following media types via the request header:
Request body
Body Parameter — json object
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Update campaign category name (userPostCategories)
Consumes
This API call consumes the following media types via the request header:
Request body
Body Parameter — json object
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Get campaign report (campaignReport)
Get campaign report
Query parameters
account_id (required)
Query Parameter — Google Analytic Account ID
campaign_id (required)
Query Parameter — Campaign ID
start_date (required)
Query Parameter — Start date of period (full-date, for example, 2021-01-21) format: date
end_date (required)
Query Parameter — End date of period (full-date, for example, 2021-05-21) format: date
field (required)
Query Parameter — Field
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Get connected Google Analytic Account ID's (campaignReportAccounts)
Get connected Google Analytic Account ID's
Return type
Example data
Content-Type: application/json
{
"accounts" : [ {
"account_id" : 1234567890,
"name" : "GA View Name",
"id" : 0,
"url" : "https://app.campaigntrackly.com/"
}, {
"account_id" : 1234567890,
"name" : "GA View Name",
"id" : 0,
"url" : "https://app.campaigntrackly.com/"
} ]
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
GoogleAccountsData
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Update channel tags (channelPostTags)
Consumes
This API call consumes the following media types via the request header:
Request body
Body Parameter — json object
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Get channel tags (channelTags)
Get channel tags
Return type
Example data
Content-Type: application/json
{
"comments" : "comments",
"hidden" : 1,
"id" : 0,
"source" : "source",
"medium" : "medium",
"title" : "title",
"folder_id" : 5,
"favorite" : 6
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
ChannelsData
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Update content tags (contentPostTags)
Consumes
This API call consumes the following media types via the request header:
Request body
Body Parameter — json object
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Get content tags (contentTags)
Get content tags
Return type
Example data
Content-Type: application/json
{
"id" : 0,
"tag" : "tag",
"folder_id" : 6
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
ContentsData
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Update custom tags (customPostTags)
Consumes
This API call consumes the following media types via the request header:
Request body
Body Parameter — json object
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Get custom tags (customTags)
Get custom tags
Return type
Example data
Content-Type: application/json
{
"custom" : "custom",
"values" : [ {
"tag" : "tag"
}, {
"tag" : "tag"
} ],
"id" : 0,
"folder_id" : 6
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
CustomsData
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Update term tags (termPostTags)
Consumes
This API call consumes the following media types via the request header:
Request body
Body Parameter — json object
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
Get term tags (termTags)
Get term tags
Return type
Example data
Content-Type: application/json
{
"id" : 0,
"tag" : "tag",
"folder_id" : 6
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
TermsData
401
Unauthenticated Request
FailedRequest
Example data
Content-Type: Example
{"error":"UNAUTHENTICATED","message":"Please authenticate and try again."}
[ Jump to Methods ]
Table of Contents
CampaignName
CampaignsData
CampaignsData_campaigns
CampaignsData_links
CategoriesData
CategoriesData_categories
Category
ChannelsData
ContentsData
CustomsData
CustomsData_values
Date
DateTime
Export
Export_links
Export_tags
FailedRequest
GoogleAccountsData
GoogleAccountsData_accounts
Id
LoginData
LoginData_data
LoginResponse
LoginResponse_data
LoginResponse_requirements
ShortUrl
TagName
TagValue
TermsData
Url
jsonChannelFormat
jsonFormat
Campaigns Data
total (optional)
page (optional)
campaigns (optional)
object
id (optional)
name (optional)
date (optional)
category (optional)
links (optional)
object
id (optional)
url (optional)
Categories Data
total (optional)
page (optional)
categories (optional)
object
id (optional)
name (optional)
folder_id (optional)
favorites (optional)
Channels Data
id (optional)
title (optional)
source (optional)
medium (optional)
favorite (optional)
hidden (optional)
folder_id (optional)
comments (optional)
Content Data
id (optional)
folder_id (optional)
tag (optional)
Custom Data
id (optional)
folder_id (optional)
custom (optional)
values (optional)
object
id (optional)
tag (optional)
Export
name (optional)
date (optional)
category (optional)
links (optional)
object
id (optional)
long_url (optional)
short_url (optional)
date (optional)
tags (optional)
object
id (optional)
name (optional)
value (optional)
error (optional)
message (optional)
object
id (optional)
name (optional)
example: GA View Name
url (optional)
account_id (optional)
Long integer format: int64
example: 1234567890
object
token (optional)
expired_at (optional)
Login
response (optional)
code (optional)
data (optional)
requirements (optional)
object
token (optional)
expired_at (optional)
access_level (optional)
object
username (optional)
password (optional)
Terms Data
id (optional)
folder_id (optional)
tag (optional)
object
id (optional)
Long integer format: int64
name (optional)
source (optional)
medium (optional)
object
id (optional)
Long integer format: int64
name (optional)