Workspaces
Create a new workspace
Workspaces
Create a new workspace
POST
/
api
/
v1
/
workspaces
curl --request POST \
--url https://app.snitcher.com/api/v1/workspaces \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://acme.com"
}'
{
"success": true,
"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"
}
}
Authorizations
Enter your personal access token (PAT) to authenticate
Body
application/json
Example:
"https://acme.com"
Response
200
application/json
Workspace details
Example:
true
Representation of a workspace
Example:
"550e8400-e29b-41d4-a716-446655440000"
Example:
"ACME Inc."
Example:
"https://acme.com"
Example:
"123"
Example:
"<script>...</script>"
Example:
["marketing", "design"]
The current status of the entity. Possible values: 'on_trial', 'active', 'inactive'.
Available options:
on_trial
, active
, inactive
Example:
"active"
curl --request POST \
--url https://app.snitcher.com/api/v1/workspaces \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://acme.com"
}'
{
"success": true,
"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"
}
}