URL Method Params
Parameter Type Desciption
/wp-json/learnpress/v1/lessons/id GET context string Scope under which the request is made; determines fields present in response. Options: "view" and "edit". Default is "view".
page integer Current page of the collection. Default is "1"
per_page integer Maximum number of items to be returned in result set. Default: 10
search string Limit results to those matching a string.
after string Limit response to resources published after a given ISO8601 compliant date.
before string Limit response to resources published before a given ISO8601 compliant date.
exclude array Ensure result set excludes specific IDs.
include array Limit result set to specific IDs.
offset integer Offset the result set by a specific number of items.
order string Order sort attribute ascending or descending. Options: "asc" and "desc". Default is "desc".
orderby string Sort collection by object attribute. Options: "date", "id", "include", "title" and "slug". Default is "date".

Response

{
  "id": 86,
  "name": "Lesson 8",
  "slug": "lesson-8-2",
  "permalink": "http:\/\/learnpress4.local\/lessons\/lesson-8-2\/",
  "date_created": "2021-04-14T06:38:03",
  "date_created_gmt": "2021-04-14T06:38:03",
  "date_modified": "2021-04-14T06:38:03",
  "date_modified_gmt": "2021-04-14T06:38:03",
  "status": "publish",
  "content": "<p>Villae promerem sequamur oblivisci satisne voluptatem elit perpetiuntur plurimis summoque divisione<\/p>\n<p>Ceperit luxuriosus gaudebit philosophari debilitari dixit polemonis fugiunt tot imperatores impedit dicta<\/p>\n<p>Tractatos erillus meo tota cuique profuso vestri isti voluntates gloriose diviserunt parum tenebris afferat unde mundum facillimum apti<\/p>\n<p>Pertinacia vita extremum imperatores sese processerat cupidus datum reliquam refers ardentem egregio facile scripta nullo acupenseri diligenter neque aequum<\/p>\n<p>Eademne illud volemus formosum nosmet oblectationem statim habentur vellem probo meum privasse grata laudatur expetunt loquor oppidum quibus<\/p>\n<p>Comparandam philosophiae ego commota exclusis arripere curiosorum veniunt odit exquirere virtutis video<\/p>\n<p>Scias multum mene appello emolumento audeo relinqueret ordiamur extremum igitur suavius aliis necessariae tubulum animantibus habitare eiuro probare mnesarchum statuat<\/p>\n<p>Doctissimos agendum gestiant antiquis platoni privatio cernitur acti posthac iucundius magnificentia malo urgent materiam pylades laudatum<\/p>\n<p>Rhetoribus postulo traditur peccata civitas nosmet stoicis media an quaesivit detractis<\/p>\n<p>Orestem severe sapientiae sponte eius rectumne diogenem depingere solitum huic<\/p>\n",
  "excerpt": "",
  "assigned": {
    "course": {
      "id": "66",
      "title": "Course 3",
      "slug": "course-3",
      "content": "Risu illa philosophos actus optime locos comparatio gravius quieta praeterea contenti incidant\r\n\r\nScis cupiditate illis spe instituendarum coercendi recta ubi zenone velit\r\n\r\nVidebis comparandarum totas aestimabat torqueatur capienda facillimum gestiret gaudebit post illius frater deserit declinavi quidem euripidesconcludam",
      "author": "1"
    }
  },
  "meta_data": {
    "_lp_duration": "",
    "_lp_preview": ""
  }
}