{"openapi":"3.0.3","info":{"title":"EasyContent API","description":"This API allows you to retrieve content from your EasyContent account.","termsOfService":"https://easycontent.io/user-agreement","contact":{"name":"our support team","url":"","email":"support@easycontent.io"},"version":"1.0.0"},"servers":[{"url":"https://easycontent.io/api","description":"Main server"}],"paths":{"/v2/content/auth":{"get":{"tags":["Auth"],"summary":"Performs API key check","description":"Checks the API key used in the request.\n\nUse this endpoint when setting up an integration to confirm that the key is valid and to identify the EasyContent project connected to it.\n\nA successful response returns:\n\n- `projectId` — the EasyContent project ID\n- `projectTitle` — the project name\n- `projectUrl` — the project URL in EasyContent","operationId":"getAuth","responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"properties":{"projectId":{"type":"integer","minimum":1},"projectTitle":{"type":"string"},"projectUrl":{"type":"string"}},"type":"object"},"example":{"projectId":305,"projectTitle":"default project","projectUrl":"https://john.easycontent.io/project/297"}}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"}}}},"/v2/content/content-items/{contentItemId}/comments":{"get":{"tags":["Comments"],"summary":"List comments for a content item","description":"Returns comments for one content item.\n\nBy default, this endpoint returns only open comments.\n\nUse `includeResolved=true` to include resolved comments.\n\nPagination defaults:\n\n- `page=1`\n- `per-page=100`\n\nDeleted comments and deleted replies are never returned.\n\nThe response includes comment text, author, role, status, creation time, replies, widget information, and normalized target metadata.","operationId":"listContentItemComments","parameters":[{"name":"contentItemId","in":"path","description":"ID of the content item","required":true,"schema":{"type":"integer","minimum":1}},{"name":"page","in":"query","description":"Page number (default: 1)","required":false,"schema":{"type":"integer","default":1,"minimum":1}},{"name":"per-page","in":"query","description":"Items per page (default: 100)","required":false,"schema":{"type":"integer","default":100,"minimum":1}},{"name":"includeResolved","in":"query","description":"Include resolved comments (default: false)","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Successful operation","headers":{"X-Pagination-Total-Count":{"$ref":"#/components/headers/X-Pagination-Total-Count"},"X-Pagination-Page-Count":{"$ref":"#/components/headers/X-Pagination-Page-Count"},"X-Pagination-Current-Page":{"$ref":"#/components/headers/X-Pagination-Current-Page"},"X-Pagination-Per-Page":{"$ref":"#/components/headers/X-Pagination-Per-Page"}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/commentSchema"}}}}},"401":{"description":"Unauthorized"},"403":{"description":"Content item belongs to another project"},"404":{"description":"Content item not found"}}}},"/v2/content/content-items":{"get":{"tags":["Content items"],"summary":"Retrieve list of content items","description":"Returns content items from the project connected to the API key.\n\nUse this endpoint to list available content items before fetching a specific item by ID.\n\nThe response includes each content item's ID, name, categories, keywords, notes, workflow status, URL, tabs, fields, and field values.\n\nUse `page` and `per-page` to paginate large projects.","operationId":"getContentItems","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/per-page"}],"responses":{"200":{"description":"Successful operation","headers":{"X-Pagination-Total-Count":{"$ref":"#/components/headers/X-Pagination-Total-Count"},"X-Pagination-Page-Count":{"$ref":"#/components/headers/X-Pagination-Page-Count"},"X-Pagination-Current-Page":{"$ref":"#/components/headers/X-Pagination-Current-Page"},"X-Pagination-Per-Page":{"$ref":"#/components/headers/X-Pagination-Per-Page"}},"content":{"application/json":{"schema":{"title":"Content items list schema","type":"array","items":{"$ref":"#/components/schemas/singleContentItemSchema"}},"example":[{"id":9,"name":"The best content item","categories":[1,5,19],"keywords":["example","demo"],"notes":"","workflowStatusId":3,"workflowStatusName":"Draft","url":"https://john.easycontent.io/project/297/edit/9","tabs":[{"name":"Text","fields":[{"id":1,"type":"single-line-text","label":"Title","value":"Article's title"},{"id":2,"type":"rich-text","label":"Content","value":"<p>Latest content! Updated...</p>"}]},{"name":"Meta data & Files","fields":[{"id":2,"type":"file-upload","label":"Some files","value":["https://ec-local-attachments.s3.amazonaws.com/330/706/24072/h-d50n-xbu4xsbdusua5-z_z0rqos4wa/salad-1786327_1920.jpg","https://ec-local-attachments.s3.amazonaws.com/330/706/24072/a9xo0ji1-eq9713jnpm_13-p_d276q6-/person-g2ee1c214a_1280.jpg","https://ec-local-attachments.s3.amazonaws.com/330/706/24072/nx87ajr7_8_wfiqt_gpw_s75ptb--9uz/food-1631727_1920.jpg"]}]}]}]}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/v2/content/content-items/{contentItemId}":{"get":{"tags":["Content items"],"summary":"Returns a single content item","description":"Returns one content item by ID.\n\nUse this endpoint when you need the full structured content for a specific item.\n\nThe response includes the content item's metadata and all available tabs and fields. Rich-text fields return HTML. File fields return file URLs or file data, depending on the field type.\n\nComments are not included in this response. To retrieve comments for this item, use:\n\n`GET /v2/content/content-items/{contentItemId}/comments`","operationId":"getContentItemById","parameters":[{"name":"contentItemId","in":"path","description":"ID of a content item that needs to be fetched","required":true,"schema":{"$ref":"#/components/schemas/piqp"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/singleContentItemSchema"},"example":{"id":9,"name":"The best content","categories":[1,5,19],"keywords":["example","demo"],"notes":"","workflowStatusId":3,"workflowStatusName":"Draft","url":"https://john.easycontent.io/project/297/edit/9","tabs":[{"name":"Text","fields":[{"id":1,"type":"single-line-text","label":"Title","value":"Article's title"},{"id":2,"type":"rich-text","label":"Content","value":"<p>Latest content! Updated...</p>"}]},{"name":"Meta data & Files","fields":[{"id":223,"type":"displayable-text","text":"Some guidelines text on the page"}]}]}}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"404":{"description":"Item not found"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/v2/content/briefs":{"get":{"tags":["Briefs"],"summary":"Returns a list of all briefs","description":"Returns briefs from the project connected to the API key.\n\nUse this endpoint to retrieve planned or unassigned content tasks.\n\nUse `page` and `per-page` to paginate large brief lists.","operationId":"getBriefs","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/per-page"}],"responses":{"200":{"description":"Successful operation","headers":{"X-Pagination-Total-Count":{"$ref":"#/components/headers/X-Pagination-Total-Count"},"X-Pagination-Page-Count":{"$ref":"#/components/headers/X-Pagination-Page-Count"},"X-Pagination-Current-Page":{"$ref":"#/components/headers/X-Pagination-Current-Page"},"X-Pagination-Per-Page":{"$ref":"#/components/headers/X-Pagination-Per-Page"}},"content":{"application/json":{"schema":{"title":"Briefs list schema","type":"array","items":{"$ref":"#/components/schemas/singleBriefSchema"}},"example":[{"id":12,"name":"One","categories":[16],"keywords":["Comma","separated","keywords"],"notes":"Some notes here!"},{"id":44,"name":"Postman Test Article","categories":[],"keywords":[],"notes":""}]}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/v2/content/briefs/{briefId}":{"get":{"tags":["Briefs"],"summary":"Returns single brief","description":"Returns one brief by ID.\n\nUse this endpoint when you need the details of a specific brief, including its name, categories, keywords, and notes.","operationId":"getBriefById","parameters":[{"name":"briefId","in":"path","description":"ID of brief that needs to be fetched","required":true,"schema":{"$ref":"#/components/schemas/piqp"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/singleBriefSchema"},"example":{"id":12,"name":"One","categories":[16],"keywords":["Comma","separated","keywords"],"notes":"Some notes here!"}}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"404":{"description":"Task not found"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/v2/content/categories":{"get":{"tags":["Categories"],"summary":"Returns a list of all categories","description":"Returns categories from the project connected to the API key.\n\nUse this endpoint when mapping EasyContent categories to another system, such as a CMS, website, or migration tool.\n\nUse `page` and `per-page` to paginate large category lists.","operationId":"getCategories","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/per-page"}],"responses":{"200":{"description":"Successful operation","headers":{"X-Pagination-Total-Count":{"$ref":"#/components/headers/X-Pagination-Total-Count"},"X-Pagination-Page-Count":{"$ref":"#/components/headers/X-Pagination-Page-Count"},"X-Pagination-Current-Page":{"$ref":"#/components/headers/X-Pagination-Current-Page"},"X-Pagination-Per-Page":{"$ref":"#/components/headers/X-Pagination-Per-Page"}},"content":{"application/json":{"schema":{"title":"Categories list schema","type":"array","items":{"$ref":"#/components/schemas/singleCategorySchema"}},"example":[{"id":16,"name":"Instrumental","parent_category_id":40},{"id":31,"name":"2","parent_category_id":0}]}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/v2/content/categories/{categoryId}":{"get":{"tags":["Categories"],"summary":"Returns single category","description":"Returns one category by ID.\n\nThe response includes the category ID, name, and parent category ID.","operationId":"getCategoryById","parameters":[{"name":"categoryId","in":"path","description":"ID of category that needs to be fetched","required":true,"schema":{"$ref":"#/components/schemas/piqp"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/singleCategorySchema"},"example":{"id":16,"name":"Instrumental","parent_category_id":40}}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"404":{"description":"Category not found"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/v2/content/comments/{commentId}":{"get":{"tags":["Comments"],"summary":"Retrieve a single comment by ID","description":"Returns one comment by ID.\n\nUse this endpoint when you already have a comment ID, including IDs found in rich-text HTML as `data-comment`.\n\nExample rich-text marker:\n\n`<mark class=\"assignment-comment\" data-comment=\"224658\">...</mark>`\n\nIn this example, call:\n\n`GET /v2/content/comments/224658`\n\nWhen overlapping comments share the same text, `data-comment` holds several comma-separated IDs (for example `data-comment=\"224658,224659\"`); request each ID separately.\n\nThis endpoint can return open or resolved comments.\n\nDeleted comments return `404`.\n\nIf the comment exists but belongs to a different project than the API key, the response is `403`.","operationId":"getCommentById","parameters":[{"name":"commentId","in":"path","description":"Comment ID (from data-comment attribute)","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/commentSchema"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Comment belongs to content item in another project"},"404":{"description":"Comment not found or deleted"}}}},"/v2/content/templates/{templateId}/content-items":{"get":{"tags":["Templates"],"summary":"Returns content items","description":"Returns content items that use the selected template.\n\nUse this endpoint to find all content items that follow a specific structure, such as all Blog Post items or all Landing Page items.\n\nYou can optionally filter by content item title using the `title` query parameter.","operationId":"listTemplateContentItems","parameters":[{"name":"templateId","in":"path","description":"ID of template","required":true,"schema":{"$ref":"#/components/schemas/piqp"}},{"name":"title","in":"query","description":"Content items' title","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/simplifiedContentItemsSchema"},"example":[{"id":12,"name":"Content item title","url":"https://john.easycontent.io/project/297/edit/411427"},{"id":44,"name":"Challenges of Content Collaboration","url":"https://john.easycontent.io/project/297/edit/256"}]}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/v2/content/templates":{"get":{"tags":["Templates"],"summary":"Returns a list of all active templates","description":"Returns active templates from the project connected to the API key.\n\nUse this endpoint to list available content structures before fetching a full template or retrieving items that use a specific template.\n\nUse `page` and `per-page` to paginate large template lists.","operationId":"getTemplates","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/per-page"}],"responses":{"200":{"description":"Successful operation","headers":{"X-Pagination-Total-Count":{"$ref":"#/components/headers/X-Pagination-Total-Count"},"X-Pagination-Page-Count":{"$ref":"#/components/headers/X-Pagination-Page-Count"},"X-Pagination-Current-Page":{"$ref":"#/components/headers/X-Pagination-Current-Page"},"X-Pagination-Per-Page":{"$ref":"#/components/headers/X-Pagination-Per-Page"}},"content":{"application/json":{"schema":{"title":"Templates list schema","type":"array","items":{"$ref":"#/components/schemas/singleTemplateSchema"}},"example":[{"id":12,"name":"default template"},{"id":44,"name":"EasyCotntent blog template"}]}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/v2/content/templates/{templateId}":{"get":{"tags":["Templates"],"summary":"Returns single template","description":"Returns one template by ID.\n\nUse this endpoint to inspect the full structure of a template, including its tabs and fields.\n\nEach field includes its ID, title, type, position, guidelines, requirement status, default content, and recommended length settings when available.","operationId":"getTemplateById","parameters":[{"name":"templateId","in":"path","description":"ID of template that needs to be fetched","required":true,"schema":{"$ref":"#/components/schemas/piqp"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/singleExtendedTemplateSchema"},"example":{"id":305,"title":"default template","tabs":[{"id":1,"title":"Main Content","fields":[{"id":1,"position":1024,"guidelines":"","isEnabled":true,"isRequired":false,"recommendedLength":0,"recommendedLengthUnits":"words","title":"Title","type":"single-line-text"},{"id":2,"position":2048,"guidelines":"","isEnabled":true,"isRequired":false,"recommendedLength":0,"recommendedLengthUnits":"words","defaultContent":"","title":"Main content","type":"rich-text"},{"id":3,"position":3072,"guidelines":"","title":"Files","type":"file-upload"}]}]}}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"404":{"description":"Template not found"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/zapier/auth":{"get":{"tags":["Zapier"],"summary":"Authentication key check","description":"Checks the Zapier API key and returns the connected account name.\n\nThis endpoint is used by the EasyContent Zapier integration during authentication.","operationId":"zapierAuth","responses":{"200":{"description":"Authenticated successfully. Returns object with account name.","content":{"application/json":{"schema":{"required":["account_name"],"properties":{"account_name":{"type":"string","example":"John Doe"}},"type":"object"}}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"}},"security":[{"apiKey":[]}]}},"/zapier/actions/create/change_item_status":{"post":{"tags":["Zapier"],"summary":"Change content items' status","description":"Changes the workflow status of a content item.\n\nThis action is used by Zapier automations when an external event should move an EasyContent content item to another workflow status.","operationId":"zapierChangeItemStatus","requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["projectId","articleId","newStatusId"],"properties":{"projectId":{"description":"ID of a project in your account","type":"integer","minimum":1},"articleId":{"description":"ID of an article in selected project","type":"integer","minimum":1},"newStatusId":{"description":"ID of workflow status that is defined in selected project","type":"integer","minimum":1}},"type":"object"},"example":{"projectId":10,"articleId":20,"newStatusId":30}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"required":["id","projectId","title","status"],"properties":{"id":{"type":"integer","example":1,"minimum":1},"projectId":{"type":"integer","example":1,"minimum":1},"title":{"type":"string","example":"Sample content item title"},"status":{"required":["id","title"],"properties":{"id":{"type":"integer","example":1,"minimum":1},"title":{"type":"string","example":"Draft"}},"type":"object"}},"type":"object"}}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"404":{"description":"Project, article or new workflow status was not found"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/zapier/actions/create/change_item_assignees_and_due_dates":{"post":{"tags":["Zapier"],"summary":"Change content items' assignees and/or due dates","description":"Updates assignees and/or due date for a content item workflow status.\n\nUse this Zapier action when an automation needs to assign users, update responsible people, or set a due date for a content item.","operationId":"zapierChangeItemAssigneesAndDueDates","requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["projectId","articleId","statusId"],"properties":{"projectId":{"description":"ID of a project from your account","type":"integer","minimum":1},"articleId":{"description":"ID of a content item from project that will be updated","type":"integer","minimum":1},"statusId":{"description":"Workflow status ID that exits in a project","type":"integer","minimum":1},"userIds":{"description":"Responsible user IDs. Users must belong to a  project and have proper workflow setup","type":"array","items":{"type":"integer","minimum":1}},"dueDate":{"description":"Due date of an articles' worflow status in format of [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339#section-5.6)/[ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)","type":"string","format":"date-time","example":"2025-10-01T13:15:30+03:00","nullable":true}},"type":"object"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"required":["id","projectId","title"],"properties":{"id":{"type":"integer","example":1,"minimum":1},"projectId":{"type":"integer","example":1,"minimum":1},"title":{"type":"string","example":"Sample content item title"}},"type":"object"}}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"404":{"description":"Project, article or workflow status was not found"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/zapier/actions/create/create_an_item":{"post":{"tags":["Zapier"],"summary":"Create an item","description":"Creates a new content item in the selected project.\n\nThe request can include title, description, keywords, template ID, and category IDs.","operationId":"zapierCreateAnItem","requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["projectId","title"],"properties":{"projectId":{"description":"Select project where new content item will be created","type":"integer","minimum":1},"title":{"description":"New content item title","type":"string"},"description":{"description":"Short description about what this content item should be about","type":"string","nullable":true},"keywords":{"type":"string","example":"Random, Sample, Dummy","nullable":true},"templateId":{"type":"integer","nullable":true,"minimum":1},"categoryIds":{"description":"Category IDs. Must be located in selected project","type":"array","items":{"type":"integer","minimum":1}}},"type":"object"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"required":["id","projectId","title","description","keywords","templateId","categoryIds"],"properties":{"id":{"type":"integer","example":1,"minimum":1},"projectId":{"type":"integer","example":1,"minimum":1},"title":{"type":"string","example":"Sample content item title"},"description":{"type":"string","example":"Lorem ipsum dolor sit amet..."},"keywords":{"type":"string","example":"Random, Sample, Dummy"},"templateId":{"type":"integer","example":1,"minimum":1},"categoryIds":{"type":"array","items":{"type":"integer"},"example":[1,2,3,4,5]}},"type":"object"}}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"404":{"description":"Project was not found"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/zapier/resources/projects":{"get":{"tags":["Zapier"],"summary":"Fetch projects","description":"Returns projects available to the connected Zapier account.\n\nZapier uses this endpoint to populate project dropdowns in Zap setup screens.","operationId":"zapierListProjects","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/zapier-per-page"}],"responses":{"200":{"description":"A list of projects","content":{"application/json":{"schema":{"type":"array","items":{"required":["id","title"],"properties":{"id":{"type":"integer","example":1,"minimum":1},"title":{"type":"string","example":"Some project"}},"type":"object"}}}}},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/zapier/resources/articles":{"get":{"tags":["Zapier"],"summary":"Fetch content items","description":"Returns content items from a selected project.\n\nZapier uses this endpoint to populate content item dropdowns in Zap setup screens.","operationId":"zapierListArticles","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/zapier-per-page"},{"$ref":"#/components/parameters/project-id"}],"responses":{"200":{"description":"A list of content items","content":{"application/json":{"schema":{"type":"array","items":{"required":["id","title"],"properties":{"id":{"type":"integer","example":1,"minimum":1},"title":{"type":"string","example":"Content item title"}},"type":"object"}}}}},"400":{"description":"Bad request when project ID is missing or has incorrect format"},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"404":{"description":"Project was not found"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/zapier/resources/statuses":{"get":{"tags":["Zapier"],"summary":"Fetch workflow statuses","description":"Returns workflow statuses from a selected project.\n\nZapier uses this endpoint when configuring automations that move or update content items.","operationId":"zapierListStatuses","parameters":[{"$ref":"#/components/parameters/project-id"}],"responses":{"200":{"description":"A list of statuses","content":{"application/json":{"schema":{"type":"array","items":{"required":["id","title"],"properties":{"id":{"type":"integer","example":1,"minimum":1},"title":{"type":"string","example":"Some status title"}},"type":"object"}}}}},"400":{"description":"Bad request when project ID is missing or has incorrect format"},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"404":{"description":"Project was not found"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/zapier/resources/templates":{"get":{"tags":["Zapier"],"summary":"Fetch templates","description":"Returns templates from a selected project.\n\nZapier uses this endpoint when configuring automations that create content items using a specific template.","operationId":"zapierListTemplates","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/zapier-per-page"},{"$ref":"#/components/parameters/project-id"}],"responses":{"200":{"description":"A list of templates","content":{"application/json":{"schema":{"type":"array","items":{"required":["id","title"],"properties":{"id":{"type":"integer","example":1,"minimum":1},"title":{"type":"string","example":"Template title"}},"type":"object"}}}}},"400":{"description":"Bad request when project ID is missing or has incorrect format"},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"404":{"description":"Project was not found"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/zapier/resources/categories":{"get":{"tags":["Zapier"],"summary":"Fetch categories","description":"Returns categories from a selected project.\n\nZapier uses this endpoint when configuring automations that create or update content items with categories.","operationId":"zapierListCategories","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/zapier-per-page"},{"$ref":"#/components/parameters/project-id"}],"responses":{"200":{"description":"A list of categories","content":{"application/json":{"schema":{"type":"array","items":{"required":["id","title"],"properties":{"id":{"type":"integer","example":1},"title":{"type":"string","example":"Category title"}},"type":"object"}}}}},"400":{"description":"Bad request when project ID is missing or has incorrect format"},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"404":{"description":"Project was not found"},"500":{"description":"Internal Server Error in case of unexpected error"}}}},"/zapier/resources/users-that-can-be-assigned-to-status":{"get":{"tags":["Zapier"],"summary":"Fetch status users","description":"Returns users who can be assigned to the selected workflow status.\n\nA user must belong to the project and have the correct workflow role setup to be assignable.","operationId":"zapierListAssignableUsers","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/zapier-per-page"},{"$ref":"#/components/parameters/project-id"},{"name":"statusId","in":"query","description":"ID of the status","required":true,"schema":{"type":"integer","example":1,"minimum":1}}],"responses":{"200":{"description":"A list of assignable users","content":{"application/json":{"schema":{"type":"array","items":{"required":["id","name","role"],"properties":{"id":{"type":"integer","example":1,"minimum":1},"name":{"type":"string","example":"John Doe"},"role":{"type":"string","example":"Administrator"}},"type":"object"}}}}},"400":{"description":"Bad request when required parameters are missing or have incorrect format"},"401":{"description":"Unauthorized. Wrong bearer token was provided or bearer token missing"},"404":{"description":"Project or status was not found"},"500":{"description":"Internal Server Error in case of unexpected error"}}}}},"components":{"schemas":{"piqp":{"title":"Positive integer query parameter","type":"integer","minimum":1},"positiveInteger":{"title":"Positive integer","type":"integer","minimum":1},"singleContentItemSchema":{"title":"Content item","description":"A structured content record in EasyContent.\n\nA content item includes metadata such as name, categories, keywords, notes, workflow status, URL, and structured tabs.\n\nTabs contain fields. Fields contain the actual content values.","properties":{"id":{"type":"integer","minimum":1},"name":{"type":"string","maxLength":200},"categories":{"type":"array","items":{"type":"integer","minimum":1},"uniqueItems":true},"keywords":{"type":"array","items":{"type":"string"}},"notes":{"type":"string"},"workflowStatusId":{"type":"integer","minimum":1},"workflowStatusName":{"type":"string"},"tabs":{"description":"Content tabs loaded from template or custom structure (same structure as singleExtendedTemplateSchema.tabs)","type":"array","items":{"properties":{"id":{"type":"integer","minimum":1},"name":{"type":"string"},"fields":{"type":"array","items":{"required":["id","position","type"],"properties":{"id":{"type":"integer","minimum":1},"position":{"type":"integer","minimum":1},"guidelines":{"type":"string"},"isEnabled":{"type":"boolean"},"isRequired":{"type":"boolean"},"defaultContent":{"type":"string"},"recommendedLength":{"type":"integer","minimum":0},"recommendedLengthUnits":{"description":"Length units for recommended content. Example: 'symbols' for character count, 'words' for word count","type":"string","example":"symbols","enum":["words","symbols"]},"limit":{"type":"integer","minimum":0},"choices":{"type":"object","additionalProperties":{"type":"string"}},"title":{"type":"string"},"text":{"type":"string"},"isPlainText":{"type":"boolean"},"type":{"type":"string","enum":["single-line-text","rich-text","file-upload","featured-image","multi-line-text","checkboxes","date","radio-buttons","select","displayable-text","single-image"]}},"type":"object"}}},"type":"object"}}},"type":"object"},"singleCategorySchema":{"title":"Category","description":"A project category used to organize content items and briefs.\n\nCategories may be hierarchical. A `parent_category_id` of `0` means the category is top-level.","properties":{"id":{"type":"integer","minimum":1},"name":{"type":"string"},"parent_category_id":{"type":"integer","minimum":0}},"type":"object"},"singleBriefSchema":{"title":"Brief","description":"A planned content task that has not yet become an active content item.\n\nBriefs usually include a name, notes, keywords, and categories.","properties":{"id":{"type":"integer","minimum":1},"name":{"type":"string"},"categories":{"type":"array","items":{"type":"integer","minimum":1},"uniqueItems":true},"keywords":{"type":"array","items":{"type":"string"}},"notes":{"type":"string"}},"type":"object"},"singleTemplateSchema":{"title":"Template","description":"A reusable content structure.\n\nTemplates contain tabs, and tabs contain fields. A content item created from a template follows that structure.","properties":{"id":{"type":"integer","minimum":1},"name":{"type":"string"}},"type":"object"},"singleExtendedTemplateSchema":{"title":"Template","description":"A reusable content structure.\n\nTemplates contain tabs, and tabs contain fields. A content item created from a template follows that structure.","properties":{"id":{"type":"integer","minimum":1},"title":{"type":"string"},"tabs":{"type":"array","items":{"properties":{"id":{"type":"integer","minimum":1},"title":{"type":"string"},"fields":{"type":"array","items":{"required":["id","position","type"],"properties":{"id":{"type":"integer","minimum":1},"position":{"type":"integer","minimum":1},"guidelines":{"type":"string"},"isEnabled":{"type":"boolean"},"isRequired":{"type":"boolean"},"defaultContent":{"type":"string"},"recommendedLength":{"type":"integer","minimum":0},"recommendedLengthUnits":{"type":"string","enum":["words","symbols"]},"limit":{"type":"integer","minimum":0},"choices":{"type":"object","additionalProperties":{"type":"string"}},"title":{"type":"string"},"text":{"type":"string"},"isPlainText":{"type":"boolean"},"type":{"type":"string","enum":["single-line-text","rich-text","file-upload","featured-image","multi-line-text","checkboxes","date","radio-buttons","select","displayable-text","single-image"]}},"type":"object"}}},"type":"object"}}},"type":"object"},"simplifiedContentItemsSchema":{"title":"Simplified content items","description":"Simplified content items schema","type":"array","items":{"properties":{"id":{"type":"integer","minimum":1},"name":{"type":"string"},"url":{"type":"string"}},"type":"object"}},"commentSchema":{"title":"Comment","description":"A comment left on a content item.\n\nComments can target the whole item, a field, selected rich text, a file, or an image position.\n\nMain comments can be open or resolved. Replies cannot be resolved.\n\nDeleted comments and deleted replies are not returned by the API.","required":["id","contentItemId","text","status","createdAt","author","target","replies"],"properties":{"id":{"type":"integer","minimum":1},"contentItemId":{"type":"integer","minimum":1},"text":{"type":"string"},"status":{"type":"string","enum":["open","resolved"]},"createdAt":{"type":"string","format":"date-time"},"author":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"role":{"type":"string"}},"type":"object"},"widget":{"description":"The field/widget the comment is attached to. Null when the comment targets the whole content item.","properties":{"id":{"type":"integer"},"name":{"type":"string"},"type":{"type":"string"},"removed":{"type":"boolean"},"tabName":{"type":"string"}},"type":"object","nullable":true},"target":{"description":"Describes where the comment belongs.\n\nSupported target types:\n\n- `contentItem` — comment applies to the whole content item\n- `widget` — comment applies to a whole field\n- `inlineText` — comment applies to selected text inside a rich-text field\n- `asset` — comment applies to a file or asset\n- `imagePin` — comment applies to a pinned location on an image","properties":{"type":{"type":"string","enum":["contentItem","widget","inlineText","imagePin","asset"]},"selectedText":{"type":"string"},"selectedTextStatus":{"description":"Status of the selected text snapshot for an inline rich-text comment.\n\nAllowed values:\n\n- `unchanged` — selected text has not changed since the comment was created\n- `modified` — selected text was changed after the comment was created\n- `removed` — selected text or the related widget was removed","type":"string","enum":["unchanged","modified","removed"]},"imageStatus":{"description":"Status of the pinned image for a single-image field comment.\n\nAllowed values:\n\n- `unchanged` — the same image is still present in the field\n- `modified` — the image was replaced with a different one\n- `removed` — the image was removed from the field or the field itself was removed","type":"string","enum":["unchanged","modified","removed"]},"position":{"description":"Position of an image-pin comment.\n\nValues are percentages from `0` to `100`, not pixels.\n\n- `topPercent` — vertical position from the top of the image\n- `leftPercent` — horizontal position from the left side of the image","properties":{"topPercent":{"type":"number"},"leftPercent":{"type":"number"}},"type":"object"},"file":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"url":{"type":"string"}},"type":"object"},"fileId":{"type":"string"},"assetWidgetId":{"type":"integer"}},"type":"object"},"resolved":{"properties":{"resolvedAt":{"type":"string","format":"date-time"},"author":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"type":"object"}},"type":"object","nullable":true},"replies":{"type":"array","items":{"properties":{"id":{"type":"integer"},"text":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"author":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"role":{"type":"string"}},"type":"object"}},"type":"object"}}},"type":"object"}},"parameters":{"page":{"name":"page","in":"query","description":"Works only with per-page parameter. Use this parameter to determine what page to show. Must be positive integer.","required":false,"schema":{"$ref":"#/components/schemas/piqp"}},"per-page":{"name":"per-page","in":"query","description":"Setting this parameter enables pagination. Must be positive integer.","required":false,"schema":{"$ref":"#/components/schemas/piqp"}},"zapier-per-page":{"name":"per_page","in":"query","description":"Setting this parameter enables pagination.","required":false,"schema":{"$ref":"#/components/schemas/piqp"}},"project-id":{"name":"projectId","in":"query","description":"Project ID","required":true,"schema":{"type":"integer","example":1,"minimum":1}}},"headers":{"X-Pagination-Total-Count":{"description":"Optional. Will be returned when per-page parameter is set and positive. Represents number of all items.","schema":{"type":"integer","minimum":0}},"X-Pagination-Page-Count":{"description":"Optional. Will be returned when per-page parameter is set and positive. Represents total number of pages.","schema":{"type":"integer","minimum":1}},"X-Pagination-Current-Page":{"description":"Optional. Will be returned when per-page parameter is set and positive. Represents current page number.","schema":{"type":"integer","minimum":1}},"X-Pagination-Per-Page":{"description":"Optional. Will be returned when per-page parameter is set and positive. Equals to per page parameter value.","schema":{"type":"integer","minimum":1}}},"securitySchemes":{"bearerToken":{"type":"http","description":"Authorization that uses bearer token","scheme":"Bearer"}}},"tags":[{"name":"Common concepts","description":"The EasyContent API lets you retrieve structured content and project data from an EasyContent project.\n\nUse it to connect EasyContent with websites, CMS platforms, design tools, automation tools, migration scripts, AI agents, and custom applications.\n\nThe API is project-scoped. Each API key belongs to one EasyContent project. A request made with that key can access only the data available inside that project.\n\nBase URL:\n\n`https://easycontent.io/api`\n\nAll documented API endpoints return JSON responses.\n\n## Core concepts\n\n### Project\n\nA project is a workspace where a team manages content items, briefs, templates, categories, workflow statuses, files, and collaboration data.\n\n### Content item\n\nA content item is the main unit of content in EasyContent. It can represent a blog post, website page, landing page, newsletter, social media post, documentation page, or any other structured content task.\n\nThe content item `name` is the internal task or item name used in EasyContent lists and workflows. It is not necessarily the same as the published title, H1, or title field inside the content.\n\n### Brief\n\nA brief is a planned content task or idea that has not yet become an active content item. Briefs are often used for upcoming assignments, content ideas, or tasks waiting to be claimed or assigned.\n\n### Template\n\nA template defines the structure of a content item. Templates contain tabs, and tabs contain fields.\n\nTemplates help teams keep content consistent across a project. For example, a project may have different templates for blog posts, landing pages, newsletters, case studies, product pages, or documentation articles.\n\n### Field\n\nA field is a structured block inside a content item or template. Each field has an ID, label or title, type, and value.\n\nField types are returned as human-readable strings.\n\n| Type | Description |\n| ---- | ----------- |\n| `single-line-text` | Single-line plain text, such as a title, slug, meta title, or custom short text field |\n| `multi-line-text` | Multi-line plain text, such as an excerpt, tags, meta description, or plain textarea |\n| `rich-text` | HTML rich-text editor, such as the main content body or a rich textarea |\n| `file-upload` | One or more file attachments. The value is always an array |\n| `featured-image` | Featured image attachment |\n| `single-image` | Single inline image field |\n| `checkboxes` | Multiple-choice selection. The value is always an array of selected option labels |\n| `radio-buttons` | Single-choice selection from a list |\n| `select` | Dropdown selection. May be single or multiple choice. The value is always an array |\n| `date` | Date picker field |\n| `displayable-text` | Read-only display text, such as a heading or guideline label. It is not editable by the writer |\n\nField values for `file-upload`, `checkboxes`, and `select` are always arrays, even when only one item is selected or uploaded. `featured-image` and `single-image` return an object with `url` and `alt`. All other field types return scalar values.\n\n`displayable-text` fields are an exception: they expose `id`, `type`, and a `text` property instead of `label` and `value`, because they hold read-only display content rather than writer input.\n\n### Workflow status\n\nA workflow status represents where a content item is in the project's approval process, such as draft, editorial review, approved, or completed.\n\nWorkflow status names are configured per project.\n\n### Categories\n\nCategories help organize content items and briefs. They can be used for topics, website sections, clients, campaigns, content types, departments, or any other project-specific taxonomy.\n\nCategories may be hierarchical.\n\n### Pagination\n\nList endpoints can support pagination with `page` and `per-page` query parameters.\n\nWhen pagination is enabled, responses may include these headers:\n\n- `X-Pagination-Total-Count`\n- `X-Pagination-Page-Count`\n- `X-Pagination-Current-Page`\n- `X-Pagination-Per-Page`\n\n### Errors\n\nCommon response codes:\n\n- `200` — request succeeded\n- `400` — request parameters are missing or invalid\n- `401` — API key is missing or invalid\n- `403` — API key is valid, but the requested resource is outside the key's project scope\n- `404` — resource was not found\n- `500` — unexpected server error"},{"name":"Auth","description":"Use the Auth endpoint to check whether an API key is valid and to identify the project connected to that key.\n\nAPI keys are project-scoped. A valid response returns the project ID, project title, and project URL associated with the key."},{"name":"Content items","description":"Use Content item endpoints to retrieve structured content from an EasyContent project.\n\nA content item is the main unit of content in EasyContent. It can represent a blog post, website page, landing page, documentation article, newsletter, or any other content task.\n\nContent item responses include project metadata, workflow status, categories, keywords, notes, URL, tabs, fields, and field values.\n\nComments are not included in content item responses. Use the Comments endpoints to retrieve comments separately."},{"name":"Briefs","description":"Use Brief endpoints to retrieve content briefs from the project connected to the API key.\n\nA brief is a content task or idea that has not yet become an active content item. Briefs usually contain a name, notes or description, keywords, and categories.\n\nBriefs are useful for integrations that need to pull planned content, upcoming assignments, or content ideas before they are claimed or assigned in EasyContent."},{"name":"Categories","description":"Use Category endpoints to retrieve the categories configured in the project.\n\nCategories help organize content items and briefs. They can be used for grouping content by topic, client, campaign, content type, department, website section, or any other project-specific taxonomy.\n\nCategories may be hierarchical. If `parent_category_id` is `0`, the category is a top-level category."},{"name":"Templates","description":"Use Template endpoints to retrieve content structures used in the project.\n\nA template defines the tabs and fields available on a content item. Templates help teams keep content consistent and make it easier for integrations to understand where each piece of content belongs.\n\nA project can have multiple templates, such as Blog Post, Landing Page, Newsletter, Product Page, or Case Study.\n\nTemplate fields return human-readable field type values. Supported values are: `single-line-text`, `multi-line-text`, `rich-text`, `file-upload`, `featured-image`, `single-image`, `checkboxes`, `radio-buttons`, `select`, `date`, and `displayable-text`."},{"name":"Zapier","description":"These endpoints support the EasyContent Zapier integration.\n\nThey allow Zapier to authenticate, retrieve selectable project resources, and perform supported automation actions such as creating content items, changing workflow status, and updating assignees or due dates.\n\nThese endpoints are mainly intended for the official Zapier integration but can be used for building custom integrations as well."},{"name":"Comments","description":"Use Comment endpoints to retrieve editorial comments from EasyContent.\n\nComments are separate resources. They are not included in content item responses.\n\nA comment can target:\n\n- the whole content item\n- a whole field\n- selected rich text\n- a file or asset\n- a pinned position on an image\n\nRich-text fields may contain comment markers in the HTML:\n\n`<mark class=\"assignment-comment\" data-comment=\"224658\">...</mark>`\n\nThe `data-comment` value is the EasyContent comment ID. When several comments overlap the same text, it holds multiple comma-separated IDs (for example `data-comment=\"224658,224659\"`). Use any single ID directly with:\n\n`GET /v2/content/comments/{commentId}`\n\nBy default, comment list responses return only open comments. Use `includeResolved=true` to include resolved comments.\n\nDeleted comments and deleted replies are never returned.\n\nComment authors include ID, name, and role. Author email addresses are not returned."}],"x-tagGroups":[{"name":"Overview","tags":["Common concepts"]},{"name":"Authentication","tags":["Auth"]},{"name":"Comments","tags":["Comments"]},{"name":"Content","tags":["Content items","Templates","Categories","Briefs"]},{"name":"Zapier","tags":["Zapier"]}]}