Workspaces
API endpoint for managing workspaces. Supports retrieving, updating, and deleting workspaces. Returns all workspaces the authenticated user is a member of, or all workspaces if the user is an admin.
/workspacesRequest Body
namestringWorkspace name. If updated, the slug will be automatically regenerated.
Example: "My Updated Workspace"
industryenumwebsiteUrlstring | nullWorkspace website URL. Can be null to remove.
Example: "https://example.com"
appstoreUrlstring | nullApp Store URL. Can be null to remove.
Example: "https://apps.apple.com/app/example"
instagramUrlstring | nullInstagram URL. Can be null to remove.
Example: "https://instagram.com/example"
logoUrlstring | nullURL to workspace logo. Can be null to remove.
Example: "https://example.com/logo.png"
currencyCodeenumISO 4217 currency code
Example: "USD"
Headers
x-api-keystringrequiredYour Track My Posts API key
Query Parameters
workspaceSlugstringrequiredWorkspace slug identifier
Example: my-workspace
Responses
curl "https://api.trackmyposts.com/workspaces?workspaceSlug=my-workspace" \
-X PATCH \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Workspace Name",
"industry": "SaaS",
"websiteUrl": "https://example.com",
"currencyCode": "USD"
}'{
"ok": true,
"newSlug": "updated-workspace-name"
}Data Structures
Explore all data structures used in this API endpoint
curl "https://api.trackmyposts.com/workspaces?workspaceSlug=my-workspace" \
-X PATCH \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Workspace Name",
"industry": "SaaS",
"websiteUrl": "https://example.com",
"currencyCode": "USD"
}'{
"ok": true,
"newSlug": "updated-workspace-name"
}