Predict.aiDocs
Workspaces

Endpoints

Every workspace and organization route at a glance.

All routes require the Authorization header — and only that. None of them require X-Workspace-Id (these are the routes you call to get a workspace ID), and verify-invitation needs no authentication at all.

Workspaces

MethodPathPurpose
GET/v1/workspaceList workspaces & find your ID
GET/v1/workspace/{workspace_id}Get one workspace
POST/v1/workspaceCreate a workspace
PUT/v1/workspace/{workspace_id}Edit a workspace
DELETE/v1/workspace/{workspace_id}Delete a workspace
GET/v1/workspace/available-regionsList available regions
GET/v1/workspace/{workspace_id}/membersList workspace members
POST/v1/workspace/{workspace_id}/membersAdd a workspace member
DELETE/v1/workspace/{workspace_id}/members/{user_id}Remove a workspace member

Organizations

MethodPathPurpose
GET/v1/organization/mineYour organizations
POST/v1/organizationCreate an organization
GET/v1/organization/{organization_id}Get an organization
PUT/v1/organization/{organization_id}Update an organization
GET/v1/organization/{organization_id}/membersList members
PUT/v1/organization/{organization_id}/members/{member_user_id}/roleChange a member's role
DELETE/v1/organization/{organization_id}/members/{member_user_id}Remove a member
POST/v1/organization/{organization_id}/inviteSend an invitation
GET/v1/organization/{organization_id}/invitationsList invitations
GET/v1/organization/verify-invitationVerify an invitation token (no auth)
POST/v1/organization/invitations/{invitation_id}/acceptAccept an invitation
POST/v1/organization/invitations/{invitation_id}/declineDecline an invitation

On this page