You're viewing the Kitchen Sink example - every writedocs feature combined in one site.

Get a widget by ID

GET/widgets/{widgetId}

Path Parameters

widgetIdstringrequired

The widget's unique ID

Response

200A widget
namestring
colorstring
idstring
404Widget not found
errorstring
Request
curl -X GET "https://api.kitchen-sink.example.com/v1/widgets/<widgetId>" \
  -H "X-API-Key: <X-API-Key>"
Response
{
  "name": "Sprocket",
  "color": "indigo",
  "id": "wdg_abc123"
}