Zespół workspace
Endpointy „Zespół workspace” Zanfia Workspace API — ze schematami i przykładami kodu.
Członkowie zespołu i zaproszenia w Twoim workspace. Zaproszenie wysyła e-mail; zapraszana rola nigdy nie może być owner (własność przenosi się wyłącznie przez transfer w panelu). Wywołujący musi mieć uprawnienia zespołowe w workspace — sam ważny klucz API nie wystarczy. Wszystkie endpointy wymagają nagłówka Authorization: Bearer — zobacz Uwierzytelnianie.
Lista członków zespołu
/team/membersAuthorization
bearerAuth API key from Dashboard → Integrations → API, MCP and CLI.
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/team/members"{ "count": 0, "members": [ { "userId": "string", "email": "string", "firstName": "string", "role": "string", "status": "string", "joinedAt": "string", "invitedBy": "string" } ]}{ "error": "string"}Lista oczekujących zaproszeń
/team/invitationsAuthorization
bearerAuth API key from Dashboard → Integrations → API, MCP and CLI.
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/team/invitations"{ "count": 0, "invitations": [ { "id": "string", "email": "string", "name": "string", "role": "owner", "status": "pending", "invitedBy": "string", "expiresAt": "string", "resendCount": 0, "lastSentAt": "string", "createdAt": "string" } ]}{ "error": "string"}Zaproś członka zespołu
/team/invitationsAuthorization
bearerAuth API key from Dashboard → Integrations → API, MCP and CLI.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/team/invitations" \ -H "Content-Type: application/json" \ -d '{ "email": "string", "role": "admin" }'{ "status": "invited", "invitation": { "id": "string", "email": "string", "name": "string", "role": "owner", "status": "pending", "invitedBy": "string", "expiresAt": "string", "resendCount": 0, "lastSentAt": "string", "createdAt": "string" }}{ "error": "string"}Wyślij zaproszenie ponownie
/team/invitations/{invitationId}/resendAuthorization
bearerAuth API key from Dashboard → Integrations → API, MCP and CLI.
In: header
Path Parameters
Response Body
application/json
application/json
curl -X POST "https://example.com/team/invitations/string/resend"{ "invitation": { "id": "string", "email": "string", "name": "string", "role": "owner", "status": "pending", "invitedBy": "string", "expiresAt": "string", "resendCount": 0, "lastSentAt": "string", "createdAt": "string" }}{ "error": "string"}Cofnij zaproszenie
/team/invitations/{invitationId}Authorization
bearerAuth API key from Dashboard → Integrations → API, MCP and CLI.
In: header
Path Parameters
Response Body
application/json
application/json
curl -X DELETE "https://example.com/team/invitations/string"{ "invitationId": "string", "revoked": true}{ "error": "string"}Zmień rolę członka
/team/members/{userId}/roleAuthorization
bearerAuth API key from Dashboard → Integrations → API, MCP and CLI.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/team/members/string/role" \ -H "Content-Type: application/json" \ -d '{ "role": "admin" }'{ "userId": "string", "previousRole": "string", "newRole": "string"}{ "error": "string"}Usuń członka zespołu
/team/members/{userId}Authorization
bearerAuth API key from Dashboard → Integrations → API, MCP and CLI.
In: header
Path Parameters
Response Body
application/json
application/json
curl -X DELETE "https://example.com/team/members/string"{ "userId": "string", "removed": true}{ "error": "string"}Czy ten artykuł był pomocny?

