Team & invitations
Current release · Updated October 4, 2026
DryKraft Team & invitations reference: methods, permissions, request fields, response shapes, examples and current limits. Read authentication and error handling first.
/api/auth/invitations/previewPreview invitation
Access: Public · Success: 200
Email-bound invitation; wrong workspace hostname or expired/revoked links return 410. Does not accept access.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
token | string | Yes | Pattern: ^[a-f0-9]{64}$. |
Response
| Field | Type | Required | Details |
|---|---|---|---|
email | No | Max 200 characters. | |
role | admin | member | viewer | No | Owner cannot be assigned or changed here. Only owners manage administrators. |
expires_at | string | No | Timestamp |
accepted | boolean | No | Already accepted |
workspace | object | No |
curl --request POST \
--url 'https://app.drykraft.com/api/auth/invitations/preview' \
--header 'Content-Type: application/json' \
--data '{
"token": "<value>"
}'/api/auth/invitations/acceptAccept invitation
Access: Public · Success: 200
Checks invited account password, available billing seat and inviter authority. An existing MFA account additionally requires code before membership or session issuance. New account needs name. Sets a session directly in the invited workspace after all checks.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
token | string | Yes | Pattern: ^[a-f0-9]{64}$. |
password | string | Yes | Max 128 characters. |
code | string | No | Required authenticator or recovery code for an MFA-enabled account Max 40 characters. |
mode | login | signup | Yes | Account choice |
name | string | No | New account name Max 100 characters. |
Response
Use OK.
curl --request POST \
--url 'https://app.drykraft.com/api/auth/invitations/accept' \
--header 'Content-Type: application/json' \
--data '{
"token": "<value>",
"password": "<value>",
"mode": "login"
}'/api/settings/member-optionsFind assignable workspace members
Access: Workspace member · Success: 200
Searches current member names, including read-only members. Returns up to25 IDs/names ordered by UUID, next_cursor and the requested selected member if still current. No email or outside-workspace lookup. Does not grant access.
Query parameters
| Parameter | Type | Required | Details |
|---|---|---|---|
search | string | No | Name search, max100 characters Max 100 characters. |
cursor | uuid | No | |
selected | uuid | No |
No request body is required.
Response
| Field | Type | Required | Details |
|---|---|---|---|
items | object[] | Yes | Max 25 items. |
next_cursor | string or null | Yes | |
selected | value | Yes |
curl --request GET \
--url 'https://app.drykraft.com/api/settings/member-options' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/settings/membersList workspace members
Access: Workspace member · Success: 200
25 members per page, ordered by email. Pass next_cursor unchanged.
Query parameters
| Parameter | Type | Required | Details |
|---|---|---|---|
cursor | No | Optional next_cursor email Max 200 characters. |
No request body is required.
Response
| Field | Type | Required | Details |
|---|---|---|---|
items | object[] | No | |
total | integer | No | Total |
next_cursor | string or null | No |
curl --request GET \
--url 'https://app.drykraft.com/api/settings/members' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/settings/organization/locations/optionsFind team locations
Access: Workspace member · Success: 200
Active locations in this workspace only,25 per UUID-ordered page. Selected may include a saved archived location. Search treats wildcard characters literally.
Query parameters
| Parameter | Type | Required | Details |
|---|---|---|---|
search | string | No | Name search Max 100 characters. |
cursor | uuid | No | |
selected | uuid | No |
No request body is required.
Response
| Field | Type | Required | Details |
|---|---|---|---|
items | object[] | No | Max 25 items. |
next_cursor | string or null | No | |
selected | value | No |
curl --request GET \
--url 'https://app.drykraft.com/api/settings/organization/locations/options' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/settings/organization/{kind}List teams or locations
Access: Workspace member · Success: 200
Current workspace only,25 newest items per page, including direct assignment counts. Default active; archived and all filters retain history. Pass next_cursor unchanged. No team-based record permission is implied.
Query parameters
| Parameter | Type | Required | Details |
|---|---|---|---|
search | string | No | Literal name search Max 100 characters. |
status | active | archived | all | No | Default active |
cursor | uuid | No |
No request body is required.
Response
| Field | Type | Required | Details |
|---|---|---|---|
items | WorkspaceTeam or WorkspaceLocation[] | No | Max 25 items. |
total | integer | No | Matching items |
next_cursor | string or null | No |
curl --request GET \
--url 'https://app.drykraft.com/api/settings/organization/{kind}' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/settings/organization/{kind}Create team or location
Access: Owner or admin · Success: 201
Creates in the current workspace under a fresh administrator check. Up to500 of each kind including archives. Names are unique ignoring case. Optional team location must be active and lead must be a current workspace member; choosing a lead adds a team assignment. This does not grant access or consume seats. No automatic create replay: inspect the directory after an ambiguous response.
JSON request
TeamInput or LocationInput. Use TeamInput for kind=teams and LocationInput for kind=locations; the route determines the schema.
Response
WorkspaceTeam or WorkspaceLocation.
curl --request POST \
--url 'https://app.drykraft.com/api/settings/organization/{kind}' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<Unique name within this workspace and kind>"
}'/api/settings/organization/{kind}/{id}Read team or location
Access: Workspace member · Success: 200
Current workspace details, direct member count, and team lead/location or active team count for a location. Archived items remain readable; outside-workspace IDs return404.
No request body is required.
Response
WorkspaceTeam or WorkspaceLocation.
curl --request GET \
--url 'https://app.drykraft.com/api/settings/organization/{kind}/00000000-0000-4000-8000-000000000001' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/settings/organization/{kind}/{id}Save team or location details
Access: Owner or admin · Success: 200
Active item and current version required. Full details replace optional defaults. Changing a lead keeps the former lead as an ordinary member. Workspace roles and Calendar availability stay unchanged. Conflict preserves the saved item until explicitly refreshed.
JSON request
object or object. Full details for the selected kind plus the current optimistic version. Omitted optional fields reset to their defaults.
Response
WorkspaceTeam or WorkspaceLocation.
curl --request PUT \
--url 'https://app.drykraft.com/api/settings/organization/{kind}/00000000-0000-4000-8000-000000000001' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<Unique name within this workspace and kind>",
"version": 1
}'/api/settings/organization/{kind}/{id}/stateArchive or restore team or location
Access: Owner or admin · Success: 200
Current version required. Archiving preserves details and assignment history. Move or archive active teams before archiving their location. A team with an archived location cannot restore until that location restores. Repeating the same state with the current version has no new effect.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
archived | boolean | Yes | True archives; false restores |
Response
WorkspaceTeam or WorkspaceLocation.
curl --request POST \
--url 'https://app.drykraft.com/api/settings/organization/{kind}/00000000-0000-4000-8000-000000000001/state' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"version": 1,
"archived": false
}'/api/settings/organization/{kind}/{id}/membersList assigned members
Access: Workspace member · Success: 200
Current directly assigned members with name, email and workspace role,25 per UUID-ordered page. Team location does not automatically assign individuals to that location. Archived items remain readable.
Query parameters
| Parameter | Type | Required | Details |
|---|---|---|---|
cursor | uuid | No |
No request body is required.
Response
| Field | Type | Required | Details |
|---|---|---|---|
items | object[] | No | Max 25 items. |
total | integer | No | Direct assignments |
next_cursor | string or null | No |
curl --request GET \
--url 'https://app.drykraft.com/api/settings/organization/{kind}/00000000-0000-4000-8000-000000000001/members' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/settings/organization/{kind}/{id}/membersAssign a current member
Access: Owner or admin · Success: 200
Active item, current version and current workspace membership required. Adds an assignment without granting access or changing seats. An existing assignment with the current version has no repeated effect. Removing workspace access removes that person’s assignments and clears team leadership.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
user_id | uuid | Yes | |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
Response
WorkspaceTeam or WorkspaceLocation.
curl --request POST \
--url 'https://app.drykraft.com/api/settings/organization/{kind}/00000000-0000-4000-8000-000000000001/members' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"user_id": "00000000-0000-4000-8000-000000000001",
"version": 1
}'/api/settings/organization/{kind}/{id}/members/{userId}Remove an assignment
Access: Owner or admin · Success: 200
Active item and current version required. Choose another team lead or clear the lead before removing that person. Removes this direct assignment only; workspace access remains. Missing assignment with the current version has no new effect.
Query parameters
| Parameter | Type | Required | Details |
|---|---|---|---|
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
No request body is required.
Response
WorkspaceTeam or WorkspaceLocation.
curl --request DELETE \
--url 'https://app.drykraft.com/api/settings/organization/{kind}/00000000-0000-4000-8000-000000000001/members/{userId}?version=1' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/settings/members/{id}Change member role
Access: Owner or admin · Success: 200
Owner is protected; admins cannot manage another administrator or grant admin. Refresh on stale version.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
role | admin | member | viewer | Yes | Owner cannot be assigned or changed here. Only owners manage administrators. |
version | integer | Yes | Positive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1. |
Response
Use OK.
curl --request PUT \
--url 'https://app.drykraft.com/api/settings/members/00000000-0000-4000-8000-000000000001' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"role": "admin",
"version": 1
}'/api/settings/members/{id}Remove member
Access: Owner or admin · Success: 200
Revokes this workspace’s sessions, keeps business records and revokes pending invitations sent by the member. Owner/admin protections apply. Available even after trial expiration.
Query parameters
| Parameter | Type | Required | Details |
|---|---|---|---|
version | integer | Yes | Required current member version Min 1. |
No request body is required.
Response
Use OK.
curl --request DELETE \
--url 'https://app.drykraft.com/api/settings/members/00000000-0000-4000-8000-000000000001?version=1' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/settings/invitationsList pending invitations
Access: Owner or admin · Success: 200
25 per page; includes expired, nonrevoked pending invitations with active flag.
Query parameters
| Parameter | Type | Required | Details |
|---|---|---|---|
cursor | uuid | No |
No request body is required.
Response
| Field | Type | Required | Details |
|---|---|---|---|
items | object[] | No | |
total | integer | No | Total |
next_cursor | string or null | No |
curl --request GET \
--url 'https://app.drykraft.com/api/settings/invitations' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/settings/invitationsCreate invitation link
Access: Owner or admin · Success: 201
Valid seven days; replacing the same email revokes the old link. Only owner grants admin. No invitation email is sent. Keep the one-time response token private.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
email | Yes | Max 200 characters. | |
role | admin | member | viewer | Yes | Owner cannot be assigned or changed here. Only owners manage administrators. |
Response
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | No | |
email | No | Max 200 characters. | |
role | admin | member | viewer | No | Owner cannot be assigned or changed here. Only owners manage administrators. |
expires_at | string | No | Timestamp |
token | string | No | Private invitation token |
curl --request POST \
--url 'https://app.drykraft.com/api/settings/invitations' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"email": "person@example.com",
"role": "admin"
}'/api/settings/invitations/{id}Revoke invitation
Access: Owner or admin · Success: 200
Already accepted invitations return 409; use member access instead. Repeated revocation is safe.
No request body is required.
Response
Use OK.
curl --request DELETE \
--url 'https://app.drykraft.com/api/settings/invitations/00000000-0000-4000-8000-000000000001' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
MCP