/widgets/hosted/:slug
Retrieve a specific widget and it's config.
Ideal if you want to load a widget config to booking.js based on a known widget slug (for e.g. building widget pages where a human-friendly slug is passed in the URL)
Endpoint
GET https://api.timekit.io/v2/widgets/hosted/:slug
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
slug |
path | string | yes | Slug of the widget you want to retrieve |
Response examples
200
json{
"data": {
"id": "826ddc8e-8698-45be-9320-0c81dcf797d9",
"slug": "my-test-widget",
"config": {
"email": "marty.mcfly:::at:::timekit.io",
"calendar": "3653d9a9-46d3-4270-8d34-34b3d871128d",
"apiToken": "xwcgiK7u7EZSpIkCSt3Oaq1eFy1fZBJA"
}
}
}