1import requests23url = "https://host.com/workspaces"45headers = {"Authorization": "Bearer <token>"}67response = requests.get(url, headers=headers)89print(response.json())
1{2 "data": [3 {4 "id": "1c47b6fd-db56-4fbd-9cf0-4d88f9631050",5 "key": "acmeco",6 "avatarUrl": "https://assets.github.com/acmeco.png",7 "providerUrl": "https://github.com/acmeco",8 "createdAt": "2023-01-15T08:30:00Z",9 "updatedAt": "2023-02-20T14:45:00Z"10 },11 {12 "id": "7a8b9c0d-1e2f-3g4h-5i6j-7k8l9m0n1o2p",13 "key": "skytech",14 "avatarUrl": "https://assets.github.com/skytech.png",15 "providerUrl": "https://github.com/skytech",16 "createdAt": "2023-03-10T11:20:00Z",17 "updatedAt": "2023-04-05T09:15:00Z"18 }19 ],20 "meta": {21 "hasMore": false22 }23}
Bearer authentication of the form Bearer <token>, where token is your auth token.
Bearer <token>