WorkSmart Dev
HomeSign In
  • Introduction
  • REST Web API
    • Oauth 2.0 Authorization
      • Authorization Code Flow
      • Token (Auth Code Flow)
      • Token (Client Credentials)
    • Records
      • Create Record
      • Read Record
      • Update Record
      • Delete Record
      • Read Records By View
      • Add Comment
      • Add Attachment
      • Download Attachment
    • List Sites
    • Columns
      • List of Columns
  • Webhook
    • Configure a Webhook
Powered by GitBook
On this page
  • Parameters:
  • Sample Request
  • Sample Response

Was this helpful?

  1. REST Web API

List Sites

Get information about all sites

URL : /api/v1/site Method : GET

Parameters:

access_token (required, header parameter) Send this as header – e.g.“Authorization: Bearer access_token”

Sample Request

curl -H "Authorization: Bearer {access_token}" https://my.worksmart.app/api/v1/site

Sample Response

[
   {
      "id":"1",
      "name":"Finance",
      "manager":"Jack Broad",
      "apps":[
         {
            "app_id":"1",
            "name":"Application 1"
         },
         {
            "app_id":"2",
            "name":"Application 2"
         }
      ]
   },
   {
      "id":"2",
      "name":"Project Management",
      "manager":"John Gill",
      "apps":[
         {
            "app_id":"3",
            "name":"Application 3"
         },
         {
            "app_id":"4",
            "name":"Application 4"
         }
      ]
   }
]
PreviousDownload AttachmentNextColumns

Last updated 3 years ago

Was this helpful?