Work Templates

List work templates

OAuth: This endpoint requires the default public scope.

List Work Templates

get
Authorizations
Query parameters
pageintegerOptional

Search results are limited to 100 items. Specify page number to read more than the first page.

Responses
200
Lists Work Templates
application/json
get
GET /v1/clients/work_templates HTTP/1.1
Host: api.textmaster.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "work_templates": [
    {
      "name": "1_title_1_paragraph",
      "description": null,
      "image_preview_path": null,
      "ctype": "public"
    },
    {
      "name": "2_paragraphs",
      "description": null,
      "image_preview_path": null,
      "ctype": "public"
    }
  ],
  "total_pages": 1,
  "count": 1,
  "page": 1,
  "per_page": 20,
  "previous_page": null,
  "next_page": null
}

Code samples

curl -G "https://api.textmaster.com/v1/clients/work_templates" \
  -H "Authorization: Bearer a9ff7f5dd9b264f5315dd9bbf75c161f5dde794157a8145cde2856e4b80d9548"

Get a work template

OAuth: This endpoint requires the default public scope.

Retrieve a Work Templates

get
Authorizations
Path parameters
work_template_namestringRequired

The Work Template name

Responses
200
Gets a Work Templates
application/json
get
GET /v1/clients/work_templates/{work_template_name} HTTP/1.1
Host: api.textmaster.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "name": "1_title_1_paragraph",
  "description": null,
  "image_preview_path": null,
  "ctype": "public"
}

Code samples

curl -G "https://api.textmaster.com/v1/clients/work_templates/2_paragraphs" \
  -H "Authorization: Bearer 1435f72240cb208fac8cecd8d09a341b8f6260bd66d41c0cd890955e3ec9229c"

Last updated

Was this helpful?