GET
/
public
/
v1
/
campaign-service
/
json-templates
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="
}

Authorizations

Authorization
string
header
required

A valid API key generated in Topsort's UI.

Query Parameters

limit
integer
default:100

The pagination limit.

Required range: 0 <= x <= 100
next_page
string

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.

include_archived
boolean
default:false

Whether to include archived templates.

Response

200
application/json

Successful Response

The response is of type object.