curl --request GET \
--url https://api.topsort.com/public/v1/campaign-service/json-templates \
--header 'Authorization: Bearer <token>'{
"hasMore": true,
"jsonTemplates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"jsonSchema": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"adFormat": "banner",
"isArchived": false,
"previewScreenshot": "<string>",
"previewUrl": "<string>"
}
],
"nextPage": "SSBzb2xlbW5seSBzd2VhciB0aGF0IEkgYW0gdXAgdG8gbm8gZ29vZAo="
}Endpoint to get JSON templates.
curl --request GET \
--url https://api.topsort.com/public/v1/campaign-service/json-templates \
--header 'Authorization: Bearer <token>'{
"hasMore": true,
"jsonTemplates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"jsonSchema": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"adFormat": "banner",
"isArchived": false,
"previewScreenshot": "<string>",
"previewUrl": "<string>"
}
],
"nextPage": "SSBzb2xlbW5seSBzd2VhciB0aGF0IEkgYW0gdXAgdG8gbm8gZ29vZAo="
}A valid API key generated in Topsort's UI.
The pagination limit.
0 <= x <= 100A token provided in a previous response. If not empty, it is used to retrieve the page that follows.
Search query to filter the templates.
Whether to include archived templates.
Successful Response
Flag that indicates whether more results are available. true indicates there is a next page of results. false indicates this response contains the last page of results.
Show child attributes
The ID of the JSON template
The ID of the marketplace
The name of the JSON template
The description of the JSON template
The JSON schema of the JSON template
The creation time of the JSON template
The update time of the JSON template
The ad format of the JSON template
banner, sponsored_brand Whether the JSON template is archived
Preview screenshot of the JSON template
1 - 2083Preview URL of the JSON template
1 - 2083Pagination cursor. Provide this value as a next_page query parameter in a new request to retrieve the next page of results.
1"SSBzb2xlbW5seSBzd2VhciB0aGF0IEkgYW0gdXAgdG8gbm8gZ29vZAo="
Was this page helpful?