GET /v1/templates/

Retrieves templates data

template_id endpoint retrieves just a single template.

Template Schema

FieldTypeDescription
iduuidUnique identifier for template object.
created_attimestampWhen the template was created.
updated_attimestampWhen the template was updated.
created_by_id uuidWhich user created the template.
versionintegerThe media version of the template.
orientationstringThe orientation of the template (landscape, portrait)
typestringThe type of template (i.e. "postcard-4x6")
namestringThe name of the template.
curl -X GET --header "Accept: application/json" --header "Authorization: Inkit <api-key>" "https://api.inkit.io/v1/templates/"
The above command returns JSON structured like this:

{
    "body": {
        "id": "02bc92c7fa1e6c00e7920e8321492664",
        "created_at": "2018-10-19T12:01",
        "updated_at": "2018-10-19T12:01",
        "created_by_id": "419eb138d2445c57f795b42ab11b7a2a",
        "version": 1,
        "orientation": "landscape",
        "type": "postcard-4x6",
        "name": "December Mailer"
        },
    "response": {
        "message": "",
        "status_code": 200
    }
}