API References
The Tailor Platform exposes its functionality through APIs defined using Protocol Buffers. Using ConnectRPC, we support both gRPC and HTTP protocols. This guide shows you how to interact with these APIs using different approaches.
Overview
All platform services are exposed through the OperatorService, a unified gRPC API for managing workspaces, applications, and platform components. The .proto files defining these services are available in our GitHub repository.
Using the APIs
You can interact with Tailor Platform APIs using curl by making HTTP requests to the API endpoints.
See Authentication for details on obtaining an access token.
Once authenticated, you can proceed with API requests:
Creating a Workspace
curl -X POST "https://api.tailor.tech/tailor.v1.OperatorService/CreateWorkspace" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"workspace_name": "my-workspace",
"workspace_region": "us-west",
"organization_id": "org-123",
"delete_protection": true
}'Using Buf SDKs is simple - just install the SDK for your language directly from our Buf registry.
Go SDK
Install the ConnectRPC Go SDK:
go get buf.build/gen/go/tailor-inc/tailor/connectrpc/goSee the full SDK documentation at: https://buf.build/tailor-inc/tailor/sdks/main:connectrpc/go
Node.js SDK
Install the ConnectRPC Node.js SDK:
npm install @buf/tailor-inc_tailor.connectrpc_esPython SDK
Install the ConnectRPC Python SDK:
pip install buf-tailor-inc-tailor-connectrpcFor other languages and detailed usage examples, visit our Buf registry.
Authentication
All API calls require authentication using Bearer tokens. Use tailor-sdk to authenticate:
# Login to Tailor Platform
tailor-sdk login
# Create a personal access token for API authentication
tailor-sdk user pat create <token-name>See the Auth Guide for detailed authentication setup.
Common Operations
Workspace Management
CreateWorkspace- Create a new workspaceGetWorkspace- Retrieve workspace detailsListWorkspaces- List all accessible workspacesUpdateWorkspace- Modify workspace settingsDeleteWorkspace- Remove a workspace
Application Services
CreateApplication- Deploy a new applicationCreateTailorDBService- Set up database servicesCreatePipelineService- Configure data processingCreateAuthService- Enable authenticationCreateExecutorService- Set up job execution
Error Handling
All APIs return standard gRPC status codes. Common error responses include:
UNAUTHENTICATED(16) - Invalid or missing authenticationPERMISSION_DENIED(7) - Insufficient permissionsNOT_FOUND(5) - Resource does not existALREADY_EXISTS(6) - Resource already existsINVALID_ARGUMENT(3) - Invalid request parameters
Related Documentation
For implementation details and usage examples, refer to: