List widgets
GET
/widgets
const url = 'https://api.example.com/v1/widgets?limit=20';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.example.com/v1/widgets?limit=20' \ --header 'Authorization: Bearer <token>'Returns a paginated list of widgets owned by the authenticated account.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” limit
integer
Maximum number of widgets to return.
cursor
string
Pagination cursor returned by a previous response.
Responses
Section titled “ Responses ”A page of widgets.
Media type application/json
object
data
required
Array<object>
object
id
required
string
name
required
string
description
string
created_at
required
string format: date-time
has_more
required
Whether more widgets are available beyond this page.
boolean
next_cursor
Cursor to pass on the next request to fetch the following page.
string
Example
{ "data": [ { "id": "wdg_01H8Z9XJ7M3K4P5Q6R7S8T9V0W", "name": "My first widget", "description": "Optional human-readable description." } ]}Authentication failed or was not provided.
Media type application/json
object
code
required
string
message
required
string
request_id
string
Example
{ "code": "invalid_request", "message": "The `name` field is required.", "request_id": "req_01H8Z9XJ7M3K4P5Q6R7S8T9V0W"}Maintained by EkLine