Download OpenAPI specification:Download
This API exposes the power of Tiled through programmatic access. You can automate workflows, integrate with your CRM or embed Tiled in your CMS. All you need to do is generate an API key from your Tiled account and you're ready to go!
If you need help working with the API, we recommend downloading our Postman collection which can be imported from this link. To get the collection working, you'll need to setup an environment and replace environment
with v1.tiled.co
and apiKey
with the API key you copied from the Tiled website.
Returns a list of sessions for microapps in your account.
date required | string <date-time> The date for which you want to retrieve analytics session data |
microappId | string Example: microappId=95953ed244a5f409f38cad2a A specific microapp Id that you want sessions and completion events for. |
timezone | string Example: timezone=America/Los_Angeles (Defaults to UTC) A specific timezone name to retrieve analytics session data. Please see the list of supported timezones at "TZ database name" |
[- {
- "id": "5be33ed244a5f409f38cad2c",
- "userId": "user@tiled.co",
- "microappId": "5be33ed244a5f409f38cad2b",
- "microappName": "Test microapp",
- "startTime": "2018-11-11 19:36:50.095Z",
- "endTime": "2018-11-12 19:36:50.095Z",
- "activeDuration": 44.5,
- "completionEvents": [
- {
- "payload": {
- "userId": "testing@tiled.co",
- "microappId": "5be33ed244a5f409f38cad2b",
- "microappName": "Test microapp",
- "completionName": "cmpt__5be33ed244a5f409f38cad2b__v__4ac33ed122a5f245f38ca2222"
}, - "completedAt": "2018-12-10T21:12:09.497z"
}, - {
- "payload": {
- "userId": "testing@tiled.co",
- "microappId": "5be33ed244a5f409f38cad2b",
- "microappName": "Test microapp",
- "completionName": "cmpt__5be33ed244a5f409f38cad2b__v__8ac33ed008b5f325f14ca4444"
}, - "completedAt": "2018-12-10T21:15:10.422z"
}
]
}
]
Returns a CSV export of sessions for microapps in your account.
date required | string <date-time> The date for which you want to retrieve analytics session data. |
microappId | string Example: microappId=95953ed244a5f409f38cad2a A specific microapp Id that you want sessions and completion events for. |
timezone | string Example: timezone=America/Los_Angeles (Defaults to UTC) A specific timezone name to retrieve analytics session data. Please see the list of supported timezones at "TZ database name" |
[- {
- "Session Viewer": "alice@example.com",
- "Viewer Name": "Alice Waters",
- "Microapp Name": "My microapp",
- "Microapp Instance Name": "",
- "Session Start time": "12/03/2022 11:12 AM",
- "Session Duration (sec)": 44.5,
- "Engagement Score": 1,
- "Sender Name": "John Doe",
- "Share Link Created Date": "12/02/2022 11:12 PM",
- "Share Link Type": "Direct",
- "Library Name": "Professional Services",
- "Microapp Id": "5c01d29917969b6976caa554",
- "Session Id": "0da8fcb3-64dd-42f0-9d25-b7fec228c322",
- "Instance Id": "",
- "completionEvents": 2,
- "completionNames": [
- "cmpt__5c01d29917969b6976caa554",
- "cmpt__8a81d29917969b6976caa995"
]
}
]
Returns aggregated data of views and average duration for each page of a specific adaptive format.
documentId required | string Example: documentId=95953ed244a5f409f38cad2a The specific adaptive format's id you are pulling aggregated data for |
date | string <date-time> Example: date=2021-01-01 (optional) The date for which the aggregation should start through the current date. If no date is provided, the call will default to the microapp's created date. |
[- {
- "screenName": "Page 1",
- "views": 3,
- "avgDuration": 70.7,
- "adaptiveFormat": "Desktop wide",
- "microappName": "My Microapp"
}
]
Returns aggregated data of views and average duration for each page of a specific adaptive format.
documentId required | string Example: documentId=95953ed244a5f409f38cad2a The specific adaptive format's id you are pulling aggregated data for |
date | string <date-time> Example: date=2021-01-01 (optional) The date for which the aggregation should start through the current date. If no date is provided, the call will default to the microapp's created date. |
[- {
- "screenName": "Page 1",
- "views": 3,
- "avgDuration": 70.7,
- "adaptiveFormat": "Desktop wide",
- "microappName": "My Microapp"
}
]
Returns a list of microapps in your account along with a few relevant properties.
archived | boolean Passing true will return microapps that have been archived in addition to non-archived microapps. The default is false. |
[- {
- "id": "5be33ed244a5f409f38cad2b",
- "name": "My Microapp",
- "publishedAt": "2018-11-09 19:36:50.095Z",
- "categoryNames": [
- "Category1",
- "Category2"
], - "documentIds": [
- {
- "documentId": "5be33ed244a5f409f38cad2a",
- "adaptiveFormat": "Desktop wide",
- "size": {
- "width": 3840,
- "height": 2160,
- "pixelRatio": 2
}
}
], - "createdAt": "2018-11-08 19:36:50.095Z",
- "updatedAt": "2018-11-07 19:36:50.095Z",
- "archived": true
}
]
Returns a list of all the completion events of a microapp
microappId required | string The id of the microapp |
csv | string To retrieve information in a csv file format, set csv value to "true" |
{- "microappId": "5be33ed244a5f409f38cad2b",
- "microappName": "Microapp Name",
- "documents": [
- {
- "documentId": "5be33ed244a5f409f38cad2b",
- "adaptiveFormatSize": "2048x1280",
- "adaptiveFormat": "Desktop landscape",
- "completionEvents": {
- "completionName": "cmpt__5c01d29917969b6976caa554",
- "completionSource": "Page 1"
}
}
]
}
Creates an instance of a microapp that can be shared using the microapp /share
endpoint.
microappId required | string The id of the microapp to which you want to associate a new instance |
userEmail | string The email of the Tiled user that will own this instance. If you omit this, everyone in your organization will have access to this instance. |
title required | string The name to give this instance |
data required | object A key/value dictionary to associate with this instance. You can find the API names for instance data mapping from the Settings dialog of a microapp in the Hub. |
{- "id": "5be33ed244a5f409f38cad2a",
- "title": "My Instance",
- "data": {
- "dataMappingName1": "value1",
- "dataMappingName2": "value2"
}
}
Adds or removes keys from the data of an instance. The caller can also change the owner.
instanceId required | string The id of the instance to update |
userEmail | string The email of the Tiled user that owns this instance. If you omit this, the owner will not change. If you set this to empty string (i.e. |
title | string The name to update this instance with |
data | object A key/value dictionary to update this instance with. If this is omitted, the value won't change. You can find the API names for instance data mappings from the Settings dialog of a microapp in the Hub. |
{- "id": "5be33ed244a5f409f38cad2a",
- "title": "My Instance",
- "data": {
- "dataMappingName1": "value1",
- "dataMappingName2": "value2"
}
}
The link structure to embed a Tiled microapp in an iframe. The embed can be copied from the settings pane of a microapp and the iframe code will look something like
<iframe src="https://s.tiled.co/abcdef7?dynamic=true&recipientId=7bdc2f3fb094448392619a5465402128&recipientName=Bob%20Beetlejuice&data=%7B"test"%3A"val1"%2C"test-2"%3A"val2"%7D" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen width="800" height="450"></iframe>
shortUrlKey required | string The shortened url for key for the embedded microapp |
dynamic | boolean This must be set to "true" if you want to track the viewer as a unique user |
recipientId | string A unique identifier (e.g. email, GUID. Must be unique) of the person receiving the microapp. Required if dynamic=true |
recipientName | string The full name of the person receiving the microapp |
userEmail | string The email of the Tiled user you would like to associate with this session. By setting this, you can find all the analytics for a session by drilling into this Tiled user on Tiled's website. |
data | string The JSON instance data to insert into this microapp. Note that this parameter will need to be URI encoded just like any other URL param. You can find the API names for instance data mappings from the Settings dialog of a microapp in the Hub. |
By using a URL like https://app.tiled.co/microapp/abc1234
, you are able to link directly to a microapp. This only applies to users who have an account in Tiled. When going to this URL, you will either go to the microapp in your browser or you will deep link into the iOS or Android app if you open it on a mobile device with the Tiled app installed. You can construct this link programatically by taking the microappId from the /microapps
endpoint and appending it to https://app.tiled.co/microapp/
microappId required | string The id for the microapp you want to link to |
Returns information about a microapp's personalization options, including how many created instances exist and what dynamic fields are available to personalize.
microappId required | string The id of the microapp for personalization info |
{- "instanceCount": 5,
- "dynamicFields": [
- {
- "fieldId": "5be33ed244a5f409f38cad2b",
- "type": "text",
- "name": "TXT1",
- "defaultValue": "foo",
- "isRequired": true
}, - {
- "fieldId": "5be33ed244a5f409f38cad2c",
- "type": "image",
- "name": "Image 1",
- "defaultValue": "5be33ed244a5f409f38cad2d",
- "isRequired": false
}, - {
- "fieldId": "5be33ed244a5f409f38cad2d",
- "type": "video",
- "name": "Video 1",
- "isRequired": false
}, - {
- "fieldId": "5be33ed244a5f409f38cad2e",
- "type": "url",
- "name": "Dynamic URL",
- "isRequired": false
}, - {
- "fieldId": "5be33ed244a5f409f38cad2f",
- "type": "phone",
- "name": "Dynamic Phone",
- "defaultValue": "tel://2137777777",
- "isRequired": false
}, - {
- "fieldId": "5be33ed244a5f409f38cad2g",
- "type": "email",
- "name": "Dynamic Email",
- "defaultValue": "mailto:help@tiled.co",
- "isRequired": false
}
]
}
Given a name and some data, creates and fills out fields for a new instance of a microapp
microappId required | string The id of the microapp for personalization info. |
name required | string A unique name for your instance |
ownerEmail required | string Your email address |
{{fieldId}} | text/file Dynamic value to apply to the dynamic field id. The field ids can be retrieved via the info endpoint. File must be less than 10MB. |
{- "instanceId": "5be33ed244a5f409f38cad2b",
- "microappId": "5be33ed244a5f409f38cad2b",
- "name": "Sales Prospect Alpha"
}
Update the native properties of the instance on the microapp, and/or overwrite any or all of the values mapped by each field id.
microappId required | string The id of the microapp for personalization info. |
instanceId required | string The id of the instance for personalization. |
name | string A unique name for your instance |
{{fieldId}} | text/file Dynamic value to apply to the dynamic field id. The field ids can be retrieved via the info endpoint. File must be less than 10MB. |
{- "instanceId": "5be33ed244a5f409f38cad2b",
- "microappId": "5be33ed244a5f409f38cad2b",
- "name": "Sales Prospect Alpha"
}