LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

Custom → Request

AI-generated

Summary

Send a custom HTTP request to any LearnDash LMS REST API endpoint with configurable method, endpoint path, query parameters, and JSON body payload.

Inputs

  • Method — HTTP method to use for the request; one of GET, POST, PUT, PATCH, or DELETE.
  • Endpoint (required) — Path relative to /wp-json/ specifying the LearnDash REST API endpoint to call, e.g., ldlms/v2/sfwd-courses or ldlms/v2/sfwd-courses/123.
  • Query Parameters (JSON) — Optional JSON string representing query parameters to include in the request URL.
  • Body (JSON) — Optional JSON string for the request body payload, applicable for methods that send data (POST, PUT, PATCH).

Output shape

a list of records (JSON objects) corresponding to the REST API response items

Returns the parsed JSON response, normalized as an array of items even if the original response is a single object. Input JSON parameters must be valid; invalid JSON throws an error.

Discussion