Get the dashboard layout.
GET
/api/dashboard/layout
const url = 'https://api.tradr.cloud/api/dashboard/layout';const options = {method: 'GET'};
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.tradr.cloud/api/dashboard/layoutAuthed. Returns the user’s widget placements on a 12-column grid, their theme, and when the layout was last saved. A user who has never customised the dashboard gets the default layout, not an empty one.
Responses
Section titled “Responses”The layout.
Media typeapplication/json
object
theme
string
updatedAt
string
widgets
Array<object>
One widget on the dashboard grid. The grid is 12 columns wide and rows are a fixed height, so x/w are columns and y/h are rows.
object
config
Optional per-widget settings. Serialises to at most 2048 bytes.
h
required
integer
id
required
string format: uuid
type
required
string
w
required
X + w must not exceed 12.
integer
x
required
integer
y
required
integer
Example
{ "theme": "light", "widgets": [ { "type": "stats-summary" } ]}No valid session.