curl --request GET \
--url https://api.topsort.com/public/v1/campaign-service/json-templates \
--header 'Authorization: Bearer <token>'
{
"hasMore": true,
"jsonTemplates": [
{
"adFormat": "banner",
"createdAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isArchived": false,
"jsonSchema": {},
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"previewScreenshot": "<string>",
"previewUrl": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"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": [
{
"adFormat": "banner",
"createdAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isArchived": false,
"jsonSchema": {},
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"previewScreenshot": "<string>",
"previewUrl": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"nextPage": "SSBzb2xlbW5seSBzd2VhciB0aGF0IEkgYW0gdXAgdG8gbm8gZ29vZAo="
}
A valid API key generated in Topsort's UI.
The pagination limit.
0 <= x <= 100
A 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
The response is of type object
.