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"
    }
  ],
  "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

Example:

10

Response

200
application/json
List of workspaces
current_page
integer
Example:

1

last_page
integer
Example:

10

per_page
integer
Example:

15

total
integer
Example:

150

next_page_url
string | null
Example:

"https://api.example.com/api/v1/workspaces?page=2"

prev_page_url
string | null
Example:

null

first_page_url
string | null
Example:

"https://api.example.com/api/v1/workspaces?page=1"

last_page_url
string | null
Example:

"https://api.example.com/api/v1/workspaces?page=10"

path
string | null
Example:

"https://api.example.com/api/v1/workspaces"

from
integer | null
Example:

1

to
integer | null
Example:

15

data
object[]

Representation of a workspace

success
boolean
Example:

true