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.
GET
/workspacesHeaders
x-api-keystringrequiredYour Track My Posts API key
Responses
200Successful response with list of workspaces
401Unauthorized - authentication required
500Internal server error
curl "https://api.trackmyposts.com/workspaces" \
-H "x-api-key: YOUR_API_KEY"[
{
"id": "workspace-123",
"ownerId": "user-456",
"name": "My Workspace",
"slug": "my-workspace",
"industry": "SaaS",
"logoUrl": "https://example.com/logo.png",
"websiteUrl": "https://example.com",
"appstoreUrl": null,
"instagramUrl": null,
"plan": "growth",
"planStatus": "active",
"stripeCustomerId": "cus_1234567890",
"stripeSubscriptionId": "sub_1234567890",
"trialEndsAt": null,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"currencyCode": "USD",
"lastSyncedAt": null,
"lastForcedSyncAt": null
}
]Data Structures
View all 5 data structuresWorkspaces
Explore all data structures used in this API endpoint
curl "https://api.trackmyposts.com/workspaces" \
-H "x-api-key: YOUR_API_KEY"[
{
"id": "workspace-123",
"ownerId": "user-456",
"name": "My Workspace",
"slug": "my-workspace",
"industry": "SaaS",
"logoUrl": "https://example.com/logo.png",
"websiteUrl": "https://example.com",
"appstoreUrl": null,
"instagramUrl": null,
"plan": "growth",
"planStatus": "active",
"stripeCustomerId": "cus_1234567890",
"stripeSubscriptionId": "sub_1234567890",
"trialEndsAt": null,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"currencyCode": "USD",
"lastSyncedAt": null,
"lastForcedSyncAt": null
}
]