GET
/
api
/
v1
/
workspaces
curl --request GET \
  --url https://app.snitcher.com/api/v1/workspaces \
  --header 'Authorization: Bearer <token>'
{
  "current_page": 1,
  "last_page": 10,
  "per_page": 15,
  "total": 150,
  "next_page_url": "https://api.example.com/api/v1/workspaces?page=2",
  "prev_page_url": null,
  "first_page_url": "https://api.example.com/api/v1/workspaces?page=1",
  "last_page_url": "https://api.example.com/api/v1/workspaces?page=10",
  "path": "https://api.example.com/api/v1/workspaces",
  "from": 1,
  "to": 15,
  "data": [
    {
      "uuid": "550e8400-e29b-41d4-a716-446655440000",
      "name": "ACME Inc.",
      "url": "https://acme.com",
      "tracking_script_id": "123",
      "tracking_script_snippet": "<script>...</script>",
      "available_tags": [
        "marketing",
        "design"
      ],
      "status": "active",
      "usage_limit": 1000
    }
  ],
  "success": true
}

Authorizations

Authorization
string
header
required

Enter your personal access token (PAT) to authenticate

Query Parameters

page
integer

The page number for pagination

Example:

1

size
integer

The number of organisations per page (1-1000)

Required range: 1 <= x <= 1000
Example:

10

Response

200
application/json
List of workspaces

The response is of type object.