Skip to content

Retrieve a widget

GET
/widgets/{widgetId}
curl --request GET \
--url https://api.example.com/v1/widgets/example \
--header 'Authorization: Bearer <token>'
widgetId
required
string

The unique identifier of the widget.

The requested widget.

Media type application/json
object
id
required
string
name
required
string
description
string
nullable
created_at
required
string format: date-time
Example
{
"id": "wdg_01H8Z9XJ7M3K4P5Q6R7S8T9V0W",
"name": "My first widget",
"description": "Optional human-readable description."
}

The requested resource does not exist.

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