curl --request GET \
--url https://api.usertour.io/v2/projects/{projectId}/content \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usertour.io/v2/projects/{projectId}/content"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usertour.io/v2/projects/{projectId}/content', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.usertour.io/v2/projects/{projectId}/content",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.usertour.io/v2/projects/{projectId}/content"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.usertour.io/v2/projects/{projectId}/content")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usertour.io/v2/projects/{projectId}/content")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "<string>",
"object": "content",
"name": "<string>",
"buildUrl": "<string>",
"editedVersionId": "<string>",
"environments": [
{
"environmentId": "<string>",
"published": true,
"publishedVersionId": "<string>",
"publishedAt": "2023-11-07T05:31:56Z",
"publishedVersion": {
"id": "<string>",
"object": "contentVersion",
"number": 123,
"firstPublishedAt": "<string>",
"themeId": "<string>",
"questions": [
{
"object": "question",
"cvid": "<string>",
"name": "<string>"
}
],
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"steps": [
{
"object": "step",
"id": "<string>",
"cvid": "<string>",
"name": "<string>",
"sequence": 123,
"themeId": "<string>",
"content": [
{
"type": "text",
"markdown": "<string>",
"object": "block",
"id": "<string>"
}
],
"target": {
"selector": "<string>",
"text": "<string>",
"nth": 2
},
"placement": {
"sideOffset": 123,
"alignOffset": 123,
"backdrop": true,
"blockTarget": true
},
"width": 123,
"skippable": true,
"explicitCompletionStep": true,
"triggers": [
{
"do": [
{
"type": "goto_step",
"step": "<string>"
}
],
"when": [
{
"type": "group",
"conditions": "<array>"
}
],
"waitSeconds": 123
}
],
"onClick": [
{
"type": "goto_step",
"step": "<string>"
}
],
"advanced": {
"hasUnsupported": true
}
}
],
"startRules": {
"when": [
{
"type": "group",
"conditions": "<array>"
}
],
"frequency": {
"every": {
"duration": 123,
"times": 123
},
"atLeast": {
"duration": 123
}
},
"waitSeconds": 123,
"startIfNotComplete": true
},
"hideRules": {
"when": [
{
"type": "group",
"conditions": "<array>"
}
]
},
"data": "<unknown>",
"scheduledAt": "<string>"
}
}
],
"deleted": true,
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"editedVersion": {
"id": "<string>",
"object": "contentVersion",
"number": 123,
"firstPublishedAt": "<string>",
"themeId": "<string>",
"questions": [
{
"object": "question",
"cvid": "<string>",
"name": "<string>"
}
],
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"steps": [
{
"object": "step",
"id": "<string>",
"cvid": "<string>",
"name": "<string>",
"sequence": 123,
"themeId": "<string>",
"content": [
{
"type": "text",
"markdown": "<string>",
"object": "block",
"id": "<string>"
}
],
"target": {
"selector": "<string>",
"text": "<string>",
"nth": 2
},
"placement": {
"sideOffset": 123,
"alignOffset": 123,
"backdrop": true,
"blockTarget": true
},
"width": 123,
"skippable": true,
"explicitCompletionStep": true,
"triggers": [
{
"do": [
{
"type": "goto_step",
"step": "<string>"
}
],
"when": [
{
"type": "group",
"conditions": "<array>"
}
],
"waitSeconds": 123
}
],
"onClick": [
{
"type": "goto_step",
"step": "<string>"
}
],
"advanced": {
"hasUnsupported": true
}
}
],
"startRules": {
"when": [
{
"type": "group",
"conditions": "<array>"
}
],
"frequency": {
"every": {
"duration": 123,
"times": 123
},
"atLeast": {
"duration": 123
}
},
"waitSeconds": 123,
"startIfNotComplete": true
},
"hideRules": {
"when": [
{
"type": "group",
"conditions": "<array>"
}
]
},
"data": "<unknown>",
"scheduledAt": "<string>"
}
}
],
"next": "<string>",
"previous": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{
"rule": "<string>",
"message": "<string>",
"path": "<string>"
}
],
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{
"rule": "<string>",
"message": "<string>",
"path": "<string>"
}
],
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{
"rule": "<string>",
"message": "<string>",
"path": "<string>"
}
],
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{
"rule": "<string>",
"message": "<string>",
"path": "<string>"
}
],
"doc_url": "<string>"
}
}List content
curl --request GET \
--url https://api.usertour.io/v2/projects/{projectId}/content \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usertour.io/v2/projects/{projectId}/content"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usertour.io/v2/projects/{projectId}/content', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.usertour.io/v2/projects/{projectId}/content",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.usertour.io/v2/projects/{projectId}/content"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.usertour.io/v2/projects/{projectId}/content")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usertour.io/v2/projects/{projectId}/content")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "<string>",
"object": "content",
"name": "<string>",
"buildUrl": "<string>",
"editedVersionId": "<string>",
"environments": [
{
"environmentId": "<string>",
"published": true,
"publishedVersionId": "<string>",
"publishedAt": "2023-11-07T05:31:56Z",
"publishedVersion": {
"id": "<string>",
"object": "contentVersion",
"number": 123,
"firstPublishedAt": "<string>",
"themeId": "<string>",
"questions": [
{
"object": "question",
"cvid": "<string>",
"name": "<string>"
}
],
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"steps": [
{
"object": "step",
"id": "<string>",
"cvid": "<string>",
"name": "<string>",
"sequence": 123,
"themeId": "<string>",
"content": [
{
"type": "text",
"markdown": "<string>",
"object": "block",
"id": "<string>"
}
],
"target": {
"selector": "<string>",
"text": "<string>",
"nth": 2
},
"placement": {
"sideOffset": 123,
"alignOffset": 123,
"backdrop": true,
"blockTarget": true
},
"width": 123,
"skippable": true,
"explicitCompletionStep": true,
"triggers": [
{
"do": [
{
"type": "goto_step",
"step": "<string>"
}
],
"when": [
{
"type": "group",
"conditions": "<array>"
}
],
"waitSeconds": 123
}
],
"onClick": [
{
"type": "goto_step",
"step": "<string>"
}
],
"advanced": {
"hasUnsupported": true
}
}
],
"startRules": {
"when": [
{
"type": "group",
"conditions": "<array>"
}
],
"frequency": {
"every": {
"duration": 123,
"times": 123
},
"atLeast": {
"duration": 123
}
},
"waitSeconds": 123,
"startIfNotComplete": true
},
"hideRules": {
"when": [
{
"type": "group",
"conditions": "<array>"
}
]
},
"data": "<unknown>",
"scheduledAt": "<string>"
}
}
],
"deleted": true,
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"editedVersion": {
"id": "<string>",
"object": "contentVersion",
"number": 123,
"firstPublishedAt": "<string>",
"themeId": "<string>",
"questions": [
{
"object": "question",
"cvid": "<string>",
"name": "<string>"
}
],
"updatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"steps": [
{
"object": "step",
"id": "<string>",
"cvid": "<string>",
"name": "<string>",
"sequence": 123,
"themeId": "<string>",
"content": [
{
"type": "text",
"markdown": "<string>",
"object": "block",
"id": "<string>"
}
],
"target": {
"selector": "<string>",
"text": "<string>",
"nth": 2
},
"placement": {
"sideOffset": 123,
"alignOffset": 123,
"backdrop": true,
"blockTarget": true
},
"width": 123,
"skippable": true,
"explicitCompletionStep": true,
"triggers": [
{
"do": [
{
"type": "goto_step",
"step": "<string>"
}
],
"when": [
{
"type": "group",
"conditions": "<array>"
}
],
"waitSeconds": 123
}
],
"onClick": [
{
"type": "goto_step",
"step": "<string>"
}
],
"advanced": {
"hasUnsupported": true
}
}
],
"startRules": {
"when": [
{
"type": "group",
"conditions": "<array>"
}
],
"frequency": {
"every": {
"duration": 123,
"times": 123
},
"atLeast": {
"duration": 123
}
},
"waitSeconds": 123,
"startIfNotComplete": true
},
"hideRules": {
"when": [
{
"type": "group",
"conditions": "<array>"
}
]
},
"data": "<unknown>",
"scheduledAt": "<string>"
}
}
],
"next": "<string>",
"previous": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{
"rule": "<string>",
"message": "<string>",
"path": "<string>"
}
],
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{
"rule": "<string>",
"message": "<string>",
"path": "<string>"
}
],
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{
"rule": "<string>",
"message": "<string>",
"path": "<string>"
}
],
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{
"rule": "<string>",
"message": "<string>",
"path": "<string>"
}
],
"doc_url": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Project ID
Query Parameters
Max items per page (1-100, default 20).
1 <= x <= 100Opaque page cursor — the cursor query value found inside a prior response's next/previous URL. Normally you never build this yourself: just GET those URLs as-is.
Filter by name (case-insensitive substring match).
Filter by content type. (A survey is a flow with question blocks — there is no separate survey type.)
checklist, flow, launcher, banner, tracker, resource-center, announcement Filter to content published in at least one environment (true) or none (false).
true, false List soft-deleted (archived) content instead of live content — the recovery pool for restore.
true, false Inline: editedVersion and/or publishedVersion.
editedVersion, publishedVersion Order by createdAt / -createdAt.
createdAt, -createdAt Only items created at or after this time — ISO date or datetime WITH timezone. A date-only value starts at that day's first instant (UTC).
Only items created at or before this time — ISO date or datetime WITH timezone. A date-only value includes the ENTIRE day (up to its last instant, UTC).
Response
List of content
Show child attributes
Show child attributes
Full URL of the next page — request it as-is (it already carries cursor= and your query parameters). null = no further pages.
Full URL of the previous page — request it as-is. null = already at the first page.