The vast majority of our API endpoints require an OAuth 2.0 bearer token. In order to get one, you will first need to create an OAuth application:
Once done, you'll receive the client ID and secret you need to initiate the authorization flow.
We currently only support the authorization code flow so you will need to authenticate as a user. Our API tokens are short-lived but you will be provided a refresh token you can use to get a new access token when your token has expired.
| client_id required | string |
| client_secret | string Required when |
| code | string Required when |
| grant_type required | string Enum: "authorization_code" "refresh_token" |
| redirect_uri | string Required when |
| refresh_token | string Required when |
You must provide the id_token provided when the user authorized your application as a query parameter in order
to make changes to sensitive information such as their email, password, authentication factors, etc. The
id_token is only valid for 15 minutes.
Should your id_token expire, you must redirect the user to the OAuth authorization URL above for the user to
provide authorization again.
PATCH /v2/me?id_token=nHOoUfFHEm.pvgdGWlMz6X1mQvyY7ORPxFbIksmf6qz.srCyXxT2Fv HTTP/1.1
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: Bearer bbAo5OvKt5p7NlJ4PlMWpE87wrkxhiJDayIgHSyhGx92KmSOHf5UtvpGK14ARxYA
{
"data": {
"id": 1,
"type": "user",
"attributes": {
"email": "support-advocacy@trueloyal.com"
}
}
}
You may request that an endpoint return only specific fields in the response on a per-type basis by including a
fields[TYPE] parameter. The value of the fields parameter must be a comma-separated list that refers to the
name(s) of the fields to be returned.
For example:
GET /v2/teams/1/tints?include=personalizations&fields[tints]=name,status&fields[personalizations]=name,theme HTTP/1.1
Accept: application/vnd.api+json
We limit the number of resources returned in a response to a subset of the whole set available and provide links to traverse it. Pagination links will appear in the links object that correspond to a collection.
Some collections can be sorted using the sort query parameter. We support multiple sort fields by allowing
comma-separated sort fields. The sort order for each sort field will be in ascending order unless it is prefixed
with a minus.
For example:
GET /v2/teams/1/experiences?sort=status,-id HTTP/1.1
Accept: application/vnd.api+json
Our API supports versioning so that, as we make breaking changes, it does not break your application. To specify
a version, simply use the API-Version header. If you do not specify a version, your OAuth Application's version
configuration will be used.
Available versions:
For example:
GET /v2/me HTTP/1.1
API-Version: 20190326
Authorization header.User-Agent header.POST, PUT and PATCH requests with a body must have the Content-Type header set to
application/vnd.api+json as defined in the JSON:API specification unless specified otherwise.| team_id required | integer |
object | |
| include | Array of strings Items Enum: "social_feeds" "subaccounts" |
object |
Array of objects | |||||||||
Array
| |||||||||
{- "data": [
- {
- "id": 1,
- "type": "account",
- "attributes": {
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "external_id": "8581360",
- "status": "expired",
- "name": "TrueLoyal",
- "username": null,
- "expires_at": "2020-01-01T00:00:00.000Z",
- "image_url": null,
- "type": "hootsuite"
}, - "relationships": {
- "social_feeds": {
- "meta": {
- "count": 0
}
}, - "subaccounts": {
- "meta": {
- "included": false
}
}
}
}
]
}| account_id required | integer |
| team_id required | integer |
| include | Array of strings Items Enum: "social_feeds" "subaccounts" |
object | |||||||||
| |||||||||
{- "data": {
- "id": 1,
- "type": "account",
- "attributes": {
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "external_id": "8581360",
- "status": "expired",
- "name": "TrueLoyal",
- "username": null,
- "expires_at": "2020-01-01T00:00:00.000Z",
- "image_url": null,
- "type": "hootsuite"
}, - "relationships": {
- "social_feeds": {
- "meta": {
- "count": 0
}
}, - "subaccounts": {
- "meta": {
- "included": false
}
}
}
}
}| account_id required | integer |
| team_id required | integer |
| origin | string When specified, we will post a message with containing the response body using |
| redirect_uri | string When specified, we will redirect the user to this URI and include a |
| account_id required | integer |
| team_id required | integer |
object |
Array of objects | |||||||
Array
| |||||||
{- "data": [
- {
- "id": "464297566935356|17841401839964064",
- "type": "subaccount",
- "attributes": {
- "name": "TrueLoyal",
- "username": "trueloyal",
- "image_url": null,
- "source": "instagram_business",
- "type": "profile",
- "capabilities": [
- "ingest"
], - "url": null
}
}
]
}| team_id required | integer |
| origin | string When specified, we will post a message with containing the response body using |
| redirect_uri | string When specified, we will redirect the user to this URI and include a |
| type required | string Enum: "facebook" "hootsuite" "instagram_business" "linkedin" "pinterest" "slack" "spark" "twitter" "tumblr" "flickr" The type of account to authenticate |
A subaccount is an account that can be accessed directly using the specified account credentials such as an Instagram business or creator account or Facebook page.
| team_id required | integer |
object |
Array of objects | |||||||
Array
| |||||||
{- "data": [
- {
- "id": "464297566935356|17841401839964064",
- "type": "subaccount",
- "attributes": {
- "name": "TrueLoyal",
- "username": "trueloyal",
- "image_url": null,
- "source": "instagram_business",
- "type": "profile",
- "capabilities": [
- "ingest"
], - "url": null
}
}
]
}| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "type": "authentication_factor",
- "attributes": {
- "status": "pending",
- "type": "out_of_band",
- "channel": "sms",
- "external_id": "+16045551212",
- "provisioning_url": null,
- "created_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
]
}| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "authentication_factor",
- "attributes": {
- "type": "out_of_band",
- "channel": "sms",
- "external_id": "+16045551212"
}
}
}{- "data": {
- "type": "authentication_factor",
- "attributes": {
- "status": "pending",
- "type": "out_of_band",
- "channel": "sms",
- "external_id": "+16045551212",
- "provisioning_url": null,
- "created_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}| authentication_factor_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "authentication_factor",
- "id": 1,
- "attributes": {
- "challenge": "888888"
}
}
}{- "data": {
- "type": "authentication_factor",
- "attributes": {
- "status": "pending",
- "type": "out_of_band",
- "channel": "sms",
- "external_id": "+16045551212",
- "provisioning_url": null,
- "created_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}When adding a new authentication factor, we always challenge it right away however it's possible to challenge pending authentication factors again every 30 seconds in the even where the user did not receive the code to verify it
| authentication_factor_id required | integer |
| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "authentication_factor_challenge",
- "attributes": {
- "authentication_factor_id": 1
}
}
}{- "data": {
- "id": "tZSmx3ihhE",
- "type": "authentication_factor_challenge",
- "attributes": {
- "retry_at": "2020-01-01T00:00:00.000Z"
}
}
}| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": 1,
- "type": "domain",
- "attributes": {
- "name": "experiences.tintup.com",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "status": "pending"
}
}
]
}| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "domain",
- "attributes": {
- "name": "experiences.tintup.com"
}
}
}{- "data": {
- "id": 1,
- "type": "domain",
- "attributes": {
- "name": "experiences.tintup.com",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "status": "pending"
}
}
}| domain_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
{- "data": {
- "id": 1,
- "type": "domain",
- "attributes": {
- "name": "experiences.tintup.com",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "status": "pending"
}
}
}| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": 1,
- "type": "email_template",
- "attributes": {
- "type": "review_solicitation",
- "locales": {
- "en": {
- "from": "no-reply@example.com",
- "subject": "Welcome to our service",
- "body": "Thank you for signing up."
}
}, - "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}
}
]
}| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "email_template",
- "attributes": {
- "type": "review_solicitation",
- "locales": {
- "en": {
- "from": "no-reply@example.com",
- "subject": "Welcome to our service",
- "body": "Thank you for signing up."
}
}
}
}
}{- "data": {
- "id": 1,
- "type": "email_template",
- "attributes": {
- "type": "review_solicitation",
- "locales": {
- "en": {
- "from": "no-reply@example.com",
- "subject": "Welcome to our service",
- "body": "Thank you for signing up."
}
}, - "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}
}
}| email_template_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
{- "data": {
- "id": 1,
- "type": "email_template",
- "attributes": {
- "type": "review_solicitation",
- "locales": {
- "en": {
- "from": "no-reply@example.com",
- "subject": "Welcome to our service",
- "body": "Thank you for signing up."
}
}, - "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}
}
}| team_id required | integer |
object |
required | Array of objects | ||||
Array
| |||||
{- "data": [
- {
- "type": "font",
}
]
}| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||
| |||||
{- "data": {
- "type": "font",
}
}{- "data": {
- "type": "font",
}
}| font_id required | integer |
| team_id required | integer |
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 400; src: local("Quicksand"), url("https://www.fontsquirrel.com/fonts/download/quicksand"); }
| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "type": "oauth_application",
- "attributes": {
- "name": "Sample Application",
- "version": 20190326,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "client_id": "string",
- "client_secret": "string"
}, - "id": 1
}
]
}| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "oauth_application",
- "attributes": {
- "name": "Sample Application",
- "version": 20190326
}
}
}{- "data": {
- "type": "oauth_application",
- "attributes": {
- "name": "Sample Application",
- "version": 20190326,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "client_id": "string",
- "client_secret": "string"
}, - "id": 1
}
}| oauth_application_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
{- "data": {
- "type": "oauth_application",
- "attributes": {
- "name": "Sample Application",
- "version": 20190326,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "client_id": "string",
- "client_secret": "string"
}, - "id": 1
}
}| oauth_application_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "oauth_application",
- "attributes": {
- "name": "Sample Application",
- "version": 20190326
}, - "id": 1
}
}{- "data": {
- "type": "oauth_application",
- "attributes": {
- "name": "Sample Application",
- "version": 20190326,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "client_id": "string",
- "client_secret": "string"
}, - "id": 1
}
}| include | Array of strings Items Enum: "accounts" "authentication_factors" "teams" "tints" |
required | object | ||||||
| |||||||
{- "data": {
- "id": 1,
- "type": "user",
- "attributes": {
- "first_name": "Francois",
- "last_name": "Deschenes",
- "organization": "TrueLoyal",
- "image_url": null,
- "email": "support-advocacy@trueloyal.com",
- "default_authentication_factor_id": 1
}
}
}required | object | ||||||
| |||||||
required | object | ||||||
| |||||||
{- "data": {
- "id": 1,
- "type": "user",
- "attributes": {
- "first_name": "Francois",
- "last_name": "Deschenes",
- "organization": "TrueLoyal",
- "email": "support-advocacy@trueloyal.com",
- "password": "P4ssw0rd!",
- "default_authentication_factor_id": 1
}
}
}{- "data": {
- "id": 1,
- "type": "user",
- "attributes": {
- "first_name": "Francois",
- "last_name": "Deschenes",
- "organization": "TrueLoyal",
- "image_url": null,
- "email": "support-advocacy@trueloyal.com",
- "default_authentication_factor_id": 1
}
}
}| team_id required | integer |
object | |
| include | Array of strings Items Enum: "accounts" "tints" |
object |
required | Array of objects | ||||
Array
| |||||
{- "data": [
- {
- "type": "team_user",
- "attributes": {
- "role_id": 0,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "first_name": "Francois",
- "last_name": "Deschenes",
- "organization": "TrueLoyal",
- "image_url": null,
- "email": "francois@example.com"
}
}
]
}| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
required | object | ||||
| |||||
{- "data": [
- {
- "role_id": 0,
- "email": "francois@example.com"
}
]
}{- "data": {
- "type": "team_user",
- "attributes": {
- "role_id": 0,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "first_name": "Francois",
- "last_name": "Deschenes",
- "organization": "TrueLoyal",
- "image_url": null,
- "email": "francois@example.com"
}
}
}| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
{- "data": [
- {
- "id": 1,
- "type": "user"
}
]
}| team_id required | integer |
| user_id required | integer |
| include | Array of strings Items Enum: "accounts" "tints" |
required | object | ||||
| |||||
{- "data": {
- "type": "team_user",
- "attributes": {
- "role_id": 0,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "first_name": "Francois",
- "last_name": "Deschenes",
- "organization": "TrueLoyal",
- "image_url": null,
- "email": "francois@example.com"
}
}
}| team_id required | integer |
| user_id required | integer |
| include | Array of strings Items Enum: "accounts" "tints" |
required | object | ||||||
| |||||||
required | object | ||||
| |||||
{- "data": {
- "type": "team_user",
- "attributes": {
- "role_id": 0
}, - "id": 1
}
}{- "data": {
- "type": "team_user",
- "attributes": {
- "role_id": 0,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "first_name": "Francois",
- "last_name": "Deschenes",
- "organization": "TrueLoyal",
- "image_url": null,
- "email": "francois@example.com"
}
}
}Once complete, a websocket message will be delivered to the user's private channel (private-user- followed by the user's id) with a message of type teams_user_export_request containing a response but you may also opt to use our origin and redirect_uri options
| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "teams_user_export_request",
- "attributes": {
- "filters": { }
}
}
}{- "data": {
- "id": "OxZZQtuh5sXIKA",
- "type": "teams_user_export_request",
- "attributes": {
- "filters": { },
- "status": "pending",
- "url": null
}
}
}| team_id required | integer |
| teams_user_export_request_id required | string |
required | object | ||||||
| |||||||
{- "data": {
- "id": "OxZZQtuh5sXIKA",
- "type": "teams_user_export_request",
- "attributes": {
- "filters": { },
- "status": "pending",
- "url": null
}
}
}| include | Array of strings Items Enum: "accounts" "assets" "plan" "tints" |
required | Array of objects | ||||||||
Array
| |||||||||
{- "data": [
- {
- "id": 1,
- "type": "team",
- "attributes": {
- "name": "TrueLoyal",
- "permissions": [
- "assets_read",
- "moderate_tint"
], - "idp_entity_id": "string",
- "idp_sso_target_url": "string",
- "idp_cert": "string",
- "force_authn": false,
- "authn_requests_signed": false,
- "want_assertions_signed": false,
- "want_assertions_encrypted": false,
- "onboarding": [
- "completed"
], - "self_service": false,
- "saml_jit_provisioning": false,
- "shared_tags": false,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "plan": {
- "data": {
- "type": "plan",
- "id": "professional_annual"
}
}, - "accounts": {
- "data": {
- "type": "account",
- "id": 1
}
}, - "tints": {
- "data": {
- "type": "tint",
- "id": 1
}, - "meta": {
- "active_tints_count": 1
}
}, - "assets": {
- "meta": {
- "total": 1,
- "uploaded_total": 0
}
}
}
}
]
}| include | Array of strings Items Enum: "accounts" "assets" "plan" "tints" |
required | object | ||||||||
| |||||||||
{- "data": {
- "id": 1,
- "type": "team",
- "attributes": {
- "name": "TrueLoyal",
- "permissions": [
- "assets_read",
- "moderate_tint"
], - "idp_entity_id": "string",
- "idp_sso_target_url": "string",
- "idp_cert": "string",
- "force_authn": false,
- "authn_requests_signed": false,
- "want_assertions_signed": false,
- "want_assertions_encrypted": false,
- "onboarding": [
- "completed"
], - "self_service": false,
- "saml_jit_provisioning": false,
- "shared_tags": false,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "plan": {
- "data": {
- "type": "plan",
- "id": "professional_annual"
}
}, - "accounts": {
- "data": {
- "type": "account",
- "id": 1
}
}, - "tints": {
- "data": {
- "type": "tint",
- "id": 1
}, - "meta": {
- "active_tints_count": 1
}
}, - "assets": {
- "meta": {
- "total": 1,
- "uploaded_total": 0
}
}
}
}
}| include | Array of strings Items Enum: "accounts" "assets" "plan" "tints" |
required | object | ||||
| |||||
required | object | ||||||||
| |||||||||
{- "data": {
- "type": "team",
- "attributes": {
- "name": "TrueLoyal",
- "idp_entity_id": "string",
- "idp_sso_target_url": "string",
- "idp_cert": "string",
- "force_authn": false,
- "authn_requests_signed": false,
- "want_assertions_signed": false,
- "want_assertions_encrypted": false,
- "onboarding": [
- "completed"
], - "self_service": false,
- "saml_jit_provisioning": false,
- "shared_tags": false
}
}
}{- "data": {
- "id": 1,
- "type": "team",
- "attributes": {
- "name": "TrueLoyal",
- "permissions": [
- "assets_read",
- "moderate_tint"
], - "idp_entity_id": "string",
- "idp_sso_target_url": "string",
- "idp_cert": "string",
- "force_authn": false,
- "authn_requests_signed": false,
- "want_assertions_signed": false,
- "want_assertions_encrypted": false,
- "onboarding": [
- "completed"
], - "self_service": false,
- "saml_jit_provisioning": false,
- "shared_tags": false,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "plan": {
- "data": {
- "type": "plan",
- "id": "professional_annual"
}
}, - "accounts": {
- "data": {
- "type": "account",
- "id": 1
}
}, - "tints": {
- "data": {
- "type": "tint",
- "id": 1
}, - "meta": {
- "active_tints_count": 1
}
}, - "assets": {
- "meta": {
- "total": 1,
- "uploaded_total": 0
}
}
}
}
}| team_id required | integer |
object | |||||||
| |||||||
{- "data": {
- "id": 1,
- "type": "role",
- "attributes": {
- "name": "Administrator",
- "description": "string",
- "external_id": "string",
- "permissions": [
- "assets_read",
- "moderate_tint",
- "customers"
]
}
}
}| team_id required | integer |
required | object | ||||||||
| |||||||||
object | |||||||
| |||||||
{- "data": {
- "name": "Administrator",
- "description": "string",
- "external_id": "string",
- "permissions": [
- "assets_read",
- "moderate_tint",
- "customers"
]
}
}{- "data": {
- "id": 1,
- "type": "role",
- "attributes": {
- "name": "Administrator",
- "description": "string",
- "external_id": "string",
- "permissions": [
- "assets_read",
- "moderate_tint",
- "customers"
]
}
}
}| role_id required | integer |
| team_id required | integer |
object | |||||||
| |||||||
{- "data": {
- "id": 1,
- "type": "role",
- "attributes": {
- "name": "Administrator",
- "description": "string",
- "external_id": "string",
- "permissions": [
- "assets_read",
- "moderate_tint",
- "customers"
]
}
}
}| role_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
object | |||||||
| |||||||
{- "data": {
- "id": 1,
- "type": "role",
- "attributes": {
- "name": "Administrator",
- "description": "string",
- "external_id": "string",
- "permissions": [
- "assets_read",
- "moderate_tint",
- "customers"
]
}
}
}{- "data": {
- "id": 1,
- "type": "role",
- "attributes": {
- "name": "Administrator",
- "description": "string",
- "external_id": "string",
- "permissions": [
- "assets_read",
- "moderate_tint",
- "customers"
]
}
}
}| team_id required | integer |
| include | Array of strings Items Enum: "domain" "form_submission_keys" "submissions" |
object |
required | Array of objects | ||||||||
Array
| |||||||||
{- "data": [
- {
- "type": "experience",
- "attributes": {
- "title": "TrueLoyal",
- "type": "contest",
- "analytics_id": null,
- "analytics_type": "google_analytics",
- "captcha_type": "google_recaptcha",
- "captcha_public_key": "string",
- "name": "Spring Campaign 2020",
- "status": "active",
- "slug": "string",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "favicon_url": null,
- "noindex": false,
- "description": null,
- "data": {
- "draft": [
- { }
], - "published": [
- { }
], - "locales": {
- "draft": [
- { }
], - "published": [
- { }
]
}, - "translations": {
- "draft": { },
- "published": { }
}
}
}, - "relationships": {
- "domain": {
- "data": null
}, - "form_submission_keys": {
- "data": {
- "meta": {
- "included": false
}
}
}, - "form_submissions": {
- "meta": {
- "meta": {
- "total": 5
}
}
}
}, - "id": 1
}
]
}| team_id required | integer |
| include | Array of strings Items Enum: "domain" "form_submission_keys" "submissions" |
required | object | ||||
| |||||
required | object | ||||||||
| |||||||||
{- "data": {
- "type": "experience",
- "attributes": {
- "title": "TrueLoyal",
- "type": "contest",
- "analytics_id": null,
- "analytics_type": "google_analytics",
- "captcha_type": "google_recaptcha",
- "captcha_public_key": "string",
- "captcha_private_key": "string",
- "name": "Spring Campaign 2020",
- "status": "active",
- "slug": "string",
- "domain_id": null,
- "favicon_url": null,
- "noindex": false,
- "description": null,
- "data": {
- "draft": [
- { }
], - "published": [
- { }
], - "locales": {
- "draft": [
- { }
], - "published": [
- { }
]
}, - "translations": {
- "draft": { },
- "published": { }
}
}
}
}
}{- "data": {
- "type": "experience",
- "attributes": {
- "title": "TrueLoyal",
- "type": "contest",
- "analytics_id": null,
- "analytics_type": "google_analytics",
- "captcha_type": "google_recaptcha",
- "captcha_public_key": "string",
- "name": "Spring Campaign 2020",
- "status": "active",
- "slug": "string",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "favicon_url": null,
- "noindex": false,
- "description": null,
- "data": {
- "draft": [
- { }
], - "published": [
- { }
], - "locales": {
- "draft": [
- { }
], - "published": [
- { }
]
}, - "translations": {
- "draft": { },
- "published": { }
}
}
}, - "relationships": {
- "domain": {
- "data": null
}, - "form_submission_keys": {
- "data": {
- "meta": {
- "included": false
}
}
}, - "form_submissions": {
- "meta": {
- "meta": {
- "total": 5
}
}
}
}, - "id": 1
}
}| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
{- "data": [
- {
- "type": "experience",
- "attributes": {
- "title": "TrueLoyal",
- "type": "contest",
- "analytics_id": null,
- "analytics_type": "google_analytics",
- "captcha_type": "google_recaptcha",
- "captcha_public_key": "string",
- "captcha_private_key": "string",
- "name": "Spring Campaign 2020",
- "status": "active",
- "slug": "string",
- "domain_id": null,
- "favicon_url": null,
- "noindex": false,
- "description": null,
- "data": {
- "draft": [
- { }
], - "published": [
- { }
], - "locales": {
- "draft": [
- { }
], - "published": [
- { }
]
}, - "translations": {
- "draft": { },
- "published": { }
}
}
}
}
]
}| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
{- "data": [
- {
- "id": 1,
- "type": "experience"
}
]
}| experience_id required | integer |
| team_id required | integer |
| include | Array of strings Items Enum: "domain" "form_submission_keys" "submissions" |
required | object | ||||||||
| |||||||||
{- "data": {
- "type": "experience",
- "attributes": {
- "title": "TrueLoyal",
- "type": "contest",
- "analytics_id": null,
- "analytics_type": "google_analytics",
- "captcha_type": "google_recaptcha",
- "captcha_public_key": "string",
- "name": "Spring Campaign 2020",
- "status": "active",
- "slug": "string",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "favicon_url": null,
- "noindex": false,
- "description": null,
- "data": {
- "draft": [
- { }
], - "published": [
- { }
], - "locales": {
- "draft": [
- { }
], - "published": [
- { }
]
}, - "translations": {
- "draft": { },
- "published": { }
}
}
}, - "relationships": {
- "domain": {
- "data": null
}, - "form_submission_keys": {
- "data": {
- "meta": {
- "included": false
}
}
}, - "form_submissions": {
- "meta": {
- "meta": {
- "total": 5
}
}
}
}, - "id": 1
}
}| experience_id required | integer |
| team_id required | integer |
| include | Array of strings Items Enum: "domain" "form_submission_keys" "submissions" |
required | object | ||||||
| |||||||
required | object | ||||||||
| |||||||||
{- "data": {
- "type": "experience",
- "attributes": {
- "title": "TrueLoyal",
- "type": "contest",
- "analytics_id": null,
- "analytics_type": "google_analytics",
- "captcha_type": "google_recaptcha",
- "captcha_public_key": "string",
- "captcha_private_key": "string",
- "name": "Spring Campaign 2020",
- "status": "active",
- "slug": "string",
- "domain_id": null,
- "favicon_url": null,
- "noindex": false,
- "description": null,
- "data": {
- "draft": [
- { }
], - "published": [
- { }
], - "locales": {
- "draft": [
- { }
], - "published": [
- { }
]
}, - "translations": {
- "draft": { },
- "published": { }
}
}
}, - "id": 1
}
}{- "data": {
- "type": "experience",
- "attributes": {
- "title": "TrueLoyal",
- "type": "contest",
- "analytics_id": null,
- "analytics_type": "google_analytics",
- "captcha_type": "google_recaptcha",
- "captcha_public_key": "string",
- "name": "Spring Campaign 2020",
- "status": "active",
- "slug": "string",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "favicon_url": null,
- "noindex": false,
- "description": null,
- "data": {
- "draft": [
- { }
], - "published": [
- { }
], - "locales": {
- "draft": [
- { }
], - "published": [
- { }
]
}, - "translations": {
- "draft": { },
- "published": { }
}
}
}, - "relationships": {
- "domain": {
- "data": null
}, - "form_submission_keys": {
- "data": {
- "meta": {
- "included": false
}
}
}, - "form_submissions": {
- "meta": {
- "meta": {
- "total": 5
}
}
}
}, - "id": 1
}
}| experience_slug required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
{- "data": {
- "id": 1,
- "type": "experience",
- "attributes": {
- "title": "TrueLoyal",
- "type": "contest",
- "analytics_id": null,
- "analytics_type": "google_analytics",
- "data": {
- "published": [
- { }
], - "locales": {
- "published": [
- { }
]
}, - "translations": {
- "published": { }
}
}
}
}
}| experience_id required | integer |
| team_id required | integer |
| include | Array of strings Items Value: "post" |
object |
required | Array of objects | ||||||||
Array
| |||||||||
{- "data": [
- {
- "id": 1,
- "type": "form_submission",
- "attributes": {
- "data": { },
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15",
- "created_at": "2020-01-01T00:00:00.000Z",
- "city": "Vancouver, BC, Canada",
- "remote_ip_city": "Vancouver",
- "remote_ip_most_specific_subdivision": "BC",
- "remote_ip_country": "Canada"
}, - "relationships": {
- "post": {
- "meta": {
- "included": false
}
}
}
}
]
}| experience_id required | integer |
| team_id required | integer |
| group | string Default: "created_at.millenium" Enum: "created_at.day" "created_at.hour" "created_at.millenium" "created_at.month" "created_at.quarter" "created_at.week" "created_at.year" "data.keys" "post_id" |
| include | Array of strings Items Value: "post" |
object |
required | Array of objects | ||||||||
Array
| |||||||||
{- "data": [
- {
- "id": "2020-01-01T00:00:00.000Z",
- "type": "form_submission_metric",
- "attributes": {
- "count": 8888
}, - "relationships": {
- "post": {
- "meta": {
- "included": false
}
}
}
}
]
}Once complete, a websocket message will be delivered to the user's private channel (private-user- followed by the user's id) with a message of type form_submission_export_request containing a response but you may also opt to use our origin and redirect_uri options
| experience_id required | integer |
| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "form_submission_export_request",
- "attributes": {
- "experience_id": 1,
- "filters": {
- "created_at": {
- "$gte": "2023-10-27T23:00:00.000+00:00",
- "$lte": "2023-10-31T23:00:00.000+00:00"
}
}, - "include_files": true
}
}
}{- "data": {
- "id": "OxZZQtuh5sXIKA",
- "type": "form_submission_export_request",
- "attributes": {
- "filters": {
- "created_at": {
- "$gte": "2023-10-27T23:00:00.000+00:00",
- "$lte": "2023-10-31T23:00:00.000+00:00"
}
}, - "include_files": true,
- "status": "pending",
- "url": null
}
}
}| experience_id required | integer |
| form_submission_export_request_id required | string |
| team_id required | integer |
required | object | ||||||
| |||||||
{- "data": {
- "id": "OxZZQtuh5sXIKA",
- "type": "form_submission_export_request",
- "attributes": {
- "filters": {
- "created_at": {
- "$gte": "2023-10-27T23:00:00.000+00:00",
- "$lte": "2023-10-31T23:00:00.000+00:00"
}
}, - "include_files": true,
- "status": "pending",
- "url": null
}
}
}| team_id required | integer |
object | |
| include | Array of strings Items Value: "cataglogs" |
object |
Array of objects | |||||||||
Array
| |||||||||
{- "data": [
- {
- "id": 1,
- "type": "product_account",
- "attributes": {
- "external_id": "8581360",
- "status": "ok",
- "name": null,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "username": null,
- "expires_at": "2020-01-01T00:00:00.000Z",
- "image_url": null,
- "type": "facebook",
}, - "relationships": {
- "catalogs": {
- "meta": {
- "included": false
}
}
}
}
]
}| team_id required | integer |
required | object | ||||
| |||||
object | |||||||||
| |||||||||
{- "data": {
- "type": "product_account",
- "attributes": {
- "type": "magento",
- "site": "string",
- "access_token": "string",
- "secret": "string"
}
}
}{- "data": {
- "id": 1,
- "type": "product_account",
- "attributes": {
- "external_id": "8581360",
- "status": "ok",
- "name": null,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "username": null,
- "expires_at": "2020-01-01T00:00:00.000Z",
- "image_url": null,
- "type": "facebook",
}, - "relationships": {
- "catalogs": {
- "meta": {
- "included": false
}
}
}
}
}| product_account_id required | integer |
| team_id required | integer |
| include | Array of strings Items Value: "cataglogs" |
Array of objects | |||||||||
Array
| |||||||||
{- "data": [
- {
- "id": 1,
- "type": "product_account",
- "attributes": {
- "external_id": "8581360",
- "status": "ok",
- "name": null,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "username": null,
- "expires_at": "2020-01-01T00:00:00.000Z",
- "image_url": null,
- "type": "facebook",
}, - "relationships": {
- "catalogs": {
- "meta": {
- "included": false
}
}
}
}
]
}| product_account_id required | integer |
| team_id required | integer |
required | object | ||||
| |||||
Array of objects | |||||||||
Array
| |||||||||
{- "data": {
- "type": "product_account",
- "attributes": {
- "site": "string",
- "access_token": "string",
- "secret": "string"
}
}
}{- "data": [
- {
- "id": 1,
- "type": "product_account",
- "attributes": {
- "external_id": "8581360",
- "status": "ok",
- "name": null,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "username": null,
- "expires_at": "2020-01-01T00:00:00.000Z",
- "image_url": null,
- "type": "facebook",
}, - "relationships": {
- "catalogs": {
- "meta": {
- "included": false
}
}
}
}
]
}| product_account_id required | integer |
| team_id required | integer |
| origin | string When specified, we will post a message with containing the response body using |
| redirect_uri | string When specified, we will redirect the user to this URI and include a |
| team_id required | integer |
| origin | string When specified, we will post a message with containing the response body using |
| redirect_uri | string When specified, we will redirect the user to this URI and include a |
| type required | string Enum: "facebook" "shopify" "magento" "woocommerce" "bigcommerce" "salesforce_commerce_cloud" "ftp" "http" "s3" The type of the product account to authenticate |
All product feeds, with the exception of manual feeds, can be updated.
We update feeds managed via our integration partners regularly but you may trigger a refresh using this endpoint at any time – this is particularily useful if you have made product changes that you would like reflected in TrueLoyal immediately.
For csv products feeds, you can use this endpoint to upload a new CSV file. The file will need to be in the
prescribed format.
| product_feed_id required | integer |
| team_id required | integer |
required | object | ||||
| |||||
object | |||||||
| |||||||
{- "data": {
- "type": "product_feed_refresh_request",
}
}{- "data": {
- "id": "OxZZQtuh5sXIKAasdasdadasdasdasdasdasdas",
- "type": "product_feed_refresh_request",
- "attributes": {
- "status": "success"
}
}
}| product_feed_id required | integer |
| product_feed_refresh_request_id required | integer |
| team_id required | integer |
object | |||||||
| |||||||
{- "data": {
- "id": "OxZZQtuh5sXIKAasdasdadasdasdasdasdasdas",
- "type": "product_feed_refresh_request",
- "attributes": {
- "status": "success"
}
}
}| team_id required | integer |
object | |
| include | Array of strings Items Enum: "product_account" "catalog" |
object |
Array of objects | |||||||||
Array
| |||||||||
{- "data": [
- {
- "id": 1,
- "type": "product_feed",
- "attributes": {
- "name": "Q4.01_MeowProducts",
- "source": "facebook",
- "status": "active",
- "options": {
- "delete_files_once_processed": false
}, - "last_ingested_at": "2020-01-01T00:00:00.000Z",
- "error_message": null
}, - "relationships": {
- "catalog": {
- "meta": {
- "included": false
}
}, - "product_account": {
- "meta": {
- "included": false
}
}
}
}
]
}| team_id required | integer |
required | object | ||||
| |||||
object | |||||||||
| |||||||||
{- "data": {
- "type": "product_feed",
- "attributes": {
- "source": "facebook",
- "product_account_id": "string",
- "catalog_id": "string",
- "options": {
- "delete_files_once_processed": false
}, - "url": "string"
}
}
}{- "data": {
- "id": 1,
- "type": "product_feed",
- "attributes": {
- "name": "Q4.01_MeowProducts",
- "source": "facebook",
- "status": "active",
- "options": {
- "delete_files_once_processed": false
}, - "last_ingested_at": "2020-01-01T00:00:00.000Z",
- "error_message": null
}, - "relationships": {
- "catalog": {
- "meta": {
- "included": false
}
}, - "product_account": {
- "meta": {
- "included": false
}
}
}
}
}| product_feed_id required | integer |
| team_id required | integer |
| include | Array of strings Items Enum: "product_account" "catalog" |
object | |||||||||
| |||||||||
{- "data": {
- "id": 1,
- "type": "product_feed",
- "attributes": {
- "name": "Q4.01_MeowProducts",
- "source": "facebook",
- "status": "active",
- "options": {
- "delete_files_once_processed": false
}, - "last_ingested_at": "2020-01-01T00:00:00.000Z",
- "error_message": null
}, - "relationships": {
- "catalog": {
- "meta": {
- "included": false
}
}, - "product_account": {
- "meta": {
- "included": false
}
}
}
}
}| team_id required | integer |
object | |
| include | Array of strings Items Value: "product_feed" |
object |
Array of objects | |||||||
Array
| |||||||
{- "data": [
- {
- "type": "product",
- "attributes": {
- "name": "string",
- "brand": "string",
- "description": "string",
- "image_url": "string",
- "url": "string",
- "sale_price_starts_at": "string",
- "sale_price_ends_at": "string",
- "currency": "USD",
- "availability": "in_stock",
- "price": 0,
- "sale_price": 0,
- "sku": "string",
- "family": "string",
- "categories": [
- "string"
]
}, - "relationships": {
- "product_feed": {
- "meta": {
- "included": false
}
}
}
}
]
}This only works for product feed of type custom.
| team_id required | integer |
required | object | ||||
| |||||
{- "data": {
- "type": "product",
- "attributes": {
- "name": "string",
- "brand": "string",
- "description": "string",
- "image_url": "string",
- "url": "string",
- "sale_price_starts_at": "string",
- "sale_price_ends_at": "string",
- "currency": "USD",
- "availability": "in_stock",
- "price": 0,
- "sale_price": 0,
- "sku": "string",
- "family": "string",
- "categories": [
- "string"
], - "product_feed_id": "string"
}
}
}| product_id required | integer |
| team_id required | integer |
| include | Array of strings Items Value: "product_feed" |
object | |||||||
| |||||||
{- "data": {
- "type": "product",
- "attributes": {
- "name": "string",
- "brand": "string",
- "description": "string",
- "image_url": "string",
- "url": "string",
- "sale_price_starts_at": "string",
- "sale_price_ends_at": "string",
- "currency": "USD",
- "availability": "in_stock",
- "price": 0,
- "sale_price": 0,
- "sku": "string",
- "family": "string",
- "categories": [
- "string"
]
}, - "relationships": {
- "product_feed": {
- "meta": {
- "included": false
}
}
}
}
}| team_id required | integer |
| include | Array of strings Items Value: "tint" |
object |
required | Array of objects | ||||||||
Array
| |||||||||
{- "data": [
- {
- "type": "right_request_template",
- "attributes": {
- "hashtag": "yes",
- "template": "Such a good capture! We would love repost this picture on our Instagram page. Please review our terms. {{username}} if you agree, please {{mention}} {{hashtag}} {{terms_url}}",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "tint": {
- "id": null
}
}, - "id": 1
}
]
}| team_id required | integer |
| include | Array of strings Items Value: "tint" |
required | object | ||||
| |||||
required | object | ||||||||
| |||||||||
{- "data": {
- "type": "right_request_template",
- "attributes": {
- "hashtag": "yes",
- "template": "Such a good capture! We would love repost this picture on our Instagram page. Please review our terms. {{username}} if you agree, please {{mention}} {{hashtag}} {{terms_url}}"
}
}
}{- "data": {
- "type": "right_request_template",
- "attributes": {
- "hashtag": "yes",
- "template": "Such a good capture! We would love repost this picture on our Instagram page. Please review our terms. {{username}} if you agree, please {{mention}} {{hashtag}} {{terms_url}}",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "tint": {
- "id": null
}
}, - "id": 1
}
}| team_id required | integer |
| tint_id required | integer |
object | |
| include | Array of strings Items Value: "tint" |
object |
required | Array of objects | ||||||||
Array
| |||||||||
{- "data": [
- {
- "type": "right_request_template",
- "attributes": {
- "hashtag": "yes",
- "template": "Such a good capture! We would love repost this picture on our Instagram page. Please review our terms. {{username}} if you agree, please {{mention}} {{hashtag}} {{terms_url}}",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "tint": {
- "id": null
}
}, - "id": 1
}
]
}| team_id required | integer |
| team_id required | integer |
| include | Array of strings Items Value: "tint" |
required | object | ||||||||
| |||||||||
{- "data": {
- "type": "right_request_template",
- "attributes": {
- "hashtag": "yes",
- "template": "Such a good capture! We would love repost this picture on our Instagram page. Please review our terms. {{username}} if you agree, please {{mention}} {{hashtag}} {{terms_url}}",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "tint": {
- "id": null
}
}, - "id": 1
}
}| team_id required | integer |
| team_id required | integer |
| include | Array of strings Items Value: "tint" |
required | object | ||||||
| |||||||
required | object | ||||||||
| |||||||||
{- "data": {
- "type": "right_request_template",
- "attributes": {
- "hashtag": "yes",
- "template": "Such a good capture! We would love repost this picture on our Instagram page. Please review our terms. {{username}} if you agree, please {{mention}} {{hashtag}} {{terms_url}}"
}, - "id": 1
}
}{- "data": {
- "type": "right_request_template",
- "attributes": {
- "hashtag": "yes",
- "template": "Such a good capture! We would love repost this picture on our Instagram page. Please review our terms. {{username}} if you agree, please {{mention}} {{hashtag}} {{terms_url}}",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "tint": {
- "id": null
}
}, - "id": 1
}
}| team_id required | integer |
| include | Array of strings Items Value: "tint" |
object |
required | Array of objects | ||||||||
Array
| |||||||||
{- "data": [
- {
- "id": 1,
- "type": "right_request_term",
- "attributes": {
- "created_at": "2020-01-01T00:00:00.000Z",
- "status": "published",
- "text": "# General Terms and Conditions\n\nThis contest will be governed by these standard terms and conditions. Each participant agrees that he/she\nhas read and understood these terms and by their participation in the contest, each participant agrees to be\nbound by the terms. Mere participation should not be perceived as any commitment on the part of Hypemarks\nInc. to select a participant as the winner. Nothing herein amounts to a commitment by Hypemarks Inc. to\nconduct further, similar or other contests in future.\n\n...",
- "title": null,
- "name": "Default",
- "logo_url": null,
- "document": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0011167e0bd16e3f4405ef030f444f403df9a1c0"
}, - "relationships": {
- "tint": {
- "id": null
}
}
}
]
}| team_id required | integer |
| include | Array of strings Items Value: "tint" |
required | object | ||||
| |||||
required | object | ||||||||
| |||||||||
{- "data": {
- "type": "right_request_term",
- "attributes": {
- "text": "# General Terms and Conditions\n\nThis contest will be governed by these standard terms and conditions. Each participant agrees that he/she\nhas read and understood these terms and by their participation in the contest, each participant agrees to be\nbound by the terms. Mere participation should not be perceived as any commitment on the part of Hypemarks\nInc. to select a participant as the winner. Nothing herein amounts to a commitment by Hypemarks Inc. to\nconduct further, similar or other contests in future.\n\n...",
- "title": null,
- "name": "Default",
- "logo_url": null,
- "document": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0011167e0bd16e3f4405ef030f444f403df9a1c0"
}
}
}{- "data": {
- "id": 1,
- "type": "right_request_term",
- "attributes": {
- "created_at": "2020-01-01T00:00:00.000Z",
- "status": "published",
- "text": "# General Terms and Conditions\n\nThis contest will be governed by these standard terms and conditions. Each participant agrees that he/she\nhas read and understood these terms and by their participation in the contest, each participant agrees to be\nbound by the terms. Mere participation should not be perceived as any commitment on the part of Hypemarks\nInc. to select a participant as the winner. Nothing herein amounts to a commitment by Hypemarks Inc. to\nconduct further, similar or other contests in future.\n\n...",
- "title": null,
- "name": "Default",
- "logo_url": null,
- "document": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0011167e0bd16e3f4405ef030f444f403df9a1c0"
}, - "relationships": {
- "tint": {
- "id": null
}
}
}
}| team_id required | integer |
| tint_id required | integer |
object | |
| include | Array of strings Items Value: "tint" |
object |
required | Array of objects | ||||||||
Array
| |||||||||
{- "data": [
- {
- "id": 1,
- "type": "right_request_term",
- "attributes": {
- "created_at": "2020-01-01T00:00:00.000Z",
- "status": "published",
- "text": "# General Terms and Conditions\n\nThis contest will be governed by these standard terms and conditions. Each participant agrees that he/she\nhas read and understood these terms and by their participation in the contest, each participant agrees to be\nbound by the terms. Mere participation should not be perceived as any commitment on the part of Hypemarks\nInc. to select a participant as the winner. Nothing herein amounts to a commitment by Hypemarks Inc. to\nconduct further, similar or other contests in future.\n\n...",
- "title": null,
- "name": "Default",
- "logo_url": null,
- "document": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0011167e0bd16e3f4405ef030f444f403df9a1c0"
}, - "relationships": {
- "tint": {
- "id": null
}
}
}
]
}Unlike other right request term endpoints, this one returns archived terms so they can be displayed to users who may want to review the terms they were asked to accept
| right_request_term_id required | integer |
| team_id required | integer |
| include | Array of strings Items Value: "tint" |
required | object | ||||||||
| |||||||||
{- "data": {
- "id": 1,
- "type": "right_request_term",
- "attributes": {
- "created_at": "2020-01-01T00:00:00.000Z",
- "status": "published",
- "text": "# General Terms and Conditions\n\nThis contest will be governed by these standard terms and conditions. Each participant agrees that he/she\nhas read and understood these terms and by their participation in the contest, each participant agrees to be\nbound by the terms. Mere participation should not be perceived as any commitment on the part of Hypemarks\nInc. to select a participant as the winner. Nothing herein amounts to a commitment by Hypemarks Inc. to\nconduct further, similar or other contests in future.\n\n...",
- "title": null,
- "name": "Default",
- "logo_url": null,
- "document": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0011167e0bd16e3f4405ef030f444f403df9a1c0"
}, - "relationships": {
- "tint": {
- "id": null
}
}
}
}| team_id required | integer |
| filter[account_id] | integer |
| filter[source] | string Enum: "facebook" "twitter" "instagram" "public_post" "instagram_business" "externally_sourced_posts" |
| filter[status] | string Enum: "approved" "deleted" "error" "expired" "missing" "pending" "requested" "soft_approved" "token_error" A comma separated list of statuses |
| filter[subaccount_id] | string |
| filter[user_id] | integer |
| include | Array of strings Items Enum: "posts" "right_request_term" |
object |
required | object | ||||||
| |||||||
{- "data": {
- "type": "right_request",
- "attributes": {
- "hashtag": "yes",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "approved_at": "2020-01-01T00:00:00.000Z",
- "status": "approved",
- "text": "asdf",
- "template_id": "string",
- "source": "instagram_business",
- "external_id": "string"
}, - "id": 1
}
}| team_id required | integer |
| include | Array of strings Items Enum: "posts" "right_request_term" |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "right_request",
- "attributes": {
- "hashtag": "yes",
- "template_id": "string",
- "template": "Such a good capture! We would love repost this picture on our Instagram page. Please review our terms. {{username}} if you agree, please {{mention}} {{hashtag}} {{terms_url}}",
- "right_request_term_id": 1,
- "tint_id": null,
- "account_id": 1,
- "subaccount_id": "464297566935356|17841401839964064",
- "source": "instagram_business",
- "external_id": "string"
}
}
}{- "data": {
- "type": "right_request",
- "attributes": {
- "hashtag": "yes",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "approved_at": "2020-01-01T00:00:00.000Z",
- "status": "approved",
- "text": "asdf",
- "template_id": "string",
- "source": "instagram_business",
- "external_id": "string"
}, - "id": 1
}
}| team_id required | integer |
| team_id required | integer |
| include | Array of strings Items Enum: "posts" "right_request_term" |
required | object | ||||||
| |||||||
{- "data": {
- "type": "right_request",
- "attributes": {
- "hashtag": "yes",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "approved_at": "2020-01-01T00:00:00.000Z",
- "status": "approved",
- "text": "asdf",
- "template_id": "string",
- "source": "instagram_business",
- "external_id": "string"
}, - "id": 1
}
}| measure_name required | string Enum: "created" "approved" |
| team_id required | integer |
object | |
| group | Array of strings Items Enum: "time.day" "time.day_of_week" "time.hour" "time.hour_of_day" "time.month" "time.quarter" "time.week" "time.year" "source" "user_id" "account_id" "subaccount_id" |
object |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": "f42c2ba98b72afee69976d52875fe313",
- "type": "right_requests_metric",
- "attributes": {
- "dimensions": { },
- "count": 8888
}
}
]
}| team_id required | integer |
object |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "type": "personalization",
- "attributes": {
- "type": "embed",
- "status": "active",
- "theme": "classic_v3",
- "name": "Homepage",
- "tags": [ ],
- "data": {
- "draft": { },
- "published": { }
}, - "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
]
}| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "personalization",
- "attributes": {
- "type": "embed",
- "status": "active",
- "theme": "classic_v3",
- "name": "Homepage",
- "tags": [ ],
- "data": {
- "draft": { },
- "published": { }
}
}
}
}{- "data": {
- "type": "personalization",
- "attributes": {
- "type": "embed",
- "status": "active",
- "theme": "classic_v3",
- "name": "Homepage",
- "tags": [ ],
- "data": {
- "draft": { },
- "published": { }
}, - "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
{- "data": [
- {
- "type": "personalization",
- "attributes": {
- "type": "embed",
- "status": "active",
- "theme": "classic_v3",
- "name": "Homepage",
- "tags": [ ],
- "data": {
- "draft": { },
- "published": { }
}
}
}
]
}| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
{- "data": [
- {
- "id": 1,
- "type": "personalization"
}
]
}| personalization_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
{- "data": {
- "type": "personalization",
- "attributes": {
- "type": "embed",
- "status": "active",
- "theme": "classic_v3",
- "name": "Homepage",
- "tags": [ ],
- "data": {
- "draft": { },
- "published": { }
}, - "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}| personalization_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "personalization",
- "attributes": {
- "type": "embed",
- "status": "active",
- "theme": "classic_v3",
- "name": "Homepage",
- "tags": [ ],
- "data": {
- "draft": { },
- "published": { }
}
}, - "id": 1
}
}{- "data": {
- "type": "personalization",
- "attributes": {
- "type": "embed",
- "status": "active",
- "theme": "classic_v3",
- "name": "Homepage",
- "tags": [ ],
- "data": {
- "draft": { },
- "published": { }
}, - "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}| team_id required | integer |
object | |
object | |
| sort | string Default: "last_moderated_at" Enum: "pinned" "last_moderated_at" "published_at" "score" |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "type": "post",
- "attributes": {
- "title": null,
- "text": "just setting up my twttr",
- "external_id": "20",
- "type": "reviews",
- "published_at": "2020-01-01T00:00:00.000Z",
- "image_url": null,
- "video_url": null,
- "carousel": false,
- "media_type": "image",
- "author": {
- "name": "jack",
- "username": "jack",
- "email": null,
- "phone": null
}, - "highlighted": false,
- "pinned": false,
- "alternative_text": null,
- "rating": 20,
- "verified": false,
- "custom_field": null,
- "tags": null,
- "hue_probability": null,
- "status": "public"
}, - "id": 1
}
]
}| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
{- "data": [
- {
- "id": 1,
- "type": "post"
}
]
}| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": 1,
- "type": "post",
- "attributes": {
- "status": "public",
- "highlighted": true,
- "pinned": true,
- "alternative_text": "string",
- "tags": [
- "follow up",
- "known brand ambassador"
]
}
}
]
}{- "data": [
- {
- "type": "post",
- "attributes": {
- "title": null,
- "text": "just setting up my twttr",
- "external_id": "20",
- "type": "reviews",
- "published_at": "2020-01-01T00:00:00.000Z",
- "image_url": null,
- "video_url": null,
- "carousel": false,
- "media_type": "image",
- "author": {
- "name": "jack",
- "username": "jack",
- "email": null,
- "phone": null
}, - "highlighted": false,
- "pinned": false,
- "alternative_text": null,
- "rating": 20,
- "verified": false,
- "custom_field": null,
- "tags": null,
- "hue_probability": null,
- "status": "public"
}, - "id": 1
}
]
}| team_id required | integer |
object | |
| group | Array of strings Items Enum: "time.day" "time.day_of_week" "time.hour" "time.hour_of_day" "time.month" "time.quarter" "time.week" "time.year" "user_id" "tint_id" "status" "source" |
object |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": "f42c2ba98b72afee69976d52875fe313",
- "type": "posts_metric",
- "attributes": {
- "dimensions": {
- "user_id": "16891",
- "status": "public"
}, - "count": 8888
}
}
]
}This endpoint requires the posts:read
| post_engagement_type required | string Enum: "embed_post_modal_opened" "embed_post_external_link_opened" "embed_post_cta_clicked" "embed_post_shared" "embed_post_modal_navigate_right" "embed_post_author_clicked" |
| team_id required | integer |
object | |
| group | Array of strings Items Enum: "time.day" "time.day_of_week" "time.hour" "time.hour_of_day" "time.month" "time.quarter" "time.week" "time.year" "tint_id" "post_id" "personalization_type" "theme" "device_category" "media_type" |
object |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": "f42c2ba98b72afee69976d52875fe313",
- "type": "embed_engagement_metric",
- "attributes": {
- "dimensions": { },
- "count": 8888
}
}
]
}This endpoint requires the posts:read scope unless you specify at least a tint or social feed id and provides up to 12 months of ingestion metrics
| team_id required | integer |
object | |
| group | Array of strings Items Enum: "time.day" "time.day_of_week" "time.hour" "time.hour_of_day" "time.month" "time.quarter" "time.week" "time.year" "social_feed_id" "social_feed_source" "tint_id" "account_id" |
object |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": "f42c2ba98b72afee69976d52875fe313",
- "type": "posts_ingested_metric",
- "attributes": {
- "dimensions": { },
- "count": 8888
}
}
]
}| post_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
required | object | ||||||
| |||||||
{- "data": {
- "id": 1,
- "type": "post",
- "attributes": {
- "status": "public",
- "highlighted": true,
- "pinned": true,
- "alternative_text": "string",
- "tags": [
- "follow up",
- "known brand ambassador"
]
}
}
}{- "data": {
- "type": "post",
- "attributes": {
- "title": null,
- "text": "just setting up my twttr",
- "external_id": "20",
- "type": "reviews",
- "published_at": "2020-01-01T00:00:00.000Z",
- "image_url": null,
- "video_url": null,
- "carousel": false,
- "media_type": "image",
- "author": {
- "name": "jack",
- "username": "jack",
- "email": null,
- "phone": null
}, - "highlighted": false,
- "pinned": false,
- "alternative_text": null,
- "rating": 20,
- "verified": false,
- "custom_field": null,
- "tags": null,
- "hue_probability": null,
- "status": "public"
}, - "id": 1
}
}| team_id required | integer |
| tint_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "post",
- "attributes": {
- "tags": [
- "follow up",
- "known brand ambassador"
], - "title": null,
- "text": "just setting up my twttr",
- "media_url": null,
- "author": {
- "name": "jack",
- "username": "jack",
- "email": null,
- "phone": null
}, - "highlighted": false,
- "pinned": false,
- "alternative_text": null
}
}
}{- "data": {
- "type": "post",
- "attributes": {
- "title": null,
- "text": "just setting up my twttr",
- "external_id": "20",
- "type": "reviews",
- "published_at": "2020-01-01T00:00:00.000Z",
- "image_url": null,
- "video_url": null,
- "carousel": false,
- "media_type": "image",
- "author": {
- "name": "jack",
- "username": "jack",
- "email": null,
- "phone": null
}, - "highlighted": false,
- "pinned": false,
- "alternative_text": null,
- "rating": 20,
- "verified": false,
- "custom_field": null,
- "tags": null,
- "hue_probability": null,
- "status": "public"
}, - "id": 1
}
}| tint_slug required | string |
object | |
object | |
| sort | string Default: "last_moderated_at" Enum: "pinned" "last_moderated_at" "published_at" "score" |
required | object | ||||||
| |||||||
{- "data": {
- "type": "post",
- "attributes": {
- "title": null,
- "text": "just setting up my twttr",
- "external_id": "20",
- "type": "twitter",
- "published_at": "2020-01-01T00:00:00.000Z",
- "image_url": null,
- "video_url": null,
- "carousel": false,
- "media_type": "image",
- "author": {
- "name": "jack",
- "username": "jack",
- "email": null,
- "phone": null
}, - "highlighted": false,
- "pinned": false,
- "alternative_text": null
}, - "id": 1
}
}| tint_slug required | string |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "post",
- "attributes": {
- "tags": [
- "follow up",
- "known brand ambassador"
], - "title": null,
- "text": "just setting up my twttr",
- "media_url": null,
- "author": {
- "name": "jack",
- "username": "jack",
- "email": null,
- "phone": null
}, - "type": "reviews",
- "rating": 20,
- "verified": false,
- "custom_field": null
}
}
}{- "data": {
- "type": "post",
- "attributes": {
- "title": null,
- "text": "just setting up my twttr",
- "external_id": "20",
- "type": "twitter",
- "published_at": "2020-01-01T00:00:00.000Z",
- "image_url": null,
- "video_url": null,
- "carousel": false,
- "media_type": "image",
- "author": {
- "name": "jack",
- "username": "jack",
- "email": null,
- "phone": null
}, - "highlighted": false,
- "pinned": false,
- "alternative_text": null
}, - "id": 1
}
}| posts_request_id required | string |
| tint_slug required | string |
required | object | ||||||
| |||||||
{- "data": {
- "id": "OxZZQtuh5sXIKA",
- "type": "post_create_request",
- "attributes": {
- "status": "failure"
}
}
}Once complete, a websocket message will be delivered to the user's private channel (private-user- followed by the user's id) with a message of type post_export_request containinga response but you may also opt to use our origin and redirect_uri options
| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "post_export_request",
- "attributes": {
- "tint_id": 1
}
}
}{- "data": {
- "id": "OxZZQtuh5sXIKA",
- "type": "post_export_request",
- "attributes": {
- "status": "failure",
- "url": null
}
}
}| post_export_request_id required | string |
| team_id required | integer |
required | object | ||||||
| |||||||
{- "data": {
- "id": "OxZZQtuh5sXIKA",
- "type": "post_export_request",
- "attributes": {
- "status": "failure",
- "url": null
}
}
}Generates or retrieves a posts summary for the specified Tint. If the summary already exists and is up-to-date, the request returns 200 OK with the summary. If the summary needs to be generated, the request returns 202 Accepted and the summary will be available shortly.
| tint_id required | integer |
| include | Array of strings Items Enum: "product_tags.product" "cta_associations.cta" "team" |
object Filters applied to the posts included in the summary. | |||
| |||
required | object | ||||||||||
| |||||||||||
required | object | ||||||||||
| |||||||||||
{- "filter": { }
}{- "data": {
- "id": "3b6d5c3e9a09a2b47a2d87b6d4a2c65a",
- "type": "posts_summary",
- "attributes": {
- "query_hash": "3b6d5c3e9a09a2b47a2d87b6d4a2c65a",
- "post_count": 123,
- "status": "ready",
- "fresh": true,
- "stale": false,
- "summary": { },
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "expires_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "team": {
- "data": {
- "type": "team",
- "id": "string"
}, - "meta": {
- "included": false
}
}
}, - "meta": {
- "fingerprint": {
- "algorithm": "SHA256",
- "description": "Deterministic hash of team and filter parameters"
}, - "cache": {
- "ttl_minutes": 5,
- "fresh": true,
- "expires_at": "2020-01-01T00:00:00.000Z"
}
}
}
}| team_id required | integer |
object | |
| include | Array of strings Items Enum: "personalizations" "posts" "recently_active_embed_locations" "social_feeds" |
object |
required | Array of objects | ||||||||||
Array
| |||||||||||
{- "data": [
- {
- "type": "tint",
- "attributes": {
- "name": "Employee Generated Content",
- "slug": null,
- "public_channel": null,
- "tags": [
- "box",
- "cat"
], - "private": false,
- "status": "ready",
- "auto_moderation_rules": [
- {
- "conditions": {
- "text": [
- "tint"
]
}, - "changes": {
- "status": "public"
}
}
], - "last_moderated_at": "string",
- "created_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "personalizations": {
- "meta": {
- "included": false
}
}, - "social_feeds": {
- "meta": {
- "total": 0
}
}, - "posts": {
- "meta": {
- "included": false
}
}, - "recently_active_embed_locations": {
- "meta": {
- "included": false
}
}
}, - "links": {
- "public_post_terms": null,
- "websocket": null
}, - "id": 1
}
]
}| team_id required | integer |
| include | Array of strings Items Enum: "personalizations" "posts" "recently_active_embed_locations" "social_feeds" |
required | object | ||||
| |||||
required | object | ||||||||||
| |||||||||||
{- "data": {
- "type": "tint",
- "attributes": {
- "name": "Employee Generated Content",
- "slug": null,
- "tags": [
- "box",
- "cat"
], - "private": false,
- "status": "ready",
- "auto_moderation_rules": [
- {
- "conditions": {
- "text": [
- "tint"
]
}, - "changes": {
- "status": "public"
}
}
]
}
}
}{- "data": {
- "type": "tint",
- "attributes": {
- "name": "Employee Generated Content",
- "slug": null,
- "public_channel": null,
- "tags": [
- "box",
- "cat"
], - "private": false,
- "status": "ready",
- "auto_moderation_rules": [
- {
- "conditions": {
- "text": [
- "tint"
]
}, - "changes": {
- "status": "public"
}
}
], - "last_moderated_at": "string",
- "created_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "personalizations": {
- "meta": {
- "included": false
}
}, - "social_feeds": {
- "meta": {
- "total": 0
}
}, - "posts": {
- "meta": {
- "included": false
}
}, - "recently_active_embed_locations": {
- "meta": {
- "included": false
}
}
}, - "links": {
- "public_post_terms": null,
- "websocket": null
}, - "id": 1
}
}| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "type": "tint",
- "attributes": {
- "name": "Employee Generated Content",
- "slug": null,
- "tags": [
- "box",
- "cat"
], - "private": false,
- "status": "ready",
- "auto_moderation_rules": [
- {
- "conditions": {
- "text": [
- "tint"
]
}, - "changes": {
- "status": "public"
}
}
]
}, - "id": 1
}
]
}| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
{- "data": [
- {
- "id": 1,
- "type": "tint"
}
]
}This endpoint requires the tints:read
| embed_engagement_type required | string Enum: "embed_post_modal_opened" "embed_post_external_link_opened" "embed_post_cta_clicked" "embed_post_shared" "embed_post_modal_navigate_right" "embed_post_author_clicked" "embed_paginated" "embed_loaded" "embed_viewed" |
| team_id required | integer |
| aggregation | string Enum: "count_unique" "count" Used to select the type of analysis, defaults to count |
object | |
| group | Array of strings Items Enum: "time.day" "time.day_of_week" "time.hour" "time.hour_of_day" "time.month" "time.quarter" "time.week" "time.year" "tint_id" "post_id" "personalization_type" "theme" "device_category" "media_type" "embed_url" "remote_ip_country" |
object |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": "f42c2ba98b72afee69976d52875fe313",
- "type": "embed_engagement_metric",
- "attributes": {
- "dimensions": { },
- "count": 8888
}
}
]
}| team_id required | integer |
| tint_id required | integer |
| include | Array of strings Items Enum: "personalizations" "posts" "recently_active_embed_locations" "social_feeds" |
required | object | ||||||||||
| |||||||||||
{- "data": {
- "type": "tint",
- "attributes": {
- "name": "Employee Generated Content",
- "slug": null,
- "public_channel": null,
- "tags": [
- "box",
- "cat"
], - "private": false,
- "status": "ready",
- "auto_moderation_rules": [
- {
- "conditions": {
- "text": [
- "tint"
]
}, - "changes": {
- "status": "public"
}
}
], - "last_moderated_at": "string",
- "created_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "personalizations": {
- "meta": {
- "included": false
}
}, - "social_feeds": {
- "meta": {
- "total": 0
}
}, - "posts": {
- "meta": {
- "included": false
}
}, - "recently_active_embed_locations": {
- "meta": {
- "included": false
}
}
}, - "links": {
- "public_post_terms": null,
- "websocket": null
}, - "id": 1
}
}| team_id required | integer |
| tint_id required | integer |
| include | Array of strings Items Enum: "personalizations" "posts" "recently_active_embed_locations" "social_feeds" |
required | object | ||||||
| |||||||
required | object | ||||||||||
| |||||||||||
{- "data": {
- "type": "tint",
- "attributes": {
- "name": "Employee Generated Content",
- "slug": null,
- "tags": [
- "box",
- "cat"
], - "private": false,
- "status": "ready",
- "auto_moderation_rules": [
- {
- "conditions": {
- "text": [
- "tint"
]
}, - "changes": {
- "status": "public"
}
}
]
}, - "id": 1
}
}{- "data": {
- "type": "tint",
- "attributes": {
- "name": "Employee Generated Content",
- "slug": null,
- "public_channel": null,
- "tags": [
- "box",
- "cat"
], - "private": false,
- "status": "ready",
- "auto_moderation_rules": [
- {
- "conditions": {
- "text": [
- "tint"
]
}, - "changes": {
- "status": "public"
}
}
], - "last_moderated_at": "string",
- "created_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "personalizations": {
- "meta": {
- "included": false
}
}, - "social_feeds": {
- "meta": {
- "total": 0
}
}, - "posts": {
- "meta": {
- "included": false
}
}, - "recently_active_embed_locations": {
- "meta": {
- "included": false
}
}
}, - "links": {
- "public_post_terms": null,
- "websocket": null
}, - "id": 1
}
}| tint_slug required | string |
required | object | ||||||||||
| |||||||||||
{- "data": {
- "type": "tint",
- "attributes": {
- "name": "Employee Generated Content",
- "slug": null,
- "public_channel": null
}, - "relationships": {
- "personalizations": {
- "meta": {
- "included": false
}
}, - "social_feeds": {
- "meta": {
- "total": 0
}
}
}, - "links": {
- "public_post_terms": null,
- "websocket": null
}, - "id": 1
}
}| team_id required | integer |
| tint_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "type": "saved_filter",
- "attributes": {
- "name": "Summer Time",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "filter": {
- "image_object": [
- "smiles",
- "cake"
], - "language": [
- "en",
- "es"
], - "media_type": [
- "image",
- "text"
], - "published_at": {
- "$gte": "2021-10-10T23:00:00.000+00:00",
- "$lte": "2021-10-18T23:00:00.000+00:00"
}, - "q": "ice cream",
- "status": [
- "public",
- "recurring"
], - "right_request_status": [
- "approved"
], - "social_feed_id": [
- "23",
- "21"
], - "sentiment": [
- "neutral"
], - "tag": [
- "follow up",
- "known brand ambassador"
], - "type": [
- "tiktok",
- "instagram_business"
], - "product_id": [
- "325",
- "352"
], - "product_sku": [
- "8325294730",
- "2549603759"
], - "highlighted": false,
- "pinned": false
}
}, - "id": 1
}
]
}| team_id required | integer |
| tint_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "saved_filter",
- "attributes": {
- "name": "Summer Time",
- "filter": {
- "image_object": [
- "smiles",
- "cake"
], - "language": [
- "en",
- "es"
], - "media_type": [
- "image",
- "text"
], - "published_at": {
- "$gte": "2021-10-10T23:00:00.000+00:00",
- "$lte": "2021-10-18T23:00:00.000+00:00"
}, - "q": "ice cream",
- "status": [
- "public",
- "recurring"
], - "right_request_status": [
- "approved"
], - "social_feed_id": [
- "23",
- "21"
], - "sentiment": [
- "neutral"
], - "tag": [
- "follow up",
- "known brand ambassador"
], - "type": [
- "tiktok",
- "instagram_business"
], - "product_id": [
- "325",
- "352"
], - "product_sku": [
- "8325294730",
- "2549603759"
], - "highlighted": false,
- "pinned": false
}
}
}
}{- "data": {
- "type": "saved_filter",
- "attributes": {
- "name": "Summer Time",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "filter": {
- "image_object": [
- "smiles",
- "cake"
], - "language": [
- "en",
- "es"
], - "media_type": [
- "image",
- "text"
], - "published_at": {
- "$gte": "2021-10-10T23:00:00.000+00:00",
- "$lte": "2021-10-18T23:00:00.000+00:00"
}, - "q": "ice cream",
- "status": [
- "public",
- "recurring"
], - "right_request_status": [
- "approved"
], - "social_feed_id": [
- "23",
- "21"
], - "sentiment": [
- "neutral"
], - "tag": [
- "follow up",
- "known brand ambassador"
], - "type": [
- "tiktok",
- "instagram_business"
], - "product_id": [
- "325",
- "352"
], - "product_sku": [
- "8325294730",
- "2549603759"
], - "highlighted": false,
- "pinned": false
}
}, - "id": 1
}
}| saved_filter_id required | integer |
| team_id required | integer |
| tint_id required | integer |
required | object | ||||||
| |||||||
{- "data": {
- "type": "saved_filter",
- "attributes": {
- "name": "Summer Time",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "filter": {
- "image_object": [
- "smiles",
- "cake"
], - "language": [
- "en",
- "es"
], - "media_type": [
- "image",
- "text"
], - "published_at": {
- "$gte": "2021-10-10T23:00:00.000+00:00",
- "$lte": "2021-10-18T23:00:00.000+00:00"
}, - "q": "ice cream",
- "status": [
- "public",
- "recurring"
], - "right_request_status": [
- "approved"
], - "social_feed_id": [
- "23",
- "21"
], - "sentiment": [
- "neutral"
], - "tag": [
- "follow up",
- "known brand ambassador"
], - "type": [
- "tiktok",
- "instagram_business"
], - "product_id": [
- "325",
- "352"
], - "product_sku": [
- "8325294730",
- "2549603759"
], - "highlighted": false,
- "pinned": false
}
}, - "id": 1
}
}| saved_filter_id required | integer |
| team_id required | integer |
| tint_id required | integer |
required | object | ||||||
| |||||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "saved_filter",
- "attributes": {
- "name": "Summer Time",
- "filter": {
- "image_object": [
- "smiles",
- "cake"
], - "language": [
- "en",
- "es"
], - "media_type": [
- "image",
- "text"
], - "published_at": {
- "$gte": "2021-10-10T23:00:00.000+00:00",
- "$lte": "2021-10-18T23:00:00.000+00:00"
}, - "q": "ice cream",
- "status": [
- "public",
- "recurring"
], - "right_request_status": [
- "approved"
], - "social_feed_id": [
- "23",
- "21"
], - "sentiment": [
- "neutral"
], - "tag": [
- "follow up",
- "known brand ambassador"
], - "type": [
- "tiktok",
- "instagram_business"
], - "product_id": [
- "325",
- "352"
], - "product_sku": [
- "8325294730",
- "2549603759"
], - "highlighted": false,
- "pinned": false
}
}, - "id": 1
}
}{- "data": {
- "type": "saved_filter",
- "attributes": {
- "name": "Summer Time",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "filter": {
- "image_object": [
- "smiles",
- "cake"
], - "language": [
- "en",
- "es"
], - "media_type": [
- "image",
- "text"
], - "published_at": {
- "$gte": "2021-10-10T23:00:00.000+00:00",
- "$lte": "2021-10-18T23:00:00.000+00:00"
}, - "q": "ice cream",
- "status": [
- "public",
- "recurring"
], - "right_request_status": [
- "approved"
], - "social_feed_id": [
- "23",
- "21"
], - "sentiment": [
- "neutral"
], - "tag": [
- "follow up",
- "known brand ambassador"
], - "type": [
- "tiktok",
- "instagram_business"
], - "product_id": [
- "325",
- "352"
], - "product_sku": [
- "8325294730",
- "2549603759"
], - "highlighted": false,
- "pinned": false
}
}, - "id": 1
}
}| team_id required | integer |
| tint_id required | integer |
| include | Array of strings Items Value: "cta_associations" |
object |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": 1,
- "type": "cta",
- "attributes": {
- "name": "Hotel Booking",
- "text": "Book Now",
}
}
]
}| team_id required | integer |
| tint_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "cta",
- "attributes": {
- "name": "Hotel Booking",
- "text": "Book Now",
}
}
}{- "data": {
- "id": 1,
- "type": "cta",
- "attributes": {
- "name": "Hotel Booking",
- "text": "Book Now",
}
}
}| cta_id required | integer |
| team_id required | integer |
| tint_id required | integer |
| include | Array of strings Items Value: "cta_associations" |
required | object | ||||||
| |||||||
{- "data": {
- "id": 1,
- "type": "cta",
- "attributes": {
- "name": "Hotel Booking",
- "text": "Book Now",
}
}
}| cta_id required | integer |
| team_id required | integer |
| tint_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "cta",
- "attributes": {
- "name": "Hotel Booking",
- "text": "Book Now",
}, - "id": 1
}
}{- "data": {
- "id": 1,
- "type": "cta",
- "attributes": {
- "name": "Hotel Booking",
- "text": "Book Now",
}
}
}| team_id required | integer |
| tint_id required | integer |
required | object | ||||
| |||||
required | Array of objects | ||||||
Array
| |||||||
{- "data": {
- "type": "cta_association",
- "attributes": {
- "post_id": 1,
- "saved_filter_id": 2,
- "cta_id": 3
}
}
}{- "data": [
- {
- "id": 1,
- "attributes": {
- "type": "saved_filter"
}, - "relationships": {
- "cta": {
- "data": {
- "type": "cta",
- "id": 2
}
}
}
}
]
}| team_id required | integer |
| include | Array of strings Items Value: "user" |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "reply",
- "attributes": {
- "text": "The review is really valuable to us.",
- "source": "public_post",
- "external_id": "1368999965880557573",
- "visibility": "active"
}
}
}{- "data": {
- "type": "reply",
- "attributes": {
- "text": "The review is really valuable to us.",
- "visibility": "active",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}| reply_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "reply",
- "attributes": {
- "text": "The review is really valuable to us.",
- "source": "public_post",
- "external_id": "1368999965880557573",
- "visibility": "active"
}, - "id": 1
}
}{- "data": {
- "type": "reply",
- "attributes": {
- "text": "The review is really valuable to us.",
- "visibility": "active",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}| mix_id required | integer |
required | object | ||||||
| |||||||
{- "data": {
- "type": "mix",
- "attributes": {
- "scenes": [
- {
- "layout": "fullscreen",
- "template": "a",
- "areas": {
- "a": [
- {
- "type": "image",
- "duration": 10,
- "name": "TrueLoyal logo",
- "tint_id": null,
- "personalization_id": null
}
]
}
}
]
}, - "id": 1
}
}| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "type": "mix",
- "attributes": {
- "scenes": [
- {
- "layout": "fullscreen",
- "template": "a",
- "areas": {
- "a": [
- {
- "type": "image",
- "duration": 10,
- "name": "TrueLoyal logo",
- "tint_id": null,
- "personalization_id": null
}
]
}
}
], - "name": "Sample Mix",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
]
}| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "mix",
- "attributes": {
- "scenes": [
- {
- "layout": "fullscreen",
- "template": "a",
- "areas": {
- "a": [
- {
- "type": "image",
- "duration": 10,
- "name": "TrueLoyal logo",
- "tint_id": null,
- "personalization_id": null
}
]
}
}
]
}
}
}{- "data": {
- "type": "mix",
- "attributes": {
- "scenes": [
- {
- "layout": "fullscreen",
- "template": "a",
- "areas": {
- "a": [
- {
- "type": "image",
- "duration": 10,
- "name": "TrueLoyal logo",
- "tint_id": null,
- "personalization_id": null
}
]
}
}
], - "name": "Sample Mix",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
{- "data": [
- {
- "id": 1,
- "type": "mix"
}
]
}| mix_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
{- "data": {
- "type": "mix",
- "attributes": {
- "scenes": [
- {
- "layout": "fullscreen",
- "template": "a",
- "areas": {
- "a": [
- {
- "type": "image",
- "duration": 10,
- "name": "TrueLoyal logo",
- "tint_id": null,
- "personalization_id": null
}
]
}
}
], - "name": "Sample Mix",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}| mix_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "mix",
- "attributes": {
- "scenes": [
- {
- "layout": "fullscreen",
- "template": "a",
- "areas": {
- "a": [
- {
- "type": "image",
- "duration": 10,
- "name": "TrueLoyal logo",
- "tint_id": null,
- "personalization_id": null
}
]
}
}
], - "name": "Sample Mix"
}, - "id": 1
}
}{- "data": {
- "type": "mix",
- "attributes": {
- "scenes": [
- {
- "layout": "fullscreen",
- "template": "a",
- "areas": {
- "a": [
- {
- "type": "image",
- "duration": 10,
- "name": "TrueLoyal logo",
- "tint_id": null,
- "personalization_id": null
}
]
}
}
], - "name": "Sample Mix",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}| team_id required | integer |
object | |
| include | Array of strings Items Value: "collections" |
object |
required | Array of objects | ||||||||||
Array
| |||||||||||
{- "data": [
- {
- "type": "asset",
- "attributes": {
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "status": "active",
- "objects": [
- "animal",
- "cat",
- "pet",
- "teeth"
], - "tags": [
- "known brand ambassador"
], - "emotions": [
- "happy"
], - "licenses": false,
- "infections": [
- "content.malicious.ait-trojan-nymeria-315"
], - "imported_from_data": { },
- "author": null,
- "text": null,
- "post_title": null,
- "post_text": null,
- "source": "instagram_business"
}, - "links": {
- "related": null
}, - "relationships": {
- "collections": {
- "meta": {
- "included": false
}
}
}, - "id": 1
}
]
}Once complete, a websocket message will be delivered to the team's private channel (private-team- followed by the team's id) with a message of type asset_bulk_create_request containing a response
| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
required | object | ||||||
| |||||||
{- "data": [
- {
- "type": "asset",
- "attributes": {
- "status": "active",
- "tags": [
- "known brand ambassador"
], - "collection_ids": [ ],
- "title": null,
- "description": null,
- "alternative_text": null,
- "source_id": 1,
- "source_url": null,
- "source": "branded"
}
}
]
}{- "data": {
- "id": "OxZZQtuh5sXIKA",
- "type": "asset_bulk_create_request",
- "attributes": {
- "status": "pending"
}
}
}| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
{- "data": [
- {
- "id": 1,
- "type": "asset"
}
]
}| asset_id required | integer |
| team_id required | integer |
| include | Array of strings Items Value: "collections" |
required | object | ||||||||||
| |||||||||||
{- "data": {
- "type": "asset",
- "attributes": {
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "status": "active",
- "objects": [
- "animal",
- "cat",
- "pet",
- "teeth"
], - "tags": [
- "known brand ambassador"
], - "emotions": [
- "happy"
], - "licenses": false,
- "infections": [
- "content.malicious.ait-trojan-nymeria-315"
], - "imported_from_data": { },
- "author": null,
- "text": null,
- "post_title": null,
- "post_text": null,
- "source": "instagram_business"
}, - "links": {
- "related": null
}, - "relationships": {
- "collections": {
- "meta": {
- "included": false
}
}
}, - "id": 1
}
}| asset_id required | integer |
| team_id required | integer |
| include | Array of strings Items Value: "collections" |
required | object | ||||||
| |||||||
required | object | ||||||||||
| |||||||||||
{- "data": {
- "type": "asset",
- "attributes": {
- "status": "active",
- "tags": [
- "known brand ambassador"
], - "collection_ids": [ ]
}, - "id": 1
}
}{- "data": {
- "type": "asset",
- "attributes": {
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "status": "active",
- "objects": [
- "animal",
- "cat",
- "pet",
- "teeth"
], - "tags": [
- "known brand ambassador"
], - "emotions": [
- "happy"
], - "licenses": false,
- "infections": [
- "content.malicious.ait-trojan-nymeria-315"
], - "imported_from_data": { },
- "author": null,
- "text": null,
- "post_title": null,
- "post_text": null,
- "source": "instagram_business"
}, - "links": {
- "related": null
}, - "relationships": {
- "collections": {
- "meta": {
- "included": false
}
}
}, - "id": 1
}
}| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": "tags",
- "type": "aggregation",
- "attributes": {
- "buckets": {
- "cats": 5,
- "2023Q1": 10
}
}
}
]
}| team_id required | integer |
object |
required | Array of objects | ||||||||
Array
| |||||||||
{- "data": [
- {
- "type": "collection",
- "attributes": {
- "name": null,
- "assets_count": 10,
- "public": false,
- "status": "active",
- "slug": "string",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "assets": {
- "meta": {
- "total": 10
}
}
}, - "id": 1
}
]
}| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||||
| |||||||||
{- "data": {
- "type": "collection",
- "attributes": {
- "name": null,
- "public": false,
- "status": "active"
}
}
}{- "data": {
- "type": "collection",
- "attributes": {
- "name": null,
- "assets_count": 10,
- "public": false,
- "status": "active",
- "slug": "string",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "assets": {
- "meta": {
- "total": 10
}
}
}, - "id": 1
}
}| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
{- "data": [
- {
- "id": 1,
- "type": "collection"
}
]
}| collection_id required | integer |
| team_id required | integer |
required | object | ||||||||
| |||||||||
{- "data": {
- "type": "collection",
- "attributes": {
- "name": null,
- "assets_count": 10,
- "public": false,
- "status": "active",
- "slug": "string",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "assets": {
- "meta": {
- "total": 10
}
}
}, - "id": 1
}
}| collection_id required | integer |
| team_id required | integer |
required | object | ||||||
| |||||||
required | object | ||||||||
| |||||||||
{- "data": {
- "type": "collection",
- "attributes": {
- "name": null,
- "public": false,
- "status": "active"
}, - "id": 1
}
}{- "data": {
- "type": "collection",
- "attributes": {
- "name": null,
- "assets_count": 10,
- "public": false,
- "status": "active",
- "slug": "string",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "assets": {
- "meta": {
- "total": 10
}
}
}, - "id": 1
}
}| team_id required | integer |
object |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "type": "marketing_integration",
- "attributes": {
- "status": "error",
- "site": null,
- "source": "facebook"
}, - "id": 1
}
]
}| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "marketing_integration",
- "attributes": {
- "site": null,
- "source": "widen_collective"
}
}
}{- "data": {
- "type": "marketing_integration",
- "attributes": {
- "status": "error",
- "site": null,
- "source": "facebook"
}, - "id": 1
}
}| marketing_integration_id required | integer |
| team_id required | integer |
| origin | string When specified, we will post a message with containing the response body using |
| redirect_uri | string When specified, we will redirect the user to this URI and include a |
A folder is a remote group or collection that can be access directly using the specified marketing integration credentials
| marketing_integration_id required | integer |
| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": "?",
- "type": "folder",
- "attributes": { }
}
]
}| team_id required | integer |
| origin | string When specified, we will post a message with containing the response body using |
| redirect_uri | string When specified, we will redirect the user to this URI and include a |
| type required | string Value: "widen_collective" The type of marketing integration to authenticate |
| marketing_integration_id required | integer |
| team_id required | integer |
required | Array of objects | ||||
Array
| |||||
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "type": "marketing_integration_request",
- "attributes": {
- "asset_id": 1,
- "collection_id": null,
- "folder_id": 41736560
}
}
]
}{- "data": [
- {
- "id": "OxZZQtuh5sXIKA",
- "type": "marketing_integration_request",
- "attributes": {
- "folder_id": 41736560,
- "status": "failure"
}
}
]
}| team_id required | integer |
| include | Array of strings Items Enum: "campaign" "account" "team" |
object |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": 1,
- "type": "scheduled_content",
- "attributes": {
- "published_at": "2022-01-01T00:00:00.000Z",
- "campaign_id": "1234",
- "text": "Sample caption",
- "tags": [ ],
- "media": [
- "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBHUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--1ee56cf3fe6d120d6d51a0c9bed4077c0cb03b58"
], - "status": "failure",
- "account_id": 1,
- "subaccount_id": 464297566935356
}
}
]
}| team_id required | integer |
required | object | ||||
| |||||
required | Array of objects | ||||||
Array
| |||||||
{- "data": {
- "type": "scheduled_content",
- "attributes": {
- "published_at": "2022-01-01T00:00:00.000Z",
- "campaign_id": "1234",
- "text": "Sample caption",
- "tags": [ ],
- "media": [
- "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBHUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--1ee56cf3fe6d120d6d51a0c9bed4077c0cb03b58"
], - "account_id": 1,
- "subaccount_id": 464297566935356
}
}
}{- "data": [
- {
- "id": 1,
- "type": "scheduled_content",
- "attributes": {
- "published_at": "2022-01-01T00:00:00.000Z",
- "campaign_id": "1234",
- "text": "Sample caption",
- "tags": [ ],
- "media": [
- "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBHUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--1ee56cf3fe6d120d6d51a0c9bed4077c0cb03b58"
], - "status": "failure",
- "account_id": 1,
- "subaccount_id": 464297566935356
}
}
]
}| scheduled_content_id required | integer |
| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": 1,
- "type": "scheduled_content",
- "attributes": {
- "published_at": "2022-01-01T00:00:00.000Z",
- "campaign_id": "1234",
- "text": "Sample caption",
- "tags": [ ],
- "media": [
- "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBHUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--1ee56cf3fe6d120d6d51a0c9bed4077c0cb03b58"
], - "status": "failure",
- "account_id": 1,
- "subaccount_id": 464297566935356
}
}
]
}| scheduled_content_id required | integer |
| team_id required | integer |
required | object | ||||
| |||||
required | Array of objects | ||||||
Array
| |||||||
{- "data": {
- "type": "scheduled_content",
- "attributes": {
- "published_at": "2022-01-01T00:00:00.000Z",
- "campaign_id": "1234",
- "text": "Sample caption",
- "tags": [ ],
- "media": [
- "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBHUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--1ee56cf3fe6d120d6d51a0c9bed4077c0cb03b58"
]
}
}
}{- "data": [
- {
- "id": 1,
- "type": "scheduled_content",
- "attributes": {
- "published_at": "2022-01-01T00:00:00.000Z",
- "campaign_id": "1234",
- "text": "Sample caption",
- "tags": [ ],
- "media": [
- "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBHUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--1ee56cf3fe6d120d6d51a0c9bed4077c0cb03b58"
], - "status": "failure",
- "account_id": 1,
- "subaccount_id": 464297566935356
}
}
]
}| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": "tags",
- "type": "aggregation",
- "attributes": {
- "buckets": {
- "cats": 5,
- "2023Q1": 10
}
}
}
]
}| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "id": 1,
- "type": "campaign",
- "attributes": {
- "name": "summer collections",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "label_color": "#fffff"
}
}
]
}| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "campaign",
- "attributes": {
- "name": "summer collections",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "label_color": "#fffff"
}
}
}{- "data": {
- "id": 1,
- "type": "campaign",
- "attributes": {
- "name": "summer collections",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "label_color": "#fffff"
}
}
}| campaign_id required | integer |
| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "campaign",
- "attributes": {
- "name": "summer collections",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "label_color": "#fffff"
}
}
}{- "data": {
- "id": 1,
- "type": "campaign",
- "attributes": {
- "name": "summer collections",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z",
- "label_color": "#fffff"
}
}
}| team_id required | integer |
required | Array of objects | ||||||
Array
| |||||||
{- "data": [
- {
- "type": "webhook",
- "attributes": {
- "description": null,
- "version": 20190326,
- "events": [
- "asset_created"
], - "status": "active",
- "signing_secret": null,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
]
}| team_id required | integer |
required | object | ||||
| |||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "webhook",
- "attributes": {
- "description": null,
- "version": 20190326,
- "events": [
- "asset_created"
], - "status": "active",
- "signing_secret": null
}
}
}{- "data": {
- "type": "webhook",
- "attributes": {
- "description": null,
- "version": 20190326,
- "events": [
- "asset_created"
], - "status": "active",
- "signing_secret": null,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}| team_id required | integer |
| webhook_id required | integer |
required | object | ||||||
| |||||||
{- "data": {
- "type": "webhook",
- "attributes": {
- "description": null,
- "version": 20190326,
- "events": [
- "asset_created"
], - "status": "active",
- "signing_secret": null,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}| team_id required | integer |
| webhook_id required | integer |
required | object | ||||||
| |||||||
required | object | ||||||
| |||||||
{- "data": {
- "type": "webhook",
- "attributes": {
- "description": null,
- "version": 20190326,
- "events": [
- "asset_created"
], - "status": "active",
- "signing_secret": null
}, - "id": 1
}
}{- "data": {
- "type": "webhook",
- "attributes": {
- "description": null,
- "version": 20190326,
- "events": [
- "asset_created"
], - "status": "active",
- "signing_secret": null,
- "created_at": "2020-01-01T00:00:00.000Z",
- "updated_at": "2020-01-01T00:00:00.000Z"
}, - "id": 1
}
}Webhook event will be sent to your webhook endpoint using POST in the same format as our other API responses.
You will receive a resource of type webhook_event which has a relationship to an object resource which will
contain the object this webhook is about. While the included relationship isn't customizable for webhooks, we
tried to use reasonable default but should you need any additional data, you can always request it from the API.
For example:
{
"data": {
"id": 1,
"type": "event",
"attributes": {
"name": "asset_created",
"created_at": "2021-04-21T20:19:00Z",
},
"relationships": {
"object": {
"type": "asset",
"id": 1
},
"object": {
"type": "team",
"id": 1
}
}
},
"included": [...]
}
For a list of supported events, please see the endpoint to create events but please note that events of type
post_created, post_updated and post_destroyed are only sent for posts ingested via SMS, email and/or public
post social feeds.
If your webhook endpoint returns 404 or 410, we will immediately fail the webhook request, and after 50 consecutive failures, we will inactivate your webhook.
| team_id required | integer |
| webhook_id required | integer |
required | Array of objects | ||||||||
Array
| |||||||||
{- "data": [
- {
- "id": 1,
- "type": "event",
- "attributes": {
- "payload": "{\"data\":{\"id\":\"1377451\",\"type\":\"event\",\"attributes\":{}}}",
- "status": "pending",
- "version": 20190326,
- "created_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "attempts": {
- "meta": {
- "included": false
}
}
}
}
]
}| team_id required | integer |
| webhook_event_id required | integer |
| webhook_id required | integer |
required | object | ||||||||
| |||||||||
{- "data": {
- "id": 1,
- "type": "event",
- "attributes": {
- "payload": "{\"data\":{\"id\":\"1377451\",\"type\":\"event\",\"attributes\":{}}}",
- "status": "pending",
- "version": 20190326,
- "created_at": "2020-01-01T00:00:00.000Z"
}, - "relationships": {
- "attempts": {
- "meta": {
- "included": false
}
}
}
}
}To protect your application against man-in-the-middle and replay attacks it is essential, but optional, to verify webhook event signatures. Verification ensures that the webhook payloads were actually sent by TrueLoyal and that the contents of the payloads have not been changed in transport.
If we have a signing secret for your webhook endpoint, we will include a X-TINT-Signature header which contains
a timestamp and the signature, separated by a comma.
To verify the signature:
The following example shows the basics of how to verify a signature using PHP.
<?php
$payload = file_get_contents("php://input");
list($timestamp, $signature) = explode($_SERVER["X_TINT_SIGNATURE"], ",", 2);
$signing_secret = '<SIGNING_SECRET>';
if (base64_encode(hash_hmac("sha256", $timestamp . "." . $payload, $signing_secret)) == $signature) {
# Signature is valid
}