Get Docs article

One Docs article with its text, status, collection and draft.

GET https://cotlet.dev/api/v1/help-scout/articles/{article_id}/docs-article

read

Returns the article as published and, with draft set to true, the draft text, which is not live yet, if one exists. The text is HTML, as the Docs editor stores it. Check has_draft first: a draft by a teammate should not be overwritten.

Parameters

Parameters: get_docs_article
NameTypeDescription
article_id string required string Article ID from search_docs_articles.
draft boolean boolean Return the draft text instead of the published text. Default: false.

Request

cURL
curl https://cotlet.dev/api/v1/help-scout/articles/article_8c41d2/docs-article \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("help-scout", "get_docs_article", {"article_id":"article_8c41d2"})
Node.js
const result = await cotlet.call('help-scout', 'get_docs_article', {"article_id":"article_8c41d2"});
CLI
cotlet call help-scout get_docs_article --data '{"article_id":"article_8c41d2"}'

Example response

JSON

{
  "article_id": "6628f1a2b5d30",
  "name": "Export conversation data",
  "collection": "Using Help Scout",
  "status": "published",
  "has_draft": false,
  "text": "<p>Open <strong>Reports</strong> from the top menu, choose a date range and click <strong>Export</strong>.</p>"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.