Image Templates

List all available image templates.

get/image-templates/

Request

  • Base URL: https://api.thanks.io/api/v2
  • URL: https://api.thanks.io/api/v2/image-templates/
  • Auth: HTTP bearer

Query parameters

items_per_pageinteger

Number of items to return per page.

sub_account_idinteger

Filter results by Sub Account ID.

type'postcard' | 'postcard6x9' | 'postcard6x11' | 'letter' | 'windowlessletter' | 'notecard' | 'giftcard' | 'magnacard'

Only return templates of this type. postcard is 4x6.

Response

OK

Example response

{
  "data": [
    {
      "id": 6,
      "user_id": 2,
      "sub_account_id": 55,
      "type": "postcard",
      "name": "Thank You Image",
      "image": "https://s3.amazonaws.com/cdn.thanks.io/user_image_library/1533645532.png",
      "canva_id": "some-canva-id",
      "created_at": "2018-08-07 00:00:00",
      "updated_at": "2018-08-08 00:00:00"
    }
  ],
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "per_page": 25,
    "to": 1,
    "total": 1
  }
}

Changes

    • warning

      added the new magnacard enum value to the // response property for the response status

    • warning

      added the new postcard6x11 enum value to the // response property for the response status

    • warning

      added the new postcard6x9 enum value to the // response property for the response status

    • info

      added the new optional query request parameter type