PingZen Workspaces API
Organizational containers for monitors. Separate work and personal projects.
Organizational containers for monitors. Separate work and personal projects.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/pingzen-dev:pingzen-dev-workspaces-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PingZen Workspaces API
description: Service availability monitoring platform. Monitor your websites, APIs, and services with multi-protocol support.
version: 1.0.0
tags:
- name: Workspaces
description: Organizational containers for monitors. Separate work and personal projects.
paths:
/api/v1/workspaces:
get:
tags:
- Workspaces
summary: List Workspaces
description: 'List all workspaces accessible to the current user (owned + shared).
Returns paginated list of workspaces with monitor counts and caller role.'
operationId: list_workspaces_api_v1_workspaces_get
security:
- HTTPBearer: []
parameters:
- name: page
in: query
required: false
schema:
type: integer
maximum: 10000
minimum: 1
description: Page number (1-indexed)
default: 1
title: Page
description: Page number (1-indexed)
- name: page_size
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
description: Items per page
default: 100
title: Page Size
description: Items per page
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceListResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Workspaces
summary: Create Workspace
description: 'Create a new workspace.
Workspace limits are enforced by subscription plan:
- FREE: 10 workspaces
- PRO: 25 workspaces
- BUSINESS: 50 workspaces
- ENTERPRISE: 200 workspaces'
operationId: create_workspace_api_v1_workspaces_post
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateWorkspaceRequest'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/workspaces/summary:
get:
tags:
- Workspaces
summary: List Workspaces Summary
description: 'List accessible workspaces (owned + shared) for dropdown selectors.
Returns minimal workspace info plus caller role for UI selectors.'
operationId: list_workspaces_summary_api_v1_workspaces_summary_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
items:
$ref: '#/components/schemas/WorkspaceSummaryResponse'
type: array
title: Response List Workspaces Summary Api V1 Workspaces Summary Get
security:
- HTTPBearer: []
/api/v1/workspaces/default:
get:
tags:
- Workspaces
summary: Get Default Workspace
description: 'Get the user''s default workspace.
Returns null if no default workspace is set.'
operationId: get_default_workspace_api_v1_workspaces_default_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/WorkspaceResponse'
- type: 'null'
title: Response Get Default Workspace Api V1 Workspaces Default Get
security:
- HTTPBearer: []
/api/v1/workspaces/{workspace_id}:
get:
tags:
- Workspaces
summary: Get Workspace
description: 'Get workspace by ID.
Only returns workspaces owned by the current user.'
operationId: get_workspace_api_v1_workspaces__workspace_id__get
security:
- HTTPBearer: []
parameters:
- name: workspace_id
in: path
required: true
schema:
type: integer
title: Workspace Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
put:
tags:
- Workspaces
summary: Update Workspace
description: 'Update workspace.
Only the workspace owner can update it.'
operationId: update_workspace_api_v1_workspaces__workspace_id__put
security:
- HTTPBearer: []
parameters:
- name: workspace_id
in: path
required: true
schema:
type: integer
title: Workspace Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateWorkspaceRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Workspaces
summary: Delete Workspace
description: 'Delete workspace.
Cannot delete:
- Workspace with monitors (move/delete monitors first)
- The last remaining workspace'
operationId: delete_workspace_api_v1_workspaces__workspace_id__delete
security:
- HTTPBearer: []
parameters:
- name: workspace_id
in: path
required: true
schema:
type: integer
title: Workspace Id
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/workspaces/{workspace_id}/set-default:
post:
tags:
- Workspaces
summary: Set Default Workspace
description: 'Set workspace as the default for the current user.
The default workspace is pre-selected in UI dropdowns.'
operationId: set_default_workspace_api_v1_workspaces__workspace_id__set_default_post
security:
- HTTPBearer: []
parameters:
- name: workspace_id
in: path
required: true
schema:
type: integer
title: Workspace Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/workspaces/{workspace_id}/regenerate-ping-key:
post:
tags:
- Workspaces
summary: Regenerate workspace ping key
description: 'Regenerate the workspace''s heartbeat ping key. WARNING: This invalidates ALL existing heartbeat ping URLs for this workspace.'
operationId: regenerate_ping_key_api_v1_workspaces__workspace_id__regenerate_ping_key_post
security:
- HTTPBearer: []
parameters:
- name: workspace_id
in: path
required: true
schema:
type: integer
title: Workspace Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/workspaces/{workspace_id}/members:
get:
tags:
- Workspaces
summary: List Workspace Members
operationId: list_workspace_members_api_v1_workspaces__workspace_id__members_get
security:
- HTTPBearer: []
parameters:
- name: workspace_id
in: path
required: true
schema:
type: integer
title: Workspace Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/WorkspaceMemberResponse'
title: Response List Workspace Members Api V1 Workspaces Workspace Id Members Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Workspaces
summary: Add Workspace Member
operationId: add_workspace_member_api_v1_workspaces__workspace_id__members_post
security:
- HTTPBearer: []
parameters:
- name: workspace_id
in: path
required: true
schema:
type: integer
title: Workspace Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AddWorkspaceMemberRequest'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceMemberResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/workspaces/{workspace_id}/invites:
post:
tags:
- Workspaces
summary: Create Workspace Invite Link
operationId: create_workspace_invite_link_api_v1_workspaces__workspace_id__invites_post
security:
- HTTPBearer: []
parameters:
- name: workspace_id
in: path
required: true
schema:
type: integer
title: Workspace Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateWorkspaceInviteRequest'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceInviteLinkResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/workspaces/invites/accept:
post:
tags:
- Workspaces
summary: Accept Workspace Invite
operationId: accept_workspace_invite_api_v1_workspaces_invites_accept_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AcceptWorkspaceInviteRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AcceptWorkspaceInviteResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/v1/workspaces/{workspace_id}/members/{member_id}:
patch:
tags:
- Workspaces
summary: Change Workspace Member Role
operationId: change_workspace_member_role_api_v1_workspaces__workspace_id__members__member_id__patch
security:
- HTTPBearer: []
parameters:
- name: workspace_id
in: path
required: true
schema:
type: integer
title: Workspace Id
- name: member_id
in: path
required: true
schema:
type: integer
title: Member Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ChangeWorkspaceMemberRoleRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceMemberResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Workspaces
summary: Remove Workspace Member
operationId: remove_workspace_member_api_v1_workspaces__workspace_id__members__member_id__delete
security:
- HTTPBearer: []
parameters:
- name: workspace_id
in: path
required: true
schema:
type: integer
title: Workspace Id
- name: member_id
in: path
required: true
schema:
type: integer
title: Member Id
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/workspaces/{workspace_id}/leave:
post:
tags:
- Workspaces
summary: Leave Workspace
operationId: leave_workspace_api_v1_workspaces__workspace_id__leave_post
security:
- HTTPBearer: []
parameters:
- name: workspace_id
in: path
required: true
schema:
type: integer
title: Workspace Id
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
WorkspaceInviteLinkResponse:
properties:
member:
$ref: '#/components/schemas/WorkspaceMemberResponse'
token:
type: string
title: Token
description: One-time invite token; returned only once
type: object
required:
- member
- token
title: WorkspaceInviteLinkResponse
WorkspaceResponse:
properties:
id:
type: integer
title: Id
description: Workspace ID
name:
type: string
title: Name
description: Workspace name
user_id:
type: integer
title: User Id
description: Owner user ID
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Workspace description
color:
type: string
title: Color
description: Hex color (#RRGGBB)
icon:
anyOf:
- type: string
- type: 'null'
title: Icon
description: Emoji or icon
is_default:
type: boolean
title: Is Default
description: Whether this is user's default workspace
ping_key:
type: string
title: Ping Key
description: Secret key for heartbeat ping URLs
monitor_count:
type: integer
title: Monitor Count
description: Number of monitors in this workspace
role:
type: string
title: Role
description: Caller role in workspace (owner|editor|viewer)
default: owner
is_owner:
type: boolean
title: Is Owner
description: Whether the caller owns this workspace
default: true
created_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Created At
description: Creation timestamp
updated_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Updated At
description: Last update timestamp
type: object
required:
- id
- name
- user_id
- color
- is_default
- ping_key
- monitor_count
title: WorkspaceResponse
description: Response schema for a workspace.
CreateWorkspaceInviteRequest:
properties:
role:
type: string
title: Role
description: 'Member role: editor or viewer'
default: viewer
type: object
title: CreateWorkspaceInviteRequest
AddWorkspaceMemberRequest:
properties:
email:
type: string
maxLength: 320
minLength: 3
title: Email
description: Registered user email
role:
type: string
title: Role
description: 'Member role: editor or viewer'
default: viewer
type: object
required:
- email
title: AddWorkspaceMemberRequest
CreateWorkspaceRequest:
properties:
name:
type: string
maxLength: 100
minLength: 1
title: Name
description: Human-readable name for the workspace (e.g., 'Work 1 - FinTech')
description:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Description
description: Optional description of the workspace
color:
type: string
title: Color
description: Hex color for UI display (#RRGGBB)
default: '#3B82F6'
icon:
anyOf:
- type: string
maxLength: 50
- type: 'null'
title: Icon
description: Optional emoji or icon for UI
type: object
required:
- name
title: CreateWorkspaceRequest
description: Request schema for creating a workspace.
ChangeWorkspaceMemberRoleRequest:
properties:
role:
type: string
title: Role
description: 'Member role: editor or viewer'
type: object
required:
- role
title: ChangeWorkspaceMemberRoleRequest
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
AcceptWorkspaceInviteRequest:
properties:
token:
type: string
maxLength: 128
minLength: 16
title: Token
description: Invite token
type: object
required:
- token
title: AcceptWorkspaceInviteRequest
WorkspaceListResponse:
properties:
workspaces:
items:
$ref: '#/components/schemas/WorkspaceResponse'
type: array
title: Workspaces
description: List of workspaces
total:
type: integer
title: Total
description: Total number of workspaces
page:
type: integer
title: Page
description: Current page (1-indexed)
page_size:
type: integer
title: Page Size
description: Page size
type: object
required:
- workspaces
- total
- page
- page_size
title: WorkspaceListResponse
description: Response schema for paginated workspace list.
WorkspaceSummaryResponse:
properties:
id:
type: integer
title: Id
description: Workspace ID
name:
type: string
title: Name
description: Workspace name
color:
type: string
title: Color
description: Hex color (#RRGGBB)
icon:
anyOf:
- type: string
- type: 'null'
title: Icon
description: Emoji or icon
is_default:
type: boolean
title: Is Default
description: Whether this is user's default workspace
monitor_count:
type: integer
title: Monitor Count
description: Number of monitors
monitor_limit:
type: integer
title: Monitor Limit
description: Monitor cap from the workspace owner's plan (governing)
default: 0
monitor_usage:
type: integer
title: Monitor Usage
description: Workspace owner's total monitor footprint (governing usage)
default: 0
alert_limit:
type: integer
title: Alert Limit
description: Alert cap from the workspace owner's plan (governing)
default: 0
role:
type: string
title: Role
description: Caller role in workspace (owner|editor|viewer)
default: owner
is_owner:
type: boolean
title: Is Owner
description: Whether the caller owns this workspace
default: true
type: object
required:
- id
- name
- color
- is_default
- monitor_count
title: WorkspaceSummaryResponse
description: Minimal workspace info for dropdown selectors.
UpdateWorkspaceRequest:
properties:
name:
anyOf:
- type: string
maxLength: 100
minLength: 1
- type: 'null'
title: Name
description: Human-readable name for the workspace
description:
anyOf:
- type: string
maxLength: 500
- type: 'null'
title: Description
description: Optional description of the workspace
color:
anyOf:
- type: string
- type: 'null'
title: Color
description: Hex color for UI display (#RRGGBB)
icon:
anyOf:
- type: string
maxLength: 50
- type: 'null'
title: Icon
description: Optional emoji or icon for UI
type: object
title: UpdateWorkspaceRequest
description: Request schema for updating a workspace.
WorkspaceMemberResponse:
properties:
id:
type: integer
title: Id
description: Membership row ID
user_id:
anyOf:
- type: integer
- type: 'null'
title: User Id
description: Member user ID (null while invite pending)
role:
type: string
title: Role
description: Member role (owner|editor|viewer)
status:
type: string
title: Status
description: Membership status (active|pending)
email:
anyOf:
- type: string
- type: 'null'
title: Email
description: Member email
display_name:
anyOf:
- type: string
- type: 'null'
title: Display Name
description: Member display name
avatar_url:
anyOf:
- type: string
- type: 'null'
title: Avatar Url
description: Member avatar URL
invited_email:
anyOf:
- type: string
- type: 'null'
title: Invited Email
description: Invited email for pending invites
expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Expires At
description: When a pending invite expires
created_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Created At
description: When the membership was created
accepted_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Accepted At
description: When the invite was accepted
type: object
required:
- id
- role
- status
title: WorkspaceMemberResponse
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
AcceptWorkspaceInviteResponse:
properties:
workspace_id:
type: integer
title: Workspace Id
description: Workspace the user joined
workspace_name:
anyOf:
- type: string
- type: 'null'
title: Workspace Name
description: Workspace name
role:
type: string
title: Role
description: Granted role
type: object
required:
- workspace_id
- role
title: AcceptWorkspaceInviteResponse
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key