Customers
Endpoints: /v1/workspaces/:workspaceId/customers. Auth: Bearer + x-workspace-id.
GET /v1/workspaces/:workspaceId/customers
List customers in the workspace.
Response (200): Array of customer objects.
Example:
curl -X GET https://api.inboxops.app/v1/workspaces/ws-123/customers \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "x-workspace-id: ws-123"
GET /v1/workspaces/:workspaceId/customers/:customerId
Get one customer.
Response (200): Customer object.
Example:
curl -X GET https://api.inboxops.app/v1/workspaces/ws-123/customers/CUSTOMER_UUID \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "x-workspace-id: ws-123"
POST /v1/workspaces/:workspaceId/customers
Create a customer.
Body: JSON with customer fields (e.g. name, email). Exact schema depends on the product.
Response (201): Created customer.
Example:
curl -X POST https://api.inboxops.app/v1/workspaces/ws-123/customers \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "x-workspace-id: ws-123" \
-H "Content-Type: application/json" \
-d '{"name":"Jane Doe","email":"jane@example.com"}'
PATCH /v1/workspaces/:workspaceId/customers/:customerId
Update a customer.
Body: Partial JSON.
Response (200): Updated customer.
Example:
curl -X PATCH https://api.inboxops.app/v1/workspaces/ws-123/customers/CUSTOMER_UUID \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "x-workspace-id: ws-123" \
-H "Content-Type: application/json" \
-d '{"name":"Jane Smith"}'