Authorizations
Workspace secret API key, found in the workspace settings page (top left).
Response
Organizations retrieved
The response is of type object
.
curl --request GET \
--url https://eu-vg-edge.moeaymandev.workers.dev/v2/orgs \
--header 'Authorization: Bearer <token>'
{
"success": true,
"message": "Organizations retrieved successfully",
"data": [
{
"ID": "<string>",
"userId": "<string>",
"name": "<string>",
"preferredLanguage": "<string>",
"squarePhotoURL": "<string>",
"widgetIDs": [
"<string>"
],
"adminIDs": [
"<string>"
],
"canSelfEdit": true,
"disallowAnyTags": true,
"dashboardLayout": "vertical",
"lastModified": 123
}
]
}
Returns all organizations associated with the bearer token
curl --request GET \
--url https://eu-vg-edge.moeaymandev.workers.dev/v2/orgs \
--header 'Authorization: Bearer <token>'
{
"success": true,
"message": "Organizations retrieved successfully",
"data": [
{
"ID": "<string>",
"userId": "<string>",
"name": "<string>",
"preferredLanguage": "<string>",
"squarePhotoURL": "<string>",
"widgetIDs": [
"<string>"
],
"adminIDs": [
"<string>"
],
"canSelfEdit": true,
"disallowAnyTags": true,
"dashboardLayout": "vertical",
"lastModified": 123
}
]
}
Workspace secret API key, found in the workspace settings page (top left).
Organizations retrieved
The response is of type object
.