API referenceTemplates
List templates
`folder` is a folder’s id (what’s directly in it), `top` (the top level) or `all`; without it, a search looks everywhere and a plain list shows the top level. Deleted ones only when the status filter asks for them.
GET
folder is a folder’s id (what’s directly in it), top (the top level) or all; without it, a search looks everywhere and a plain list shows the top level. Deleted ones only when the status filter asks for them.
apiKey readheader
AuthorizationBearer <token>A workspace API key (pf_…), created under Developers → API keys.
Scope: read
page?integerStarts at 1
Range
1 <= valueDefault
1pageSize?numberOne of 10, 25, 50, 100
Default
25q?stringSearch
Length
1 <= length <= 200status?stringComma-separated, any of: active, archived
sort?stringOne of name, createdAt, updatedAt; prefix with - for descending
Default
"-updatedAt"Value in
"name""-name""createdAt""-createdAt""updatedAt""-updatedAt"folder?|OK
application/json- response
items*array<>total*integerpage*integerpageSize*integercurl -X GET 'https://api.postforge.dev/v1/templates'{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "string", "name": "string", "folder": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "status": "active", "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "archivedAt": "2019-08-24T14:15:22Z", "locales": [ "string" ], "thumbnailUrl": "http://example.com" } ], "total": 0, "page": 0, "pageSize": 0}