Skip to main content
GET
/
v1
/
courses
List courses
curl --request GET \
  --url https://api.example.com/v1/courses

Documentation Index

Fetch the complete documentation index at: https://docs.hawkings.education/llms.txt

Use this file to discover all available pages before exploring further.

Query parameters

limit
integer
default:"20"
Max 100.
starting_after
string
Cursor.
status
enum
draft | pending | ready | error.
workspace_id
string
Restrict to a single workspace (default: current).
expand
string[]

Examples

const page = await hk.courses.list({ limit: 50, status: "ready" });

for await (const c of hk.courses.list()) {
  console.log(c.id, c.name);
}

Returns

{
  "object": "list",
  "data": [ /* Course[] */ ],
  "has_more": true,
  "next_cursor": "crs_01HX8..."
}