{"openapi":"3.0.0","paths":{"/api-keys":{"post":{"operationId":"createApiKey","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyResponseDto"}}}}},"summary":"Create a new API Key","tags":["API Keys","Public"],"x-feature":"api"},"get":{"operationId":"listKeys","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyResponseDto"}}}}}},"summary":"List API Keys for workspace","tags":["API Keys","Public"],"x-feature":"api"}},"/api-keys/{id}":{"delete":{"operationId":"deleteKey","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The key was revoked and can no longer be used. Nothing else is sent back."}},"summary":"Revoke and delete an API Key","tags":["API Keys","Public"],"x-feature":"api"}},"/api-keys/info":{"get":{"operationId":"getInfo","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyResponseDto"}}}}},"summary":"Retrieve the API Basic Information like the user and the workspace","tags":["API Keys","Public"],"x-feature":"api"}},"/api-keys/oauth/authorize":{"post":{"operationId":"authorize","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthAuthorizeDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthAuthorizeResponseDto"}}}}},"summary":"OAuth 2.1 Authorize (Generates Code)","tags":["API Keys","OAuth","Public"],"x-feature":"api"}},"/api-keys/oauth/token":{"post":{"operationId":"exchange","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthExchangeDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthTokenResponseDto"}}}}},"summary":"OAuth 2.1 Token Exchange","tags":["API Keys","OAuth","Public"],"x-feature":"api"}},"/file/workspace/upload":{"post":{"operationId":"uploadWorkspaceFile","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The file, up to 100 MB"}}}}}},"responses":{"201":{"description":"File uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentDto"}}}}},"security":[{"bearer":[]}],"summary":"Upload a file to workspace storage","tags":["File","Files","Public"],"x-feature":"files"}},"/file/{path}":{"get":{"operationId":"downloadFile","parameters":[{"name":"path","required":true,"in":"path","schema":{"type":"array","items":{"type":"string"}}},{"name":"download","required":false,"in":"query","description":"Stream attachment bytes through the API instead of redirecting to storage.","schema":{"enum":["1"],"type":"string"}}],"responses":{"200":{"description":"The file itself, sent as a download, when download=1","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"302":{"description":"Sends you on to the stored file. The answer has no body.","headers":{"Location":{"description":"Address of the stored file","schema":{"type":"string"}}}}},"security":[{"bearer":[]}],"summary":"Download a file by path","tags":["File","Files","Public"],"x-feature":"files"}},"/saved-searches":{"get":{"description":"The searches shared with the team, then your own. Each holds what it looks for (records of an object, or notes; which organizations; text and filters), never the results.","operationId":"savedSearchesList","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearchList"}}}}},"security":[{"bearer":[]}],"summary":"List saved searches","tags":["Search","Public"],"x-feature":"records"},"post":{"description":"Saves a search under a name, shared with the team by default (`visibility: workspace`, which takes an Editor or Admin). 409 when the name is taken or the limit of saved searches is reached.","operationId":"savedSearchesCreate","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearchCreate"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearch"}}}}},"security":[{"bearer":[]}],"summary":"Save a search","tags":["Search","Public"],"x-feature":"records"}},"/saved-searches/{id}":{"patch":{"description":"Renames, shares or unshares, or replaces what it looks for. Only the person who saved it or an Admin can change it.","operationId":"savedSearchesUpdate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearchUpdate"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearch"}}}}},"security":[{"bearer":[]}],"summary":"Change a saved search","tags":["Search","Public"],"x-feature":"records"},"delete":{"description":"Only the person who saved it or an Admin can delete it.","operationId":"savedSearchesDelete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""}},"security":[{"bearer":[]}],"summary":"Delete a saved search","tags":["Search","Public"],"x-feature":"records"}},"/workspaces/managed":{"get":{"operationId":"getManagedWorkspaces","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedWorkspacesDto"}}}}},"summary":"The client organizations this organization manages, and the one it is managed by","tags":["Workspaces","Public"],"x-feature":"workspace"},"post":{"operationId":"addManagedWorkspace","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddManagedWorkspaceDto"}}}},"responses":{"204":{"description":""}},"summary":"Manage another organization from this one. You must be an admin of both.","tags":["Workspaces","Public"],"x-feature":"workspace"}},"/workspaces/managed/enabled":{"put":{"operationId":"setManagedWorkspacesEnabled","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetManagedEnabledDto"}}}},"responses":{"204":{"description":""}},"summary":"Turn client organizations on or off for this organization","tags":["Workspaces","Public"],"x-feature":"workspace"}},"/workspaces/managed/{clientId}":{"delete":{"operationId":"removeManagedWorkspace","parameters":[{"name":"clientId","required":true,"in":"path","description":"The client organization","schema":{"type":"string"}}],"responses":{"204":{"description":""}},"summary":"Stop managing a client organization from this one","tags":["Workspaces","Public"],"x-feature":"workspace"}},"/workspaces/managed-by":{"delete":{"operationId":"leaveManagingWorkspace","parameters":[],"responses":{"204":{"description":""}},"summary":"Leave the organization this one is managed from","tags":["Workspaces","Public"],"x-feature":"workspace"}},"/workspaces/{id}/members":{"get":{"description":"Lists everyone in the workspace with their role. The id must be the workspace the API key belongs to; any other id is refused with 403.","operationId":"getMembers","parameters":[{"name":"id","required":true,"in":"path","description":"Workspace ID (from GET /api-keys/info)","schema":{}}],"responses":{"200":{"description":"Members retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembersListDto"}}}}},"summary":"Get all members of a workspace","tags":["Workspaces","Public"],"x-feature":"workspace"}},"/public/links/{code}":{"get":{"operationId":"resolvePublicLink","parameters":[{"name":"code","required":true,"in":"path","description":"The 12-character code of a short public link","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicShortLinkDto"}}}}},"summary":"The page a short public link opens","tags":["Public"],"x-feature":"none"}},"/groups":{"post":{"operationId":"createGroup","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGroupDto"}}}},"responses":{"201":{"description":"Group created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupWithViewsDto"}}}},"404":{"description":"Workspace or Table not found"}},"security":[{"bearer":[]}],"summary":"Create a new group","tags":["Groups & Views","Public"],"x-feature":"records"}},"/groups/{groupId}/duplicate":{"post":{"operationId":"duplicateGroup","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","description":"Source group ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateGroupDto"}}}},"responses":{"201":{"description":"Group duplicated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupWithViewsDto"}}}},"403":{"description":"Insufficient permissions"},"404":{"description":"Group not found"}},"security":[{"bearer":[]}],"summary":"Duplicate a group and assign all source records to the new group","tags":["Groups & Views","Public"],"x-feature":"records"}},"/groups/{groupId}":{"get":{"operationId":"getGroup","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","description":"Group ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Group retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupWithViewsDto"}}}},"403":{"description":"Insufficient permissions"},"404":{"description":"Group not found"}},"security":[{"bearer":[]}],"summary":"Get a group by ID with all its views","tags":["Groups & Views","Public"],"x-feature":"records"},"put":{"operationId":"updateGroup","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","description":"Group ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGroupDto"}}}},"responses":{"200":{"description":"Group updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupWithViewsDto"}}}},"403":{"description":"Insufficient permissions"},"404":{"description":"Group not found"}},"security":[{"bearer":[]}],"summary":"Update a group","tags":["Groups & Views","Public"],"x-feature":"records"},"delete":{"operationId":"deleteGroup","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","description":"Group ID","schema":{"type":"string"}},{"name":"force","required":false,"in":"query","description":"Delete even though forms, booking pages or other features use the group","schema":{"type":"string"}}],"responses":{"200":{"description":"Group deleted successfully"},"403":{"description":"Insufficient permissions"},"404":{"description":"Group not found"},"409":{"description":"Features still use the group (code GROUP_IN_USE, with the list in `dependents`)"}},"security":[{"bearer":[]}],"summary":"Delete a group (soft delete)","tags":["Groups & Views","Public"],"x-feature":"records"}},"/groups/views":{"post":{"operationId":"createView","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateViewDto"}}}},"responses":{"201":{"description":"View created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewDetailsDto"}}}},"400":{"description":"Invalid view configuration"},"403":{"description":"Insufficient permissions"},"404":{"description":"Group or Table not found"}},"security":[{"bearer":[]}],"summary":"Create a new view within a group","tags":["Groups & Views","Public"],"x-feature":"records"}},"/groups/views/{viewId}":{"get":{"operationId":"getView","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"viewId","required":true,"in":"path","description":"View ID","schema":{"type":"string"}}],"responses":{"200":{"description":"View retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewDetailsDto"}}}},"403":{"description":"Insufficient permissions"},"404":{"description":"View not found"}},"security":[{"bearer":[]}],"summary":"Get a view by ID","tags":["Groups & Views","Public"],"x-feature":"records"},"put":{"operationId":"updateView","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"viewId","required":true,"in":"path","description":"View ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateViewDto"}}}},"responses":{"200":{"description":"View updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewDetailsDto"}}}},"400":{"description":"Invalid view configuration"},"403":{"description":"Insufficient permissions"},"404":{"description":"View not found"}},"security":[{"bearer":[]}],"summary":"Update a view","tags":["Groups & Views","Public"],"x-feature":"records"},"delete":{"operationId":"deleteView","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"viewId","required":true,"in":"path","description":"View ID","schema":{"type":"string"}}],"responses":{"200":{"description":"View deleted successfully"},"403":{"description":"Insufficient permissions"},"404":{"description":"View not found"}},"security":[{"bearer":[]}],"summary":"Delete a view (soft delete)","tags":["Groups & Views","Public"],"x-feature":"records"}},"/groups/{groupId}/views":{"get":{"operationId":"listViewsInGroup","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","description":"Group ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Views retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ViewDetailsDto"}}}}},"403":{"description":"Insufficient permissions"},"404":{"description":"Group not found"}},"security":[{"bearer":[]}],"summary":"List all views in a group","tags":["Groups & Views","Public"],"x-feature":"records"}},"/groups/{groupId}/members":{"post":{"operationId":"addGroupMember","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","description":"Group ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddGroupMemberDto"}}}},"responses":{"201":{"description":"Member added successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupMemberDto"}}}},"403":{"description":"Insufficient permissions"},"404":{"description":"Group or User not found"}},"security":[{"bearer":[]}],"summary":"Add a member to a group","tags":["Groups & Views","Public"],"x-feature":"records"},"get":{"operationId":"getGroupMembers","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","description":"Group ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Members retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GroupMemberDto"}}}}},"404":{"description":"Group not found"}},"security":[{"bearer":[]}],"summary":"Get all members of a group","tags":["Groups & Views","Public"],"x-feature":"records"}},"/groups/{groupId}/members/{memberId}":{"put":{"description":"Setting OWNER hands the group over: the member becomes its only owner and the previous owner stays as ADMIN. Only the group's owner or a workspace admin can do that. The owner's own role can't be changed otherwise.","operationId":"updateGroupMemberRole","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","description":"Group ID","schema":{"type":"string"}},{"name":"memberId","required":true,"in":"path","description":"The member's user ID (the `userId` in the members list, not the membership `id`)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGroupMemberRoleDto"}}}},"responses":{"200":{"description":"Member role updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupMemberDto"}}}},"403":{"description":"Insufficient permissions"},"404":{"description":"Group or Member not found"}},"security":[{"bearer":[]}],"summary":"Update a member's role in a group","tags":["Groups & Views","Public"],"x-feature":"records"},"delete":{"operationId":"removeGroupMember","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","description":"Group ID","schema":{"type":"string"}},{"name":"memberId","required":true,"in":"path","description":"The member's user ID (the `userId` in the members list, not the membership `id`)","schema":{"type":"string"}}],"responses":{"200":{"description":"Member removed successfully"},"403":{"description":"Insufficient permissions"},"404":{"description":"Group or Member not found"}},"security":[{"bearer":[]}],"summary":"Remove a member from a group","tags":["Groups & Views","Public"],"x-feature":"records"}},"/groups/{groupId}/leave":{"post":{"operationId":"leaveGroup","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","description":"Group ID","schema":{"type":"string"}}],"responses":{"204":{"description":"User left group"},"403":{"description":"Cannot leave as owner"},"404":{"description":"Group not found or not a member"}},"security":[{"bearer":[]}],"summary":"Leave a group (current user removes themselves)","tags":["Groups & Views","Public"],"x-feature":"records"}},"/groups/{groupId}/visibility":{"put":{"operationId":"updateGroupVisibility","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","description":"Group ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGroupVisibilityDto"}}}},"responses":{"200":{"description":"Visibility updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupWithViewsDto"}}}},"403":{"description":"Insufficient permissions"},"404":{"description":"Group not found"}},"security":[{"bearer":[]}],"summary":"Update group visibility settings","tags":["Groups & Views","Public"],"x-feature":"records"}},"/table/compile":{"post":{"operationId":"compileTables","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JsonTable"}}}}},"responses":{"200":{"description":"Table definitions compiled successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableCompileResult"}}}}},"security":[{"bearer":[]}],"summary":"Compile and validate table definitions","tags":["Objects","Public"],"x-feature":"data-model"}},"/table/transform":{"post":{"operationId":"transformToTables","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JsonTable"}}}}},"responses":{"201":{"description":"Tables created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransformResult"}}}},"400":{"description":"Invalid JSON structure"},"404":{"description":"Workspace not found"}},"security":[{"bearer":[]}],"summary":"Transform JSON description to database tables","tags":["Objects","Public"],"x-feature":"data-model"}},"/table/describe":{"get":{"operationId":"describeWorkspace","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Workspace described successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribeResult"}}}},"404":{"description":"Workspace not found"}},"security":[{"bearer":[]}],"summary":"Describe workspace tables as JSON","tags":["Objects","Public"],"x-feature":"data-model"}},"/table/{tableId}":{"put":{"operationId":"updateTable","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"tableId","required":true,"in":"path","description":"Table ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonTable"}}}},"responses":{"200":{"description":"Table updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransformResult"}}}},"400":{"description":"Invalid JSON structure"},"404":{"description":"Table not found"}},"security":[{"bearer":[]}],"summary":"Update a single table from JSON description","tags":["Objects","Public"],"x-feature":"data-model"},"delete":{"operationId":"deleteTable","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"tableId","required":true,"in":"path","description":"Table ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Table deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteTableResult"}}}},"400":{"description":"Table has records and cannot be deleted"},"404":{"description":"Table not found"}},"security":[{"bearer":[]}],"summary":"Delete a table if it has no records","tags":["Objects","Public"],"x-feature":"data-model"}},"/table/{tableId}/formula/check":{"post":{"description":"Nothing is saved. Returns problems (by code, for translation), the formula with field names, and the value it would give for up to three records you can see.","operationId":"checkFormula","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"tableId","required":true,"in":"path","description":"Table ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormulaCheckDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormulaCheckResult"}}}},"404":{"description":"Table not found"}},"security":[{"bearer":[]}],"summary":"Check a formula and preview it on a few records","tags":["Objects","Public"],"x-feature":"data-model"}},"/table/{tableId}/fields/{fieldId}/sequence":{"get":{"operationId":"getFieldSequence","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"tableId","required":true,"in":"path","description":"Table ID","schema":{"type":"string"}},{"name":"fieldId","required":true,"in":"path","description":"Field ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldSequenceDto"}}}},"400":{"description":"The field is not numbered"},"404":{"description":"Field not found"}},"security":[{"bearer":[]}],"summary":"Read a numbered field's next number","tags":["Objects","Public"],"x-feature":"data-model"},"put":{"description":"Moves the counter for the current period. It cannot go below a number already used.","operationId":"setFieldSequence","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"tableId","required":true,"in":"path","description":"Table ID","schema":{"type":"string"}},{"name":"fieldId","required":true,"in":"path","description":"Field ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetFieldSequenceDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldSequenceDto"}}}},"400":{"description":"Not numbered, or the number is already used"},"404":{"description":"Field not found"}},"security":[{"bearer":[]}],"summary":"Set a numbered field's next number","tags":["Objects","Public"],"x-feature":"data-model"}},"/records":{"post":{"operationId":"createRecord","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRecordDto"}}}},"responses":{"201":{"description":"Record created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDataDto"}}}},"403":{"description":"Insufficient permissions in group"},"404":{"description":"Table or Group not found"}},"security":[{"bearer":[]}],"summary":"Create a new record","tags":["Records","Public"],"x-feature":"records"}},"/records/{recordId}":{"get":{"operationId":"getRecord","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","description":"Record ID","schema":{"type":"string"}},{"name":"includeDeleted","required":false,"in":"query","description":"If true, allows fetching soft-deleted records within the last 30 days (Bin).","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"description":"Record retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDataDto"}}}},"404":{"description":"Record not found"}},"security":[{"bearer":[]}],"summary":"Get a record by ID","tags":["Records","Public"],"x-feature":"records"},"put":{"operationId":"updateRecord","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","description":"Record ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRecordDto"}}}},"responses":{"200":{"description":"Record updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDataDto"}}}},"400":{"description":"Validation error or invalid field values"},"403":{"description":"Insufficient permissions in group"},"404":{"description":"Record not found"}},"security":[{"bearer":[]}],"summary":"Update a record","tags":["Records","Public"],"x-feature":"records"}},"/records/{recordId}/moves":{"get":{"description":"For each status field with a transition rule: the statuses this person may move the record to now, and whether the move needs a comment.","operationId":"getRecordMoves","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","description":"Record ID","schema":{"type":"string"}}],"responses":{"200":{"description":"The status moves you may make, one entry per status field","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordMovesDto"}}}}},"404":{"description":"Record not found"}},"security":[{"bearer":[]}],"summary":"List the status moves you may make on a record","tags":["Records","Public"],"x-feature":"records"}},"/records/by-ids":{"post":{"operationId":"getRecordsByIds","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetRecordsByIdsDto"}}}},"responses":{"200":{"description":"Records retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordDataDto"}}}}}},"security":[{"bearer":[]}],"summary":"Get records by IDs","tags":["Records","Public"],"x-feature":"records"}},"/records/{recordId}/activity":{"get":{"operationId":"getRecordActivity","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","description":"Record ID","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":50,"type":"number"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor for pagination","schema":{"type":"string"}},{"name":"includeTableActivities","required":false,"in":"query","description":"Include table-level schema activities in the record feed","schema":{"default":true,"type":"boolean"}}],"responses":{"200":{"description":"Record activity retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedRecordActivityDto"}}}},"404":{"description":"Record not found"}},"security":[{"bearer":[]}],"summary":"Get record activity feed","tags":["Records","Public"],"x-feature":"records"}},"/records/{recordId}/related-record-ids":{"post":{"operationId":"getRelatedRecordIds","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","description":"Record ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetRelatedRecordIdsDto"}}}},"responses":{"200":{"description":"Related record IDs retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelatedRecordIdsDto"}}}},"404":{"description":"Record not found"}},"security":[{"bearer":[]}],"summary":"Get related record IDs","tags":["Records","Public"],"x-feature":"records"}},"/records/{recordId}/link-counts":{"get":{"description":"For each link of this record, how many linked records the caller can see, and per object how many more are linked through one record in between.","operationId":"getRecordLinkCounts","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","description":"Record ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordLinkCountsDto"}}}},"404":{"description":"Record not found"}},"security":[{"bearer":[]}],"summary":"Count linked records per link","tags":["Records","Public"],"x-feature":"records"}},"/records/{recordId}/linked-through":{"post":{"description":"Records of one object linked to this record through one other record, whichever side keeps each link (a company's tasks through its contacts). Records linked directly are left out.","operationId":"getRecordsLinkedThrough","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","description":"Record ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLinkedThroughDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedThroughDto"}}}},"404":{"description":"Record not found"}},"security":[{"bearer":[]}],"summary":"List records linked through one record in between","tags":["Records","Public"],"x-feature":"records"}},"/records/batch":{"post":{"description":"Saves up to 99 records at once and returns them in the order sent. Batches of 100 or more run in the background and return { runId, status } instead of the records; track the run with its runId.","operationId":"createRecords","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRecordsDto"}}}},"responses":{"201":{"description":"Records created successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordDataDto"}}}}},"400":{"description":"Validation error"},"403":{"description":"Insufficient permissions in group"},"404":{"description":"Table or Group not found"}},"security":[{"bearer":[]}],"summary":"Create multiple records","tags":["Records","Public"],"x-feature":"records"},"put":{"description":"Only the fields you send change; send null to clear one. Batches of 100 or more run in the background and return { runId, status } instead of the records; track the run with its runId.","operationId":"updateRecords","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRecordsDto"}}}},"responses":{"200":{"description":"Records updated successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordDataDto"}}}}},"400":{"description":"Validation error"},"404":{"description":"One or more records not found"}},"security":[{"bearer":[]}],"summary":"Update multiple records (only by workspace member)","tags":["Records","Public"],"x-feature":"records"}},"/records/query":{"post":{"description":"Returns every record for a specific view with applied filters and sorts. Supports table fields and reserved system field IDs: __system_created_at, __system_updated_at, __system_created_by.","operationId":"queryRecordsByView","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryRecordsByViewDto"}}}},"responses":{"200":{"description":"Records retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedRecordsDto"}}}},"404":{"description":"View not found"}},"security":[{"bearer":[]}],"summary":"Query records by view with filters and sorts","tags":["Records","Public"],"x-feature":"records"}},"/records/search":{"post":{"description":"Search records using semantic query (hybrid vector+trigram, or trigram-only when disableVector is true) or structured field filters, restricted to user-accessible groups. Structured sort/filter supports table fields and reserved system field IDs: __system_created_at, __system_updated_at, __system_created_by.","operationId":"searchRecords","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRecordsDto"}}}},"responses":{"200":{"description":"Records retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedRecordsDto"}}}},"400":{"description":"Invalid search parameters or no accessible groups"},"404":{"description":"Table not found"}},"security":[{"bearer":[]}],"summary":"Search records in a table by text or field filters","tags":["Records","Public"],"x-feature":"records"}},"/records/ids":{"post":{"description":"Returns only the IDs of every record matching the scope/filters, restricted to user-accessible groups. Sort is ignored (id-only, ordered by primary key). Capped at a server limit — when exceeded, `truncated` is true.","operationId":"getMatchingRecordIds","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectAllRecordIdsDto"}}}},"responses":{"200":{"description":"Matching record IDs retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordIdsResponseDto"}}}},"404":{"description":"Table not found"}},"security":[{"bearer":[]}],"summary":"Resolve all record IDs matching a group/view/filter (for \"select all\")","tags":["Records","Public"],"x-feature":"records"}},"/records/filters/suggest":{"post":{"description":"One AI call reads the description and returns filters a view can save, plus how many records they match. Fields the table lacks or the caller cannot see are left out.","operationId":"suggestRecordFilters","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestRecordFiltersDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestedRecordFiltersDto"}}}},"404":{"description":"Table not found"}},"security":[{"bearer":[]}],"summary":"Turn a plain description into filters on a table","tags":["Records","Public"],"x-feature":"records"}},"/records/duplicates/check":{"post":{"description":"Returns duplicate groups for common duplicate-capable fields in a table, scoped to records visible to the current user.","operationId":"checkDuplicateGroups","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckDuplicateGroupsDto"}}}},"responses":{"200":{"description":"Duplicate groups retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedDuplicateGroupsDto"}}}},"400":{"description":"Invalid duplicate query parameters"},"404":{"description":"Table not found"}},"security":[{"bearer":[]}],"summary":"Find duplicate record groups in a table","tags":["Records","Public"],"x-feature":"records"}},"/records/find":{"post":{"description":"Find a single record within a table using structured field filters","operationId":"findRecord","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindRecordDto"}}}},"responses":{"200":{"description":"Record found successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDataDto"}}}},"400":{"description":"Invalid field filters or field not found in table"},"404":{"description":"Table or record not found"}},"security":[{"bearer":[]}],"summary":"Find a single record by field filters","tags":["Records","Public"],"x-feature":"records"}},"/records/{recordId}/groups":{"post":{"operationId":"addGroupToRecord","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","description":"Record ID","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddGroupToRecordDto"}}}},"responses":{"201":{"description":"Group added successfully"},"403":{"description":"Insufficient permissions in group"},"404":{"description":"Record or Group not found"}},"security":[{"bearer":[]}],"summary":"Add a group to a record","tags":["Records","Public"],"x-feature":"records"}},"/records/{recordId}/groups/{groupId}":{"delete":{"operationId":"removeGroupFromRecord","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","description":"Record ID","schema":{"type":"string"}},{"name":"groupId","required":true,"in":"path","description":"Group ID to remove","schema":{"type":"string"}}],"responses":{"200":{"description":"Group removed successfully"},"403":{"description":"Insufficient permissions in group"},"404":{"description":"Record or Group not found"}},"security":[{"bearer":[]}],"summary":"Remove a group from a record","tags":["Records","Public"],"x-feature":"records"}},"/records/batch/groups/add":{"post":{"description":"More than 100 records run in the background and return { runId, status }.","operationId":"addGroupToRecords","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddGroupToRecordsDto"}}}},"responses":{"201":{"description":"Group added to records. With more than 100 records the change runs in the background, and the answer says how to follow it; with fewer, the answer is empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchOperationResponseDto"}}}},"403":{"description":"Insufficient permissions in group"},"404":{"description":"One or more records not found"}},"security":[{"bearer":[]}],"summary":"Add a group to multiple records","tags":["Records","Public"],"x-feature":"records"}},"/records/batch/groups/remove":{"post":{"description":"More than 100 records run in the background and return { runId, status }.","operationId":"removeGroupFromRecords","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveGroupFromRecordsDto"}}}},"responses":{"201":{"description":"Group removed from records. With more than 100 records the change runs in the background, and the answer says how to follow it; with fewer, the answer is empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchOperationResponseDto"}}}},"403":{"description":"Insufficient permissions in group"},"404":{"description":"One or more records not found"}},"security":[{"bearer":[]}],"summary":"Remove a group from multiple records","tags":["Records","Public"],"x-feature":"records"}},"/records/batch/merge":{"post":{"description":"Fills empty fields on the kept record from the others, joins multi-value fields, moves links and groups across, and puts the others in the Bin.","operationId":"mergeRecords","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeRecordsDto"}}}},"responses":{"200":{"description":"Records merged successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDataDto"}}}},"400":{"description":"All records must be from the same table"},"403":{"description":"Insufficient permissions in group"},"404":{"description":"One or more records not found"}},"security":[{"bearer":[]}],"summary":"Merge multiple records into one","tags":["Records","Public"],"x-feature":"records"}},"/records/analytics":{"post":{"operationId":"generateMultiAnalytics","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiChartQueryDto"}}}},"responses":{"200":{"description":"Multiple chart data generated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiChartDataDto"}}}},"400":{"description":"Invalid query parameters or field types"},"403":{"description":"Insufficient permissions in group"},"404":{"description":"Table not found"}},"security":[{"bearer":[]}],"summary":"Generate multiple charts in a single request","tags":["Records","Public"],"x-feature":"records"}},"/records/batch/delete":{"post":{"description":"Moves records to the Bin (recoverable for 30 days). 100 or more run in the background and return { runId, status }.","operationId":"deleteRecords","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteRecordsDto"}}}},"responses":{"201":{"description":"Records deleted successfully. With 100 or more records the change runs in the background, and the answer says how to follow it; with fewer, the answer is empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchOperationResponseDto"}}}},"403":{"description":"Insufficient permissions in group"},"404":{"description":"One or more records not found"}},"security":[{"bearer":[]}],"summary":"Delete multiple records","tags":["Records","Public"],"x-feature":"records"}},"/records/batch/update-field":{"post":{"description":"Merges the provided fields into each record (other fields untouched). Suitable for \"select all\" edits — only record IDs and the field patch are sent. 100 or more records run in the background and return { runId, status }.","operationId":"updateFieldByIds","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFieldByIdsDto"}}}},"responses":{"201":{"description":"Records updated successfully: the changed records, or with 100 or more records a background run to follow","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"$ref":"#/components/schemas/RecordDataDto"}},{"$ref":"#/components/schemas/BatchOperationResponseDto"}]}}}},"403":{"description":"Insufficient permissions in group"},"404":{"description":"One or more records not found"}},"security":[{"bearer":[]}],"summary":"Apply a partial field patch to many records by ID","tags":["Records","Public"],"x-feature":"records"}},"/records/batch/restore":{"post":{"operationId":"restoreRecords","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreRecordsDto"}}}},"responses":{"201":{"description":"Records restored successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordDataDto"}}}}},"403":{"description":"Insufficient permissions in workspace"},"404":{"description":"One or more records not found in Bin"}},"security":[{"bearer":[]}],"summary":"Restore multiple soft-deleted records from Bin","tags":["Records","Public"],"x-feature":"records"}},"/records/{recordId}/restore":{"post":{"operationId":"restoreRecord","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","description":"Record ID","schema":{"type":"string"}}],"responses":{"201":{"description":"Record restored successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDataDto"}}}},"403":{"description":"Insufficient permissions in workspace"},"404":{"description":"Record not found in Bin"}},"security":[{"bearer":[]}],"summary":"Restore a soft-deleted record from Bin","tags":["Records","Public"],"x-feature":"records"}},"/records/{groupId}/{recordId}":{"delete":{"operationId":"deleteRecord","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","description":"Record ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Record deleted successfully"},"403":{"description":"Insufficient permissions in group"},"404":{"description":"Record not found"}},"security":[{"bearer":[]}],"summary":"Delete a record (soft delete)","tags":["Records","Public"],"x-feature":"records"}},"/messages/integrations":{"get":{"operationId":"getMessageIntegrations","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of message integrations","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationDto"}}}}}},"security":[{"bearer":[]}],"summary":"Get available message integrations","tags":["Messages","Public"],"x-feature":"messages"}},"/messages/{id}":{"get":{"operationId":"getMessageById","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Message fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDataDto"}}}}},"security":[{"bearer":[]}],"summary":"Get message by ID","tags":["Messages","Public"],"x-feature":"messages"}},"/messages/query":{"post":{"operationId":"queryMessages","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryMessagesDto"}}}},"responses":{"200":{"description":"Messages fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedMessagesDto"}}}}},"security":[{"bearer":[]}],"summary":"Query messages with filters and pagination","tags":["Messages","Public"],"x-feature":"messages"}},"/messages/search":{"post":{"operationId":"semanticSearch","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SemanticSearchDto"}}}},"responses":{"200":{"description":"Search results retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageEmbeddingsDto"}}}}}},"security":[{"bearer":[]}],"summary":"Semantic search across messages","tags":["Messages","Public"],"x-feature":"messages"}},"/messages/stats":{"post":{"operationId":"getMessageStatistics","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageLinkStatsQueryDto"}}}},"responses":{"200":{"description":"Message statistics retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageLinkStatsDto"}}}}},"security":[{"bearer":[]}],"summary":"Get message link statistics","tags":["Messages","Public"],"x-feature":"messages"}},"/messages/multi-stats":{"post":{"operationId":"getMultipleStatistics","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultipleMessageLinkStatsQueryDto"}}}},"responses":{"200":{"description":"Multiple message statistics retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultipleMessageLinkStatsDto"}}}}},"security":[{"bearer":[]}],"summary":"Get multiple message link statistics","tags":["Messages","Public"],"x-feature":"messages"}},"/integrations":{"get":{"operationId":"getIntegrations","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of message integrations","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationDto"}}}}}},"security":[{"bearer":[]}],"summary":"Get available message integrations","tags":["Integrations","Public"],"x-feature":"integrations"}},"/openapi/workflows":{"get":{"operationId":"listPublishedWorkflows","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicWorkflowSummaryDto"}}}}}},"security":[{"bearer":[]}],"summary":"List workflows this workspace publishes as API endpoints","tags":["Public","Workflows API"],"x-feature":"workflows"}},"/openapi/workflows/runs/{runId}":{"get":{"operationId":"getPublishedWorkflowRun","parameters":[{"name":"runId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunPublicWorkflowResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Get the status/result of a published-workflow run","tags":["Public","Workflows API"],"x-feature":"workflows"}},"/openapi/workflows/{slug}/run":{"post":{"description":"Body is validated against the workflow input schema. `mode=sync` (default) waits up to 60s and returns the output; `mode=async` (or a sync timeout) responds 202 with a runId to poll. Send an Idempotency-Key header to make retries safe.","operationId":"runPublishedWorkflow","parameters":[{"name":"slug","required":true,"in":"path","schema":{"type":"string"}},{"name":"mode","required":true,"in":"query","schema":{"type":"string"}},{"name":"timeoutMs","required":true,"in":"query","schema":{"type":"string"}},{"name":"idempotency-key","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunPublicWorkflowResponseDto"}}}},"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunPublicWorkflowResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Run a published workflow by slug","tags":["Public","Workflows API"],"x-feature":"workflows"}},"/openapi/workspaces/{workspaceId}/workflows.json":{"get":{"operationId":"getWorkspaceWorkflowsOpenApi","parameters":[{"name":"workspaceId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"A description of every workflow this workspace has published, in the standard format that API tools and AI assistants read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowsOpenApiDocumentDto"}}}}},"security":[{"bearer":[]}],"summary":"OpenAPI document describing this workspace's published workflows","tags":["Public","Workflows API"],"x-feature":"workspace"}},"/hooks/{workspaceId}/{slug}":{"post":{"description":"Lets an outside system start a workflow. Needs no API key: the workflow decides how callers prove who they are (`none`, an `x-api-key` header, or an `x-webhook-signature` HMAC signature). Responds 202 with a runId; triggers configured with responseMode=sync wait for completion and respond 200 with the workflow output.","operationId":"receiveWorkflowWebhook","parameters":[{"name":"workspaceId","required":true,"in":"path","schema":{"type":"string"}},{"name":"slug","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunPublicWorkflowResponseDto"}}}},"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunPublicWorkflowResponseDto"}}}}},"summary":"Start a webhook-triggered workflow","tags":["Webhooks","Public"],"x-feature":"none"}},"/templates/catalog":{"get":{"operationId":"getTemplateCatalog","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TemplateCatalogEntry"}}}}}},"security":[{"bearer":[]}],"summary":"Add-on templates with their installed state","tags":["Templates","Public"],"x-feature":"templates"}},"/templates/cms/builder-prompt":{"get":{"operationId":"getCmsBuilderPrompt","parameters":[{"name":"api","required":true,"in":"query","description":"The API address","schema":{"type":"string"}},{"name":"app","required":true,"in":"query","description":"The app address","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"prompt":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"The text to paste into an AI website builder so it uses this workspace as the site's content system","tags":["Templates","Public"],"x-feature":"templates"}},"/templates/website/builder-prompt":{"post":{"operationId":"getWebsiteBuilderPrompt","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebsiteBuilderPromptDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"properties":{"prompt":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"summary":"The one text to paste into an AI website builder: the parts the app runs for the site, each with its line, and where the content lives","tags":["Templates","Public"],"x-feature":"templates"}},"/templates/examples":{"get":{"operationId":"getExampleData","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExampleDataStatus"}}}}},"security":[{"bearer":[]}],"summary":"How many example records templates added are left, and how many of the team's own records sit beside them","tags":["Templates","Public"],"x-feature":"templates"}},"/templates/examples/remove":{"post":{"operationId":"removeExampleData","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemovedExampleData"}}}}},"security":[{"bearer":[]}],"summary":"Move every example record templates added to the Deleted Bin, locked ones included","tags":["Templates","Public"],"x-feature":"templates"}},"/templates/copy/preview":{"post":{"operationId":"previewCopyToWorkspace","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyToWorkspaceDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyPlan"}}}}},"security":[{"bearer":[]}],"summary":"What copying setup from this organization into another would add, without changing anything. You must be an admin of both.","tags":["Templates","Public"],"x-feature":"templates"}},"/templates/copy":{"post":{"operationId":"copyToWorkspace","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyToWorkspaceDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyPlan"}}}}},"security":[{"bearer":[]}],"summary":"Copy setup (objects, groups with their views and dashboards, forms, email and document templates, workflows) from this organization into another. Only adds what is missing; copying again adds nothing. Records are never copied. You must be an admin of both.","tags":["Templates","Public"],"x-feature":"templates"}},"/templates/{name}/preview":{"post":{"operationId":"previewTemplateInstall","parameters":[{"name":"name","required":true,"in":"path","description":"Template name from GET /templates/catalog, e.g. real-estate","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePlan"}}}}},"security":[{"bearer":[]}],"summary":"What installing a template would add, without changing anything","tags":["Templates","Public"],"x-feature":"templates"}},"/templates/{name}/install":{"post":{"operationId":"installTemplate","parameters":[{"name":"name","required":true,"in":"path","description":"Template name from GET /templates/catalog, e.g. real-estate","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallTemplateDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePlan"}}}}},"security":[{"bearer":[]}],"summary":"Install or update an add-on template. Only adds what is missing; never changes existing objects, fields or views.","tags":["Templates","Public"],"x-feature":"templates"}},"/templates/{name}/uninstall":{"post":{"operationId":"uninstallTemplate","parameters":[{"name":"name","required":true,"in":"path","description":"Template name from GET /templates/catalog, e.g. real-estate","schema":{"type":"string"}}],"responses":{"201":{"description":"How many of the template's groups were hidden","content":{"application/json":{"schema":{"type":"object","properties":{"hiddenGroups":{"type":"number"}}}}}}},"security":[{"bearer":[]}],"summary":"Hide an add-on template's groups. Its objects and records are kept.","tags":["Templates","Public"],"x-feature":"templates"}},"/templates/seed/crm":{"post":{"operationId":"seedCrm","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedTemplateDto"}}}},"responses":{"201":{"description":"The new organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}},"400":{"description":"The organization could not be created"},"403":{"description":"Not an admin of the organization named"},"404":{"description":"Organization or template not found"}},"security":[{"bearer":[]}],"summary":"Create an organization: set up from a template, or copied from another organization you are an admin of (its setup only: no records, members, mailboxes or connections). You become its admin. Optionally add people and make it a client organization of one you run.","tags":["Templates","Public"],"x-feature":"templates"}},"/workflow/workspace":{"get":{"description":"Returns every workflow in the workspace, switched on or off. Each entry has its `workflowName`, `version`, `triggerType` (`manual` workflows are the ones people start by hand) and `enabled`. Use `workflowName` with startWorkflowRun.","operationId":"listWorkspaceWorkflows","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceWorkflowSummaryDto"}}}}}},"security":[{"bearer":[]}],"summary":"List all workflows installed/created in the workspace","tags":["Workspace Workflows","Public"],"x-feature":"workflows"}},"/workflow/workspace/{name}":{"get":{"description":"Returns one workflow with its full `definition`. The input it expects is described under `definition.schemas.input` (a JSON Schema), when the workflow declares one.","operationId":"getWorkspaceWorkflow","parameters":[{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceWorkflowDetailDto"}}}}},"security":[{"bearer":[]}],"summary":"Get a workspace workflow by name (latest version)","tags":["Workspace Workflows","Public"],"x-feature":"workflows"}},"/workflow/workspace/{name}/versions/{version}/exposure":{"post":{"description":"Publishing gives the workflow a `slug` so it can be run with runPublishedWorkflow and appears in listPublishedWorkflows. Send `apiEnabled: true` together with an `apiSlug` (letters, digits, hyphens and underscores). Requires the Editor or Admin role, and you must be the workflow's author or an admin.","operationId":"setWorkspaceWorkflowExposure","parameters":[{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"version","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetWorkflowExposureDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowExposureDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Publish/unpublish a workflow as a typed API endpoint and/or MCP tool","tags":["Workspace Workflows","Public"],"x-feature":"workflows"}},"/workflow/workspace/{name}/versions/{version}/webhook-secret/rotate":{"post":{"description":"For a workflow that starts from an incoming webhook. Creates a new signing secret and returns it as `webhookSecret` this one time only; store it straight away. The old secret stops working. Requires the Editor or Admin role, and you must be the workflow's author or an admin.","operationId":"rotateWorkflowWebhookSecret","parameters":[{"name":"name","required":true,"in":"path","schema":{"type":"string"}},{"name":"version","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowExposureDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Rotate the webhook signing secret (the cleartext is returned once)","tags":["Workspace Workflows","Public"],"x-feature":"workflows"}},"/workflow/runs/start":{"post":{"description":"Starts any enabled workflow in the workspace by its `workflowName`, with an optional `input` object. With `dryRun: true` it is a test run: nothing is sent and nothing leaves the app; an editor or admin may also send an unsaved `definition` to test it as it would be saved. Responds with a `runId` and a status straight away; the work happens in the background, so poll getWorkflowRun for the result. To start a workflow you published under a slug and wait for its answer in one call, use runPublishedWorkflow instead. A workflow made for one person can only be started by that person, and email campaigns can only be started by an Editor or Admin.","operationId":"startWorkflowRun","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartWorkflowRunDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartWorkflowRunResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Start a workflow run","tags":["Workflow","Public"],"x-feature":"workflows"}},"/workflow/runs":{"post":{"description":"Lists runs newest first. Filter with `workflowName`, `status` or `parentRunId` (the runs started by another run, such as one run per recipient of an email campaign). `limit` defaults to 50 and is at most 200; page with `offset`. Only a workspace admin can list another person's runs; email campaign runs are visible only to the person who sent them and to admins.","operationId":"listWorkflowRuns","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryWorkflowRunsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRunViewDto"}}}}}},"security":[{"bearer":[]}],"summary":"List workflow runs in workspace","tags":["Workflow","Public"],"x-feature":"workflows"}},"/workflow/runs/{runId}":{"get":{"description":"Returns the status, input, output and error of one run, plus its working `state`. For an email campaign's per-recipient runs, `state` holds the sent, opened, clicked, replied and bounced details. An email campaign that someone else sent reads as not found unless you are a workspace admin.","operationId":"getWorkflowRun","parameters":[{"name":"runId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRunViewDto"}}}}},"security":[{"bearer":[]}],"summary":"Get workflow run details","tags":["Workflow","Public"],"x-feature":"workflows"}},"/workflow/runs/{runId}/cancel":{"post":{"description":"Stops a run that has not finished, along with every run it started. Work already done is not undone. Allowed for the person who started the run, the person who made the workflow, or a workspace admin.","operationId":"cancelWorkflowRun","parameters":[{"name":"runId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelWorkflowRunResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Cancel workflow run","tags":["Workflow","Public"],"x-feature":"workflows"}},"/workflow/runs/{runId}/pause":{"post":{"description":"Holds a run that has not finished, along with every run it started: each keeps its place and takes no next step, so nothing goes out. Replies and timers still land and are acted on after resuming. Same access as cancelling.","operationId":"pauseWorkflowRun","parameters":[{"name":"runId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PauseWorkflowRunResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Pause workflow run","tags":["Workflow","Public"],"x-feature":"workflows"}},"/workflow/runs/{runId}/resume":{"post":{"description":"Lets a paused run and every run it started go on from where they stopped, including anything that came due in the meantime. Same access as cancelling.","operationId":"resumeWorkflowRun","parameters":[{"name":"runId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeWorkflowRunResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Resume workflow run","tags":["Workflow","Public"],"x-feature":"workflows"}},"/plugins/mailbox/calendars":{"get":{"operationId":"listCalendars","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"integrationId","required":true,"in":"query","description":"Integration ID","schema":{"type":"string"}},{"name":"purpose","required":false,"in":"query","description":"Whether calendars are being listed for event writes or conflict checks","schema":{"type":"string","enum":["write","conflict-check"]}}],"responses":{"200":{"description":"Calendars fetched successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MailboxCalendarDto"}}}}}},"security":[{"bearer":[]}],"summary":"List the calendars of one of your connected mailboxes","tags":["Calendar","Public"],"x-feature":"calendar"}},"/plugins/mailbox/calendar/event":{"post":{"operationId":"createCalendarEvent","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCalendarEventDto"}}}},"responses":{"201":{"description":"Calendar event created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventDto"}}}}},"security":[{"bearer":[]}],"summary":"Create calendar event","tags":["Calendar","Public"],"x-feature":"calendar"}},"/plugins/mailbox/calendar/event/{eventId}":{"put":{"operationId":"updateCalendarEvent","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"eventId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCalendarEventDto"}}}},"responses":{"200":{"description":"Calendar event updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventDto"}}}}},"security":[{"bearer":[]}],"summary":"Update calendar event","tags":["Calendar","Public"],"x-feature":"calendar"},"delete":{"operationId":"cancelCalendarEvent","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"eventId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCalendarEventDto"}}}},"responses":{"200":{"description":"Calendar event cancelled successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventCancelledDto"}}}}},"security":[{"bearer":[]}],"summary":"Cancel calendar event","tags":["Calendar","Public"],"x-feature":"calendar"}},"/openapi/email/mailboxes":{"get":{"description":"Start here before sending. Each entry returns an `integrationId` to pass to sendEmail or sendEmailCampaign. If the list is empty, no mailbox has been connected yet and sending will fail — a mailbox must be connected in the app first, as it requires an interactive sign-in.","operationId":"listEmailMailboxes","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailMailboxListDto"}}}}},"security":[{"bearer":[]}],"summary":"List the connected Gmail and Outlook mailboxes this workspace can send from.","tags":["Email","Public"],"x-feature":"messages"}},"/openapi/email/templates":{"get":{"description":"Optionally filter to templates written for one object with `tableId`. A template can only be sent to records of the object it was written for.","operationId":"listEmailTemplates","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"tableId","required":false,"in":"query","description":"Return only templates written for this object, e.g. the contacts object.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateListDto"}}}}},"security":[{"bearer":[]}],"summary":"List the reusable email templates in this workspace.","tags":["Email","Public"],"x-feature":"messages"},"post":{"description":"A template is tied to one object via `tableId` and can only be sent to records of that object. Use `{{field_api_name}}` in the subject or body to insert values from each recipient’s record — call listEmailTemplateVariables first to see which names are valid. Requires the Editor or Admin role.","operationId":"createEmailTemplate","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEmailTemplateDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateDto"}}}},"403":{"description":"Insufficient permissions"}},"security":[{"bearer":[]}],"summary":"Create a reusable email template.","tags":["Email","Public"],"x-feature":"messages"}},"/openapi/email/templates/variables":{"get":{"description":"Call this before writing a template. Each returned `name` can be written as `{{name}}` in a subject or body and is replaced with that value from each recipient’s record when the email goes out. A placeholder that is not in this list renders as empty text rather than failing.","operationId":"listEmailTemplateVariables","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"tableId","required":true,"in":"query","description":"The object whose records will receive the email, e.g. the contacts object.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateVariableListDto"}}}}},"security":[{"bearer":[]}],"summary":"List the `{{placeholders}}` you can use in a template aimed at a given object.","tags":["Email","Public"],"x-feature":"messages"}},"/openapi/email/templates/{templateId}":{"get":{"operationId":"getEmailTemplate","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"templateId","required":true,"in":"path","description":"Template identifier.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateDto"}}}},"404":{"description":"Template not found"}},"security":[{"bearer":[]}],"summary":"Get one email template, including its subject and body.","tags":["Email","Public"],"x-feature":"messages"},"patch":{"description":"Only the fields you send are changed. The object a template targets cannot be changed after creation — create a new template instead. Requires the Editor or Admin role.","operationId":"updateEmailTemplate","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"templateId","required":true,"in":"path","description":"Template identifier.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEmailTemplateDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateDto"}}}},"403":{"description":"Insufficient permissions"}},"security":[{"bearer":[]}],"summary":"Change the subject, body, or copied addresses of a template.","tags":["Email","Public"],"x-feature":"messages"},"delete":{"description":"Campaigns already in flight that use this template will fail for any recipient not yet sent to. Requires the Editor or Admin role.","operationId":"deleteEmailTemplate","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"templateId","required":true,"in":"path","description":"Template identifier.","schema":{"type":"string"}}],"responses":{"204":{"description":"Template deleted"},"403":{"description":"Insufficient permissions"}},"security":[{"bearer":[]}],"summary":"Delete an email template.","tags":["Email","Public"],"x-feature":"messages"}},"/openapi/email/send":{"post":{"description":"The recipient address is read from the email field on the record, and the template’s `{{placeholders}}` are filled from that same record. Delivery is asynchronous: this responds 202 with a `campaignId` to poll via getEmailCampaign. Sending counts against the workspace’s hourly and daily mailbox limits, so a message may be queued rather than sent immediately. Requires the Editor or Admin role.","operationId":"sendEmail","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailDto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCampaignDto"}}}},"400":{"description":"No mailbox connected, or the record has no email address"},"403":{"description":"Insufficient permissions"}},"security":[{"bearer":[]}],"summary":"Send one template to one record, such as a single contact.","tags":["Email","Public"],"x-feature":"messages"}},"/openapi/email/campaigns":{"post":{"description":"Each record gets its own copy with `{{placeholders}}` filled from that record, so this is a personalised send, not a group message: recipients cannot see each other. Delivery is asynchronous and paced to stay inside the workspace’s hourly and daily mailbox limits, so a large list is delivered over time rather than all at once. Use `sendWindow` to confine delivery to working hours. Responds 202 with a `campaignId` — poll getEmailCampaign for progress, or stop it with cancelEmailCampaign. Requires the Editor or Admin role.","operationId":"sendEmailCampaign","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailCampaignDto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCampaignDto"}}}},"400":{"description":"No mailbox connected, recipients belong to a different object than the template, or the object has no email field"},"403":{"description":"Insufficient permissions"}},"security":[{"bearer":[]}],"summary":"Send one template to a list of records — the way to email many contacts at once.","tags":["Email","Public"],"x-feature":"messages"}},"/openapi/email/campaigns/{campaignId}":{"get":{"description":"Returns `pending` or `running` while messages are still going out, then `completed`, `failed`, or `cancelled`. A campaign held back by a send window or a rate limit stays `running`.","operationId":"getEmailCampaign","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"campaignId","required":true,"in":"path","description":"Identifier returned by sendEmail or sendEmailCampaign.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCampaignDto"}}}},"404":{"description":"Campaign not found"}},"security":[{"bearer":[]}],"summary":"Check whether a send has finished.","tags":["Email","Public"],"x-feature":"messages"}},"/openapi/email/campaigns/{campaignId}/cancel":{"post":{"description":"Messages already delivered cannot be recalled; this only prevents the remaining ones from going out. Requires the Editor or Admin role.","operationId":"cancelEmailCampaign","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"campaignId","required":true,"in":"path","description":"Identifier returned by sendEmail or sendEmailCampaign.","schema":{"type":"string"}}],"responses":{"204":{"description":"Campaign cancelled"},"404":{"description":"Campaign not found"}},"security":[{"bearer":[]}],"summary":"Stop a send that is still in progress.","tags":["Email","Public"],"x-feature":"messages"}},"/notes/integrations":{"post":{"description":"Returns existing integration or creates a new one for public notes or private notes","operationId":"getNotesIntegrations","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Integration retrieved or created successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationDto"}}}}}},"security":[{"bearer":[]}],"summary":"Get or create integration for notes","tags":["Notes","Public"],"x-feature":"notes"}},"/notes":{"post":{"description":"Creates a new note (public or private) with mentions and attachments","operationId":"createNote","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNoteDto"}}}},"responses":{"201":{"description":"Note created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDataDto"}}}}},"security":[{"bearer":[]}],"summary":"Create a note","tags":["Notes","Public"],"x-feature":"notes"}},"/notes/{noteId}":{"patch":{"description":"Updates note content and re-processes mentions","operationId":"editNote","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"noteId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNoteDto"}}}},"responses":{"200":{"description":"Note updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDataDto"}}}}},"security":[{"bearer":[]}],"summary":"Edit a note","tags":["Notes","Public"],"x-feature":"notes"},"delete":{"description":"Soft deletes a note","operationId":"deleteNote","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"noteId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Note deleted successfully"}},"security":[{"bearer":[]}],"summary":"Delete a note","tags":["Notes","Public"],"x-feature":"notes"}},"/notes/{noteId}/visibility":{"put":{"description":"Toggles note between private and public","operationId":"switchVisibility","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"noteId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Note visibility updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDataDto"}}}}},"security":[{"bearer":[]}],"summary":"Switch note visibility","tags":["Notes","Public"],"x-feature":"notes"}},"/reminders":{"get":{"description":"Reminders you can see, both one-time and repeating. Cancelled ones are omitted; completed ones only when asked for.","operationId":"listReminders","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"query","schema":{"type":"string"}},{"name":"includeCompleted","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderListDto"}}}}},"security":[{"bearer":[]}],"summary":"List reminders","tags":["Reminders","Public"],"x-feature":"reminders"},"post":{"description":"Give `dueAt` for a one-time reminder, or `cadence` plus `time` for a repeating one.","operationId":"createReminder","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReminderDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderDto"}}}}},"security":[{"bearer":[]}],"summary":"Create a reminder","tags":["Reminders","Public"],"x-feature":"reminders"}},"/reminders/{reminderId}":{"patch":{"description":"Reschedule or rename a one-time reminder, or change, pause and resume a repeating one. The reminder keeps its id.","operationId":"updateReminder","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"reminderId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReminderDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderUpdateResultDto"}}}}},"security":[{"bearer":[]}],"summary":"Update a reminder","tags":["Reminders","Public"],"x-feature":"reminders"},"delete":{"description":"A one-time reminder is cancelled; a repeating one is removed. Neither fires again.","operationId":"deleteReminder","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"reminderId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderDeletedDto"}}}}},"security":[{"bearer":[]}],"summary":"Cancel a reminder","tags":["Reminders","Public"],"x-feature":"reminders"}},"/reminders/{reminderId}/complete":{"post":{"description":"Marks a one-time reminder completed and keeps it available in reminder history.","operationId":"completeReminder","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"reminderId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderCompletedDto"}}}}},"security":[{"bearer":[]}],"summary":"Complete a one-time reminder","tags":["Reminders","Public"],"x-feature":"reminders"}},"/forms":{"get":{"operationId":"listForms","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"cursor","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormListResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"List forms visible in the workspace without provisioning an object","tags":["Forms","Public"],"x-feature":"forms"},"post":{"operationId":"createForm","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFormDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Create a form","tags":["Forms","Public"],"x-feature":"forms"}},"/forms/{id}":{"get":{"operationId":"getForm","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Read a form","tags":["Forms","Public"],"x-feature":"forms"},"put":{"operationId":"updateForm","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Update a form without changing its destination","tags":["Forms","Public"],"x-feature":"forms"},"delete":{"operationId":"deleteForm","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""}},"security":[{"bearer":[]}],"summary":"Delete a form","tags":["Forms","Public"],"x-feature":"forms"}},"/forms/{id}/regenerate":{"post":{"operationId":"regenerateFormLink","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"The form with its new link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Invalidate old public form links","tags":["Forms","Public"],"x-feature":"forms"}},"/public/forms/{workspaceId}/{linkId}":{"get":{"description":"No API key needed. Returns the form questions; each question `id` is the key to use in the submission body.","operationId":"getPublicForm","parameters":[{"name":"linkId","required":true,"in":"path","description":"Public link UUID","schema":{"format":"uuid"}},{"name":"workspaceId","required":true,"in":"path","description":"Workspace UUID","schema":{"format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicFormResponseDto"}}}}},"summary":"Read a published form presentation","tags":["Public forms","Public"],"x-feature":"forms"},"post":{"description":"No API key needed. Send a JSON object keyed by question `id`. Limited to 10 submissions per minute per address.","operationId":"submitPublicForm","parameters":[{"name":"linkId","required":true,"in":"path","description":"Public link UUID","schema":{"format":"uuid"}},{"name":"workspaceId","required":true,"in":"path","description":"Workspace UUID","schema":{"format":"uuid"}}],"responses":{"201":{"description":"The answers were received. A web page that posts the form directly gets the thank-you message as plain text instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicFormSubmittedDto"}}}},"303":{"description":"A web page that posts the form directly is sent on to the form's next page, when it has one."}},"summary":"Create a record from a public form submission","tags":["Public forms","Public"],"x-feature":"forms"}},"/plugins/meetings/availability":{"get":{"operationId":"MeetingsSchedulingController_getFeatureAvailability","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingFeatureAvailabilityDto"}}}}},"security":[{"bearer":[]}],"summary":"Check whether Meetings is enabled for this workspace","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/enable":{"post":{"operationId":"MeetingsSchedulingController_enable","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Meetings is switched on. The answer has no content."}},"security":[{"bearer":[]}],"summary":"Enable Meetings and install its hidden workspace objects","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/types":{"get":{"operationId":"MeetingsSchedulingController_listTypes","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MeetingTypeDto"}}}}}},"security":[{"bearer":[]}],"summary":"List meeting types visible to the current member","tags":["Meetings","Public"],"x-feature":"meetings"},"post":{"operationId":"MeetingsSchedulingController_createType","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMeetingTypeDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingTypeDto"}}}}},"security":[{"bearer":[]}],"summary":"Create a team-owned meeting type","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/types/{typeId}":{"put":{"operationId":"MeetingsSchedulingController_updateType","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"typeId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeetingTypeDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingTypeDto"}}}}},"security":[{"bearer":[]}],"summary":"Update a team-owned meeting type","tags":["Meetings","Public"],"x-feature":"meetings"},"delete":{"operationId":"MeetingsSchedulingController_deleteType","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"typeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The meeting type is deleted. The answer has no content."}},"security":[{"bearer":[]}],"summary":"Delete a meeting type; its upcoming bookings are cancelled and guests told","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/types/{typeId}/regenerate":{"post":{"operationId":"MeetingsSchedulingController_regeneratePublicLink","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"typeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingTypeDto"}}}}},"security":[{"bearer":[]}],"summary":"Regenerate the public booking link and revoke its previous URL","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/hosts/readiness":{"get":{"operationId":"MeetingsSchedulingController_listHostReadiness","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MeetingHostReadinessDto"}}}}}},"security":[{"bearer":[]}],"summary":"Whether each member can take bookings and what they still need to do","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/my-readiness":{"get":{"operationId":"MeetingsSchedulingController_getMyReadiness","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingHostReadinessDto"}}}}},"security":[{"bearer":[]}],"summary":"Whether the current member can take bookings","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/my-availability":{"get":{"operationId":"MeetingsSchedulingController_getMyAvailability","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Your working hours. Empty when you have not set any yet.","content":{"application/json":{"schema":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/MeetingAvailabilityDto"}]}}}}},"security":[{"bearer":[]}],"summary":"Read the current host’s workspace-wide availability","tags":["Meetings","Public"],"x-feature":"meetings"},"put":{"operationId":"MeetingsSchedulingController_updateMyAvailability","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMyMeetingAvailabilityDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingAvailabilityDto"}}}}},"security":[{"bearer":[]}],"summary":"Set the current host availability for every meeting they host","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/hosts/{userId}/availability":{"get":{"operationId":"MeetingsSchedulingController_getHostAvailability","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The host's working hours. Empty when they have not set any yet.","content":{"application/json":{"schema":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/MeetingAvailabilityDto"}]}}}}},"security":[{"bearer":[]}],"summary":"Read a host's working hours (admins)","tags":["Meetings","Public"],"x-feature":"meetings"},"put":{"operationId":"MeetingsSchedulingController_updateHostHours","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateHostMeetingHoursDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingAvailabilityDto"}}}}},"security":[{"bearer":[]}],"summary":"Set a host's working hours (admins); their calendars stay as they chose","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/types/{typeId}/bookings":{"get":{"operationId":"MeetingsSchedulingController_listBookings","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"typeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MeetingBookingDto"}}}}}},"security":[{"bearer":[]}],"summary":"List booking history for a scheduling team","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/bookings/{bookingId}":{"put":{"operationId":"MeetingsSchedulingController_rescheduleBooking","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"bookingId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeetingBookingDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingBookingDto"}}}}},"security":[{"bearer":[]}],"summary":"Move a booking to a new time","tags":["Meetings","Public"],"x-feature":"meetings"},"delete":{"operationId":"MeetingsSchedulingController_cancelBooking","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"bookingId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The booking is cancelled. The answer has no content."}},"security":[{"bearer":[]}],"summary":"Cancel a booking and tell its guests","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/types/{typeId}/sessions":{"post":{"operationId":"MeetingsSchedulingController_createSession","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"typeId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMeetingSessionDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingBookingDto"}}}}},"security":[{"bearer":[]}],"summary":"Add one dated session to an event meeting type","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/types/{typeId}/session-series":{"post":{"operationId":"MeetingsSchedulingController_createSeries","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"typeId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMeetingSeriesDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingSessionSeriesDto"}}}}},"security":[{"bearer":[]}],"summary":"Add a run of daily or weekly sessions to an event meeting type","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/bookings/{bookingId}/host":{"put":{"operationId":"MeetingsSchedulingController_reassignBooking","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"bookingId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReassignMeetingBookingDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingBookingDto"}}}}},"security":[{"bearer":[]}],"summary":"Hand a booking to another host","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/bookings/{bookingId}/capacity":{"put":{"operationId":"MeetingsSchedulingController_updateCapacity","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"bookingId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeetingCapacityDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingBookingDto"}}}}},"security":[{"bearer":[]}],"summary":"Change how many places an event session has","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/bookings/{bookingId}/guests":{"post":{"operationId":"MeetingsSchedulingController_addGuests","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"bookingId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMeetingGuestsDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingBookingDto"}}}}},"security":[{"bearer":[]}],"summary":"Invite extra guests to a booked appointment","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/bookings/{bookingId}/attendees/{attendeeId}":{"delete":{"operationId":"MeetingsSchedulingController_cancelAttendee","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"bookingId","required":true,"in":"path","schema":{"type":"string"}},{"name":"attendeeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The guest is removed and told. The answer has no content."}},"security":[{"bearer":[]}],"summary":"Remove one guest from a booking or event session","tags":["Meetings","Public"],"x-feature":"meetings"}},"/plugins/meetings/bookings/{bookingId}/attendance":{"put":{"operationId":"MeetingsSchedulingController_setAttendance","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"bookingId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeetingAttendanceDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingBookingDto"}}}}},"security":[{"bearer":[]}],"summary":"Mark whether the guest came to a booked meeting","tags":["Meetings","Public"],"x-feature":"meetings"}},"/public/meetings/{workspaceId}/{linkId}":{"get":{"operationId":"PublicMeetingsController_getType","parameters":[{"name":"linkId","required":true,"in":"path","description":"Public link UUID","schema":{"format":"uuid"}},{"name":"workspaceId","required":true,"in":"path","description":"Workspace UUID","schema":{"format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingPublicTypeDto"}}}}},"summary":"Read the safe public meeting-type details","tags":["Booking pages","Public"],"x-feature":"meetings"}},"/public/meetings/{workspaceId}/{linkId}/slots":{"get":{"operationId":"PublicMeetingsController_getSlots","parameters":[{"name":"from","required":true,"in":"query","description":"Start of the window, ISO 8601.","schema":{"type":"string"}},{"name":"to","required":true,"in":"query","description":"End of the window, ISO 8601. At most 31 days after from.","schema":{"type":"string"}},{"name":"linkId","required":true,"in":"path","description":"Public link UUID","schema":{"format":"uuid"}},{"name":"workspaceId","required":true,"in":"path","description":"Workspace UUID","schema":{"format":"uuid"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MeetingSlotDto"}}}}}},"summary":"List bookable public time slots","tags":["Booking pages","Public"],"x-feature":"meetings"}},"/public/meetings/{workspaceId}/{linkId}/sessions":{"get":{"operationId":"PublicMeetingsController_getSessions","parameters":[{"name":"linkId","required":true,"in":"path","description":"Public link UUID","schema":{"format":"uuid"}},{"name":"workspaceId","required":true,"in":"path","description":"Workspace UUID","schema":{"format":"uuid"}}],"responses":{"200":{"description":""}},"summary":"List the upcoming sessions of an event meeting, with places left","tags":["Booking pages","Public"],"x-feature":"meetings"}},"/public/meetings/{workspaceId}/{linkId}/bookings":{"post":{"operationId":"PublicMeetingsController_book","parameters":[{"name":"linkId","required":true,"in":"path","description":"Public link UUID","schema":{"format":"uuid"}},{"name":"workspaceId","required":true,"in":"path","description":"Workspace UUID","schema":{"format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicMeetingBookingDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingBookingDto"}}}}},"summary":"Create an idempotent public booking","tags":["Booking pages","Public"],"x-feature":"meetings"}},"/public/meetings/{workspaceId}/{linkId}/sessions/{sessionId}/registrations":{"post":{"operationId":"PublicMeetingsController_register","parameters":[{"name":"sessionId","required":true,"in":"path","schema":{"type":"string"}},{"name":"linkId","required":true,"in":"path","description":"Public link UUID","schema":{"format":"uuid"}},{"name":"workspaceId","required":true,"in":"path","description":"Workspace UUID","schema":{"format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicMeetingBookingDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingRegistrationDto"}}}}},"summary":"Register a guest for an event session","tags":["Booking pages","Public"],"x-feature":"meetings"}},"/public/meetings/{workspaceId}/{linkId}/sessions/{sessionId}/registrations/{attendeeId}":{"delete":{"operationId":"PublicMeetingsController_cancelRegistration","parameters":[{"name":"sessionId","required":true,"in":"path","schema":{"type":"string"}},{"name":"attendeeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"linkId","required":true,"in":"path","description":"Public link UUID","schema":{"format":"uuid"}},{"name":"workspaceId","required":true,"in":"path","description":"Workspace UUID","schema":{"format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelMeetingRegistrationDto"}}}},"responses":{"200":{"description":"The place is given up. The answer has no content."}},"summary":"Cancel an event registration with its cancellation token","tags":["Booking pages","Public"],"x-feature":"meetings"}},"/agent/enrich":{"post":{"description":"Processes the provided texts to enrich/create records using the Enrich Agent.","operationId":"enrich","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichRequestDto"}}}},"responses":{"201":{"description":"Enrichment task created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichResponseDto"}}}},"400":{"description":"Invalid input or maximum running tasks reached"}},"security":[{"bearer":[]}],"summary":"Start enrichment process from text","tags":["Enrichment","Public"],"x-feature":"enrichment"}},"/enrichment/lookup":{"post":{"description":"Looks up a company or person from a website, work email, LinkedIn URL or Norwegian org number, matches existing CRM records and optionally saves (save=fill fills empty fields; save=overwrite replaces only `overwriteFields`). Returns partial results if the lookup runs out of time. 1 enrichment credit per source that finds something; results from the last hour are free.","operationId":"enrichmentLookup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichInput"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichOutput"}}}},"400":{"description":"No usable identifier"},"429":{"description":"Too many lookups for this workspace"}},"security":[{"bearer":[]}],"summary":"Enrich a company or person","tags":["Enrichment","Public"],"x-feature":"enrichment"}},"/enrichment/lookup/note":{"post":{"description":"For a company created from a lookup (e.g. from its `drafts`): writes what has no CRM field — funding rounds, acquisitions, products, other names, links — as one shared note on the record, in `locale`. Free; no new lookup. A later save refreshes the same note.","operationId":"enrichmentLookupNote","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"lookupId":{"type":"string","minLength":1},"recordId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locale":{"type":"string","maxLength":35}},"required":["lookupId","recordId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Whether the note was written","content":{"application/json":{"schema":{"type":"object","properties":{"written":{"type":"boolean","description":"Whether the note was written or refreshed on the record"}},"required":["written"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Add a lookup's extra company facts as a note","tags":["Enrichment","Public"],"x-feature":"enrichment"}},"/enrichment/investors/import":{"post":{"description":"After a lookup with `funding: true`, saves the chosen investor firms (by website domain) as companies, the partners on their deals (and optionally angel investors) as contacts, links them to the company both ways (Investors / Invested in, added to companies the first time), and refreshes the company note so it links to each. Free: it reads the lookup, nothing new is looked up.","operationId":"enrichmentInvestorsImport","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestorsImportRequest"}}}},"responses":{"200":{"description":"What was saved and linked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestorsImportResult"}}}}},"security":[{"bearer":[]}],"summary":"Import a company's investors from its funding history","tags":["Enrichment","Public"],"x-feature":"enrichment"}},"/enrichment/leads/filters/from-prompt":{"post":{"description":"Reads a plain request such as \"CFOs at logistics firms in Denmark\" and returns the company or people filters it asks for, to show and edit before searching. Searches nothing and spends no credits; 503 when the request could not be read.","operationId":"leadsFiltersFromPrompt","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":3,"maxLength":600},"mode":{"type":"string","enum":["companies","people"]},"onX":{"type":"boolean"}},"required":["prompt","mode"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["companies"]},"filters":{"$ref":"#/components/schemas/LeadFilters"}},"required":["mode","filters"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","enum":["people"]},"filters":{"$ref":"#/components/schemas/PersonLeadFilters"}},"required":["mode","filters"],"additionalProperties":false}]}}}}},"security":[{"bearer":[]}],"summary":"Turn one sentence into lead filters","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/count":{"post":{"description":"How many companies in the market match the filters, including any already in the CRM. Free.","operationId":"leadsCount","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/LeadFilters"}},"required":["filters"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["total"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Count companies matching lead filters","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/breakdown":{"post":{"description":"Matching companies per employee band, revenue band, or chosen country. Free.","operationId":"leadsBreakdown","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/LeadFilters"},"by":{"$ref":"#/components/schemas/LeadBreakdownBy"}},"required":["filters","by"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadBreakdown"}}}}},"security":[{"bearer":[]}],"summary":"Split lead matches by size, revenue or country","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/results":{"post":{"description":"Matching companies that are not in the CRM yet, 25 per page. The first page of a search is free; each later page costs 1 enrichment credit per company shown and is refused with 402 `out_of_credits` when the credits left can't cover it (`reason`: `month`, `trial` — a trial has one allowance for the whole trial — or `paused`, a daily safety limit across the service). A page shown in the last hour is free to show again.","operationId":"leadsResults","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/LeadFilters"},"page":{"default":1,"type":"integer","minimum":1,"maximum":40}},"required":["filters"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"leads":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"domain":{"nullable":true,"type":"string"},"company":{"$ref":"#/components/schemas/EnrichCompanyCard"},"data":{"type":"object","additionalProperties":{}}},"required":["key","domain","company","data"],"additionalProperties":false}},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"credits":{"type":"object","properties":{"charged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["charged","nextPage"],"additionalProperties":false}},"required":["leads","page","hasMore","credits"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Page through companies matching lead filters","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/people/results":{"post":{"description":"People matching the filters (job title, seniority, department, where they are, and the companies they work at), 25 per page, with how many match in all. The first page of a search is free; each later page costs 1 enrichment credits per person shown and is refused with 402 `out_of_credits` when the credits left can't cover it (`reason`: `month`, `trial` — a trial has one allowance for the whole trial — or `paused`, a daily safety limit across the service). A page shown in the last hour is free to show again. No phone numbers.","operationId":"leadsPeopleResults","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/PersonLeadFilters"},"page":{"default":1,"type":"integer","minimum":1,"maximum":40}},"required":["filters"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"people":{"type":"array","items":{"$ref":"#/components/schemas/PersonLead"}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasMore":{"type":"boolean"},"credits":{"type":"object","properties":{"charged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextPage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"x":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["charged","nextPage"],"additionalProperties":false}},"required":["people","total","page","hasMore","credits"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Page through people matching lead filters","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/people/x-count":{"post":{"description":"Posts from the last 7 days matching a \"Posting on X\" filter, from the caller's own X connection. Costs about 5 X credits, cached for an hour. 409 `connection_missing` without an X connection.","operationId":"leadsXPostCount","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"postedOnX":{"$ref":"#/components/schemas/PostedOnXFilter"}},"required":["postedOnX"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"posts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["posts"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Count the X posts a \"Posting on X\" search matches","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/technologies":{"get":{"description":"Tool names (as the search matches them, lowercase) starting with `q` (at least 2 characters). Free.","operationId":"leadsTechnologySuggestions","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"technologies":{"type":"array","items":{"type":"string"}}},"required":["technologies"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Tool name suggestions for a company search","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/keywords":{"get":{"description":"Industry or product keywords starting with `q` (at least 2 characters). Free.","operationId":"leadsKeywordSuggestions","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"keywords":{"type":"array","items":{"type":"string"}}},"required":["keywords"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Keyword suggestions for a company search","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/industries":{"get":{"description":"The search's own industries containing a word starting with `q` (at least 2 characters); with no `q`, the first ones. Pass them in `industries`. Free.","operationId":"leadsIndustrySuggestions","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"industries":{"type":"array","items":{"type":"string"}}},"required":["industries"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Industries a company search can pick","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/departments":{"get":{"description":"The search's own departments and functions (e.g. `sales_development`) containing a word starting with `q` (at least 2 characters); with no `q`, the first ones. Pass them in `departments`. Free.","operationId":"leadsDepartmentSuggestions","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"departments":{"type":"array","items":{"type":"string"}}},"required":["departments"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Departments and functions a people search can pick","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/companies":{"get":{"description":"Companies whose name starts with `q` (at least 2 characters), with website and logo, to pick for look-alikes or a people search. Free.","operationId":"leadsCompanySuggestions","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"companies":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"domain":{"nullable":true,"type":"string"},"name":{"type":"string"},"logoUrl":{"type":"string"}},"required":["key","domain","name"],"additionalProperties":false}}},"required":["companies"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Company name suggestions","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/sample":{"post":{"description":"A page of matching companies that are not in the CRM yet. 1 enrichment credit per company shown.","operationId":"leadsSample","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/LeadFilters"},"size":{"default":10,"type":"integer","minimum":1,"maximum":25},"page":{"default":1,"type":"integer","minimum":1,"maximum":100}},"required":["filters"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"leads":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"domain":{"nullable":true,"type":"string"},"company":{"$ref":"#/components/schemas/EnrichCompanyCard"}},"required":["key","domain","company"],"additionalProperties":false}},"credits":{"type":"object","properties":{"charged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["charged"],"additionalProperties":false}},"required":["leads","credits"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Show some companies matching lead filters","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/estimate":{"post":{"description":"The most enrichment credits an import can spend. Free; nothing is looked up but the count.","operationId":"leadsEstimate","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/LeadFilters"},"options":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":5000},"people":{"default":false,"type":"boolean"},"peoplePerCompany":{"default":2,"type":"integer","minimum":1,"maximum":5},"seniority":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/Seniority"}},"emails":{"default":false,"type":"boolean"},"phones":{"default":false,"type":"boolean"},"funding":{"default":false,"type":"boolean"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["limit"]},"selection":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["picked"]},"keys":{"minItems":1,"maxItems":1000,"type":"array","items":{"anyOf":[{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"},{"type":"string","pattern":"^ark:[0-9a-f-]{8,64}$"}]}}},"required":["mode","keys"]},{"type":"object","properties":{"mode":{"type":"string","enum":["all"]},"except":{"default":[],"maxItems":1000,"type":"array","items":{"anyOf":[{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"},{"type":"string","pattern":"^ark:[0-9a-f-]{8,64}$"}]}}},"required":["mode"]},{"type":"object","properties":{"mode":{"type":"string","enum":["people"]},"ids":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["mode","ids"]},{"type":"object","properties":{"mode":{"type":"string","enum":["peopleSearch"]},"filters":{"$ref":"#/components/schemas/PersonLeadFilters"}},"required":["mode","filters"]}]}},"required":["filters","options"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"maxCredits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"companies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"people":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"emails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"phones":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["maxCredits","companies","people","emails","phones"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Estimate what adding found companies costs","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/import":{"post":{"description":"Starts adding new companies (and optionally the people who run them, with work emails) in the background: the ticked ones (`selection.mode: picked`), or up to `limit` matches but the unticked ones (`selection.mode: all`). `selection.mode: people` adds the people ticked in a people search (by `id`) as contacts, each linked to their company (found or added), with work emails when `emails` is on and mobile numbers when `phones` is on (5 credits per number found). `selection.mode: peopleSearch` adds the best `limit` matches of a people search (up to 5,000) the same way, paging through its results; pages after the first cost credits per person. Companies already in the CRM are left out. One add runs per workspace at a time (409 otherwise); 402 `out_of_credits` when the credits left this month do not cover a single company. Adds of more than 100 companies do not run Autopilots for each new record. Sends a notification when done, unless `notify` is false.","operationId":"leadsImport","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":5000},"people":{"default":false,"type":"boolean"},"peoplePerCompany":{"default":2,"type":"integer","minimum":1,"maximum":5},"seniority":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/Seniority"}},"emails":{"default":false,"type":"boolean"},"phones":{"default":false,"type":"boolean"},"funding":{"default":false,"type":"boolean"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filters":{"$ref":"#/components/schemas/LeadFilters"},"selection":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["picked"]},"keys":{"minItems":1,"maxItems":1000,"type":"array","items":{"anyOf":[{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"},{"type":"string","pattern":"^ark:[0-9a-f-]{8,64}$"}]}}},"required":["mode","keys"]},{"type":"object","properties":{"mode":{"type":"string","enum":["all"]},"except":{"default":[],"maxItems":1000,"type":"array","items":{"anyOf":[{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"},{"type":"string","pattern":"^ark:[0-9a-f-]{8,64}$"}]}}},"required":["mode"]},{"type":"object","properties":{"mode":{"type":"string","enum":["people"]},"ids":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["mode","ids"]},{"type":"object","properties":{"mode":{"type":"string","enum":["peopleSearch"]},"filters":{"$ref":"#/components/schemas/PersonLeadFilters"}},"required":["mode","filters"]}]},"locale":{"type":"string","maxLength":35},"notify":{"type":"boolean"}},"required":["limit","filters"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string"},"estimate":{"type":"object","properties":{"maxCredits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"companies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"people":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"emails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"phones":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["maxCredits","companies","people","emails","phones"],"additionalProperties":false}},"required":["runId","estimate"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Add found companies to the CRM","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/like-from-records":{"post":{"description":"The websites of the given companies, and of the companies behind the given contacts (their work email, else their linked company), to pass as `filters.like`. Records you can't see or with no website are counted as `missing`. Free.","operationId":"leadsLikeFromRecords","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"recordIds":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}},"required":["recordIds"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"names":{"type":"object","additionalProperties":{"type":"string"}},"missing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"overLimit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["keys","names","missing","overLimit"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Company websites of CRM records, for a look-alike search","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/limits":{"get":{"description":"How many countries, keywords, look-alikes and companies one search or add can take, and who is looked for at each company by default. The same for every workspace.","operationId":"leadsLimits","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadLimits"}}}}},"security":[{"bearer":[]}],"summary":"The limits a lead search and add work within","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/imports/active":{"get":{"description":"How far the add running in this workspace has got, or `active: null` when none is.","operationId":"leadsImportActive","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"nullable":true,"type":"object","properties":{"runId":{"type":"string"},"people":{"type":"boolean"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"target":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startedAt":{"nullable":true,"type":"string"}},"required":["runId","people","added","target","startedAt"],"additionalProperties":false}},"required":["active"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"The add of found companies running now","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/searches":{"get":{"description":"Your own saved Find leads searches, then the ones shared with the team. A group in a search's add settings that is gone or that you can't add to is left out.","operationId":"leadsSearchesList","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"searches":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"visibility":{"type":"string","enum":["personal","workspace"]},"mode":{"type":"string","enum":["companies","people"]},"filters":{"anyOf":[{"$ref":"#/components/schemas/PersonLeadFilters"},{"$ref":"#/components/schemas/LeadFilters"}]},"addOptions":{"type":"object","properties":{"people":{"default":false,"type":"boolean"},"peoplePerCompany":{"default":2,"type":"integer","minimum":1,"maximum":5},"seniority":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/Seniority"}},"emails":{"default":false,"type":"boolean"},"phones":{"default":false,"type":"boolean"},"funding":{"default":false,"type":"boolean"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["people","peoplePerCompany","emails","phones","funding"],"additionalProperties":false},"owner":{"type":"object","properties":{"id":{"type":"string"},"name":{"nullable":true,"type":"string"}},"required":["id","name"],"additionalProperties":false},"mine":{"type":"boolean"},"canEdit":{"type":"boolean"},"updatedAt":{"type":"string"}},"required":["id","name","visibility","mode","filters","addOptions","owner","mine","canEdit","updatedAt"],"additionalProperties":false}}},"required":["searches"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"List saved lead searches","tags":["Enrichment","Public"],"x-feature":"leads"},"post":{"description":"Saves the filters and add settings under a name, for companies (`mode: companies`, the default) or people (`mode: people`). Sharing with the team (`visibility: workspace`) takes an Editor or Admin. 409 when the name is taken or the limit of saved searches is reached.","operationId":"leadsSearchesCreate","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"visibility":{"default":"personal","type":"string","enum":["personal","workspace"]},"addOptions":{"default":{"people":false,"peoplePerCompany":2,"emails":false,"funding":false},"type":"object","properties":{"people":{"default":false,"type":"boolean"},"peoplePerCompany":{"default":2,"type":"integer","minimum":1,"maximum":5},"seniority":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/Seniority"}},"emails":{"default":false,"type":"boolean"},"phones":{"default":false,"type":"boolean"},"funding":{"default":false,"type":"boolean"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"mode":{"type":"string","enum":["companies"]},"filters":{"$ref":"#/components/schemas/LeadFilters"}},"required":["name","mode","filters"]},{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"visibility":{"default":"personal","type":"string","enum":["personal","workspace"]},"addOptions":{"default":{"people":false,"peoplePerCompany":2,"emails":false,"funding":false},"type":"object","properties":{"people":{"default":false,"type":"boolean"},"peoplePerCompany":{"default":2,"type":"integer","minimum":1,"maximum":5},"seniority":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/Seniority"}},"emails":{"default":false,"type":"boolean"},"phones":{"default":false,"type":"boolean"},"funding":{"default":false,"type":"boolean"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"mode":{"type":"string","enum":["people"]},"filters":{"$ref":"#/components/schemas/PersonLeadFilters"}},"required":["name","mode","filters"]}]}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"visibility":{"type":"string","enum":["personal","workspace"]},"mode":{"type":"string","enum":["companies","people"]},"filters":{"anyOf":[{"$ref":"#/components/schemas/PersonLeadFilters"},{"$ref":"#/components/schemas/LeadFilters"}]},"addOptions":{"type":"object","properties":{"people":{"default":false,"type":"boolean"},"peoplePerCompany":{"default":2,"type":"integer","minimum":1,"maximum":5},"seniority":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/Seniority"}},"emails":{"default":false,"type":"boolean"},"phones":{"default":false,"type":"boolean"},"funding":{"default":false,"type":"boolean"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["people","peoplePerCompany","emails","phones","funding"],"additionalProperties":false},"owner":{"type":"object","properties":{"id":{"type":"string"},"name":{"nullable":true,"type":"string"}},"required":["id","name"],"additionalProperties":false},"mine":{"type":"boolean"},"canEdit":{"type":"boolean"},"updatedAt":{"type":"string"}},"required":["id","name","visibility","mode","filters","addOptions","owner","mine","canEdit","updatedAt"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Save a lead search","tags":["Enrichment","Public"],"x-feature":"leads"}},"/enrichment/leads/searches/{id}":{"patch":{"description":"Renames, shares or unshares, or replaces the filters or add settings. Only the person who saved it or an Admin can change it.","operationId":"leadsSearchesUpdate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"visibility":{"type":"string","enum":["personal","workspace"]},"filters":{"type":"object","additionalProperties":{}},"addOptions":{"type":"object","properties":{"people":{"default":false,"type":"boolean"},"peoplePerCompany":{"default":2,"type":"integer","minimum":1,"maximum":5},"seniority":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/Seniority"}},"emails":{"default":false,"type":"boolean"},"phones":{"default":false,"type":"boolean"},"funding":{"default":false,"type":"boolean"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"visibility":{"type":"string","enum":["personal","workspace"]},"mode":{"type":"string","enum":["companies","people"]},"filters":{"anyOf":[{"$ref":"#/components/schemas/PersonLeadFilters"},{"$ref":"#/components/schemas/LeadFilters"}]},"addOptions":{"type":"object","properties":{"people":{"default":false,"type":"boolean"},"peoplePerCompany":{"default":2,"type":"integer","minimum":1,"maximum":5},"seniority":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/Seniority"}},"emails":{"default":false,"type":"boolean"},"phones":{"default":false,"type":"boolean"},"funding":{"default":false,"type":"boolean"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["people","peoplePerCompany","emails","phones","funding"],"additionalProperties":false},"owner":{"type":"object","properties":{"id":{"type":"string"},"name":{"nullable":true,"type":"string"}},"required":["id","name"],"additionalProperties":false},"mine":{"type":"boolean"},"canEdit":{"type":"boolean"},"updatedAt":{"type":"string"}},"required":["id","name","visibility","mode","filters","addOptions","owner","mine","canEdit","updatedAt"],"additionalProperties":false}}}}},"security":[{"bearer":[]}],"summary":"Change a saved lead search","tags":["Enrichment","Public"],"x-feature":"leads"},"delete":{"description":"Only the person who saved it or an Admin can delete it.","operationId":"leadsSearchesDelete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""}},"security":[{"bearer":[]}],"summary":"Delete a saved lead search","tags":["Enrichment","Public"],"x-feature":"leads"}},"/documents/templates":{"get":{"operationId":"listDocumentTemplates","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"tableId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DocumentTemplateResponseDto"}}}}}},"security":[{"bearer":[]}],"summary":"List document templates, optionally for one object","tags":["Documents","Public"],"x-feature":"documents"},"post":{"operationId":"createDocumentTemplate","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDocumentTemplateDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTemplateResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Create a document template","tags":["Documents","Public"],"x-feature":"documents"}},"/documents/templates/{id}":{"get":{"operationId":"getDocumentTemplate","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTemplateResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Read a document template","tags":["Documents","Public"],"x-feature":"documents"},"put":{"operationId":"updateDocumentTemplate","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveDocumentTemplateDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTemplateResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Save a document template","tags":["Documents","Public"],"x-feature":"documents"},"delete":{"operationId":"deleteDocumentTemplate","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Moved to the bin"}},"security":[{"bearer":[]}],"summary":"Move a document template to the bin","tags":["Documents","Public"],"x-feature":"documents"}},"/documents/preview":{"post":{"operationId":"previewDocument","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"templateId","required":true,"in":"query","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewDocumentDto"}}}},"responses":{"200":{"description":"The PDF","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}}},"security":[{"bearer":[]}],"summary":"A design filled from a record, as a PDF (nothing is saved)","tags":["Documents","Public"],"x-feature":"documents"}},"/documents/values":{"post":{"operationId":"documentValues","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentValuesDto"}}}},"responses":{"200":{"description":"One filled-in text per value sent, in the same order","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}},"security":[{"bearer":[]}],"summary":"Template values filled from a record, as plain text (nothing is saved)","tags":["Documents","Public"],"x-feature":"documents"}},"/documents/templates/{id}/generate":{"post":{"operationId":"generateDocument","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateDocumentDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDto"}}}}},"security":[{"bearer":[]}],"summary":"Make a document from a record; the PDF is built in the background","tags":["Documents","Public"],"x-feature":"documents"}},"/documents/records/{recordId}":{"get":{"operationId":"listRecordDocuments","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DocumentDto"}}}}}},"security":[{"bearer":[]}],"summary":"Documents made from a record, newest first","tags":["Documents","Public"],"x-feature":"documents"}},"/documents/{id}":{"get":{"operationId":"getDocument","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDto"}}}}},"security":[{"bearer":[]}],"summary":"Read a document and its status","tags":["Documents","Public"],"x-feature":"documents"}},"/files/signing-field-kinds":{"get":{"operationId":"getSigningFieldRules","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SigningFieldRulesDto"}}}}},"security":[{"bearer":[]}],"summary":"The kinds of signing field, their starting sizes and who fills each","tags":["Files","Public"],"x-feature":"files"}},"/files/records/{recordId}":{"get":{"operationId":"listRecordFiles","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FileItemDto"}}}}}},"security":[{"bearer":[]}],"summary":"Everything kept on a record: folders, files and documents","tags":["Files","Public"],"x-feature":"files"}},"/files/records/{recordId}/folders":{"post":{"operationId":"createRecordFolder","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFolderDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileItemDto"}}}}},"security":[{"bearer":[]}],"summary":"Add a folder to a record","tags":["Files","Public"],"x-feature":"files"}},"/files/records/{recordId}/uploads":{"post":{"operationId":"addRecordUploads","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUploadsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FileItemDto"}}}}}},"security":[{"bearer":[]}],"summary":"Keep uploaded files on a record (upload them with POST /file/workspace/upload first)","tags":["Files","Public"],"x-feature":"files"}},"/files/records/{recordId}/generate":{"post":{"operationId":"generateRecordFile","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateIntoFolderDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDto"}}}}},"security":[{"bearer":[]}],"summary":"Make a template's PDF for a record into a folder; built in the background","tags":["Files","Public"],"x-feature":"documents"}},"/files/records/{recordId}/documents":{"post":{"operationId":"createRecordDocument","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRecordDocumentDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileItemDto"}}}}},"security":[{"bearer":[]}],"summary":"Write a document for a record, blank or starting from a template","tags":["Files","Public"],"x-feature":"documents"}},"/files/{id}":{"patch":{"operationId":"updateRecordFile","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFileItemDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileItemDto"}}}}},"security":[{"bearer":[]}],"summary":"Rename or move a file or folder","tags":["Files","Public"],"x-feature":"files"},"delete":{"operationId":"deleteRecordFile","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Moved to the bin"}},"security":[{"bearer":[]}],"summary":"Move a file, or a folder and what is in it, to the bin","tags":["Files","Public"],"x-feature":"files"}},"/files/{id}/document":{"get":{"operationId":"getRecordDocument","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDocumentDto"}}}}},"security":[{"bearer":[]}],"summary":"A record document with its design and fields","tags":["Files","Public"],"x-feature":"files"},"put":{"operationId":"saveRecordDocument","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveRecordDocumentDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDocumentDto"}}}}},"security":[{"bearer":[]}],"summary":"Save a draft document's design","tags":["Files","Public"],"x-feature":"files"}},"/files/{id}/preview":{"post":{"operationId":"previewRecordDocument","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The PDF","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}}},"security":[{"bearer":[]}],"summary":"A draft document as a PDF (nothing is saved)","tags":["Files","Public"],"x-feature":"files"}},"/files/{id}/finalize":{"post":{"operationId":"finalizeRecordDocument","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDocumentDto"}}}}},"security":[{"bearer":[]}],"summary":"Make the PDF of a draft document and lock it for printing and signing","tags":["Files","Public"],"x-feature":"files"}},"/files/{id}/reopen":{"post":{"operationId":"reopenRecordDocument","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDocumentDto"}}}}},"security":[{"bearer":[]}],"summary":"Turn a finished document back into a draft","tags":["Files","Public"],"x-feature":"files"}},"/files/{id}/fields":{"put":{"operationId":"saveSigningFields","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveSigningFieldsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordDocumentDto"}}}}},"security":[{"bearer":[]}],"summary":"Place the fields each party fills when signing a PDF","tags":["Files","Public"],"x-feature":"files"}},"/signing/envelopes":{"post":{"operationId":"sendForSigning","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendForSigningDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvelopeDto"}}}}},"security":[{"bearer":[]}],"summary":"Send a PDF on a record for signing by one or more people","tags":["Signing","Public"],"x-feature":"signing"},"get":{"operationId":"listSignings","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"$ref":"#/components/schemas/SigningQueueFilter"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EnvelopeDto"}}}}}},"security":[{"bearer":[]}],"summary":"Signings across every record you can see: waiting, signed, declined or expired","tags":["Signing","Public"],"x-feature":"signing"}},"/signing/records/{recordId}":{"get":{"operationId":"listRecordSignings","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EnvelopeDto"}}}}}},"security":[{"bearer":[]}],"summary":"A record's signings, newest first","tags":["Signing","Public"],"x-feature":"signing"}},"/signing/envelopes/{id}":{"get":{"operationId":"getSigning","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvelopeDto"}}}}},"security":[{"bearer":[]}],"summary":"A signing with its people and audit trail","tags":["Signing","Public"],"x-feature":"signing"}},"/signing/envelopes/{id}/void":{"post":{"operationId":"voidSigning","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidEnvelopeDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvelopeDto"}}}}},"security":[{"bearer":[]}],"summary":"Cancel a signing in progress","tags":["Signing","Public"],"x-feature":"signing"}},"/signing/envelopes/{id}/parties/{partyId}/resend":{"post":{"operationId":"resendSigning","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"partyId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvelopeDto"}}}}},"security":[{"bearer":[]}],"summary":"Email a person their signing link again","tags":["Signing","Public"],"x-feature":"signing"}},"/signing/envelopes/{id}/parties/{partyId}/link":{"post":{"operationId":"getSigningLink","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"partyId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SigningLinkDto"}}}}},"security":[{"bearer":[]}],"summary":"A person's signing link, to send them yourself","tags":["Signing","Public"],"x-feature":"signing"}},"/signing/brand":{"get":{"operationId":"getSigningBrand","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SigningBrandDto"}}}}},"security":[{"bearer":[]}],"summary":"The name and logo signing pages show unless a signing picks its own","tags":["Signing","Public"],"x-feature":"signing"},"put":{"operationId":"setSigningBrand","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SigningBrandDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SigningBrandDto"}}}}},"security":[{"bearer":[]}],"summary":"Set the workspace's default name and logo on signing pages (admins)","tags":["Signing","Public"],"x-feature":"signing"}},"/signing/envelopes/{id}/brand":{"put":{"operationId":"setEnvelopeBrand","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SigningBrandDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvelopeDto"}}}}},"security":[{"bearer":[]}],"summary":"Pick the name and logo one signing page shows (admins); links keep working","tags":["Signing","Public"],"x-feature":"signing"}},"/signing/envelopes/{id}/parties/{partyId}":{"patch":{"operationId":"correctSigningParty","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"partyId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectPartyDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvelopeDto"}}}}},"security":[{"bearer":[]}],"summary":"Fix a person's name or email before they sign; their old link stops working","tags":["Signing","Public"],"x-feature":"signing"}},"/portals":{"get":{"operationId":"listPortals","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Portal"}}}}}},"security":[{"bearer":[]}],"summary":"List portals (admins)","tags":["Portals","Public","Portals"],"x-feature":"portals"},"post":{"operationId":"createPortal","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalDefinition"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portal"}}}}},"security":[{"bearer":[]}],"summary":"Create a portal (admins)","tags":["Portals","Public","Portals"],"x-feature":"portals"}},"/portals/page-kinds":{"get":{"operationId":"listPortalPageKinds","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PortalPageKindInfo"}}}}}},"security":[{"bearer":[]}],"summary":"Kinds of portal page and the feature each needs","tags":["Portals","Public","Portals"],"x-feature":"portals"}},"/portals/{id}":{"get":{"operationId":"getPortal","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portal"}}}}},"security":[{"bearer":[]}],"summary":"Read a portal (admins)","tags":["Portals","Public","Portals"],"x-feature":"portals"},"put":{"operationId":"updatePortal","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalDefinition"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portal"}}}}},"security":[{"bearer":[]}],"summary":"Save a portal (admins)","tags":["Portals","Public","Portals"],"x-feature":"portals"},"delete":{"operationId":"deletePortal","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""}},"security":[{"bearer":[]}],"summary":"Move a portal to the bin","tags":["Portals","Public","Portals"],"x-feature":"portals"}},"/portals/{id}/invite":{"post":{"operationId":"invitePortal","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contactIds":{"type":"array","items":{"type":"string"},"description":"Records on the sign-in list to send to (portals with sign-in)."},"emails":{"type":"array","items":{"type":"string"},"description":"Addresses to send to (portals without sign-in)."},"note":{"type":"string","maxLength":1000,"description":"A personal line added to the message."},"via":{"type":"string","enum":["email","sms"],"default":"email"}}}}}},"responses":{"200":{"description":"How many people the link went to, and how many were left out and why","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalInviteResult"}}}}},"security":[{"bearer":[]}],"summary":"Email a portal's link (admins)","tags":["Portals","Public","Portals"],"x-feature":"portals"}},"/portals/{id}/link":{"post":{"operationId":"renewPortalLink","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portal"}}}}},"security":[{"bearer":[]}],"summary":"Give a portal a new link; the old link and its sign-ins stop working","tags":["Portals","Public","Portals"],"x-feature":"portals"}},"/timers":{"get":{"description":"Returns `running` (your timer, or null) and `available` (true when `recordId` is given and time can be tracked on that kind of record).","operationId":"getTimer","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"recordId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimerStatusDto"}}}}},"security":[{"bearer":[]}],"summary":"Your running timer, and whether a record can have one","tags":["Timers","Public"],"x-feature":"timers"}},"/timers/start":{"post":{"operationId":"startTimer","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartTimerDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimerEntryDto"}}}}},"security":[{"bearer":[]}],"summary":"Start a timer on a record; a running one stops first","tags":["Timers","Public"],"x-feature":"timers"}},"/timers/stop":{"post":{"operationId":"stopTimer","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopTimerResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Stop your running timer","tags":["Timers","Public"],"x-feature":"timers"}},"/mcp/skills":{"get":{"description":"Returns all available MCP skill instructions. Each skill contains detailed guidance on how to use the related API tools effectively, including required call order, parameter formats, and best practices. Always call this endpoint first to understand how to use other tools correctly.","operationId":"getMcpSkills","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Skill instructions loaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpSkillsResponseDto"}}}}},"security":[{"bearer":[]}],"summary":"Load skill instructions — CALL THIS FIRST before using any other tools. Returns usage guidance for records, messages, notes, tables, groups, and views.","tags":["MCP Skills","Public"],"x-feature":"mcp"}},"/mcp/skills/{skillName}":{"get":{"operationId":"getMcpSkill","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"skillName","required":true,"in":"path","description":"Skill name: records, messages, notes, tables, or groups_and_views","schema":{"type":"string"}}],"responses":{"200":{"description":"Skill instructions loaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpSkillDto"}}}},"404":{"description":"Skill not found"}},"security":[{"bearer":[]}],"summary":"Load a specific skill by name — provides detailed instructions for a single domain.","tags":["MCP Skills","Public"],"x-feature":"mcp"}},"/mcp/skills/{skillName}/references/{referenceName}":{"get":{"operationId":"getMcpSkillReference","parameters":[{"name":"x-workspace-id","in":"header","description":"Workspace ID","required":true,"schema":{"type":"string"}},{"name":"skillName","required":true,"in":"path","description":"Skill name, such as records","schema":{"type":"string"}},{"name":"referenceName","required":true,"in":"path","description":"Reference name, such as searching-records","schema":{"type":"string"}}],"responses":{"200":{"description":"Reference loaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpSkillReferenceContentDto"}}}},"404":{"description":"Skill or reference not found"}},"security":[{"bearer":[]}],"summary":"Load one detailed guide from a skill — listed in that skill's references.","tags":["MCP Skills","Public"],"x-feature":"mcp"}}},"info":{"title":"Softsync API","description":"## Introduction\n\nThe Softsync Platform API\n\nThis API lets you read and write your Softsync data from your own applications. Authenticate with a personal API key created in **Settings → API Keys**, sent as the `x-api-key` header.\n\n**New here?** Read **Concepts** first, then **Authentication**, then **Quickstart: full cycle** — it walks the whole thing end to end. **Objects**, **Records**, **Groups & Views** and **Notes** cover each area in depth, and **Code Generation** shows how to turn this document into a typed client.\n\nTo try a request from this page, paste your API key into the **Authentication** panel on the right.\n\n## Support\n\nIf you need help with API access or integration details, contact [contact@softsync.ai](mailto:contact@softsync.ai).","version":"0.1.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"},"x-api-key":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"CreateApiKeyDto":{"type":"object","properties":{"label":{"type":"string"},"partnerId":{"type":"string"}},"required":["label"]},"CreateApiKeyResponseDto":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"keyPrefix":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"lastUsedAt":{"format":"date-time","type":"string"},"partner":{"$ref":"#/components/schemas/PartnerDto"},"info":{"$ref":"#/components/schemas/APIInfoDto"},"rawKey":{"type":"string"}},"required":["id","label","keyPrefix","createdAt","lastUsedAt","rawKey"]},"ApiKeyResponseDto":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"keyPrefix":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"lastUsedAt":{"format":"date-time","type":"string"},"partner":{"$ref":"#/components/schemas/PartnerDto"},"info":{"$ref":"#/components/schemas/APIInfoDto"}},"required":["id","label","keyPrefix","createdAt","lastUsedAt"]},"OAuthAuthorizeDto":{"type":"object","properties":{"clientId":{"type":"string"},"redirectUri":{"type":"string"},"state":{"type":"string"},"responseType":{"type":"string"},"codeChallenge":{"type":"string","description":"PKCE S256 code challenge"},"codeChallengeMethod":{"type":"string","description":"PKCE code challenge method (S256)"},"resource":{"type":"string","description":"RFC 8707 resource indicator"},"workspaceIds":{"description":"More organizations the connection may act in, besides the current one (the default).","type":"array","items":{"type":"string"}},"allWorkspaces":{"type":"boolean","description":"Every organization you are a member of, including ones created later. MCP connections only."}},"required":["clientId","redirectUri"]},"OAuthAuthorizeResponseDto":{"type":"object","properties":{"redirectUri":{"type":"string"}},"required":["redirectUri"]},"OAuthExchangeDto":{"type":"object","properties":{"clientId":{"type":"string"},"clientSecret":{"type":"string"},"code":{"type":"string"},"codeVerifier":{"type":"string","description":"PKCE code verifier"},"redirectUri":{"type":"string","description":"Must match the redirect_uri used at authorization"},"resource":{"type":"string","description":"RFC 8707 resource indicator"}},"required":["clientId","clientSecret","code"]},"OAuthTokenResponseDto":{"type":"object","properties":{"accessToken":{"type":"string"},"tokenType":{"type":"string","example":"Bearer"},"expiresIn":{"type":"number","description":"Token lifetime in seconds","example":28800},"scope":{"type":"string","example":"full"},"refreshToken":{"type":"string","description":"Long-lived token for obtaining a new access token via grant_type=refresh_token, without sending the user through consent again."}},"required":["accessToken","tokenType","expiresIn","scope"]},"AttachmentDto":{"type":"object","properties":{"id":{"type":"string"},"path":{"type":"string"},"fileName":{"type":"string"},"fileSize":{"type":"number"},"mime":{"type":"string"},"isInline":{"type":"boolean"},"contentId":{"type":"string"},"url":{"type":"string"}},"required":["id","path","fileName","fileSize","mime"]},"SavedSearchList":{"type":"object","properties":{"searches":{"type":"array","items":{"$ref":"#/components/schemas/SavedSearch"}}},"required":["searches"],"additionalProperties":false},"SavedSearchCreate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"visibility":{"default":"workspace","allOf":[{"$ref":"#/components/schemas/SavedSearchVisibility"}]},"search":{"allOf":[{"$ref":"#/components/schemas/SavedSearchQuestion"}]}},"required":["name","search"]},"SavedSearch":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"visibility":{"$ref":"#/components/schemas/SavedSearchVisibility"},"search":{"$ref":"#/components/schemas/SavedSearchQuestion"},"owner":{"type":"object","properties":{"id":{"type":"string"},"name":{"nullable":true,"type":"string"}},"required":["id","name"],"additionalProperties":false},"mine":{"type":"boolean"},"canEdit":{"type":"boolean"},"updatedAt":{"type":"string"}},"required":["id","name","visibility","search","owner","mine","canEdit","updatedAt"],"additionalProperties":false},"SavedSearchUpdate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"visibility":{"allOf":[{"$ref":"#/components/schemas/SavedSearchVisibility"}]},"search":{"allOf":[{"$ref":"#/components/schemas/SavedSearchQuestion"}]}}},"ManagedWorkspacesDto":{"type":"object","properties":{"managedBy":{"nullable":true,"description":"The organization this one is managed from, if any.","allOf":[{"$ref":"#/components/schemas/ManagingWorkspaceDto"}]},"clients":{"description":"The client organizations this one manages.","type":"array","items":{"$ref":"#/components/schemas/ManagedWorkspaceDto"}},"limit":{"type":"number","description":"How many client organizations it may have."}},"required":["managedBy","clients","limit"]},"AddManagedWorkspaceDto":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The organization to manage from this one."}},"required":["workspaceId"]},"SetManagedEnabledDto":{"type":"object","properties":{"on":{"type":"boolean","description":"Whether this organization can run client organizations."}},"required":["on"]},"MembersListDto":{"type":"object","properties":{"success":{"type":"boolean"},"members":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceMemberDto"}}},"required":["success","members"]},"PublicShortLinkDto":{"type":"object","properties":{"to":{"allOf":[{"$ref":"#/components/schemas/PublicAppLinkTo"}]},"id":{"type":"string","description":"The full `<workspaceId>/<linkId>` link the page opens"}},"required":["to","id"]},"CreateGroupDto":{"type":"object","properties":{"title":{"type":"string","description":"Group title"},"description":{"type":"string","description":"Group description"},"order":{"type":"number","description":"Display order"},"metadata":{"type":"object","description":"Additional metadata"},"visibility":{"description":"Group visibility","allOf":[{"$ref":"#/components/schemas/GroupVisibility"}]},"charts":{"type":"array","items":{"$ref":"#/components/schemas/ChartConfig"}}},"required":["title"]},"GroupWithViewsDto":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"order":{"type":"number"},"metadata":{"type":"object"},"visibility":{"allOf":[{"$ref":"#/components/schemas/GroupVisibility"}]},"charts":{"type":"array","items":{"$ref":"#/components/schemas/ChartConfig"}},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"views":{"type":"array","items":{"$ref":"#/components/schemas/ViewDetailsDto"}}},"required":["id","title","order","visibility","createdAt","updatedAt","views"]},"DuplicateGroupDto":{"type":"object","properties":{"title":{"type":"string","description":"Optional title override for duplicated group"},"copyViews":{"type":"boolean","description":"Copy source views to the duplicated group","default":true}}},"UpdateGroupDto":{"type":"object","properties":{"title":{"type":"string","description":"Group title"},"description":{"type":"string","description":"Group description"},"order":{"type":"number","description":"Display order"},"metadata":{"type":"object","description":"Additional metadata"},"visibility":{"description":"Group visibility","allOf":[{"$ref":"#/components/schemas/GroupVisibility"}]},"charts":{"type":"array","items":{"$ref":"#/components/schemas/ChartConfig"}}}},"CreateViewDto":{"type":"object","properties":{"groupId":{"type":"string","description":"Group ID this view belongs to"},"tableId":{"type":"string","description":"Table ID this view displays"},"name":{"type":"string","description":"View name"},"viewType":{"description":"View type","allOf":[{"$ref":"#/components/schemas/ViewType"}]},"config":{"$ref":"#/components/schemas/ViewConfigDto"},"order":{"type":"number","description":"Display order"},"isDefault":{"type":"boolean","description":"Is this the default view?"}},"required":["groupId","tableId","name","viewType"]},"ViewDetailsDto":{"type":"object","properties":{"id":{"type":"string"},"groupId":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"name":{"type":"string"},"viewType":{"allOf":[{"$ref":"#/components/schemas/ViewType"}]},"config":{"$ref":"#/components/schemas/ViewConfigDto"},"order":{"type":"number"},"isDefault":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","groupId","tableId","tableName","name","viewType","order","isDefault","createdAt","updatedAt"]},"UpdateViewDto":{"type":"object","properties":{"name":{"type":"string","description":"View name"},"viewType":{"description":"View type","allOf":[{"$ref":"#/components/schemas/ViewType"}]},"config":{"$ref":"#/components/schemas/ViewConfigDto"},"order":{"type":"number"},"isDefault":{"type":"boolean"}}},"AddGroupMemberDto":{"type":"object","properties":{"userIdentifier":{"type":"string","description":"User email or ID"},"role":{"description":"Role in the group","allOf":[{"$ref":"#/components/schemas/GroupRole"}]}},"required":["userIdentifier","role"]},"GroupMemberDto":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"userEmail":{"type":"string"},"userFirstName":{"type":"string"},"userLastName":{"type":"string"},"userAvatarUrl":{"type":"string"},"role":{"allOf":[{"$ref":"#/components/schemas/GroupRole"}]},"joinedAt":{"format":"date-time","type":"string"}},"required":["id","userId","userEmail","role","joinedAt"]},"UpdateGroupMemberRoleDto":{"type":"object","properties":{"role":{"description":"New role","allOf":[{"$ref":"#/components/schemas/GroupRole"}]}},"required":["role"]},"UpdateGroupVisibilityDto":{"type":"object","properties":{"visibility":{"description":"Group visibility","allOf":[{"$ref":"#/components/schemas/GroupVisibility"}]}},"required":["visibility"]},"JsonTable":{"type":"object","properties":{"apiName":{"type":"string"},"id":{"type":"string"},"isSystem":{"type":"boolean"},"isHidden":{"type":"boolean"},"displayName":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/JsonField"}},"description":{"type":"string","nullable":true},"hasEmbeddings":{"type":"boolean"},"rules":{"nullable":true,"description":"Rules every save of a record must pass, whoever or whatever saves it. Omitted keeps the current rules; an empty list removes them.","type":"array","items":{"$ref":"#/components/schemas/TableRuleDto"}},"options":{"nullable":true,"description":"How records are shown (layout) and whether they are time entries (timer). Omitted keeps the current options; null clears them.","allOf":[{"$ref":"#/components/schemas/TableOptionsDto"}]},"extendsTable":{"type":"boolean","description":"Templates only: adds these fields to the base template table with the same apiName instead of declaring a new table."},"calculating":{"readOnly":true,"description":"Read only: ids of formula fields whose values are still being worked out after a formula change. Ignored on save.","type":"array","items":{"type":"string"}}},"required":["apiName","fields"]},"TableCompileResult":{"type":"object","properties":{"valid":{"type":"boolean"},"diagnostics":{"type":"array","items":{"$ref":"#/components/schemas/TableCompileDiagnostic"}},"errors":{"type":"number"},"warnings":{"type":"number"},"infos":{"type":"number"}},"required":["valid","diagnostics","errors","warnings","infos"]},"TransformResult":{"type":"object","properties":{"success":{"type":"boolean"},"tables":{"type":"array","items":{"type":"string"}},"errors":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["success"]},"DescribeResult":{"type":"object","properties":{"success":{"type":"boolean"},"description":{"$ref":"#/components/schemas/JsonWorkspaceDescription"},"errors":{"type":"array","items":{"type":"string"}}},"required":["success"]},"DeleteTableResult":{"type":"object","properties":{"success":{"type":"boolean"},"tableId":{"type":"string"},"recordCount":{"type":"number"}},"required":["success","tableId","recordCount"]},"FormulaCheckDto":{"type":"object","properties":{"expression":{"type":"string","description":"The formula, with {Field} names or stored ids"},"field":{"$ref":"#/components/schemas/FormulaCheckFieldDto"},"recordIds":{"description":"Records to preview; the newest ones you can see when left out","type":"array","items":{"type":"string"}}},"required":["expression","field"]},"FormulaCheckResult":{"type":"object","properties":{"stored":{"type":"string","description":"The formula with references by id, as saved"},"display":{"type":"string","description":"The formula with references by name"},"resultType":{"type":"string","description":"number, text, date, boolean… or list:<type>"},"diagnostics":{"type":"array","items":{"$ref":"#/components/schemas/FormulaDiagnosticDto"}},"samples":{"type":"array","items":{"$ref":"#/components/schemas/FormulaSampleDto"}},"hidden":{"type":"boolean","description":"True when the formula reads fields you may not see, so no values are shown"}},"required":["stored","display","resultType","diagnostics","samples","hidden"]},"FieldSequenceDto":{"type":"object","properties":{"periodKey":{"type":"string","description":"Counter period: \"-\" when numbering never restarts, else \"2026\" or \"2026-09\""},"nextValue":{"type":"number","description":"The number the next record will get"},"minimum":{"type":"number","description":"Lowest allowed next number: one past the highest in use"}},"required":["periodKey","nextValue","minimum"]},"SetFieldSequenceDto":{"type":"object","properties":{"nextValue":{"type":"number","description":"The number the next record should get"}},"required":["nextValue"]},"CreateRecordDto":{"type":"object","properties":{"tableId":{"type":"string","description":"Table ID"},"groupId":{"type":"string","description":"Group ID to assign the record to. Not needed for objects the app keeps itself (e.g. email templates)."},"data":{"type":"object","description":"Field values as key-value pairs"},"metadata":{"type":"object","description":"Optional metadata"}},"required":["tableId","data"]},"RecordDataDto":{"type":"object","properties":{"id":{"type":"string"},"data":{"type":"object","description":"Raw data keyed by field ID"},"metadata":{"$ref":"#/components/schemas/RecordMetadata"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"lastInteractionAt":{"type":"object","nullable":true},"lastSentAt":{"type":"object","nullable":true,"description":"When we last wrote to them, on any channel"},"lastReceivedAt":{"type":"object","nullable":true,"description":"When they last wrote to us, on any channel"},"isDeleted":{"type":"boolean","default":false},"tableId":{"type":"string"},"workspaceId":{"type":"string","description":"The organization the record is in. Set only when searching across organizations."},"groupIds":{"type":"array","items":{"type":"string"}},"relations":{"type":"object","description":"Populated relations - map of field ID to related records","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/RelatedRecordDto"}}},"users":{"type":"object","description":"Populated users - map of field ID to user info","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/UserInfoDto"}}},"createdBy":{"$ref":"#/components/schemas/UserInfoDto"}},"required":["id","data","createdAt","updatedAt","tableId","groupIds"]},"UpdateRecordDto":{"type":"object","properties":{"data":{"type":"object","description":"Field values to update (null to clear)"},"metadata":{"type":"object","description":"Optional metadata"},"comment":{"type":"string","description":"A note kept with this change in the record history, e.g. why a request was rejected. Some status moves require one."},"populateRelations":{"type":"boolean","default":true},"populateUsers":{"type":"boolean","default":true},"groupId":{"type":"string","description":"Current Group ID for permission check"}}},"RecordMovesDto":{"type":"object","properties":{"ruleId":{"type":"string","description":"The rule that decides these moves"},"fieldId":{"type":"string","description":"The status field the moves are for"},"moves":{"description":"Where the record can go from here","type":"array","items":{"$ref":"#/components/schemas/RecordMoveDto"}}},"required":["ruleId","fieldId","moves"]},"GetRecordsByIdsDto":{"type":"object","properties":{"recordIds":{"description":"Record IDs to fetch","maxItems":50,"type":"array","items":{"type":"string"}},"includeDeleted":{"type":"boolean","description":"If true, allows fetching soft-deleted records within the last 30 days (Bin).","default":false},"populateRelations":{"type":"boolean","description":"Whether to populate relations","default":true},"populateUsers":{"type":"boolean","description":"Whether to populate users","default":true}},"required":["recordIds"]},"PaginatedRecordActivityDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ActivityItemDto"}},"limit":{"type":"number"},"hasNextPage":{"type":"boolean"},"nextCursor":{"type":"string"}},"required":["items","limit","hasNextPage"]},"GetRelatedRecordIdsDto":{"type":"object","properties":{"upstream":{"type":"boolean","description":"Include upstream relations (other records that link to this record). Defaults to true."},"downstream":{"type":"boolean","description":"Include downstream relations (records this record links to). Defaults to true."}}},"RelatedRecordIdsDto":{"type":"object","properties":{"recordIds":{"type":"array","items":{"type":"string"}}},"required":["recordIds"]},"RecordLinkCountsDto":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/RecordLinkCountDto"}},"through":{"type":"array","items":{"$ref":"#/components/schemas/RecordThroughCountDto"}}},"required":["links","through"]},"GetLinkedThroughDto":{"type":"object","properties":{"tableId":{"type":"string","description":"The object to list: records of it linked to this record through one record in between (a company’s tasks through its contacts)."},"limit":{"type":"number","description":"Most records to return, 1–200. Defaults to 100."}},"required":["tableId"]},"LinkedThroughDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/LinkedThroughItemDto"}},"records":{"description":"The listed records.","type":"array","items":{"$ref":"#/components/schemas/RecordDataDto"}},"viaRecords":{"description":"The records in between, to name each path.","type":"array","items":{"$ref":"#/components/schemas/RecordDataDto"}},"total":{"type":"number","description":"How many such records there are in all."}},"required":["items","records","viaRecords","total"]},"CreateRecordsDto":{"type":"object","properties":{"tableId":{"type":"string","description":"Table ID"},"groupIds":{"description":"Group IDs to assign the records to","type":"array","items":{"type":"string"}},"records":{"description":"Array of records to create","type":"array","items":{"type":"object"}}},"required":["tableId","groupIds","records"]},"UpdateRecordsDto":{"type":"object","properties":{"groupId":{"type":"string","description":"Group ID for permission check"},"records":{"description":"Array of record updates","type":"array","items":{"type":"object"}}},"required":["records"]},"QueryRecordsByViewDto":{"type":"object","properties":{"groupId":{"type":"string","description":"Group ID to filter records"},"viewId":{"type":"string","description":"View ID to query"},"populateRelations":{"type":"boolean","description":"Whether to populate relations","default":true},"populateUsers":{"type":"boolean","description":"Whether to populate users","default":true},"limit":{"type":"number","description":"Maximum number of records to return (1-100)","minimum":1,"maximum":100},"cursor":{"type":"string","description":"Cursor for pagination (base64 encoded timestamp:id)"}},"required":["groupId","viewId"]},"PaginatedRecordsDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/RecordDataDto"}},"limit":{"type":"number","description":"Number of items per page"},"hasNextPage":{"type":"boolean","description":"Whether there is a next page"},"nextCursor":{"type":"string","description":"Cursor for next page (for cursor-based pagination)"},"totalCount":{"type":"number","description":"Total count of matching records"},"estimateCount":{"type":"boolean","description":"True when totalCount is planner-estimated instead of exact COUNT(*)","default":false},"workspaces":{"description":"The organizations searched, when searching across organizations","type":"array","items":{"$ref":"#/components/schemas/ScopedWorkspaceDto"}}},"required":["items","limit","hasNextPage"]},"SearchRecordsDto":{"type":"object","properties":{"tableId":{"type":"string","description":"Table ID to search within"},"bin":{"type":"boolean","description":"If true, searches only soft-deleted records from the last 30 days (Bin view)."},"groupIds":{"description":"Group IDs to filter search results (include). If undefined/null, searches all accessible groups. If empty, searches no groups.","type":"array","items":{"type":"string"}},"excludeGroupIds":{"description":"Group IDs to exclude from search results. Records belonging to ANY of these groups will be excluded.","type":"array","items":{"type":"string"}},"includeNoGroup":{"type":"boolean","description":"If true, includes records with no groups. If false, excludes them. If undefined, defaults to true unless specific groupIds are requested."},"semanticQuery":{"type":"string","description":"Semantic search query using vector embeddings (requires table.hasEmbeddings)"},"disableVector":{"type":"boolean","description":"If true, disables vector embedding search and keeps trigram/contains semantic fallback only."},"fieldFilters":{"description":"Structured field queries using GIN index","type":"array","items":{"$ref":"#/components/schemas/FieldQueryFilter"}},"workspaces":{"description":"Which organizations to read: 'this' (default), 'managed' (every client organization of this one you are a member of), or a list of ids (this one and/or its client organizations). Across organizations, objects and fields are matched by API name, and each result carries its workspaceId.","oneOf":[{"type":"string","enum":["this","managed"]},{"type":"array","items":{"type":"string"}}]},"sort":{"description":"Sort configuration (only for NUMBER or DATE fields)","allOf":[{"$ref":"#/components/schemas/SortConfig"}]},"cursor":{"type":"string","description":"Cursor for pagination (base64 encoded createdAt:id)"},"limit":{"type":"number","default":25,"maximum":100},"populateRelations":{"type":"boolean","default":true},"populateUsers":{"type":"boolean","default":true}},"required":["tableId"]},"SelectAllRecordIdsDto":{"type":"object","properties":{"tableId":{"type":"string","description":"Table ID to select within"},"bin":{"type":"boolean","description":"If true, selects only soft-deleted records from the last 30 days (Bin view)."},"groupIds":{"description":"Group IDs to include. If undefined/null, all accessible groups. If empty, no groups.","type":"array","items":{"type":"string"}},"excludeGroupIds":{"description":"Group IDs to exclude. Records in ANY of these groups are excluded.","type":"array","items":{"type":"string"}},"includeNoGroup":{"type":"boolean","description":"If true, includes records with no groups."},"fieldFilters":{"description":"Structured field queries using GIN index","type":"array","items":{"$ref":"#/components/schemas/FieldQueryFilter"}},"excludeExamples":{"type":"boolean","description":"If true, leaves out the example records templates added (for example [SAMPLE] contacts), so only real records are counted or picked."}},"required":["tableId"]},"RecordIdsResponseDto":{"type":"object","properties":{"recordIds":{"description":"Matching record IDs (ACL-scoped)","type":"array","items":{"type":"string"}},"totalCount":{"type":"number","description":"Total matching count"},"truncated":{"type":"boolean","description":"True if the match set exceeded the server cap and was truncated"}},"required":["recordIds","totalCount","truncated"]},"SuggestRecordFiltersDto":{"type":"object","properties":{"tableId":{"type":"string","description":"Table to find records in"},"text":{"type":"string","description":"Who or what to find, in plain words, e.g. \"CFOs at Danish companies, not customers yet\"","maxLength":500}},"required":["tableId","text"]},"SuggestedRecordFiltersDto":{"type":"object","properties":{"filters":{"description":"Filters as a view saves them","type":"array","items":{"$ref":"#/components/schemas/FieldQueryFilter"}},"dropped":{"type":"number","description":"Parts of the description the table's fields could not express"},"count":{"type":"number","description":"How many records the filters match"},"nearest":{"description":"When nobody matches all of it: the closest filters that match someone, and what they leave out","allOf":[{"$ref":"#/components/schemas/NearestRecordFiltersDto"}]}},"required":["filters","dropped","count"]},"CheckDuplicateGroupsDto":{"type":"object","properties":{"tableId":{"type":"string","description":"Table ID to scan for duplicate groups"},"groupIds":{"description":"Group IDs to include. If omitted, scans all groups visible to the current user.","type":"array","items":{"type":"string"}},"excludeGroupIds":{"description":"Group IDs to exclude from duplicate discovery.","type":"array","items":{"type":"string"}},"includeNoGroup":{"type":"boolean","description":"Include records with no groups when the member can view them."},"cursor":{"type":"string","description":"Opaque cursor for duplicate-group pagination."},"limit":{"type":"number","default":20,"maximum":100},"populateRelations":{"type":"boolean","default":true},"populateUsers":{"type":"boolean","default":true}},"required":["tableId"]},"PaginatedDuplicateGroupsDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/RecordDuplicateGroupDto"}},"limit":{"type":"number"},"hasNextPage":{"type":"boolean"},"nextCursor":{"type":"string"},"totalGroupCount":{"type":"number"},"affectedRecordCount":{"type":"number"},"exactGroupCount":{"type":"number"},"fuzzyGroupCount":{"type":"number"},"estimateCount":{"type":"boolean","default":false},"fromCache":{"type":"boolean","default":true},"scanning":{"type":"boolean","default":false},"cacheExpiresAt":{"format":"date-time","type":"string"}},"required":["items","limit","hasNextPage","totalGroupCount","affectedRecordCount","exactGroupCount","fuzzyGroupCount","fromCache","cacheExpiresAt"]},"FindRecordDto":{"type":"object","properties":{"tableId":{"type":"string","description":"Table ID to search within"},"fieldFilters":{"description":"Field filters to find the record","type":"array","items":{"$ref":"#/components/schemas/FieldQueryFilter"}},"populateRelations":{"type":"boolean","default":true},"populateUsers":{"type":"boolean","default":true}},"required":["tableId","fieldFilters"]},"AddGroupToRecordDto":{"type":"object","properties":{"groupId":{"type":"string","description":"Current Group ID for permission check"},"newGroupId":{"type":"string","description":"Group ID to add"}},"required":["newGroupId"]},"AddGroupToRecordsDto":{"type":"object","properties":{"groupId":{"type":"string","description":"Current Group ID for permission check"},"newGroupId":{"type":"string","description":"Group ID to add"},"recordIds":{"description":"Record IDs to update","type":"array","items":{"type":"string"}}},"required":["newGroupId","recordIds"]},"BatchOperationResponseDto":{"type":"object","properties":{"runId":{"type":"string","description":"Workflow run ID for tracking progress"},"status":{"type":"string","description":"Workflow run status"}},"required":["runId","status"]},"RemoveGroupFromRecordsDto":{"type":"object","properties":{"groupId":{"type":"string","description":"Group ID to remove and for permission check"},"recordIds":{"description":"Record IDs to update","type":"array","items":{"type":"string"}}},"required":["groupId","recordIds"]},"MergeRecordsDto":{"type":"object","properties":{"groupId":{"type":"string","description":"Group ID for permission check"},"recordIds":{"description":"Record IDs to merge (first record is target)","minItems":2,"type":"array","items":{"type":"string"}}},"required":["recordIds"]},"MultiChartQueryDto":{"type":"object","properties":{"charts":{"type":"array","items":{"$ref":"#/components/schemas/ChartQueryDto"}}},"required":["charts"]},"MultiChartDataDto":{"type":"object","properties":{"charts":{"type":"array","items":{"$ref":"#/components/schemas/ChartDataDto"}},"executionTimeMs":{"type":"number"}},"required":["charts","executionTimeMs"]},"DeleteRecordsDto":{"type":"object","properties":{"groupId":{"type":"string","description":"Group ID for permission check"},"recordIds":{"description":"Record IDs to delete","type":"array","items":{"type":"string"}}},"required":["recordIds"]},"UpdateFieldByIdsDto":{"type":"object","properties":{"groupId":{"type":"string","description":"Group ID for permission check"},"recordIds":{"description":"Record IDs to update","type":"array","items":{"type":"string"}},"data":{"type":"object","description":"Partial field patch to merge into every record (e.g. { fieldId: value }). Only these fields change."}},"required":["recordIds","data"]},"RestoreRecordsDto":{"type":"object","properties":{"recordIds":{"description":"Record IDs to restore from Bin","type":"array","items":{"type":"string"}}},"required":["recordIds"]},"IntegrationDto":{"type":"object","properties":{"id":{"type":"string","description":"Integration identifier"},"type":{"type":"string","description":"Integration type (e.g. notes, private_notes)"},"visibility":{"type":"string","description":"Integration visibility (private or shared)"},"ownerId":{"type":"string","description":"Owner user ID for private integrations"},"canManage":{"type":"boolean","description":"Whether the caller connected it and may change or disconnect it; false for a mailbox a teammate shared with them"},"metadata":{"type":"object"},"config":{"type":"object"}},"required":["id","type","visibility","canManage"]},"MessageDataDto":{"type":"object","properties":{"id":{"type":"string"},"integrationId":{"type":"string"},"integrationType":{"type":"string"},"content":{"type":"object"},"files":{"type":"array","items":{"$ref":"#/components/schemas/FileAttachment"}},"metadata":{"type":"object"},"searchableText":{"type":"string"},"timestamp":{"format":"date-time","type":"string"},"workspaceId":{"type":"string","description":"The organization the message is in. Set only when reading across organizations."},"createdAt":{"format":"date-time","type":"string"},"recordLinks":{"type":"array","items":{"$ref":"#/components/schemas/MessageRecordLinkDto"}},"userLinks":{"type":"array","items":{"$ref":"#/components/schemas/MessageUserLinkDto"}},"messageLinks":{"type":"array","items":{"$ref":"#/components/schemas/MessageMessageLinkDto"}}},"required":["id","integrationId","integrationType","content","files","timestamp","createdAt","recordLinks","userLinks","messageLinks"]},"QueryMessagesDto":{"type":"object","properties":{"workspaces":{"description":"Which organizations to read: 'this' (default), 'managed' (every client organization of this one you are a member of), or a list of ids (this one and/or its client organizations). Across organizations, objects and fields are matched by API name, and each result carries its workspaceId.","oneOf":[{"type":"string","enum":["this","managed"]},{"type":"array","items":{"type":"string"}}]},"recordFilter":{"description":"Only messages linked to records that match these filters or to the records linked to them, as on a record's page: emails with the people on deals in a given stage count as the deals' emails. Combines with recordLinkFilter kinds; across organizations the object and fields are matched by API name.","allOf":[{"$ref":"#/components/schemas/RecordFilterDto"}]},"integrationIds":{"description":"Exact integration IDs to filter by. Use this when a workflow already knows the concrete integration to query.","type":"array","items":{"type":"string"}},"integrationTypes":{"description":"Integration types to filter by (e.g. notes, private_notes). Only returns messages from accessible integrations.","type":"array","items":{"type":"string"}},"excludeIntegrationTypes":{"description":"Integration types to leave out (e.g. notes, notification), applied after integrationTypes.","type":"array","items":{"type":"string"}},"recordLinkFilter":{"description":"Filter by record links","allOf":[{"$ref":"#/components/schemas/RecordLinkFilter"}]},"userLinkFilter":{"description":"Filter by user links","allOf":[{"$ref":"#/components/schemas/UserLinkFilter"}]},"before":{"type":"string","description":"Only include messages before this ISO timestamp"},"after":{"type":"string","description":"Only include messages after this ISO timestamp"},"searchText":{"type":"string","description":"Search text to filter messages by searchableText field (case-insensitive partial matching)"},"match":{"type":"string","enum":["address","all"],"description":"How searchText matches. address (default): addresses and tags only. all: also messages whose meaning is close to it, through the embeddings (slower: it waits on the embedding provider)."},"searchableText":{"description":"Structured searchableText tokens. Each entry matches either key:value or a raw value token.","type":"array","items":{"$ref":"#/components/schemas/SearchableTextTokenFilter"}},"limit":{"type":"number","description":"Number of items per page (default: 20, max: 100)","minimum":1,"maximum":100},"populateRecords":{"type":"boolean","description":"Whether to populate record links (default: true)","default":true},"populateUsers":{"type":"boolean","description":"Whether to populate user links (default: true)","default":true},"populateMessages":{"type":"boolean","description":"Whether to populate message links (default: true)","default":true},"sort":{"description":"Sort order by message timestamp (default: desc)","default":"desc","allOf":[{"$ref":"#/components/schemas/MessageQuerySortOrder"}]},"cursor":{"type":"string","description":"Cursor for pagination (base64 encoded timestamp:id). If provided, page parameter is ignored."},"direction":{"type":"string","description":"Only messages that came in (inbound) or went out (outbound). With onePerConversation it says who wrote last.","enum":["inbound","outbound"]},"excludeBulk":{"type":"boolean","description":"Leave out bulk mail: newsletters, mailing lists and automatic messages, as their headers mark them."},"onePerConversation":{"type":"boolean","description":"Only the newest message of each conversation or email thread."},"sentToMailbox":{"type":"boolean","description":"Only emails sent to the mailbox they arrived in, in To or Cc. Leaves out copies a mailbox only got in Bcc or through a forward rule. Other channels are kept."},"fromOutsideTeam":{"type":"boolean","description":"Leave out messages a teammate wrote: from a workspace member's address or one of its connected mailboxes."}}},"PaginatedMessagesDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MessageDataDto"}},"total":{"type":"number","description":"Total number of items matching the query (may be approximate for cursor-based pagination)"},"page":{"type":"number","description":"Current page number (for page-based pagination)"},"limit":{"type":"number","description":"Number of items per page"},"totalPages":{"type":"number","description":"Total number of pages (for page-based pagination)"},"hasNextPage":{"type":"boolean","description":"Whether there is a next page"},"hasPreviousPage":{"type":"boolean","description":"Whether there is a previous page (for page-based pagination)"},"nextCursor":{"type":"string","description":"Cursor for next page (for cursor-based pagination)"},"prevCursor":{"type":"string","description":"Cursor for previous page (for cursor-based pagination)"},"workspaces":{"description":"The organizations read, when reading across organizations","type":"array","items":{"$ref":"#/components/schemas/ScopedWorkspaceDto"}}},"required":["items","limit","hasNextPage"]},"SemanticSearchDto":{"type":"object","properties":{"workspaces":{"description":"Which organizations to read: 'this' (default), 'managed' (every client organization of this one you are a member of), or a list of ids (this one and/or its client organizations). Across organizations, objects and fields are matched by API name, and each result carries its workspaceId.","oneOf":[{"type":"string","enum":["this","managed"]},{"type":"array","items":{"type":"string"}}]},"recordFilter":{"description":"Only messages linked to records that match these filters or to the records linked to them, as on a record's page: emails with the people on deals in a given stage count as the deals' emails. Combines with recordLinkFilter kinds; across organizations the object and fields are matched by API name.","allOf":[{"$ref":"#/components/schemas/RecordFilterDto"}]},"integrationIds":{"description":"Exact integration IDs to filter by. Use this when a workflow already knows the concrete integration to query.","type":"array","items":{"type":"string"}},"integrationTypes":{"description":"Integration types to filter by (e.g. notes, private_notes). Only returns messages from accessible integrations.","type":"array","items":{"type":"string"}},"excludeIntegrationTypes":{"description":"Integration types to leave out (e.g. notes, notification), applied after integrationTypes.","type":"array","items":{"type":"string"}},"recordLinkFilter":{"description":"Filter by record links","allOf":[{"$ref":"#/components/schemas/RecordLinkFilter"}]},"userLinkFilter":{"description":"Filter by user links","allOf":[{"$ref":"#/components/schemas/UserLinkFilter"}]},"before":{"type":"string","description":"Only include messages before this ISO timestamp"},"after":{"type":"string","description":"Only include messages after this ISO timestamp"},"searchText":{"type":"string","description":"Search text to filter messages by searchableText field (case-insensitive partial matching)"},"match":{"type":"string","enum":["address","all"],"description":"How searchText matches. address (default): addresses and tags only. all: also messages whose meaning is close to it, through the embeddings (slower: it waits on the embedding provider)."},"searchableText":{"description":"Structured searchableText tokens. Each entry matches either key:value or a raw value token.","type":"array","items":{"$ref":"#/components/schemas/SearchableTextTokenFilter"}},"limit":{"type":"number","description":"Number of items per page (default: 20, max: 100)","minimum":1,"maximum":100},"populateRecords":{"type":"boolean","description":"Whether to populate record links (default: true)","default":true},"populateUsers":{"type":"boolean","description":"Whether to populate user links (default: true)","default":true},"populateMessages":{"type":"boolean","description":"Whether to populate message links (default: true)","default":true},"query":{"type":"string","description":"Search query text"},"sort":{"description":"Re-order the semantically matched results by message timestamp. Only re-orders the matches the query already selected — it does not widen the search. Omit to keep relevance order.","allOf":[{"$ref":"#/components/schemas/MessageQuerySortOrder"}]}},"required":["query"]},"MessageEmbeddingsDto":{"type":"object","properties":{"id":{"type":"string"},"chunkIndex":{"type":"number"},"text":{"type":"string"},"metadata":{"type":"object"},"isMainContent":{"type":"boolean"},"fileId":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"message":{"$ref":"#/components/schemas/MessageDataDto"}},"required":["id","chunkIndex","text","isMainContent","createdAt","updatedAt","message"]},"MessageLinkStatsQueryDto":{"type":"object","properties":{"workspaces":{"description":"Which organizations to read: 'this' (default), 'managed' (every client organization of this one you are a member of), or a list of ids (this one and/or its client organizations). Across organizations, objects and fields are matched by API name, and each result carries its workspaceId.","oneOf":[{"type":"string","enum":["this","managed"]},{"type":"array","items":{"type":"string"}}]},"recordFilter":{"description":"Only messages linked to records that match these filters or to the records linked to them, as on a record's page: emails with the people on deals in a given stage count as the deals' emails. Combines with recordLinkFilter kinds; across organizations the object and fields are matched by API name.","allOf":[{"$ref":"#/components/schemas/RecordFilterDto"}]},"integrationIds":{"description":"Exact integration IDs to filter by. Use this when a workflow already knows the concrete integration to query.","type":"array","items":{"type":"string"}},"integrationTypes":{"description":"Integration types to filter by (e.g. notes, private_notes). Only returns messages from accessible integrations.","type":"array","items":{"type":"string"}},"excludeIntegrationTypes":{"description":"Integration types to leave out (e.g. notes, notification), applied after integrationTypes.","type":"array","items":{"type":"string"}},"recordLinkFilter":{"description":"Filter by record links","allOf":[{"$ref":"#/components/schemas/RecordLinkFilter"}]},"userLinkFilter":{"description":"Filter by user links","allOf":[{"$ref":"#/components/schemas/UserLinkFilter"}]},"before":{"type":"string","description":"Only include messages before this ISO timestamp"},"after":{"type":"string","description":"Only include messages after this ISO timestamp"},"searchText":{"type":"string","description":"Search text to filter messages by searchableText field (case-insensitive partial matching)"},"match":{"type":"string","enum":["address","all"],"description":"How searchText matches. address (default): addresses and tags only. all: also messages whose meaning is close to it, through the embeddings (slower: it waits on the embedding provider)."},"searchableText":{"description":"Structured searchableText tokens. Each entry matches either key:value or a raw value token.","type":"array","items":{"$ref":"#/components/schemas/SearchableTextTokenFilter"}},"limit":{"type":"number","description":"Number of items per page (default: 20, max: 100)","minimum":1,"maximum":100},"populateRecords":{"type":"boolean","description":"Whether to populate record links (default: true)","default":true},"populateUsers":{"type":"boolean","description":"Whether to populate user links (default: true)","default":true},"populateMessages":{"type":"boolean","description":"Whether to populate message links (default: true)","default":true},"kinds":{"description":"Link kinds to count (e.g. mentioned_in)","type":"array","items":{"type":"string"}},"recordId":{"type":"string","description":"Record ID to aggregate by"},"userId":{"type":"string","description":"User ID to aggregate by"}},"required":["kinds"]},"MessageLinkStatsDto":{"type":"object","properties":{"kinds":{"description":"Link kind(s) used for counting","type":"array","items":{"type":"string"}},"count":{"type":"number","description":"Number of messages matching the filters"}},"required":["kinds","count"]},"MultipleMessageLinkStatsQueryDto":{"type":"object","properties":{"stats":{"description":"Array of statistics queries","type":"array","items":{"$ref":"#/components/schemas/MultipleMessageLinkStatsItemDto"}}},"required":["stats"]},"MultipleMessageLinkStatsDto":{"type":"object","properties":{"stats":{"type":"array","items":{"$ref":"#/components/schemas/MultipleMessageLinkStatsResultDto"}}},"required":["stats"]},"PublicWorkflowSummaryDto":{"type":"object","properties":{"slug":{"type":"string","description":"Slug used in the run URL"},"workflowName":{"type":"string"},"version":{"type":"string"},"displayName":{"type":"string"},"description":{"type":"string"},"inputSchema":{"type":"object","description":"JSON Schema of the request body for the run endpoint","additionalProperties":true},"outputSchema":{"type":"object","description":"JSON Schema of the workflow output (sync mode response)","additionalProperties":true}},"required":["slug","workflowName","version"]},"RunPublicWorkflowResponseDto":{"type":"object","properties":{"runId":{"type":"string"},"status":{"type":"string","description":"Run status. `completed`/`failed`/`cancelled` are terminal; anything else means the run is still executing (poll the status endpoint)."},"output":{"type":"object","description":"Workflow output (present when completed in sync mode)","additionalProperties":true},"error":{"type":"string","description":"Error message for failed runs"},"pollUrl":{"type":"string","description":"Poll URL for async runs"}},"required":["runId","status"]},"WorkflowsOpenApiDocumentDto":{"type":"object","properties":{"openapi":{"type":"string","example":"3.0.3"},"info":{"$ref":"#/components/schemas/WorkflowsOpenApiInfoDto"},"servers":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowsOpenApiServerDto"}},"components":{"type":"object","description":"How to sign in: send your API key in the `x-api-key` header","additionalProperties":true},"paths":{"type":"object","description":"One entry for each published workflow: the address that runs it, what to send and what comes back","additionalProperties":true}},"required":["openapi","info","servers","components","paths"]},"TemplateCatalogEntry":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"number"},"requires":{"type":"array","items":{"type":"string"}},"listing":{"$ref":"#/components/schemas/TemplateListing"},"installed":{"type":"boolean"},"installedVersion":{"type":"number"},"updateAvailable":{"type":"boolean"},"missingRequirements":{"type":"array","items":{"type":"string"}},"recommended":{"type":"boolean","description":"Its onboarding industry is suggested."},"preview":{"$ref":"#/components/schemas/TemplatePreview"}},"required":["name","version","requires","listing","installed","updateAvailable","missingRequirements","recommended","preview"]},"WebsiteBuilderPromptDto":{"type":"object","properties":{"api":{"type":"string","description":"The API address"},"app":{"type":"string","description":"The app address"},"pieces":{"type":"array","items":{"$ref":"#/components/schemas/WebsitePieceDto"}}},"required":["api","app","pieces"]},"ExampleDataStatus":{"type":"object","properties":{"examples":{"type":"number","description":"Example records still in the workspace."},"ownRecords":{"type":"number","description":"The team's own records in the objects that hold examples."}},"required":["examples","ownRecords"]},"RemovedExampleData":{"type":"object","properties":{"removed":{"type":"number","description":"Example records moved to the Deleted Bin."}},"required":["removed"]},"CopyToWorkspaceDto":{"type":"object","properties":{"targetWorkspaceId":{"type":"string","description":"The organization to copy into. You must be an admin of both."},"selection":{"$ref":"#/components/schemas/PackageSelectionDto"}},"required":["targetWorkspaceId","selection"]},"CopyPlan":{"type":"object","properties":{"template":{"type":"string"},"version":{"type":"number"},"missingRequirements":{"type":"array","items":{"type":"string"}},"installed":{"type":"boolean"},"installedVersion":{"type":"number"},"tables":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePlanTable"}},"conflicts":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePlanConflict"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePlanGroup"}},"sampleRecords":{"type":"number","description":"Preview: example records on offer. Install: example records actually added."},"sampleIssues":{"description":"Example records refused when they were added (by this install, or the one that added them), e.g. by a table rule. Empty when all went in.","type":"array","items":{"$ref":"#/components/schemas/TemplateSampleIssue"}},"rules":{"description":"Rules on objects the workspace already has that installing adds or updates, and built-in rules kept as the team has them. New objects' rules aren't listed.","type":"array","items":{"$ref":"#/components/schemas/TemplatePlanRule"}},"records":{"description":"Copies only: forms, email and document templates.","type":"array","items":{"$ref":"#/components/schemas/TemplatePlanRecord"}},"workflows":{"description":"Copies only: workflows, added switched off.","type":"array","items":{"$ref":"#/components/schemas/TemplatePlanWorkflow"}},"warnings":{"description":"Copies only: references that can't be found where the copy goes, so they are cleared.","type":"array","items":{"$ref":"#/components/schemas/TemplatePlanWarning"}},"waitingOn":{"description":"Features the template has pieces for that are off in this workspace (e.g. meetings for its booking pages). Each piece is added once its feature is switched on.","type":"array","items":{"type":"string"}},"startsOff":{"type":"array","description":"Pieces the template adds switched off (its portals, booking pages, website chats), for an admin to turn on afterwards.","items":{"type":"string","enum":["forms","emailTemplates","documents","bookingPages","portals","webAgents","dashboards","workflows","other"]}},"notFound":{"description":"Selected names that matched nothing here.","type":"array","items":{"type":"string"}}},"required":["template","version","missingRequirements","installed","tables","conflicts","groups","sampleRecords","sampleIssues","rules","waitingOn","startsOff","notFound"]},"TemplatePlan":{"type":"object","properties":{"template":{"type":"string"},"version":{"type":"number"},"missingRequirements":{"type":"array","items":{"type":"string"}},"installed":{"type":"boolean"},"installedVersion":{"type":"number"},"tables":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePlanTable"}},"conflicts":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePlanConflict"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePlanGroup"}},"sampleRecords":{"type":"number","description":"Preview: example records on offer. Install: example records actually added."},"sampleIssues":{"description":"Example records refused when they were added (by this install, or the one that added them), e.g. by a table rule. Empty when all went in.","type":"array","items":{"$ref":"#/components/schemas/TemplateSampleIssue"}},"rules":{"description":"Rules on objects the workspace already has that installing adds or updates, and built-in rules kept as the team has them. New objects' rules aren't listed.","type":"array","items":{"$ref":"#/components/schemas/TemplatePlanRule"}},"records":{"description":"Copies only: forms, email and document templates.","type":"array","items":{"$ref":"#/components/schemas/TemplatePlanRecord"}},"workflows":{"description":"Copies only: workflows, added switched off.","type":"array","items":{"$ref":"#/components/schemas/TemplatePlanWorkflow"}},"warnings":{"description":"Copies only: references that can't be found where the copy goes, so they are cleared.","type":"array","items":{"$ref":"#/components/schemas/TemplatePlanWarning"}},"waitingOn":{"description":"Features the template has pieces for that are off in this workspace (e.g. meetings for its booking pages). Each piece is added once its feature is switched on.","type":"array","items":{"type":"string"}},"startsOff":{"type":"array","description":"Pieces the template adds switched off (its portals, booking pages, website chats), for an admin to turn on afterwards.","items":{"type":"string","enum":["forms","emailTemplates","documents","bookingPages","portals","webAgents","dashboards","workflows","other"]}}},"required":["template","version","missingRequirements","installed","tables","conflicts","groups","sampleRecords","sampleIssues","rules","waitingOn","startsOff"]},"InstallTemplateDto":{"type":"object","properties":{"samples":{"type":"boolean","default":false}}},"SeedTemplateDto":{"type":"object","properties":{"workspaceName":{"type":"string","description":"The new organization’s name."},"name":{"type":"string","description":"Same as workspaceName."},"provider":{"description":"Which product it is for. Taken from `from.workspaceId` or `managedBy` when not given.","allOf":[{"$ref":"#/components/schemas/WorkspaceProvider"}]},"from":{"$ref":"#/components/schemas/CreateWorkspaceFromDto"},"people":{"description":"People to invite, each with their role.","type":"array","items":{"$ref":"#/components/schemas/NewWorkspacePersonDto"}},"managedBy":{"type":"string","description":"Create it as a client organization of this one. You must be its admin."},"sampleData":{"type":"boolean","default":true,"description":"Whether to seed sample data"},"preferences":{"$ref":"#/components/schemas/WorkspacePreferenceDto"}},"required":["sampleData"]},"Workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"metadata":{"$ref":"#/components/schemas/WorkspaceMetadata"},"isDeleted":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"plugins":{"type":"array","items":{"type":"string"}},"managedBy":{"type":"string","description":"Id of the organization this one is managed from."}},"required":["id","name","isDeleted","createdAt","updatedAt","plugins"]},"WorkspaceWorkflowSummaryDto":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"workflowName":{"type":"string"},"version":{"type":"string"},"displayName":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"source":{"type":"string","enum":["platform","installed","custom"]},"triggerType":{"type":"string","enum":["manual","cron","event"]},"enabled":{"type":"boolean"},"nodeCount":{"type":"number"},"canChange":{"type":"boolean","description":"Whether the requester may edit, switch on/off or delete it"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","workspaceId","workflowName","version","source","triggerType","enabled","nodeCount","createdAt","updatedAt"]},"WorkspaceWorkflowDetailDto":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"workflowName":{"type":"string"},"version":{"type":"string"},"displayName":{"type":"string"},"description":{"type":"string"},"source":{"type":"string","enum":["platform","installed","custom"]},"sourceTemplateId":{"type":"string"},"triggerType":{"type":"string","enum":["manual","cron","event"]},"enabled":{"type":"boolean"},"definition":{"type":"object","description":"Full workspace-local definition graph (JSONB)"},"definitionHash":{"type":"string"},"canChange":{"type":"boolean","description":"Whether the requester may edit, switch on/off or delete it: its author or an admin"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","workspaceId","workflowName","version","source","triggerType","enabled","definition","definitionHash","canChange","createdAt","updatedAt"]},"SetWorkflowExposureDto":{"type":"object","properties":{"apiEnabled":{"type":"boolean","description":"Publish the workflow as a typed public API endpoint"},"apiSlug":{"type":"string","description":"URL slug for the published endpoint (required when enabling; unique per workspace)"},"mcpEnabled":{"type":"boolean","description":"Additionally expose the workflow as a per-workspace MCP tool"}}},"WorkflowExposureDto":{"type":"object","properties":{"workflowName":{"type":"string"},"version":{"type":"string"},"apiEnabled":{"type":"boolean"},"apiSlug":{"type":"string"},"mcpEnabled":{"type":"boolean"},"webhookSlug":{"type":"string","description":"Webhook slug when the workflow has a webhook trigger"},"webhookSecret":{"type":"string","description":"Newly rotated webhook signing secret — only returned once, on rotation"}},"required":["workflowName","version","apiEnabled","mcpEnabled"]},"WorkflowErrorDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/WorkflowErrorCode"}]},"message":{"type":"string"}},"required":["code","message"]},"StartWorkflowRunDto":{"type":"object","properties":{"workflowName":{"type":"string","description":"Name of the workflow to run, as returned by listWorkspaceWorkflows."},"workflowVersion":{"type":"string","description":"Version to run. Defaults to the installed version."},"input":{"type":"object","description":"Input values for the workflow, as a JSON object."},"metadata":{"type":"object"},"userId":{"type":"string","description":"Override user id for system starts"},"dryRun":{"type":"boolean","description":"Start a test run: nothing leaves the app. Steps that send, notify, opt people out, call outside systems, start or stop other runs, or wait on a timer or on someone else complete at once with a stand-in output (marked `__testRun: \"skipped\"`); a step waiting for a person still pauses but tells nobody; connector calls return a placeholder. Steps that change records inside the app still run. Give a node a made-up output with `metadata.stepMocks: { [nodeId]: output }`."},"definition":{"type":"object","description":"A workflow definition to test without saving it. Only with `dryRun: true`. It is prepared exactly as saving it would (a sequence gets its fill-ins) and is never stored; `workflowName` can then be any name, e.g. the definition's own."}},"required":["workflowName"]},"StartWorkflowRunResponseDto":{"type":"object","properties":{"runId":{"type":"string","description":"Identifier to poll with getWorkflowRun."},"status":{"type":"string","description":"Run status: pending, running, waiting_timer, waiting_external, completed, failed or cancelled."}},"required":["runId","status"]},"QueryWorkflowRunsDto":{"type":"object","properties":{"workflowName":{"type":"string","description":"Only runs of this workflow."},"workflowNames":{"description":"Workflow names for multi-workflow listing","type":"array","items":{"type":"string"}},"parentRunId":{"type":"string","description":"Filter runs by a single parent run id"},"parentRunIds":{"description":"Parent run ids for multi-parent fan-in listing","type":"array","items":{"type":"string"}},"userId":{"type":"string"},"status":{"description":"Filter runs by status","allOf":[{"$ref":"#/components/schemas/WorkflowRunStatus"}]},"currentNodeIds":{"description":"Only runs on one of these nodes now (or that ended there).","type":"array","items":{"type":"string"}},"recordIds":{"description":"Only runs about one of these records (`input.recordId`).","type":"array","items":{"type":"string"}},"limit":{"type":"number","default":50,"minimum":1,"maximum":200},"offset":{"type":"number","default":0,"minimum":0}}},"WorkflowRunViewDto":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"userId":{"type":"string"},"parentRunId":{"type":"string"},"workflowName":{"type":"string"},"workflowVersion":{"type":"string"},"displayName":{"type":"string"},"outcome":{"type":"string"},"status":{"type":"string"},"pausedAt":{"type":"string","description":"When the run was paused; absent while it runs. A paused run takes no next step."},"wakeAt":{"type":"string","description":"When a waiting run next goes on by itself (a pause ends or a wait times out). Listed runs only."},"currentNodeId":{"type":"string"},"input":{"type":"object"},"output":{"type":"object"},"state":{"type":"object"},"metadata":{"type":"object"},"lastError":{"type":"string"},"dryRun":{"type":"boolean"},"createdAt":{"type":"string"},"startedAt":{"type":"string"},"completedAt":{"type":"string"}},"required":["id","workflowName","workflowVersion","status","createdAt"]},"CancelWorkflowRunResponseDto":{"type":"object","properties":{"cancelled":{"type":"boolean","description":"True once the stop request was accepted."}},"required":["cancelled"]},"PauseWorkflowRunResponseDto":{"type":"object","properties":{"paused":{"type":"number","description":"How many runs are paused: this one and every run it started."}},"required":["paused"]},"ResumeWorkflowRunResponseDto":{"type":"object","properties":{"resumed":{"type":"number","description":"How many paused runs went on again."}},"required":["resumed"]},"MailboxCalendarDto":{"type":"object","properties":{"id":{"type":"string","description":"Provider calendar identifier"},"name":{"type":"string","description":"Calendar display name"},"color":{"type":"string","description":"Calendar color"},"canEdit":{"type":"boolean","description":"Whether current user can edit"},"isPrimary":{"type":"boolean","description":"Whether this is the primary calendar"},"timeZone":{"type":"string","description":"Calendar timezone"}},"required":["id","name"]},"CreateCalendarEventDto":{"type":"object","properties":{"integrationId":{"type":"string","description":"Integration ID"},"calendarId":{"type":"string","description":"Calendar ID"},"title":{"type":"string","description":"Event title"},"body":{"type":"string","description":"Event body/description"},"location":{"type":"string","description":"Event location"},"start":{"description":"Start date and time","allOf":[{"$ref":"#/components/schemas/CalendarDateTimeInputDto"}]},"end":{"description":"End date and time","allOf":[{"$ref":"#/components/schemas/CalendarDateTimeInputDto"}]},"conference":{"description":"Conference details","allOf":[{"$ref":"#/components/schemas/CalendarConferenceInputDto"}]},"attendees":{"description":"List of attendees","type":"array","items":{"$ref":"#/components/schemas/CalendarAttendeeInputDto"}}},"required":["integrationId","title","start","end"]},"CalendarEventDto":{"type":"object","properties":{"id":{"type":"string","description":"The calendar provider's event id"},"title":{"type":"string","description":"Event title"},"start":{"type":"string","description":"Start, ISO 8601"},"end":{"type":"string","description":"End, ISO 8601"},"startTimeZone":{"type":"string","description":"Time zone of the start"},"endTimeZone":{"type":"string","description":"Time zone of the end"},"attendees":{"description":"Attendee email addresses","type":"array","items":{"type":"string"}},"organizer":{"type":"string","description":"Organizer email address"},"meetingLink":{"type":"string","description":"Video call link, when the event has one"},"description":{"type":"string","description":"Event description"},"location":{"type":"string","description":"Event location"},"isCancelled":{"type":"boolean","description":"True when the event is cancelled"}},"required":["id","title","start","end","attendees"]},"UpdateCalendarEventDto":{"type":"object","properties":{"integrationId":{"type":"string","description":"Integration ID"},"calendarId":{"type":"string","description":"Calendar ID"},"title":{"type":"string","description":"Event title"},"body":{"type":"string","description":"Event body/description"},"location":{"type":"string","description":"Event location"},"start":{"description":"Start date and time","allOf":[{"$ref":"#/components/schemas/CalendarDateTimeInputDto"}]},"end":{"description":"End date and time","allOf":[{"$ref":"#/components/schemas/CalendarDateTimeInputDto"}]},"conference":{"description":"Conference details","allOf":[{"$ref":"#/components/schemas/CalendarConferenceInputDto"}]},"attendees":{"description":"List of attendees","type":"array","items":{"$ref":"#/components/schemas/CalendarAttendeeInputDto"}}}},"DeleteCalendarEventDto":{"type":"object","properties":{"integrationId":{"type":"string","description":"Integration ID"},"calendarId":{"type":"string","description":"Calendar ID"}}},"CalendarEventCancelledDto":{"type":"object","properties":{"success":{"type":"boolean","example":true}},"required":["success"]},"EmailMailboxListDto":{"type":"object","properties":{"mailboxes":{"description":"Connected mailboxes.","type":"array","items":{"$ref":"#/components/schemas/EmailMailboxDto"}},"defaultIntegrationId":{"type":"string","description":"Mailbox used when a send request omits `integrationId`. Absent when no mailbox is connected."}},"required":["mailboxes"]},"EmailTemplateListDto":{"type":"object","properties":{"templates":{"type":"array","items":{"$ref":"#/components/schemas/EmailTemplateDto"}},"count":{"type":"number","description":"Number of templates returned."}},"required":["templates","count"]},"CreateEmailTemplateDto":{"type":"object","properties":{"title":{"type":"string","description":"Internal name used to find the template later.","example":"Q3 follow-up"},"subject":{"type":"string","description":"Subject line. Use `{{field_api_name}}` to insert a value from each recipient’s record — call listEmailTemplateVariables to see which names are valid.","example":"Following up, {{first_name}}"},"body":{"type":"string","description":"HTML body. Supports the same `{{field_api_name}}` placeholders as the subject. An unknown placeholder renders as empty text.","example":"<p>Hi {{first_name}}, do you have 15 minutes this week?</p>"},"tableId":{"type":"string","description":"Object whose records this template will be sent to, e.g. the contacts object. Determines which `{{placeholders}}` are valid."},"cc":{"description":"Addresses to copy on every send.","type":"array","items":{"type":"string"}},"bcc":{"description":"Addresses to blind-copy on every send.","type":"array","items":{"type":"string"}}},"required":["title","subject","body","tableId"]},"EmailTemplateDto":{"type":"object","properties":{"templateId":{"type":"string","description":"Template identifier."},"title":{"type":"string","description":"Internal name used to find the template."},"subject":{"type":"string","description":"Subject line. May contain `{{field_api_name}}` placeholders that are filled per recipient."},"body":{"type":"string","description":"HTML body. May contain `{{field_api_name}}` placeholders that are filled per recipient."},"tableId":{"type":"string","description":"Object whose records this template is written for, e.g. the contacts object. Placeholders resolve against this object’s fields."},"cc":{"description":"Addresses copied on every send.","type":"array","items":{"type":"string"}},"bcc":{"description":"Addresses blind-copied on every send.","type":"array","items":{"type":"string"}}},"required":["templateId","title","subject","body"]},"EmailTemplateVariableListDto":{"type":"object","properties":{"variables":{"description":"Placeholders that can be used in a template aimed at this object.","type":"array","items":{"$ref":"#/components/schemas/EmailTemplateVariableDto"}}},"required":["variables"]},"UpdateEmailTemplateDto":{"type":"object","properties":{"title":{"type":"string","description":"New internal name for the template."},"subject":{"type":"string","description":"Replacement subject line."},"body":{"type":"string","description":"Replacement HTML body."},"cc":{"description":"Replacement list of copied addresses.","type":"array","items":{"type":"string"}},"bcc":{"description":"Replacement list of blind-copied addresses.","type":"array","items":{"type":"string"}}}},"SendEmailDto":{"type":"object","properties":{"templateId":{"type":"string","description":"Template to send. Create one first with createEmailTemplate."},"recordId":{"type":"string","description":"Record to send to, e.g. a contact. Its email field supplies the recipient address and its values fill the template placeholders."},"integrationId":{"type":"string","description":"Mailbox to send from. Defaults to the caller’s first connected mailbox."}},"required":["templateId","recordId"]},"EmailCampaignDto":{"type":"object","properties":{"campaignId":{"type":"string","description":"Campaign identifier. Pass to getEmailCampaign to check progress or cancelEmailCampaign to stop it."},"status":{"type":"string","description":"Progress of the campaign as a whole: `pending` or `running` while it is being handed over, `waiting_timer` while it waits, then `completed`, `failed` or `cancelled`. Sending is asynchronous, so a fresh campaign starts as `pending`. Keep polling until it is `completed`, `failed` or `cancelled`."},"recipientCount":{"type":"number","description":"How many records the campaign was started for."},"pollUrl":{"type":"string","description":"Relative URL to poll for progress.","example":"/openapi/email/campaigns/run_123"}},"required":["campaignId","status","recipientCount","pollUrl"]},"SendEmailCampaignDto":{"type":"object","properties":{"templateId":{"type":"string","description":"Template sent to every recipient."},"recordIds":{"description":"Records to send to, e.g. contacts. Each one receives its own copy with placeholders filled from that record.","maxItems":1000,"type":"array","items":{"type":"string"}},"integrationId":{"type":"string","description":"Mailbox to send from. Defaults to the caller’s first connected mailbox."},"displayName":{"type":"string","description":"Name for this campaign in the app’s activity views. Defaults to the template title."},"sendWindow":{"description":"Restrict delivery to certain hours and days. Messages outside the window wait until it reopens.","allOf":[{"$ref":"#/components/schemas/EmailSendWindowDto"}]},"unsubscribeLink":{"type":"boolean","description":"End each email with an unsubscribe link (good for newsletters). A recipient who clicks it is marked as opted out (`email_opt_out`) and gets no further campaign emails. Off by default."}},"required":["templateId","recordIds"]},"CreateNoteDto":{"type":"object","properties":{"content":{"description":"Note content","allOf":[{"$ref":"#/components/schemas/NoteContentDto"}]},"isPrivate":{"type":"boolean","description":"Whether this is a private note"},"replyToMessageId":{"type":"string","description":"Reply to another message ID"},"attachedRecordIds":{"description":"Record IDs to attach to this note","type":"array","items":{"type":"string"}},"files":{"description":"Optional file attachments","type":"array","items":{"$ref":"#/components/schemas/FileAttachment"}}},"required":["content","isPrivate"]},"UpdateNoteDto":{"type":"object","properties":{"content":{"description":"Note content","allOf":[{"$ref":"#/components/schemas/NoteContentDto"}]},"files":{"description":"Updated file attachments (replaces existing list)","type":"array","items":{"$ref":"#/components/schemas/FileAttachment"}}},"required":["content"]},"ReminderListDto":{"type":"object","properties":{"reminders":{"type":"array","items":{"$ref":"#/components/schemas/ReminderDto"}},"count":{"type":"number"},"tableId":{"type":"string","description":"Id of the object reminders are stored in. Live record changes with this table id are reminder changes."}},"required":["reminders","count"]},"CreateReminderDto":{"type":"object","properties":{"title":{"type":"string","description":"What the reminder says when it arrives."},"dueAt":{"type":"string","description":"When a one-time reminder fires, as an ISO 8601 instant. Omit for a repeating reminder."},"cadence":{"description":"How often a repeating reminder fires.","allOf":[{"$ref":"#/components/schemas/ReminderCadence"}]},"time":{"type":"string","description":"Local time a repeating reminder fires, as HH:MM."},"weekday":{"type":"number","description":"0 = Sunday through 6 = Saturday."},"monthDay":{"type":"number","description":"Day of the month, for a monthly reminder."},"timezone":{"type":"string","description":"IANA timezone the schedule is expressed in."},"visibility":{"description":"private: only you are notified. public: every member of the workspace is.","allOf":[{"$ref":"#/components/schemas/ReminderVisibility"}]},"recipientUserIds":{"description":"Selected workspace members to notify. Supplying this makes the audience selected, rather than private or public.","type":"array","items":{"type":"string"}},"recordId":{"type":"string","description":"Record this reminder is about."},"recordTableId":{"type":"string","description":"Table the linked record belongs to."},"recordLabel":{"type":"string","description":"How the linked record reads in the reminder list."}},"required":["title"]},"ReminderDto":{"type":"object","properties":{"id":{"type":"string","description":"The reminder id. It stays the same when the reminder is edited; ids from before reminders were records are still accepted."},"kind":{"allOf":[{"$ref":"#/components/schemas/ReminderKind"}]},"title":{"type":"string"},"status":{"allOf":[{"$ref":"#/components/schemas/ReminderStatus"}]},"visibility":{"allOf":[{"$ref":"#/components/schemas/ReminderVisibility"}]},"owner":{"type":"string","description":"User id of whoever created it."},"recipientUserIds":{"description":"Who gets notified.","type":"array","items":{"type":"string"}},"dueAt":{"type":"string"},"cadence":{"allOf":[{"$ref":"#/components/schemas/ReminderCadence"}]},"cron":{"type":"string"},"scheduleLabel":{"type":"string"},"timezone":{"type":"string"},"recordId":{"type":"string"},"recordTableId":{"type":"string"},"recordLabel":{"type":"string"},"enabled":{"type":"boolean"},"workflowVersion":{"type":"string"},"createdAt":{"type":"string","description":"When the reminder was created."},"completedAt":{"type":"string","description":"When the one-time reminder was completed."}},"required":["id","kind","title","status"]},"UpdateReminderDto":{"type":"object","properties":{"title":{"type":"string","description":"New reminder text."},"cadence":{"description":"New cadence for a repeating reminder, edited in place.","allOf":[{"$ref":"#/components/schemas/ReminderCadence"}]},"time":{"type":"string","description":"New local time, as HH:MM."},"weekday":{"type":"number"},"monthDay":{"type":"number"},"timezone":{"type":"string"},"visibility":{"allOf":[{"$ref":"#/components/schemas/ReminderVisibility"}]},"recipientUserIds":{"type":"array","items":{"type":"string"}},"recordId":{"type":"string"},"recordTableId":{"type":"string"},"recordLabel":{"type":"string"},"dueAt":{"type":"string","description":"New time for a one-time reminder."},"enabled":{"type":"boolean","description":"Pause or resume a repeating reminder."}}},"ReminderUpdateResultDto":{"type":"object","properties":{"reminder":{"description":"The reminder as saved.","allOf":[{"$ref":"#/components/schemas/ReminderDto"}]},"enabled":{"type":"boolean","description":"Repeating reminders only: true when it is on, false when it is paused."}},"required":["reminder"]},"ReminderDeletedDto":{"type":"object","properties":{"reminderId":{"type":"string"},"deleted":{"type":"boolean","description":"Always true."}},"required":["reminderId","deleted"]},"ReminderCompletedDto":{"type":"object","properties":{"reminderId":{"type":"string"},"completed":{"type":"boolean","description":"Always true."}},"required":["reminderId","completed"]},"FormListResponseDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/FormListItemDto"}},"nextCursor":{"type":"string","description":"Send it back as `cursor` for the next page"}},"required":["items"]},"CreateFormDto":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"configuration":{"$ref":"#/components/schemas/FormConfigurationDto"},"groupId":{"type":"string"},"tableId":{"type":"string"}},"required":["title","description","enabled","configuration","groupId","tableId"]},"FormResponseDto":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"configuration":{"$ref":"#/components/schemas/FormConfigurationDto"},"id":{"type":"string"},"groupId":{"type":"string","description":"The group its answers go to"},"tableId":{"type":"string","description":"The object its answers are saved to"},"token":{"type":"string","description":"Its public link, while the form is on"},"needsGroup":{"type":"boolean","description":"Its group was deleted: an admin should move it to another group"}},"required":["title","description","enabled","configuration","id","groupId","tableId"]},"UpdateFormDto":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"configuration":{"$ref":"#/components/schemas/FormConfigurationDto"},"groupId":{"type":"string","description":"Move the form to another group, e.g. when its group was deleted. Admins only."}},"required":["title","description","enabled","configuration"]},"PublicFormResponseDto":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"design":{"allOf":[{"$ref":"#/components/schemas/FormDesign"}]},"fields":{"type":"array","items":{"$ref":"#/components/schemas/PublicFormFieldDto"}},"language":{"type":"string","description":"The workspace's language, which the page speaks unless the link asks for another"}},"required":["title","description","design","fields"]},"PublicFormSubmittedDto":{"type":"object","properties":{"success":{"type":"boolean","description":"Always true: the answers were received"},"message":{"type":"string","description":"The thank-you message to show"},"redirectUrl":{"type":"string","description":"The page to send the person to next, when the form has one"}},"required":["success","message"]},"MeetingFeatureAvailabilityDto":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Meetings is available to this workspace"},"installed":{"type":"boolean","description":"Meetings has been switched on and is ready to use"}},"required":["enabled","installed"]},"MeetingTypeDto":{"type":"object","properties":{"id":{"type":"string"},"publicId":{"type":"string","description":"The id in its booking link"},"bookingMode":{"allOf":[{"$ref":"#/components/schemas/MeetingKind"}]},"maxAttendees":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"},"bannerImage":{"type":"string"},"brandDisplay":{"allOf":[{"$ref":"#/components/schemas/MeetingBrandDisplay"}]},"brandName":{"type":"string"},"brandLogo":{"type":"string"},"replyTo":{"allOf":[{"$ref":"#/components/schemas/MeetingReplyTo"}]},"replyToEmail":{"type":"string"},"durationMinutes":{"type":"number"},"policy":{"allOf":[{"$ref":"#/components/schemas/MeetingPolicy"}]},"hostIds":{"type":"array","items":{"type":"string"}},"fixedHostIds":{"type":"array","items":{"type":"string"}},"notifyMemberIds":{"description":"Teammates told about new bookings","type":"array","items":{"type":"string"}},"minimumHosts":{"type":"number"},"timeZone":{"type":"string"},"minimumNoticeMinutes":{"type":"number","description":"How soon before the start a guest can still book, in minutes"},"beforeBufferMinutes":{"type":"number","description":"Free time kept before each meeting, in minutes"},"afterBufferMinutes":{"type":"number","description":"Free time kept after each meeting, in minutes"},"enabled":{"type":"boolean"},"checkHostCalendars":{"type":"boolean"},"formId":{"type":"string"}},"required":["id","publicId","title","durationMinutes","policy","hostIds","fixedHostIds","minimumHosts","timeZone","enabled"]},"CreateMeetingTypeDto":{"type":"object","properties":{"bookingMode":{"description":"appointment: one guest picks any free time. event: many guests register for scheduled sessions. Default appointment.","allOf":[{"$ref":"#/components/schemas/MeetingKind"}]},"maxAttendees":{"type":"number","description":"Seats per session. Only used for event meetings (1 to 1000)."},"title":{"type":"string","description":"Name shown on the booking page."},"description":{"type":"string","description":"Text shown on the booking page."},"bannerImage":{"type":"string","description":"Image shown on the booking page: a web address or an uploaded file path."},"brandDisplay":{"description":"Whose name and logo the booking page shows: workspace, custom or hidden.","allOf":[{"$ref":"#/components/schemas/MeetingBrandDisplay"}]},"brandName":{"type":"string","description":"Name shown when brandDisplay is custom (up to 120 characters)."},"brandLogo":{"type":"string","description":"Logo shown when brandDisplay is custom."},"replyTo":{"description":"Where a guest's reply to a meeting email goes: the hosts, or one custom address.","allOf":[{"$ref":"#/components/schemas/MeetingReplyTo"}]},"replyToEmail":{"type":"string","description":"Required when replyTo is custom."},"durationMinutes":{"type":"number","description":"Length of each meeting, 5 to 480 minutes."},"policy":{"description":"How hosts are chosen: individual, round_robin, collective or team_pool.","allOf":[{"$ref":"#/components/schemas/MeetingPolicy"}]},"hostIds":{"description":"User ids of the hosts. At least one; each must be a workspace member.","type":"array","items":{"type":"string"}},"fixedHostIds":{"description":"Hosts who attend every booking in addition to the rotation. Must also be listed in hostIds.","type":"array","items":{"type":"string"}},"notifyMemberIds":{"description":"Teammates told about new bookings and copied on host reminders (up to 50).","type":"array","items":{"type":"string"}},"minimumHosts":{"type":"number","description":"For team_pool only: how many hosts must be free for a time to be offered (at least 2)."},"timeZone":{"type":"string","description":"IANA time zone, e.g. Europe/Oslo. When left out the value falls back to UTC."},"minimumNoticeMinutes":{"type":"number","description":"How far ahead a booking must be made, 0 to 10080 minutes."},"beforeBufferMinutes":{"type":"number","description":"Gap kept free before each meeting, 0 to 240 minutes. Other meetings and calendar events never come closer."},"afterBufferMinutes":{"type":"number","description":"Gap kept free after each meeting, 0 to 240 minutes. Other meetings and calendar events never come closer."},"checkHostCalendars":{"type":"boolean","description":"Whether hosts' connected calendars are checked for busy times. Default true."},"formId":{"type":"string","description":"An existing enabled form to use as the booking questions. Left out, a default form is created."}},"required":["title","durationMinutes","policy","hostIds"]},"UpdateMeetingTypeDto":{"type":"object","properties":{"bookingMode":{"description":"appointment: one guest picks any free time. event: many guests register for scheduled sessions. Default appointment.","allOf":[{"$ref":"#/components/schemas/MeetingKind"}]},"maxAttendees":{"type":"number","description":"Seats per session. Only used for event meetings (1 to 1000)."},"title":{"type":"string","description":"Name shown on the booking page."},"description":{"type":"string","description":"Text shown on the booking page."},"bannerImage":{"type":"string","description":"Image shown on the booking page: a web address or an uploaded file path."},"brandDisplay":{"description":"Whose name and logo the booking page shows: workspace, custom or hidden.","allOf":[{"$ref":"#/components/schemas/MeetingBrandDisplay"}]},"brandName":{"type":"string","description":"Name shown when brandDisplay is custom (up to 120 characters)."},"brandLogo":{"type":"string","description":"Logo shown when brandDisplay is custom."},"replyTo":{"description":"Where a guest's reply to a meeting email goes: the hosts, or one custom address.","allOf":[{"$ref":"#/components/schemas/MeetingReplyTo"}]},"replyToEmail":{"type":"string","description":"Required when replyTo is custom."},"durationMinutes":{"type":"number","description":"Length of each meeting, 5 to 480 minutes."},"policy":{"description":"How hosts are chosen: individual, round_robin, collective or team_pool.","allOf":[{"$ref":"#/components/schemas/MeetingPolicy"}]},"hostIds":{"description":"User ids of the hosts. At least one; each must be a workspace member.","type":"array","items":{"type":"string"}},"fixedHostIds":{"description":"Hosts who attend every booking in addition to the rotation. Must also be listed in hostIds.","type":"array","items":{"type":"string"}},"notifyMemberIds":{"description":"Teammates told about new bookings and copied on host reminders (up to 50).","type":"array","items":{"type":"string"}},"minimumHosts":{"type":"number","description":"For team_pool only: how many hosts must be free for a time to be offered (at least 2)."},"timeZone":{"type":"string","description":"IANA time zone, e.g. Europe/Oslo. When left out the value falls back to UTC."},"minimumNoticeMinutes":{"type":"number","description":"How far ahead a booking must be made, 0 to 10080 minutes."},"beforeBufferMinutes":{"type":"number","description":"Gap kept free before each meeting, 0 to 240 minutes. Other meetings and calendar events never come closer."},"afterBufferMinutes":{"type":"number","description":"Gap kept free after each meeting, 0 to 240 minutes. Other meetings and calendar events never come closer."},"checkHostCalendars":{"type":"boolean","description":"Whether hosts' connected calendars are checked for busy times. Default true."},"formId":{"type":"string","description":"An existing enabled form to use as the booking questions. Left out, a default form is created."},"enabled":{"type":"boolean","description":"false switches the booking page off."}},"required":["title","durationMinutes","policy","hostIds"]},"MeetingHostReadinessDto":{"type":"object","properties":{"userId":{"type":"string"},"status":{"allOf":[{"$ref":"#/components/schemas/MeetingHostReadinessStatus"}]},"mailboxEmail":{"type":"string"},"provider":{"allOf":[{"$ref":"#/components/schemas/MeetingMailboxProvider"}]},"bookingIntegrationId":{"type":"string"},"bookingCalendarId":{"type":"string","description":"Empty means the mailbox's main calendar"}},"required":["userId","status"]},"MeetingAvailabilityDto":{"type":"object","properties":{"userId":{"type":"string"},"timeZone":{"type":"string","description":"IANA time zone the hours are in"},"windows":{"type":"array","items":{"$ref":"#/components/schemas/MeetingAvailabilityWindowDto"}},"overrides":{"type":"array","items":{"$ref":"#/components/schemas/MeetingAvailabilityOverrideDto"}},"calendarIntegrationIds":{"description":"Mailboxes checked for busy times","type":"array","items":{"type":"string"}},"calendarSelections":{"description":"Calendars checked for busy times","type":"array","items":{"$ref":"#/components/schemas/MeetingCalendarSelectionDto"}},"excludedCalendarIntegrationIds":{"description":"Mailboxes never checked for busy times","type":"array","items":{"type":"string"}},"bookingIntegrationId":{"type":"string","description":"The host's own mailbox new bookings are written to"},"bookingCalendarId":{"type":"string","description":"Empty means the mailbox's main calendar"},"updatedAt":{"type":"string"}},"required":["userId","windows","overrides","updatedAt"]},"UpdateMyMeetingAvailabilityDto":{"type":"object","properties":{"timeZone":{"type":"string","description":"IANA time zone, e.g. Europe/Oslo. When left out the value falls back to UTC."},"windows":{"description":"Hours that apply to this exception, or the weekly working hours.","type":"array","items":{"$ref":"#/components/schemas/MeetingAvailabilityWindowDto"}},"overrides":{"description":"Exceptions to the weekly hours: days off or extra hours.","type":"array","items":{"$ref":"#/components/schemas/MeetingAvailabilityOverrideDto"}},"calendarIntegrationIds":{"description":"Mailboxes checked for busy times.","type":"array","items":{"type":"string"}},"calendarSelections":{"description":"Calendars checked for busy times.","type":"array","items":{"$ref":"#/components/schemas/MeetingCalendarSelectionDto"}},"excludedCalendarIntegrationIds":{"description":"Mailboxes never checked for busy times.","type":"array","items":{"type":"string"}},"bookingIntegrationId":{"type":"string","description":"The host's own mailbox that new bookings are written to. Empty string resets to the default."},"bookingCalendarId":{"type":"string","description":"A calendar in that mailbox; empty means its main calendar."}},"required":["windows"]},"UpdateHostMeetingHoursDto":{"type":"object","properties":{"timeZone":{"type":"string","description":"IANA time zone, e.g. Europe/Oslo. When left out the value falls back to UTC."},"windows":{"description":"Hours that apply to this exception, or the weekly working hours.","type":"array","items":{"$ref":"#/components/schemas/MeetingAvailabilityWindowDto"}},"overrides":{"description":"Exceptions to the weekly hours: days off or extra hours.","type":"array","items":{"$ref":"#/components/schemas/MeetingAvailabilityOverrideDto"}}},"required":["windows"]},"MeetingBookingDto":{"type":"object","properties":{"id":{"type":"string"},"meetingTypeId":{"type":"string"},"bookingMode":{"allOf":[{"$ref":"#/components/schemas/MeetingKind"}]},"maxAttendees":{"type":"number"},"attendees":{"type":"array","items":{"$ref":"#/components/schemas/MeetingAttendeeDto"}},"start":{"type":"string"},"end":{"type":"string"},"bookerName":{"type":"string"},"bookerEmail":{"type":"string"},"status":{"allOf":[{"$ref":"#/components/schemas/MeetingBookingStatus"}]},"hostIds":{"type":"array","items":{"type":"string"}},"organizerHostId":{"type":"string","description":"The host whose calendar and mailbox hold this booking"},"needsHost":{"type":"boolean","description":"That host's mailbox is gone: someone else must take it"},"attendance":{"description":"Marked after the meeting: the guest came (met) or did not (no_show)","allOf":[{"$ref":"#/components/schemas/MeetingAttendance"}]},"meetingLink":{"type":"string"},"contactId":{"type":"string"},"companyId":{"type":"string"},"recordIds":{"description":"Records the booking form saved or matched (a deal, its contact…), of any object","type":"array","items":{"type":"string"}},"notes":{"type":"string"},"responses":{"type":"object","additionalProperties":true},"answerLabels":{"type":"object","additionalProperties":{"type":"string"},"description":"The question each answer belongs to, as the booker saw it on the form, by answer key"}},"required":["id","meetingTypeId","start","end","bookerName","bookerEmail","status","hostIds"]},"UpdateMeetingBookingDto":{"type":"object","properties":{"start":{"type":"string","description":"Start time, ISO 8601."},"end":{"type":"string","description":"End time, ISO 8601."}},"required":["start","end"]},"CreateMeetingSessionDto":{"type":"object","properties":{"start":{"type":"string","description":"Start time of the session (the first one, for a series), ISO 8601."},"maxAttendees":{"type":"number","description":"Seats per session. Only used for event meetings (1 to 1000)."},"idempotencyKey":{"type":"string","description":"A unique value you choose. Sending the same value again returns the first result instead of creating a duplicate."}},"required":["start","idempotencyKey"]},"CreateMeetingSeriesDto":{"type":"object","properties":{"start":{"type":"string","description":"Start time of the session (the first one, for a series), ISO 8601."},"maxAttendees":{"type":"number","description":"Seats per session. Only used for event meetings (1 to 1000)."},"idempotencyKey":{"type":"string","description":"A unique value you choose. Sending the same value again returns the first result instead of creating a duplicate."},"frequency":{"type":"string","description":"once, daily or weekly.","enum":["once","daily","weekly"]},"occurrences":{"type":"number","description":"How many sessions to create, 1 to 52."},"timeZone":{"type":"string","description":"IANA time zone the schedule is worked out in, e.g. Europe/Oslo. Keeps session times steady across daylight saving."}},"required":["start","idempotencyKey","frequency","occurrences","timeZone"]},"MeetingSessionSeriesDto":{"type":"object","properties":{"sessions":{"type":"array","items":{"$ref":"#/components/schemas/MeetingBookingDto"}},"failures":{"type":"array","items":{"$ref":"#/components/schemas/MeetingSeriesFailureDto"}}},"required":["sessions","failures"]},"ReassignMeetingBookingDto":{"type":"object","properties":{"hostId":{"type":"string","description":"User id of the new host."}},"required":["hostId"]},"UpdateMeetingCapacityDto":{"type":"object","properties":{"maxAttendees":{"type":"number","description":"Seats per session. Only used for event meetings (1 to 1000)."}},"required":["maxAttendees"]},"AddMeetingGuestsDto":{"type":"object","properties":{"emails":{"description":"Email addresses to invite (1 to 10).","type":"array","items":{"type":"string"}}},"required":["emails"]},"UpdateMeetingAttendanceDto":{"type":"object","properties":{"attendance":{"nullable":true,"description":"met when the guest came, no_show when they did not; null clears it.","allOf":[{"$ref":"#/components/schemas/MeetingAttendance"}]}}},"MeetingPublicTypeDto":{"type":"object","properties":{"bookingMode":{"description":"appointment: one guest picks a time. event: guests sign up for set sessions","allOf":[{"$ref":"#/components/schemas/MeetingKind"}]},"maxAttendees":{"type":"number","description":"How many people can come"},"publicId":{"type":"string","description":"The id in its booking link"},"title":{"type":"string"},"description":{"type":"string"},"bannerImage":{"type":"string","description":"Address of the banner picture"},"durationMinutes":{"type":"number","description":"How long the meeting is, in minutes"},"timeZone":{"type":"string","description":"Time zone of the meeting, e.g. Europe/Oslo"},"form":{"description":"The questions the guest answers","allOf":[{"$ref":"#/components/schemas/MeetingPublicFormDto"}]},"brand":{"description":"Left out when the page shows no name or logo","allOf":[{"$ref":"#/components/schemas/MeetingBrandDto"}]},"language":{"type":"string","description":"The workspace's language, used when the visitor's own is not offered"},"workspace":{"deprecated":true,"description":"Read brand instead","allOf":[{"$ref":"#/components/schemas/MeetingPublicWorkspaceDto"}]}},"required":["bookingMode","maxAttendees","publicId","title","durationMinutes","timeZone","form","workspace"]},"MeetingSlotDto":{"type":"object","properties":{"start":{"type":"string","description":"When the meeting would start, ISO 8601"},"end":{"type":"string","description":"When it would end, ISO 8601"},"hostCount":{"type":"number","description":"How many hosts are free then"},"sessionId":{"type":"string","description":"Event meetings only: the session to register for"},"remainingSeats":{"type":"number","description":"Event meetings only: places left"}},"required":["start","end","hostCount"]},"CreatePublicMeetingBookingDto":{"type":"object","properties":{"guestEmails":{"description":"Extra people to invite along (up to 10).","type":"array","items":{"type":"string"}},"start":{"type":"string","description":"Start time, ISO 8601."},"timeZone":{"type":"string","description":"The guest's IANA time zone, e.g. Europe/Oslo, used in their confirmation. Left out, the meeting's own time zone is used."},"formData":{"type":"object","description":"Answers keyed by the booking form's field ids, from the form on the public meeting details.","additionalProperties":true},"idempotencyKey":{"type":"string","description":"A unique value you choose. Sending the same value again returns the first result instead of creating a duplicate."}},"required":["start","idempotencyKey"]},"MeetingRegistrationDto":{"type":"object","properties":{"id":{"type":"string","description":"The guest's registration id"},"cancellationToken":{"type":"string","description":"Keep this: it is needed to cancel the registration"},"sessionId":{"type":"string"},"start":{"type":"string","description":"When the session starts, ISO 8601"},"end":{"type":"string","description":"When the session ends, ISO 8601"},"status":{"allOf":[{"$ref":"#/components/schemas/MeetingAttendeeStatus"}]},"meetingLink":{"type":"string","description":"The online meeting link, once there is one"}},"required":["id","sessionId","start","end","status"]},"CancelMeetingRegistrationDto":{"type":"object","properties":{"cancellationToken":{"type":"string","description":"The token returned when the guest registered."}},"required":["cancellationToken"]},"EnrichRequestDto":{"type":"object","properties":{"data":{"description":"List of data inputs to be processed for enrichment","example":[{"text":"Create contact for John"}],"type":"array","items":{"$ref":"#/components/schemas/EnrichDataDto"}},"notifyUserIds":{"description":"Additional user IDs to notify when this run completes","type":"array","items":{"type":"string"}},"options":{"description":"What to find for CRM records (`recordId` items): key people and emails. Company facts are always looked up.","allOf":[{"$ref":"#/components/schemas/EnrichOptionsDto"}]}},"required":["data"]},"EnrichResponseDto":{"type":"object","properties":{"taskId":{"type":"string","description":"Master task ID for tracking progress","example":"agent-enrich:ws-123:uuid"},"status":{"description":"Task status","example":"pending","allOf":[{"$ref":"#/components/schemas/TaskStatus"}]},"totalItems":{"type":"number","description":"Total number of items to process","example":5},"createdAt":{"type":"string","description":"Creation timestamp","example":"2023-01-01T00:00:00Z"}},"required":["taskId","status","totalItems","createdAt"]},"EnrichInput":{"type":"object","properties":{"domain":{"x-ui-label":"Company website","x-ui-help":"Website or domain of the company, e.g. moelven.no or https://resend.com.","x-ui-fill-mode":"both","x-ui-order":1,"type":"string","minLength":1},"email":{"x-ui-label":"Email","x-ui-help":"A work email finds the person and their company. A personal email (gmail, online.no, …) also needs a website, org number or LinkedIn URL.","x-ui-fill-mode":"both","x-ui-order":2,"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"linkedinUrl":{"x-ui-label":"LinkedIn URL","x-ui-help":"A person (/in/…) or company (/company/…) LinkedIn page.","x-ui-fill-mode":"both","x-ui-order":3,"type":"string","format":"uri"},"orgNo":{"x-ui-label":"Organisation number","x-ui-help":"Norwegian organisation number (9 digits).","x-ui-fill-mode":"both","x-ui-order":4,"type":"string","minLength":1},"name":{"x-ui-label":"Person name","x-ui-help":"Helps find the right person when the email has no name.","x-ui-fill-mode":"both","x-ui-order":5,"type":"string","minLength":1},"companyName":{"x-ui-label":"Company name","x-ui-fill-mode":"both","x-ui-order":6,"type":"string","minLength":1},"known":{"description":"Facts the caller already has (e.g. scraped from the open LinkedIn page). Used instead of paying for the same lookup.","type":"object","properties":{"person":{"type":"object","properties":{"name":{"type":"string"},"title":{"type":"string"},"headline":{"type":"string"},"photo":{"type":"string"},"location":{"type":"string"},"currentCompany":{"type":"string"},"currentCompanyHandle":{"type":"string"}}},"company":{"type":"object","properties":{"name":{"type":"string"},"website":{"type":"string"},"linkedinHandle":{"type":"string"}}}}},"people":{"default":"key","x-ui-label":"Key people","x-ui-help":"key: also find the CEO, founders and top managers. none: company and person only.","x-ui-fill-mode":"both","x-ui-order":7,"type":"string","enum":["none","key"]},"emails":{"default":false,"x-ui-label":"Find emails","x-ui-help":"Also look up work email addresses. Each email found uses a credit.","x-ui-fill-mode":"both","x-ui-order":8,"type":"boolean"},"emailsFor":{"description":"With emails=true on a company: only look up the emails of these key people (their `id` from `people`). Without it, the CEO and up to two founders.","type":"array","items":{"type":"string"}},"phones":{"default":false,"x-ui-label":"Find phone numbers","x-ui-help":"Also look up mobile or direct phone numbers by the person's LinkedIn link (mostly US numbers). Each phone found uses five credits.","x-ui-fill-mode":"both","x-ui-order":8.2,"type":"boolean"},"phonesFor":{"description":"With phones=true on a company: only look up the phones of these key people (their `id` from `people`). Without it, every key person with a LinkedIn link.","type":"array","items":{"type":"string"}},"profiles":{"default":false,"x-ui-label":"Full profiles","x-ui-help":"With key people: also read each person's full profile (headline, current title, photo, location, schooling). Each profile uses one credit.","x-ui-fill-mode":"both","x-ui-order":8.5,"type":"boolean"},"profilesFor":{"description":"With profiles=true: only read the profiles of these key people (their `id` from `people`). Without it, every key person.","type":"array","items":{"type":"string"}},"funding":{"default":false,"x-ui-label":"Funding history","x-ui-help":"Also find every funding round with everyone who invested: each firm (the lead marked), the partners on the deal and angel investors. 32 credits per round found; nothing when no rounds are found.","x-ui-fill-mode":"both","x-ui-order":8.7,"type":"boolean"},"save":{"default":"none","x-ui-label":"Save to CRM","x-ui-help":"none: preview only. fill: fill empty fields (creates the record when missing). refresh: fill, and also update values an earlier lookup wrote that have changed since; values someone typed are kept. overwrite: replace the fields listed in overwriteFields.","x-ui-fill-mode":"both","x-ui-order":9,"type":"string","enum":["none","fill","refresh","overwrite"]},"savePeople":{"description":"With save=fill or overwrite: also save key people as contacts linked to the company — \"all\", or the `id`s of the people to save. Existing contacts are matched first (email, LinkedIn, then name within the company).","anyOf":[{"type":"string","enum":["all"]},{"type":"array","items":{"type":"string"}}]},"groups":{"description":"Where new records go when saving: the group for a new company and for new contacts. Without it, new contacts join a group of their company, else the first group that shows the table and the user can add to.","type":"object","properties":{"company":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contact":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"recordId":{"x-ui-label":"Record","x-ui-help":"Company or contact record to update instead of matching one.","x-ui-fill-mode":"both","x-ui-order":10,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"overwriteFields":{"description":"save=overwrite only: the fields (from `diff`) the user agreed to replace, e.g. [\"company.description\",\"contact.job_title\"]. Without it, overwrite returns the diff and writes nothing.","type":"array","items":{"type":"string"}},"lookupId":{"description":"Re-use a lookup from the last hour (e.g. save a preview) without new paid calls.","type":"string"},"locale":{"description":"The caller's language, e.g. no-NO. Saving writes the company's extra facts (funding rounds, acquisitions, products…) as a note in this language. Default English.","type":"string","maxLength":35}}},"EnrichOutput":{"type":"object","properties":{"lookupId":{"type":"string"},"status":{"$ref":"#/components/schemas/EnrichStatus"},"messageCode":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/EnrichMessageCode"}]},"message":{"nullable":true,"type":"string"},"company":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/EnrichCompanyCard"}]},"person":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/EnrichPersonCard"}]},"people":{"type":"array","items":{"$ref":"#/components/schemas/EnrichKeyPerson"}},"matches":{"type":"object","properties":{"company":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/EnrichRecordMatch"}]},"contact":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/EnrichRecordMatch"}]}},"required":["company","contact"],"additionalProperties":false},"saved":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/EnrichSaved"}]},"diff":{"type":"array","items":{"$ref":"#/components/schemas/EnrichFieldDiff"}},"fill":{"type":"array","items":{"$ref":"#/components/schemas/EnrichFieldDiff"}},"drafts":{"default":{"company":null,"people":[]},"type":"object","properties":{"company":{"nullable":true,"type":"object","properties":{"tableId":{"type":"string"},"data":{"type":"object","additionalProperties":{}}},"required":["tableId","data"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"tableId":{"type":"string"},"data":{"type":"object","additionalProperties":{}}},"required":["id","tableId","data"],"additionalProperties":false}}},"required":["company","people"],"additionalProperties":false},"credits":{"type":"object","properties":{"charged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fromCache":{"type":"boolean"},"breakdown":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["brreg","search","aiark","fundable","connector"]},"operation":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["source","operation","count"],"additionalProperties":false}},"workspace":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/EnrichCreditUsage"}]}},"required":["charged","fromCache","breakdown","workspace"],"additionalProperties":false},"ms":{"type":"number"}},"required":["lookupId","status","messageCode","message","company","person","people","matches","saved","diff","fill","drafts","credits","ms"],"additionalProperties":false},"InvestorsImportRequest":{"type":"object","properties":{"lookupId":{"type":"string","minLength":1},"recordId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"investors":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1}},"partners":{"default":true,"type":"boolean"},"angels":{"default":false,"type":"boolean"},"groups":{"default":{},"type":"object","properties":{"company":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contact":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"locale":{"type":"string","maxLength":35}},"required":["lookupId","recordId","investors"]},"InvestorsImportResult":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"matched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contacts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"linked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fieldsReady":{"type":"boolean"},"records":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"recordId":{"type":"string"}},"required":["domain","recordId"],"additionalProperties":false}}},"required":["created","matched","contacts","linked","fieldsReady","records"],"additionalProperties":false},"LeadFilters":{"type":"object","properties":{"describe":{"type":"string","maxLength":400},"industries":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"keywords":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"technologies":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"countries":{"maxItems":30,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},"places":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"staff":{"allOf":[{"$ref":"#/components/schemas/LeadRange"}]},"employees":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeBand"}},"revenueUsd":{"allOf":[{"$ref":"#/components/schemas/LeadRange"}]},"revenue":{"type":"array","items":{"$ref":"#/components/schemas/RevenueBand"}},"shops":{"allOf":[{"$ref":"#/components/schemas/LeadRange"}]},"types":{"type":"array","items":{"$ref":"#/components/schemas/CompanyType"}},"fundingTypes":{"type":"array","items":{"$ref":"#/components/schemas/FundingType"}},"fundingRounds":{"type":"array","items":{"$ref":"#/components/schemas/FundingRound"}},"raisedTotal":{"allOf":[{"$ref":"#/components/schemas/LeadRange"}]},"lastRound":{"allOf":[{"$ref":"#/components/schemas/LeadRange"}]},"foundedFrom":{"type":"integer","minimum":1800,"maximum":2100},"foundedTo":{"type":"integer","minimum":1800,"maximum":2100},"employeeTitles":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"mailPlatforms":{"type":"array","items":{"$ref":"#/components/schemas/MailPlatform"}},"growth":{"allOf":[{"$ref":"#/components/schemas/LeadGrowth"}]},"raisedAfter":{"description":"Raised money on or after this day.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"raisedSince":{"description":"Raised money in this year or later. `raisedAfter` wins when both are set.","type":"integer","minimum":1800,"maximum":2100},"exclude":{"allOf":[{"$ref":"#/components/schemas/LeadExclude"}]},"like":{"maxItems":10,"type":"array","items":{"anyOf":[{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"},{"type":"string","pattern":"^ark:[0-9a-f-]{8,64}$"}]}}},"additionalProperties":false,"description":"Which companies to find. Every filter is optional."},"PersonLeadFilters":{"type":"object","properties":{"titles":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"seniority":{"type":"array","items":{"$ref":"#/components/schemas/PersonSeniority"}},"departments":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-z0-9_-]{2,80}$"}},"countries":{"maxItems":30,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},"places":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"companies":{"maxItems":10,"type":"array","items":{"anyOf":[{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"},{"type":"string","pattern":"^ark:[0-9a-f-]{8,64}$"}]}},"previousCompanies":{"maxItems":10,"type":"array","items":{"anyOf":[{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"},{"type":"string","pattern":"^ark:[0-9a-f-]{8,64}$"}]}},"skills":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"languages":{"type":"array","items":{"$ref":"#/components/schemas/PersonLanguage"}},"followers":{"allOf":[{"$ref":"#/components/schemas/LeadRange"}]},"badges":{"type":"array","items":{"$ref":"#/components/schemas/ProfileBadge"}},"company":{"description":"Which companies the people work at, or companies like which (`like`). Every filter is optional.","allOf":[{"$ref":"#/components/schemas/LeadFilters"}]},"newInRoleMonths":{"description":"Started their current role within this many months. Profiles trail by months, so a few months is the shortest that works well.","type":"integer","minimum":1,"maximum":60},"newInRole":{"allOf":[{"$ref":"#/components/schemas/SignalPeriod"}]},"exclude":{"allOf":[{"$ref":"#/components/schemas/PersonExclude"}]},"postedOnX":{"allOf":[{"$ref":"#/components/schemas/PostedOnXFilter"}]}},"additionalProperties":false,"description":"Which people to find. Every filter is optional."},"LeadBreakdownBy":{"type":"string","enum":["employees","revenue","countries"]},"LeadBreakdown":{"type":"object","properties":{"by":{"$ref":"#/components/schemas/LeadBreakdownBy"},"buckets":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","total"],"additionalProperties":false}}},"required":["by","buckets"],"additionalProperties":false},"EnrichCompanyCard":{"type":"object","properties":{"domain":{"nullable":true,"type":"string"},"arkId":{"nullable":true,"type":"string"},"fields":{"$ref":"#/components/schemas/EnrichCompanyFields"},"sources":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/EnrichSource"}}},"required":["domain","fields","sources"],"additionalProperties":false},"PersonLead":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"title":{"nullable":true,"type":"string"},"seniority":{"nullable":true,"type":"string"},"department":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"location":{"nullable":true,"type":"string"},"linkedinUrl":{"nullable":true,"type":"string"},"photo":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string"},"company":{"nullable":true,"type":"object","properties":{"name":{"nullable":true,"type":"string"},"domain":{"nullable":true,"type":"string"},"arkId":{"nullable":true,"type":"string"},"linkedinUrl":{"nullable":true,"type":"string"},"logo":{"nullable":true,"type":"string"}},"required":["name","domain","logo"],"additionalProperties":false},"xUrl":{"nullable":true,"type":"string"},"signal":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PersonSignal"}]},"data":{"type":"object","additionalProperties":{}}},"required":["id","name","title","seniority","department","country","location","linkedinUrl","photo","startedAt","company"],"additionalProperties":false},"PostedOnXFilter":{"type":"object","properties":{"words":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"allWords":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"accounts":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_]{1,15}$"}},"without":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"list":{"type":"string","pattern":"^\\d{1,25}$"},"verified":{"type":"boolean"},"replies":{"default":"any","type":"string","enum":["any","only","none"]},"noLinks":{"type":"boolean"},"linkTo":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"}},"likes":{"type":"object","properties":{"from":{"type":"integer","minimum":0,"maximum":10000000},"to":{"type":"integer","minimum":0,"maximum":10000000}},"additionalProperties":false},"replyCount":{"type":"object","properties":{"from":{"type":"integer","minimum":0,"maximum":10000000},"to":{"type":"integer","minimum":0,"maximum":10000000}},"additionalProperties":false},"reposts":{"type":"object","properties":{"from":{"type":"integer","minimum":0,"maximum":10000000},"to":{"type":"integer","minimum":0,"maximum":10000000}},"additionalProperties":false},"postedFrom":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"postedTo":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"extra":{"type":"string","maxLength":200},"language":{"type":"string","minLength":2,"maxLength":2},"postsPerPage":{"type":"integer","minimum":10,"maximum":100},"keep":{"type":"string","maxLength":200}},"required":["words","allWords","accounts","without","replies","linkTo"],"additionalProperties":false,"description":"Why now: people who posted on X in the last 7 days about these words or accounts. Needs the person's X connection."},"Seniority":{"type":"string","enum":["owner","founder","c-suite","partner","vp","head","director","manager"]},"LeadLimits":{"type":"object","properties":{"describe":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"countries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"keywords":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"technologies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"titles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"termLength":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"like":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likeRecords":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"domainLength":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"importMax":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"peopleAddMax":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"peoplePerCompanyMax":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"peoplePerCompanyDefault":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resultsPagesMax":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"autopilotLimit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"searchName":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"foundedMin":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"foundedMax":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"defaultSeniorities":{"type":"array","items":{"$ref":"#/components/schemas/Seniority"}},"personSeniorities":{"type":"array","items":{"$ref":"#/components/schemas/PersonSeniority"}},"companyTypes":{"type":"array","items":{"$ref":"#/components/schemas/CompanyType"}},"places":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"growthTeams":{"type":"array","items":{"$ref":"#/components/schemas/GrowthTeam"}},"growthMonths":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"growthPercentMax":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"newInRoleMonthsMax":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fundingTypes":{"type":"array","items":{"$ref":"#/components/schemas/FundingType"}},"mailPlatforms":{"type":"array","items":{"$ref":"#/components/schemas/MailPlatform"}},"languages":{"type":"array","items":{"$ref":"#/components/schemas/PersonLanguage"}},"badges":{"type":"array","items":{"$ref":"#/components/schemas/ProfileBadge"}},"listSizes":{"type":"object","properties":{"industries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"technologies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"departments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["industries","technologies","departments"],"additionalProperties":false}},"required":["describe","countries","keywords","technologies","titles","termLength","like","likeRecords","domainLength","importMax","peopleAddMax","peoplePerCompanyMax","peoplePerCompanyDefault","pageSize","resultsPagesMax","autopilotLimit","searchName","foundedMin","foundedMax","defaultSeniorities","personSeniorities","companyTypes","places","growthTeams","growthMonths","growthPercentMax","newInRoleMonthsMax","fundingTypes","mailPlatforms","languages","badges","listSizes"],"additionalProperties":false},"DocumentTemplateResponseDto":{"type":"object","properties":{"id":{"type":"string"},"groupId":{"type":"string","description":"The group it was made for; only remembered, empty when none"},"tableId":{"type":"string","description":"The object it is made for; empty when it works for any record"},"title":{"type":"string"},"content":{"$ref":"#/components/schemas/DocumentContentDto"},"page":{"$ref":"#/components/schemas/DocumentPageDto"},"fileName":{"type":"string","description":"File name, may use {{ … }}; empty when none is set"},"outputFieldId":{"type":"string","description":"A file field (id) on the record that also receives each new PDF"}},"required":["id","groupId","tableId","title","content","page","fileName"]},"CreateDocumentTemplateDto":{"type":"object","properties":{"title":{"type":"string"},"content":{"$ref":"#/components/schemas/DocumentContentDto"},"page":{"$ref":"#/components/schemas/DocumentPageDto"},"fileName":{"type":"string","description":"File name, may use {{ … }} (e.g. \"Invoice {{ record.number }}\")"},"outputFieldId":{"type":"string","description":"A file field (id) on the record that also receives each new PDF"},"groupId":{"type":"string"},"tableId":{"type":"string"}},"required":["title","content"]},"SaveDocumentTemplateDto":{"type":"object","properties":{"title":{"type":"string"},"content":{"$ref":"#/components/schemas/DocumentContentDto"},"page":{"$ref":"#/components/schemas/DocumentPageDto"},"fileName":{"type":"string","description":"File name, may use {{ … }} (e.g. \"Invoice {{ record.number }}\")"},"outputFieldId":{"type":"string","description":"A file field (id) on the record that also receives each new PDF"}},"required":["title","content"]},"PreviewDocumentDto":{"type":"object","properties":{"recordId":{"type":"string"},"content":{"$ref":"#/components/schemas/DocumentContentDto"},"page":{"$ref":"#/components/schemas/DocumentPageDto"}},"required":["recordId"]},"DocumentValuesDto":{"type":"object","properties":{"recordId":{"type":"string"},"values":{"description":"Template values, like {{ record.name }}","type":"array","items":{"type":"string"}}},"required":["recordId","values"]},"GenerateDocumentDto":{"type":"object","properties":{"recordId":{"type":"string"}},"required":["recordId"]},"DocumentDto":{"type":"object","properties":{"id":{"type":"string"},"templateId":{"type":"string"},"recordId":{"type":"string"},"status":{"allOf":[{"$ref":"#/components/schemas/DocumentStatus"}]},"error":{"type":"string","description":"Why the PDF could not be made"},"file":{"$ref":"#/components/schemas/FileAttachment"},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"}},"required":["id","templateId","recordId","status","createdAt"]},"SigningFieldRulesDto":{"type":"object","properties":{"kinds":{"type":"array","items":{"$ref":"#/components/schemas/SigningFieldKindDto"}},"senderRole":{"type":"string","description":"The role the sender fills when sending"},"recordRole":{"type":"string","description":"The role printed from the record, which only templates have"}},"required":["kinds","senderRole","recordRole"]},"FileItemDto":{"type":"object","properties":{"id":{"type":"string"},"recordId":{"type":"string"},"parentId":{"type":"string","nullable":true},"kind":{"allOf":[{"$ref":"#/components/schemas/FileItemKind"}]},"name":{"type":"string"},"file":{"$ref":"#/components/schemas/FileAttachment"},"state":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/FileItemState"}]},"sourceId":{"type":"string"},"envelopeId":{"type":"string"},"fieldCount":{"type":"number","description":"How many signing fields are placed on it"},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"sharedFrom":{"description":"Set when the file is kept on another record and shown here because this record is one of its signers","allOf":[{"$ref":"#/components/schemas/SharedFromDto"}]}},"required":["id","recordId","parentId","kind","name","state","fieldCount","createdAt"]},"CreateFolderDto":{"type":"object","properties":{"name":{"type":"string"},"parentId":{"type":"string","description":"Folder to create it in; root when empty"}},"required":["name"]},"AddUploadsDto":{"type":"object","properties":{"files":{"description":"Files from POST /file/workspace/upload","type":"array","items":{"$ref":"#/components/schemas/UploadedFileDto"}},"parentId":{"type":"string"}},"required":["files"]},"GenerateIntoFolderDto":{"type":"object","properties":{"templateId":{"type":"string"},"parentId":{"type":"string"}},"required":["templateId"]},"CreateRecordDocumentDto":{"type":"object","properties":{"name":{"type":"string"},"templateId":{"type":"string","description":"Template whose design is copied; blank when empty"},"parentId":{"type":"string"}},"required":["name"]},"UpdateFileItemDto":{"type":"object","properties":{"name":{"type":"string"},"parentId":{"type":"object","nullable":true,"description":"Folder to move it to; null moves it to the root"}}},"RecordDocumentDto":{"type":"object","properties":{"id":{"type":"string"},"recordId":{"type":"string"},"parentId":{"type":"string","nullable":true},"kind":{"allOf":[{"$ref":"#/components/schemas/FileItemKind"}]},"name":{"type":"string"},"file":{"$ref":"#/components/schemas/FileAttachment"},"state":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/FileItemState"}]},"sourceId":{"type":"string"},"envelopeId":{"type":"string"},"fieldCount":{"type":"number","description":"How many signing fields are placed on it"},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"sharedFrom":{"description":"Set when the file is kept on another record and shown here because this record is one of its signers","allOf":[{"$ref":"#/components/schemas/SharedFromDto"}]},"content":{"$ref":"#/components/schemas/DocumentContentDto"},"page":{"$ref":"#/components/schemas/DocumentPageDto"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/SigningFieldDto"}}},"required":["id","recordId","parentId","kind","name","state","fieldCount","createdAt","content","page","fields"]},"SaveRecordDocumentDto":{"type":"object","properties":{"name":{"type":"string"},"content":{"$ref":"#/components/schemas/DocumentContentDto"},"page":{"$ref":"#/components/schemas/DocumentPageDto"}},"required":["content"]},"SaveSigningFieldsDto":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Fields in PDF points from the top-left of each page as shown"}},"required":["fields"]},"SendForSigningDto":{"type":"object","properties":{"itemId":{"type":"string","description":"The PDF (a Files tab item) to sign"},"parties":{"type":"array","items":{"$ref":"#/components/schemas/PartyInputDto"}},"senderValues":{"type":"object","additionalProperties":true,"description":"Values of the sender's own fields, by field id"},"title":{"type":"string"},"message":{"type":"string","description":"A note in the email to every party"},"expiresInDays":{"type":"number","minimum":1,"maximum":120,"default":30},"remindEveryDays":{"type":"number","minimum":0,"maximum":30,"default":3,"description":"0 sends no reminders"},"statusFieldId":{"type":"string","description":"A text or choice field on the record set to sent, then completed, declined, voided or expired, so record-updated automations can follow along. A choice field needs a choice with that value or label."}},"required":["itemId","parties"]},"EnvelopeDto":{"type":"object","properties":{"id":{"type":"string"},"recordId":{"type":"string"},"itemId":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"status":{"allOf":[{"$ref":"#/components/schemas/EnvelopeStatus"}]},"stage":{"type":"number","description":"The routing step now waiting for signatures"},"parties":{"type":"array","items":{"$ref":"#/components/schemas/PartyDto"}},"fields":{"type":"array","items":{"$ref":"#/components/schemas/SigningFieldDto"}},"pages":{"type":"array","items":{"$ref":"#/components/schemas/SigningPageDto"}},"senderName":{"type":"string"},"senderEmail":{"type":"string"},"expiresAt":{"type":"string"},"remindEveryDays":{"type":"number"},"completedAt":{"type":"string"},"signedFile":{"$ref":"#/components/schemas/FileAttachment"},"createdAt":{"type":"string","format":"date-time"},"canManage":{"type":"boolean","description":"True for its sender and workspace admins: they can cancel it, send it again or fix an address"},"brand":{"description":"This signing's own name and logo; unset uses the workspace's signing default","allOf":[{"$ref":"#/components/schemas/SigningBrandDto"}]},"events":{"description":"Signer IP addresses and devices are left out for people who can only read the record","type":"array","items":{"$ref":"#/components/schemas/SigningEventDto"}}},"required":["id","recordId","itemId","title","status","stage","parties","fields","pages","senderName","senderEmail","remindEveryDays","createdAt","canManage"]},"SigningQueueFilter":{"type":"string","enum":["waiting","signed","declined","expired","cancelled"]},"VoidEnvelopeDto":{"type":"object","properties":{"reason":{"type":"string"}}},"SigningLinkDto":{"type":"object","properties":{"url":{"type":"string","description":"The address this person opens to sign"}},"required":["url"]},"SigningBrandDto":{"type":"object","properties":{"display":{"allOf":[{"$ref":"#/components/schemas/PortalBrandDisplay"}]},"name":{"type":"string","maxLength":120},"logo":{"type":"string","description":"An upload path in this workspace’s files"}},"required":["display"]},"CorrectPartyDto":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"}}},"Portal":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"brand":{"allOf":[{"$ref":"#/components/schemas/PortalBrand"}]},"contactTableId":{"type":"string","minLength":1,"maxLength":64},"enabled":{"type":"boolean"},"pages":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/PortalPage"}},"website":{"type":"string"},"id":{"type":"string"},"groupId":{"type":"string"},"linkVersion":{"type":"number"},"link":{"type":"string"}},"required":["title","enabled","pages","id","groupId","linkVersion"],"additionalProperties":false},"PortalDefinition":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"brand":{"allOf":[{"$ref":"#/components/schemas/PortalBrand"}]},"contactTableId":{"type":"string","minLength":1,"maxLength":64},"enabled":{"type":"boolean"},"pages":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/PortalPage"}},"website":{"nullable":true,"type":"string","maxLength":500,"format":"uri"}},"required":["title","enabled","pages"]},"PortalPageKindInfo":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/PortalPageKind"},"feature":{"allOf":[{"$ref":"#/components/schemas/RegistryFeatureKey"}]}},"required":["kind"],"additionalProperties":false},"PortalInviteResult":{"type":"object","properties":{"sent":{"type":"number","description":"How many people the link was sent to."},"noEmail":{"type":"number","description":"Email only: people left out because they have no email address."},"noPhone":{"description":"Texts only: people left out because they have no mobile number that can get texts.","type":"number"},"optedOut":{"description":"Texts only: people left out because they asked not to get texts.","type":"number"},"failed":{"description":"Texts only: texts that could not be sent.","type":"number"}},"required":["sent","noEmail"],"additionalProperties":false},"TimerStatusDto":{"type":"object","properties":{"available":{"type":"boolean","description":"Time can be tracked on the record asked about. False when no record was given."},"running":{"nullable":true,"description":"Your running timer, or null when none is running.","allOf":[{"$ref":"#/components/schemas/TimerEntryDto"}]}},"required":["available","running"]},"StartTimerDto":{"type":"object","properties":{"recordId":{"type":"string","description":"The record the time is spent on."}},"required":["recordId"]},"TimerEntryDto":{"type":"object","properties":{"id":{"type":"string","description":"The time entry record."},"tableId":{"type":"string","description":"The object time entries are kept in."},"startedAt":{"type":"string","description":"When the timer started, ISO 8601."},"stoppedAt":{"type":"string","description":"When the timer stopped, ISO 8601. Only on a stopped timer."},"recordId":{"type":"string","description":"The record the time is spent on."}},"required":["id","tableId","startedAt"]},"StopTimerResponseDto":{"type":"object","properties":{"stopped":{"nullable":true,"description":"The timer that was stopped, or null when none was running.","allOf":[{"$ref":"#/components/schemas/TimerEntryDto"}]}},"required":["stopped"]},"McpSkillsResponseDto":{"type":"object","properties":{"skills":{"description":"Available skills — load these instructions before calling other tools","type":"array","items":{"$ref":"#/components/schemas/McpSkillDto"}}},"required":["skills"]},"McpSkillDto":{"type":"object","properties":{"name":{"type":"string","description":"Unique skill identifier"},"description":{"type":"string","description":"Short description of the skill"},"instructions":{"type":"string","description":"Detailed instructions for using the skill and its related tools"},"relatedTools":{"description":"List of related tool/operation names this skill covers","type":"array","items":{"type":"string"}},"references":{"description":"Detailed guides for this skill. Load one with GET /mcp/skills/{skillName}/references/{referenceName}.","type":"array","items":{"$ref":"#/components/schemas/McpSkillReferenceDto"}}},"required":["name","description","instructions","relatedTools","references"]},"McpSkillReferenceContentDto":{"type":"object","properties":{"content":{"type":"string","description":"The full guide, as Markdown"}},"required":["content"]},"PartnerDto":{"type":"object","properties":{"name":{"type":"string"},"website":{"type":"string"},"imageUrl":{"type":"string"},"provider":{"allOf":[{"$ref":"#/components/schemas/WorkspaceProvider"}]}},"required":["name","website","imageUrl"]},"APIInfoDto":{"type":"object","properties":{"userId":{"type":"string","description":"The ID of the user"},"email":{"type":"string","description":"The email of the user"},"firstName":{"type":"string","description":"User's first name"},"lastName":{"type":"string","description":"User's last name"},"workspaceId":{"type":"string","description":"The ID of the workspace"},"workspaceName":{"type":"string","description":"The name of the workspace"}},"required":["userId","email","workspaceId","workspaceName"]},"SavedSearchVisibility":{"type":"string","enum":["personal","workspace"]},"SavedSearchQuestion":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/SavedSearchKind"},"workspaces":{"default":"this","anyOf":[{"type":"string","enum":["this","managed"]},{"minItems":1,"maxItems":51,"type":"array","items":{"type":"string","minLength":1}}]},"query":{"type":"string","maxLength":500},"tableId":{"type":"string","minLength":1},"fieldFilters":{"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/SavedSearchFieldFilter"}},"recordFilter":{"type":"object","properties":{"tableId":{"type":"string","minLength":1},"fieldFilters":{"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/SavedSearchFieldFilter"}}},"required":["tableId"],"additionalProperties":false},"integrationTypes":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1}}},"required":["kind","workspaces"],"additionalProperties":false},"ManagingWorkspaceDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ManagedWorkspaceDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":"string"},"role":{"nullable":true,"description":"Your role there; null when you are not a member, so you can’t open it.","allOf":[{"$ref":"#/components/schemas/WorkspaceRole"}]}},"required":["id","name","role"]},"WorkspaceMemberDto":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"userEmail":{"type":"string"},"userFirstName":{"type":"string"},"userLastName":{"type":"string"},"userAvatarUrl":{"type":"string"},"role":{"allOf":[{"$ref":"#/components/schemas/WorkspaceRole"}]},"joinedAt":{"format":"date-time","type":"string"},"acceptedAt":{"format":"date-time","type":"string"}},"required":["id","userId","userEmail","role","joinedAt"]},"PublicAppLinkTo":{"type":"string","enum":["public_form","public_booking","public_portal","public_signing","public_agent","public_shared_meetings","public_report"]},"GroupVisibility":{"type":"string","enum":["PRIVATE","WORKSPACE"],"description":"Group visibility"},"ChartConfig":{"type":"object","properties":{"title":{"type":"string"},"id":{"type":"string"},"tableId":{"type":"string"},"charts":{"type":"array","items":{"$ref":"#/components/schemas/ChartQueryDto"}}},"required":["title","id","charts"]},"ViewType":{"type":"string","enum":["table","kanban","calendar","timeline"]},"ViewConfigDto":{"type":"object","properties":{"filters":{"type":"array","items":{"$ref":"#/components/schemas/FieldQueryFilter"}},"sort":{"$ref":"#/components/schemas/SortConfig"},"calendarMode":{"description":"Calendar mode for calendar views","allOf":[{"$ref":"#/components/schemas/CalendarMode"}]},"dateFieldId":{"type":"string","description":"Date field ID used for calendar events"},"endDateFieldId":{"type":"string","description":"Optional end date field ID used for calendar events"},"dependencyFieldId":{"type":"string","description":"Timeline views: optional link field ID (to the same object) naming what each record waits on"},"coloringFieldId":{"type":"string","description":"Optional select field ID used to color calendar events by option color"},"groupBy":{"type":"string","description":"Field API name for Kanban grouping (must be SELECT field)"},"columns":{"description":"Visible column field API names","type":"array","items":{"type":"string"}},"columnWidths":{"description":"Visible column field widths","type":"array","items":{"type":"number"}},"titleColumnWidth":{"type":"number","description":"Pixel width of the fixed title column in table views"},"primary":{"type":"string"},"showColumns":{"description":"Kanban only: view-local (group-specific) ordered list of visible group-by choice values. Acts as both the visible set and the column order. When omitted, all columns are shown in field order — so options added to the field elsewhere do not silently appear in or reorder existing views.","type":"array","items":{"type":"string"}},"showOthersColumn":{"type":"boolean","description":"Kanban only: render the Others column collecting records whose status is a hidden choice."},"showNoStatusColumn":{"type":"boolean","description":"Kanban only: explicit override for the No Status column. When undefined, the column auto-appears if unassigned records exist."},"header":{"type":"object","description":"Optional header layout config for kanban/record headers. rows is a max-3 array of field-id rows.","additionalProperties":true}}},"GroupRole":{"type":"string","enum":["OWNER","ADMIN","EDITOR","VIEWER"],"description":"Role in the group"},"JsonField":{"type":"object","properties":{"apiName":{"type":"string"},"displayName":{"type":"string"},"id":{"type":"string","description":"Field ID"},"kind":{"allOf":[{"$ref":"#/components/schemas/FieldKind"}]},"required":{"type":"boolean"},"canRemove":{"type":"boolean"},"options":{"description":"Field options specific to the field kind","oneOf":[{"$ref":"#/components/schemas/NumberFieldOptions"},{"$ref":"#/components/schemas/TextFieldOptions"},{"$ref":"#/components/schemas/DateFieldOptions"},{"$ref":"#/components/schemas/SelectFieldOptions"},{"$ref":"#/components/schemas/RelationFieldOptions"},{"$ref":"#/components/schemas/UserFieldOptions"},{"$ref":"#/components/schemas/FileFieldOptions"}],"discriminator":{"propertyName":"kind","mapping":{"number":"#/components/schemas/NumberFieldOptions","text":"#/components/schemas/TextFieldOptions","date":"#/components/schemas/DateFieldOptions","select":"#/components/schemas/SelectFieldOptions","multi_select":"#/components/schemas/SelectFieldOptions","relation":"#/components/schemas/RelationFieldOptions","user":"#/components/schemas/UserFieldOptions","file":"#/components/schemas/FileFieldOptions"}}},"description":{"type":"string"},"order":{"type":"number"}},"required":["apiName","kind","options"]},"TableRuleDto":{"type":"object","properties":{"id":{"type":"string","description":"Stable id of the rule, unique within the object."},"type":{"description":"required: fields must be filled. unique: no two records share the value. validate: `when` must be true after the save. lock: while `when` is true for the record before the save, its fields can't change. transition: only the moves in `allow` may change the status `field`. visible: only the people in `who` (and admins) see the object's records. acyclic: the one link field in `fields` points at this same object and may never lead back to the record (a page under its own child, a task that waits on itself). no_overlap: records with the same `fields` values (e.g. the same room) may not have overlapping time spans; `period` names the start and end date fields, and an empty end never ends. A `when` limits it to records it holds for, e.g. not cancelled.","allOf":[{"$ref":"#/components/schemas/RuleType"}]},"name":{"type":"string","description":"Name shown in settings."},"message":{"type":"string","description":"Shown to whoever is stopped by the rule."},"fields":{"description":"API names of the fields the rule is about. For lock, omitted means every field.","type":"array","items":{"type":"string"}},"when":{"type":"string","description":"A formula. Rules may also use OLD(field), CHANGED(field), IS_NEW(), ACTOR(), ACTOR_HAS_ROLE(role) and ORIGIN()."},"except":{"description":"Lock only: fields that can still be changed.","type":"array","items":{"type":"string"}},"operations":{"type":"array","description":"Lock only: what is refused while locked. Default update and delete.","items":{"$ref":"#/components/schemas/LockOperation"}},"enabled":{"type":"boolean","description":"False pauses the rule."},"field":{"type":"string","description":"Transition only: API name of the status (choice) field."},"start":{"description":"Transition only: statuses a new record may start in. Omitted means any.","type":"array","items":{"type":"string"}},"allow":{"description":"Transition only: the allowed moves. Any other status change is refused.","type":"array","items":{"$ref":"#/components/schemas/TransitionStepDto"}},"who":{"description":"Visible only: who sees the records besides admins (any entry). `{Field}` (a person field, e.g. `{Owner}`), `creator`, `role:editor|viewer|guest` or `user:<id>`.","type":"array","items":{"type":"string"}},"period":{"description":"No_overlap only: the start and end date fields of each record, e.g. `[\"starts_at\", \"ends_at\"]`. A record with no end never ends.","type":"array","items":{"type":"string"}}},"required":["id","type"]},"TableOptionsDto":{"type":"object","properties":{"layout":{"type":"string","enum":["page"],"description":"page: a record opens like a document, its long text first and full width."},"timer":{"description":"The object's records are time entries written by the start/stop timer. Records of every object it links to get a timer.","allOf":[{"$ref":"#/components/schemas/TableTimerDto"}]},"relationCard":{"description":"What each record shows when it is listed among another record's linked records (the Relations tab).","allOf":[{"$ref":"#/components/schemas/TableRelationCardDto"}]},"showInParent":{"type":"boolean","description":"The object's records are listed, ready to open and edit, in the Details of the record each one links to (the parts of a page, the lines of an order)."},"orderField":{"type":"string","description":"API name of a number field that puts the records in order. Lists of them show them by it, lowest first, and dragging one to a new place renumbers."},"relationTabs":{"description":"How a record's Relations tabs are arranged for the whole team: their order, and which leave out records linked through one record in between.","allOf":[{"$ref":"#/components/schemas/TableRelationTabsDto"}]}}},"TableCompileDiagnostic":{"type":"object","properties":{"severity":{"allOf":[{"$ref":"#/components/schemas/TableDiagnosticSeverity"}]},"code":{"type":"string"},"message":{"type":"string"},"tableApiName":{"type":"string"},"tableId":{"type":"string"},"fieldApiName":{"type":"string"},"fieldId":{"type":"string"},"suggestion":{"type":"string"},"range":{"description":"Characters of the formula the problem is about","allOf":[{"$ref":"#/components/schemas/TextRange"}]},"params":{"type":"object","additionalProperties":true,"description":"Values for the translated message, e.g. the field name"}},"required":["severity","code","message"]},"JsonWorkspaceDescription":{"type":"object","properties":{"workspaceId":{"type":"string"},"workspaceName":{"type":"string"},"metadata":{"$ref":"#/components/schemas/WorkspaceMetadata"},"plugins":{"type":"array","items":{"type":"string"}},"tables":{"type":"array","items":{"$ref":"#/components/schemas/JsonTable"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/JsonGroup"}},"dashboards":{"type":"array","items":{"$ref":"#/components/schemas/JsonDashboard"}},"members":{"type":"array","items":{"$ref":"#/components/schemas/JsonWorkspaceMember"}}},"required":["tables"]},"FormulaCheckFieldDto":{"type":"object","properties":{"id":{"type":"string","description":"Id of a saved field"},"apiName":{"type":"string"},"displayName":{"type":"string"},"kind":{"allOf":[{"$ref":"#/components/schemas/FieldKind"}]},"options":{"type":"object","additionalProperties":true}},"required":["kind"]},"FormulaDiagnosticDto":{"type":"object","properties":{"code":{"type":"string","description":"FORMULA_SYNTAX, FORMULA_UNKNOWN_REF, …"},"severity":{"type":"string","enum":["error","warning","info"]},"message":{"type":"string","description":"English fallback; clients translate by code"},"params":{"type":"object","additionalProperties":true}},"required":["code","severity","message"]},"FormulaSampleDto":{"type":"object","properties":{"record":{"$ref":"#/components/schemas/RecordDataDto"},"value":{"type":"object","description":"The value the field would store","nullable":true}},"required":["record","value"]},"RecordMetadata":{"type":"object","properties":{"viewOrders":{"type":"object","additionalProperties":{"type":"number"},"description":"Orders in different views (viewId -> order)"},"avatarUrl":{"type":"string","description":"Avatar file path stored in record metadata"},"formulaOverrides":{"description":"Calculated-default fields a person typed over; they are no longer recalculated","type":"array","items":{"type":"string"}},"ruleIssues":{"type":"array","items":{"type":"object"},"description":"Rules this record breaks, saved by a change that may not be refused (e.g. a public booking). Cleared by the next save that passes."},"source":{"type":"object","additionalProperties":true,"description":"The feature that made this record when no person did (a booking page, a form…)"}}},"RelatedRecordDto":{"type":"object","properties":{"tableId":{"type":"string"},"record":{"description":"Basic record data","allOf":[{"$ref":"#/components/schemas/RecordDataBasicDto"}]}},"required":["tableId","record"]},"UserInfoDto":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","email"]},"RecordMoveDto":{"type":"object","properties":{"to":{"type":"string","description":"The status the record can be moved to"},"requireComment":{"type":"boolean","description":"Whether a comment must be written to make this move"}},"required":["to","requireComment"]},"ActivityItemDto":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"actorType":{"allOf":[{"$ref":"#/components/schemas/ActivityActor"}]},"actorUserId":{"type":"string"},"scope":{"allOf":[{"$ref":"#/components/schemas/ActivityScope"}]},"activityType":{"type":"string"},"recordId":{"type":"string"},"tableId":{"type":"string"},"fieldId":{"type":"string"},"fieldName":{"type":"string"},"payload":{"type":"object","additionalProperties":true},"origin":{"type":"string","description":"Where the change came from, e.g. user, workflow, mcp, import"},"originRef":{"type":"string","description":"Which workflow, form or connector"},"comment":{"type":"string","description":"Note given with the change, e.g. on an approval"},"occurredAt":{"format":"date-time","type":"string"}},"required":["id","workspaceId","actorType","scope","activityType","occurredAt"]},"RecordLinkCountDto":{"type":"object","properties":{"direction":{"type":"string","enum":["downstream","upstream"]},"tableId":{"type":"string","description":"The linked object."},"fieldId":{"type":"string","description":"The link field (on this record when downstream, on the other record when upstream)."},"count":{"type":"number"}},"required":["direction","tableId","fieldId","count"]},"RecordThroughCountDto":{"type":"object","properties":{"tableId":{"type":"string","description":"The object."},"count":{"type":"number","description":"Records of it linked through one record in between, not directly."}},"required":["tableId","count"]},"LinkedThroughItemDto":{"type":"object","properties":{"recordId":{"type":"string","description":"The record linked through another one."},"viaRecordId":{"type":"string","description":"The record in between it is linked through."},"viaTableId":{"type":"string","description":"The object of the record in between."}},"required":["recordId","viaRecordId","viaTableId"]},"ScopedWorkspaceDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"FieldQueryFilter":{"type":"object","properties":{"fieldId":{"description":"Field ID to filter on","example":"field_id_123","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/SystemField"}]},"operator":{"description":"Filter operator: eq (equals), ne (not equals), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal), contains (substring match), in (value exists in array), is_empty (field has no value), is_not_empty (field has value)","example":"eq","allOf":[{"$ref":"#/components/schemas/FilterOperator"}]},"value":{"description":"Value to compare against. Type should match the field type and operator requirements.","example":123,"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array"}]},"condition":{"description":"Logical condition to chain with the previous filter or group (AND/OR). Defaults to AND if not specified. The first filter in the array ignores this field. For grouped filters, this determines how the group connects to the previous filter/group.","example":"and","allOf":[{"$ref":"#/components/schemas/FilterCondition"}]},"groupId":{"type":"string","description":"Optional group identifier. Filters sharing the same groupId are wrapped in parentheses and evaluated together as a logical unit. Filters within a group are chained using their individual condition fields. Groups are connected to each other using the condition field of the first filter in each subsequent group. Use grouping to create complex expressions like: (A OR B) AND (C OR D).","example":"group1"}},"required":["fieldId","operator","value"]},"SortConfig":{"type":"object","properties":{"fieldId":{"description":"Field ID to sort by","oneOf":[{"type":"string"},{"$ref":"#/components/schemas/SystemField"}]},"direction":{"description":"Sort direction: asc or desc","allOf":[{"$ref":"#/components/schemas/SortDirection"}]}},"required":["fieldId","direction"]},"NearestRecordFiltersDto":{"type":"object","properties":{"filters":{"description":"The closest filters that match someone","type":"array","items":{"$ref":"#/components/schemas/FieldQueryFilter"}},"count":{"type":"number","description":"How many records they match"},"leftOut":{"description":"What they leave out of the description","type":"array","items":{"$ref":"#/components/schemas/LeftOutConditionDto"}}},"required":["filters","count","leftOut"]},"RecordDuplicateGroupDto":{"type":"object","properties":{"strategy":{"type":"string"},"strategyLabel":{"type":"string"},"duplicateKey":{"type":"string"},"displayValue":{"type":"string"},"matchMode":{"allOf":[{"$ref":"#/components/schemas/DuplicateMatchMode"}]},"count":{"type":"number"},"confidence":{"type":"number"},"records":{"type":"array","items":{"$ref":"#/components/schemas/RecordDataDto"}}},"required":["strategy","strategyLabel","duplicateKey","displayValue","matchMode","count","records"]},"ChartQueryDto":{"type":"object","properties":{"tableId":{"type":"string"},"groupId":{"type":"string"},"metadata":{"$ref":"#/components/schemas/ChartMetadata"},"chartId":{"type":"string"},"chartType":{"allOf":[{"$ref":"#/components/schemas/ChartType"}]},"measure":{"allOf":[{"$ref":"#/components/schemas/MeasureType"}]},"measureField":{"type":"string"},"ratioFieldValue":{"type":"string"},"groupByField":{"type":"string"},"viewByField":{"type":"string"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FieldQueryFilter"}},"series":{"type":"array","items":{"$ref":"#/components/schemas/ChartSeriesDto"}},"workspaces":{"description":"Which organizations to read: 'this' (default), 'managed' (every client organization of this one you are a member of), or a list of ids (this one and/or its client organizations). Across organizations, objects and fields are matched by API name, and each result carries its workspaceId.","oneOf":[{"type":"string","enum":["this","managed"]},{"type":"array","items":{"type":"string"}}]}},"required":["tableId","groupId","chartType","measure"]},"ChartDataDto":{"type":"object","properties":{"chartId":{"type":"string"},"chartType":{"allOf":[{"$ref":"#/components/schemas/ChartType"}]},"measure":{"allOf":[{"$ref":"#/components/schemas/MeasureType"}]},"metric":{"$ref":"#/components/schemas/MetricDataDto"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ChartDataPointDto"}},"fieldName":{"type":"string"},"groupByFieldName":{"type":"string"},"error":{"type":"string"},"errorCode":{"type":"string","enum":["no_access"]},"periodStart":{"type":"string"},"periodEnd":{"type":"string"},"asOf":{"type":"string"},"from":{"type":"string"},"workspaces":{"type":"array","items":{"$ref":"#/components/schemas/ScopedWorkspaceDto"}}},"required":["chartType","measure"]},"FileAttachment":{"type":"object","properties":{"id":{"type":"string"},"path":{"type":"string"},"fileName":{"type":"string"},"fileSize":{"type":"number"},"mime":{"type":"string"},"isInline":{"type":"boolean"},"contentId":{"type":"string"},"url":{"type":"string"}},"required":["id","path","fileName","fileSize","mime"]},"MessageRecordLinkDto":{"type":"object","properties":{"id":{"type":"string"},"record":{"$ref":"#/components/schemas/RecordInfoDto"},"kind":{"type":"string"}},"required":["id","record","kind"]},"MessageUserLinkDto":{"type":"object","properties":{"id":{"type":"string"},"user":{"$ref":"#/components/schemas/UserInfoDto"},"kind":{"type":"string"}},"required":["id","user","kind"]},"MessageMessageLinkDto":{"type":"object","properties":{"id":{"type":"string"},"linkedMessage":{"$ref":"#/components/schemas/LinkedMessageDto"},"kind":{"type":"string"}},"required":["id","linkedMessage","kind"]},"RecordFilterDto":{"type":"object","properties":{"tableId":{"type":"string","description":"The object (table) the records belong to"},"fieldFilters":{"description":"The same filters record search takes","type":"array","items":{"$ref":"#/components/schemas/FieldQueryFilter"}}},"required":["tableId"]},"RecordLinkFilter":{"type":"object","properties":{"recordIds":{"description":"Record IDs to filter by","type":"array","items":{"type":"string"}},"kinds":{"description":"Link kinds to filter by (e.g. attached, mentioned_in). If omitted, all kinds are included.","type":"array","items":{"type":"string"}}},"required":["recordIds"]},"UserLinkFilter":{"type":"object","properties":{"userIds":{"description":"User IDs to filter by","type":"array","items":{"type":"string"}},"kinds":{"description":"Link kinds to filter by (e.g. owner, mentioned_in). If omitted, all kinds are included.","type":"array","items":{"type":"string"}}},"required":["userIds"]},"SearchableTextTokenFilter":{"type":"object","properties":{"key":{"type":"string","description":"Optional token key. When provided the search token is matched as key:value."},"value":{"type":"string","description":"Token value to match in searchableText. Without key this matches the raw value token."}},"required":["value"]},"MessageQuerySortOrder":{"type":"string","enum":["asc","desc"],"description":"Sort order by message timestamp (default: desc)"},"MultipleMessageLinkStatsItemDto":{"type":"object","properties":{"name":{"type":"string","description":"Name of the statistic"},"recordId":{"type":"string","description":"Record ID to aggregate by"},"recordIds":{"description":"Several records counted together, as a record's Interactions list shows them (the record and its related records). Each message counts once","type":"array","items":{"type":"string"}},"byType":{"type":"boolean","description":"Also return the count split by message type, in the same query"},"userId":{"type":"string","description":"User ID to aggregate by"},"kinds":{"description":"Link kinds to count (e.g. mentioned_in)","type":"array","items":{"type":"string"}},"integrationTypes":{"description":"Integration types to filter by","type":"array","items":{"type":"string"}}},"required":["name","kinds"]},"MultipleMessageLinkStatsResultDto":{"type":"object","properties":{"name":{"type":"string","description":"Name of the statistic"},"kinds":{"description":"Link kind(s) used for counting","type":"array","items":{"type":"string"}},"count":{"type":"number","description":"Number of messages matching the filters"},"byType":{"type":"object","description":"With byType: the same count split by message type (e.g. teams, MICROSOFT_NATIVE), from one query","additionalProperties":{"type":"number"}}},"required":["name","kinds","count"]},"WorkflowsOpenApiInfoDto":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"version":{"type":"string"}},"required":["title","description","version"]},"WorkflowsOpenApiServerDto":{"type":"object","properties":{"url":{"type":"string","description":"The address to send requests to"}},"required":["url"]},"TemplateListing":{"type":"object","properties":{"icon":{"type":"string"},"suggestedIndustries":{"description":"Onboarding industries that get a \"Recommended\" badge.","type":"array","items":{"type":"string"}},"section":{"type":"string","enum":["common","industry"],"description":"Where it is listed: \"common\" suits any business and is shown first; \"industry\" suits one line of work."}}},"TemplatePreview":{"type":"object","properties":{"views":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePreviewView"}},"charts":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePreviewChart"}}},"required":["views","charts"]},"WebsitePieceDto":{"type":"object","properties":{"kind":{"type":"string","enum":["chat","booking","help","form"]},"title":{"type":"string","description":"Its name in the app."},"code":{"type":"string","description":"The line that puts it on a site."},"url":{"type":"string","description":"Its own address."}},"required":["kind","title"]},"PackageSelectionDto":{"type":"object","properties":{"all":{"type":"boolean","description":"The whole setup."},"objects":{"description":"Objects, by API name or label.","type":"array","items":{"type":"string"}},"groups":{"description":"Groups by title, with their views and dashboards.","type":"array","items":{"type":"string"}},"forms":{"description":"Forms, by title.","type":"array","items":{"type":"string"}},"emailTemplates":{"description":"Email templates, by title.","type":"array","items":{"type":"string"}},"documentTemplates":{"description":"Document templates, by title.","type":"array","items":{"type":"string"}},"workflows":{"description":"Workflows, by name.","type":"array","items":{"type":"string"}}}},"TemplatePlanTable":{"type":"object","properties":{"apiName":{"type":"string"},"displayName":{"type":"string"},"isNew":{"type":"boolean","description":"False when the object already exists."},"newFields":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePlanField"}}},"required":["apiName","displayName","isNew","newFields"]},"TemplatePlanConflict":{"type":"object","properties":{"table":{"type":"string"},"field":{"type":"string"},"reason":{"type":"string","enum":["kind","source"]},"existing":{"type":"string"},"template":{"type":"string"}},"required":["table","field","reason","existing","template"]},"TemplatePlanGroup":{"type":"object","properties":{"title":{"type":"string"},"isNew":{"type":"boolean"},"restored":{"type":"boolean","description":"Hidden by an earlier uninstall; shown again."},"views":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePlanView"}}},"required":["title","isNew","restored","views"]},"TemplateSampleIssue":{"type":"object","properties":{"table":{"type":"string","description":"API name of the object."},"sample":{"type":"string","description":"The example's lookup value (e.g. its name), or its position such as #3."},"stage":{"type":"string","enum":["create","link"],"description":"create: the example was not added. link: it was added, but its links to examples added after it were refused."},"reason":{"type":"string","description":"Why it was refused, e.g. the rule message."}},"required":["table","sample","stage","reason"]},"TemplatePlanRule":{"type":"object","properties":{"table":{"type":"string","description":"API name of the object."},"rule":{"type":"string","description":"Stable id of the rule."},"change":{"type":"string","enum":["added","updated","kept-edited","kept-unknown","invalid"],"description":"added: new to the object. updated: the team never edited it, so it follows the template. kept-edited: the team edited it; theirs is kept. kept-unknown: installed before edits were tracked and not a version the template shipped; kept. invalid: doesn't fit the object any more; not changed."}},"required":["table","rule","change"]},"TemplatePlanRecord":{"type":"object","properties":{"table":{"type":"string","description":"API name of the hidden object, e.g. forms."},"title":{"type":"string"},"isNew":{"type":"boolean","description":"False when one with the same name is already there; it is left as it is."}},"required":["table","title","isNew"]},"TemplatePlanWorkflow":{"type":"object","properties":{"name":{"type":"string"},"isNew":{"type":"boolean","description":"False when the workspace already has it; it is left as it is."}},"required":["name","isNew"]},"TemplatePlanWarning":{"type":"object","properties":{"kind":{"type":"string","enum":["table","field","fieldPath","group","view","workflow","record","user","file","connection"]},"where":{"type":"string","description":"Where it was, e.g. the form or workflow."},"value":{"type":"string","description":"What it pointed at, e.g. an email address."},"reason":{"type":"string","description":"Why it was cleared."}},"required":["kind","where","value","reason"]},"WorkspaceProvider":{"type":"string","enum":["softsync","doneai","analystx"],"description":"Provider configured in the requesting client. Defaults to the server default for older clients."},"CreateWorkspaceFromDto":{"type":"object","properties":{"template":{"type":"string","description":"A template by name, e.g. crm. The default."},"workspaceId":{"type":"string","description":"Copy this organization's setup: objects, fields, groups, views, rules, forms, email and document templates, dashboards and workflows (switched off), with its language, country, currency, brand and sidebar. No records, members, mailboxes or connections. You must be its admin."}}},"NewWorkspacePersonDto":{"type":"object","properties":{"email":{"type":"string"},"role":{"allOf":[{"$ref":"#/components/schemas/WorkspaceRole"}]}},"required":["email","role"]},"WorkspacePreferenceDto":{"type":"object","properties":{"country":{"type":"string"},"currency":{"type":"string"},"fiscalYearStartMonth":{"type":"number","minimum":1,"maximum":12},"preferredLanguage":{"type":"string"},"avatarUrl":{"type":"string"},"segmentation":{"$ref":"#/components/schemas/WorkspaceSegmentationDto"},"onboarding":{"$ref":"#/components/schemas/WorkspaceOnboardingDto"},"partnerStack":{"$ref":"#/components/schemas/WorkspacePartnerStackDto"},"businessProfileScanId":{"type":"string","description":"The `scanId` from businessProfileScan. The finished profile is saved on the new workspace; it is not stored as a preference."}}},"WorkspaceMetadata":{"type":"object","properties":{"provider":{"allOf":[{"$ref":"#/components/schemas/WorkspaceProvider"}]},"template":{"type":"string"},"installedTemplates":{"type":"array","items":{"type":"string"}},"country":{"type":"string"},"currency":{"type":"string"},"fiscalYearStartMonth":{"type":"number","minimum":1,"maximum":12},"preferredLanguage":{"type":"string"},"avatarUrl":{"type":"string"},"segmentation":{"type":"object","description":"Expandable workspace segmentation metadata","example":{"role":"Sales","teamSize":"11-50","industry":"SaaS","usedSystem":"HubSpot"}},"onboarding":{"type":"object","description":"Durable progress for workspace-creation onboarding across redirects and sessions."},"partnerStack":{"type":"object"},"softLimitNotificationMonths":{"type":"object"},"businessProfile":{"type":"object"},"onboardingLater":{"type":"array","items":{"type":"string","enum":["import","mailbox"]}},"audienceSyncEnabled":{"type":"boolean"},"audienceSyncProviders":{"description":"Provider keys included when this workspace receives the platform audience projection. Empty means all providers.","type":"array","items":{"type":"string"}},"audienceLastSyncedAt":{"format":"date-time","type":"string"},"sidebar":{"type":"object"}}},"WorkflowErrorCode":{"type":"string","enum":["workflow_already_exists","workflow_invalid_definition","workflow_invalid_api_slug","workflow_api_slug_required","workflow_mcp_requires_api","workflow_no_webhook_trigger"]},"WorkflowRunStatus":{"type":"string","enum":["pending","running","waiting_timer","waiting_external","completed","failed","cancelled"],"description":"Filter runs by status"},"CalendarDateTimeInputDto":{"type":"object","properties":{"date_time":{"type":"string","description":"Date and time in ISO format"},"time_zone":{"type":"string","description":"Time zone identifier"}},"required":["date_time"]},"CalendarConferenceInputDto":{"type":"object","properties":{"provider":{"type":"string","description":"Conference provider"},"url":{"type":"string","description":"Conference URL"}}},"CalendarAttendeeInputDto":{"type":"object","properties":{"email":{"type":"string","description":"Email address of the attendee"},"display_name":{"type":"string","description":"Display name of the attendee"}},"required":["email"]},"EmailMailboxDto":{"type":"object","properties":{"integrationId":{"type":"string","description":"Identifier of the connected mailbox. Pass this as `integrationId` when sending."},"email":{"type":"string","description":"Address that email will be sent from."},"provider":{"type":"string","enum":["Google","Microsoft"],"description":"Mailbox provider backing this account."},"accountLabel":{"type":"string","description":"Human-friendly name for the mailbox."},"ownerName":{"type":"string","description":"Full name of the teammate who connected the mailbox."},"shared":{"type":"boolean","description":"True when the mailbox is shared with the workspace rather than owned privately by one person."}},"required":["integrationId","email","provider","accountLabel","shared"]},"EmailTemplateVariableDto":{"type":"object","properties":{"name":{"type":"string","description":"Write this as `{{name}}` in a subject or body to insert the value.","example":"first_name"},"displayName":{"type":"string","description":"Label shown for this field in the app."},"example":{"type":"string","description":"Example of what this placeholder renders as.","example":"Alex"}},"required":["name","displayName","example"]},"EmailSendWindowDto":{"type":"object","properties":{"timezone":{"type":"string","description":"IANA timezone the window is expressed in.","example":"Europe/Oslo"},"startTime":{"type":"string","description":"Earliest local send time, 24-hour `HH:MM`.","example":"09:00"},"endTime":{"type":"string","description":"Latest local send time, 24-hour `HH:MM`.","example":"17:00"},"weekdays":{"description":"Days the window applies to, 0 = Sunday through 6 = Saturday. Defaults to every day.","example":[1,2,3,4,5],"type":"array","items":{"type":"number"}}},"required":["timezone","startTime","endTime"]},"NoteContentDto":{"type":"object","properties":{"content":{"type":"string"}},"required":["content"]},"ReminderCadence":{"type":"string","enum":["daily","weekly","monthly"]},"ReminderVisibility":{"type":"string","enum":["private","public","selected"]},"ReminderKind":{"type":"string","enum":["once","recurring"]},"ReminderStatus":{"type":"string","enum":["scheduled","overdue","completed","paused","failed"]},"FormListItemDto":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"configuration":{"$ref":"#/components/schemas/FormConfigurationDto"},"id":{"type":"string"},"groupId":{"type":"string","description":"The group its answers go to"},"tableId":{"type":"string","description":"The object its answers are saved to"},"token":{"type":"string","description":"Its public link, while the form is on"},"needsGroup":{"type":"boolean","description":"Its group was deleted: an admin should move it to another group"},"usedBy":{"description":"The booking pages that ask this form's questions","type":"array","items":{"type":"string"}}},"required":["title","description","enabled","configuration","id","groupId","tableId"]},"FormConfigurationDto":{"type":"object","properties":{"destinations":{"type":"array","items":{"$ref":"#/components/schemas/FormDestinationDto"}},"fieldOrder":{"type":"array","items":{"type":"string"}},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FormFieldDto"}},"automatic":{"type":"array","items":{"$ref":"#/components/schemas/FormAutomaticDto"}},"design":{"type":"string","enum":["minimal","card","split","compact","bold"]},"successMessage":{"type":"string"},"redirectUrl":{"type":"string"},"notifyUserIds":{"type":"array","items":{"type":"string"}}},"required":["fields","design","successMessage"]},"FormDesign":{"type":"string","enum":["minimal","card","split","compact","bold"]},"PublicFormFieldDto":{"type":"object","properties":{"id":{"type":"string","description":"The key to answer this question with"},"label":{"type":"string"},"kind":{"allOf":[{"$ref":"#/components/schemas/FieldKind"}]},"required":{"type":"boolean"},"inputType":{"type":"string","description":"How the answer is typed, e.g. a date, or long text"},"isMany":{"type":"boolean","description":"More than one answer can be given"},"choices":{"description":"The options to pick from, for choice and link questions","type":"array","items":{"$ref":"#/components/schemas/PublicFormChoiceDto"}},"accept":{"description":"File questions: the kinds of file accepted","type":"array","items":{"type":"string"}},"maxBytes":{"type":"number","description":"File questions: the largest file accepted, in bytes"},"consent":{"$ref":"#/components/schemas/PublicFormConsentDto"}},"required":["id","label","kind","required","isMany"]},"MeetingKind":{"type":"string","enum":["appointment","event"]},"MeetingBrandDisplay":{"type":"string","enum":["workspace","custom","hidden"]},"MeetingReplyTo":{"type":"string","enum":["hosts","custom"]},"MeetingPolicy":{"type":"string","enum":["individual","round_robin","collective","team_pool"]},"MeetingHostReadinessStatus":{"type":"string","enum":["ready","no_mailbox","only_shared_mailbox","mailbox_needs_reconnect","no_availability"]},"MeetingMailboxProvider":{"type":"string","enum":["google","microsoft"]},"MeetingAvailabilityWindowDto":{"type":"object","properties":{"weekdays":{"description":"Days of the week this applies to: Sunday is 0, Saturday is 6.","type":"array","items":{"type":"number"}},"startMinute":{"type":"number","description":"Start, as minutes after midnight in the host's time zone (0 to 1439). 540 is 09:00."},"endMinute":{"type":"number","description":"End, as minutes after midnight in the host's time zone (1 to 1440), later than the start. 1020 is 17:00."}},"required":["weekdays","startMinute","endMinute"]},"MeetingAvailabilityOverrideDto":{"type":"object","properties":{"date":{"type":"string","description":"A calendar day, YYYY-MM-DD, in the host's time zone."},"endDate":{"type":"string","description":"Last day of a multi-day block, YYYY-MM-DD, inclusive."},"startAt":{"type":"string","description":"Start of a date-time range, local to the host's time zone, e.g. 2026-10-20T13:00."},"endAt":{"type":"string","description":"End of a date-time range, local to the host's time zone."},"available":{"type":"boolean","description":"true makes the host available in this exception; false blocks the time."},"windows":{"description":"Hours that apply to this exception, or the weekly working hours.","type":"array","items":{"$ref":"#/components/schemas/MeetingAvailabilityIntervalDto"}}},"required":["available"]},"MeetingCalendarSelectionDto":{"type":"object","properties":{"integrationId":{"type":"string","description":"Id of a connected mailbox."},"calendarId":{"type":"string","description":"Calendar inside that mailbox."}},"required":["integrationId","calendarId"]},"MeetingAttendeeDto":{"type":"object","properties":{"id":{"type":"string"},"guestOf":{"type":"string","description":"Invited by a booker or host: the booker's id"},"name":{"type":"string"},"email":{"type":"string"},"status":{"allOf":[{"$ref":"#/components/schemas/MeetingAttendeeStatus"}]},"responses":{"type":"object","additionalProperties":true},"notes":{"type":"string"}},"required":["id","name","email","status"]},"MeetingBookingStatus":{"type":"string","enum":["confirmed","cancelled","failed"]},"MeetingAttendance":{"type":"string","enum":["met","no_show"],"description":"Marked after the meeting: the guest came (met) or did not (no_show)"},"MeetingSeriesFailureDto":{"type":"object","properties":{"start":{"type":"string","description":"When the session would have started, ISO 8601"},"message":{"type":"string"}},"required":["start","message"]},"MeetingPublicFormDto":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"design":{"allOf":[{"$ref":"#/components/schemas/FormDesign"}]},"fields":{"type":"array","items":{"$ref":"#/components/schemas/MeetingPublicFormFieldDto"}},"language":{"type":"string","description":"The workspace's language"}},"required":["title","description","design","fields"]},"MeetingBrandDto":{"type":"object","properties":{"name":{"type":"string"},"logoUrl":{"type":"string"}},"required":["name"]},"MeetingPublicWorkspaceDto":{"type":"object","properties":{"name":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["name"]},"MeetingAttendeeStatus":{"type":"string","enum":["confirmed","cancelled"]},"EnrichDataDto":{"type":"object","properties":{"text":{"type":"string","description":"Text to be processed for enrichment. Optional when recordId is given.","example":"Create contact for John"},"recordId":{"type":"string","description":"Company or contact to enrich from its own website, work email, LinkedIn URL or org number. Fills empty fields only.","format":"uuid"},"files":{"description":"Files to be processed for enrichment (max 5 files)","type":"array","items":{"$ref":"#/components/schemas/FileAttachment"}},"threadId":{"type":"string","description":"Thread ID for deduplication"}}},"EnrichOptionsDto":{"type":"object","properties":{"people":{"type":"boolean","description":"Companies: also find key people (CEO, founders, top managers) and save them as contacts linked to the company."},"emails":{"type":"boolean","description":"Companies: also find the key people's work emails (needs `people`). Contacts: find their own work email."},"phones":{"type":"boolean","description":"Companies: also find the key people's mobile or direct phones (needs `people`). Contacts: find their own phone. Mostly US numbers; five credits per phone found."},"profiles":{"type":"boolean","description":"Companies: also read the key people's LinkedIn profiles (about, headline, location, skills, education; needs `people`). One credit per profile."},"locale":{"type":"string","description":"The user's language, e.g. no-NO. Companies get the facts with no CRM field (funding rounds, acquisitions, products…) as a note in this language."}}},"TaskStatus":{"type":"string","enum":["pending","processing","completed","cancelled"],"description":"Task status"},"EnrichStatus":{"type":"string","enum":["enriched","partial","not_found","needs_more_input"]},"EnrichMessageCode":{"type":"string","enum":["personal_email_needs_more","nothing_to_enrich_from","lookup_expired","timed_out","cancelled","out_of_credits","busy"]},"EnrichPersonCard":{"type":"object","properties":{"fields":{"$ref":"#/components/schemas/EnrichPersonFields"},"sources":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/EnrichSource"}}},"required":["fields","sources"],"additionalProperties":false},"EnrichKeyPerson":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"nullable":true,"type":"string"},"roleCode":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"emailStatus":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"linkedinUrl":{"nullable":true,"type":"string"},"xUrl":{"nullable":true,"type":"string"},"source":{"type":"string","enum":["brreg","crunchbase","email_finder","aiark","linkedin","x","fundable"]},"match":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/EnrichRecordMatch"}]},"profile":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/EnrichPersonFields"}]}},"required":["id","name","role","source"],"additionalProperties":false},"EnrichRecordMatch":{"type":"object","properties":{"recordId":{"type":"string"},"tableId":{"type":"string"},"name":{"nullable":true,"type":"string"},"matchedBy":{"type":"string","enum":["record_id","org_no","domain","linkedin","x","email","name"]}},"required":["recordId","tableId","name","matchedBy"],"additionalProperties":false},"EnrichSaved":{"type":"object","properties":{"mode":{"type":"string","enum":["fill","refresh","overwrite"]},"companyRecordId":{"nullable":true,"type":"string"},"contactRecordId":{"nullable":true,"type":"string"},"created":{"type":"array","items":{"type":"string","enum":["company","contact"]}},"filled":{"type":"array","items":{"type":"string"}},"overwritten":{"type":"array","items":{"type":"string"}},"people":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"contactRecordId":{"type":"string"},"created":{"type":"boolean"},"filled":{"type":"array","items":{"type":"string"}}},"required":["id","contactRecordId","created","filled"],"additionalProperties":false}}},"required":["mode","companyRecordId","contactRecordId","created","filled","overwritten","people"],"additionalProperties":false},"EnrichFieldDiff":{"type":"object","properties":{"key":{"type":"string"},"record":{"type":"string","enum":["company","contact"]},"field":{"type":"string"},"current":{},"incoming":{}},"required":["key","record","field","current","incoming"],"additionalProperties":false},"EnrichCreditUsage":{"type":"object","properties":{"used":{"type":"number"},"quota":{"nullable":true,"type":"number"},"overQuota":{"type":"boolean"},"trial":{"type":"boolean"}},"required":["used","quota","overQuota"],"additionalProperties":false},"LeadRange":{"type":"object","properties":{"min":{"type":"integer","minimum":0,"maximum":1000000000000},"max":{"type":"integer","minimum":0,"maximum":1000000000000}},"additionalProperties":false},"EmployeeBand":{"type":"string","enum":["1-10","11-50","51-200","201-500","501-1K","1K-5K","5K-10K","over-10K"]},"RevenueBand":{"type":"string","enum":["under-1m","1m-10m","10m-50m","50m-100m","100m-200m","200m-1b","over-1b"]},"CompanyType":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]*$","description":"A company ownership type (e.g. \"privately_held\"). Allowed values: `GET /enrichment/leads/limits`."},"FundingType":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]*$","description":"A kind of funding round (e.g. \"series_a\"). Allowed values: `GET /enrichment/leads/limits`."},"FundingRound":{"type":"string","enum":["seed","angel","venture","series_a","series_b","series_c","series_d","series_e","debt_financing","other"]},"MailPlatform":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]*$","description":"Who hosts a company's email (e.g. \"google\"). Allowed values: `GET /enrichment/leads/limits`."},"LeadGrowth":{"type":"object","properties":{"team":{"default":"overall","allOf":[{"$ref":"#/components/schemas/GrowthTeam"}]},"minPercent":{"type":"integer","minimum":1,"maximum":500},"months":{"type":"integer","minimum":1,"maximum":60},"period":{"allOf":[{"$ref":"#/components/schemas/SignalPeriod"}]}},"required":["team","minPercent"],"additionalProperties":false,"description":"Headcount grew by at least `minPercent` in the last `months` (whole company, or one team of 5+ people). Based on public work profiles, so it trails by several months."},"LeadExclude":{"type":"object","properties":{"industries":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"keywords":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"technologies":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"countries":{"maxItems":30,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},"places":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"employeeTitles":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"fundingTypes":{"type":"array","items":{"$ref":"#/components/schemas/FundingType"}},"mailPlatforms":{"type":"array","items":{"$ref":"#/components/schemas/MailPlatform"}}},"additionalProperties":false,"description":"Companies matching any of these are left out. Leaving out works alongside something to look for, not on its own."},"PersonSeniority":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]*$","description":"How senior a person is (e.g. \"c-suite\", \"mid-level\"). Allowed values: `GET /enrichment/leads/limits`."},"PersonLanguage":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]*$","description":"A language a person speaks (e.g. \"english\"). Allowed values: `GET /enrichment/leads/limits`."},"ProfileBadge":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]*$","description":"What a person's profile shows (e.g. \"open_to_work\"). Allowed values: `GET /enrichment/leads/limits`."},"SignalPeriod":{"type":"string","enum":["m6","y1","y2"]},"PersonExclude":{"type":"object","properties":{"titles":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"departments":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-z0-9_-]{2,80}$"}},"countries":{"maxItems":30,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},"places":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"skills":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"companies":{"maxItems":10,"type":"array","items":{"anyOf":[{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"},{"type":"string","pattern":"^ark:[0-9a-f-]{8,64}$"}]}}},"additionalProperties":false,"description":"People matching any of these are left out. Leaving out works alongside something to look for, not on its own."},"EnrichCompanyFields":{"type":"object","properties":{"name":{"type":"string"},"legalName":{"type":"string"},"orgNo":{"type":"string"},"legalForm":{"type":"string"},"legalStatus":{"type":"string","enum":["active","bankrupt","liquidated"]},"website":{"type":"string"},"logo":{"type":"string"},"description":{"type":"string"},"linkedin":{"type":"string"},"twitter":{"type":"string"},"crunchbase":{"type":"string"},"employees":{"type":"string"},"employeeCount":{"type":"number"},"location":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"founded":{"type":"string"},"industries":{"type":"array","items":{"type":"string"}},"revenue":{"type":"number"},"revenueGrowth":{"type":"number"},"operatingResult":{"type":"number"},"netResult":{"type":"number"},"equity":{"type":"number"},"accountsYear":{"type":"string"},"currency":{"type":"string"},"streetAddress":{"type":"string"},"postalCode":{"type":"string"},"county":{"type":"string"},"industryCode":{"type":"string"},"accountant":{"type":"string"},"vatId":{"type":"string"},"fundingStage":{"type":"string"},"investors":{"type":"array","items":{"type":"string"}},"fundingTotal":{"type":"number"},"lastRound":{"allOf":[{"$ref":"#/components/schemas/EnrichFundingRound"}]},"valuation":{"type":"object","properties":{"amount":{"type":"number"},"date":{"nullable":true,"type":"string"}},"required":["amount","date"],"additionalProperties":false},"phone":{"type":"string"},"email":{"type":"string"},"longDescription":{"type":"string"},"aliases":{"type":"array","items":{"type":"string"}},"facebook":{"type":"string"},"pitchbook":{"type":"string"},"operatingStatus":{"type":"string"},"ipoStatus":{"type":"string"},"stockSymbol":{"type":"string"},"monthlyVisits":{"type":"number"},"fundingRounds":{"type":"array","items":{"type":"object","properties":{"type":{"nullable":true,"type":"string"},"amount":{"nullable":true,"type":"number"},"date":{"nullable":true,"type":"string"}},"required":["type","amount","date"],"additionalProperties":false}},"acquisitions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"date":{"nullable":true,"type":"string"}},"required":["name","date"],"additionalProperties":false}},"products":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"nullable":true,"type":"string"}},"required":["name","description"],"additionalProperties":false}},"technologies":{"type":"array","items":{"type":"string"}},"similarCompanies":{"type":"array","items":{"type":"string"}},"fundingHistory":{"type":"array","items":{"type":"object","properties":{"type":{"nullable":true,"type":"string"},"amount":{"nullable":true,"type":"number"},"date":{"nullable":true,"type":"string"},"valuation":{"nullable":true,"type":"number"},"investors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"domain":{"nullable":true,"type":"string"},"linkedin":{"nullable":true,"type":"string"},"lead":{"type":"boolean"},"partners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"linkedin":{"nullable":true,"type":"string"}},"required":["name","linkedin"],"additionalProperties":false}}},"required":["name","domain","linkedin","lead","partners"],"additionalProperties":false}},"angels":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"linkedin":{"nullable":true,"type":"string"}},"required":["name","linkedin"],"additionalProperties":false}}},"required":["type","amount","date","valuation","investors","angels"],"additionalProperties":false}}},"additionalProperties":false},"EnrichSource":{"type":"string","enum":["brreg","crunchbase","linkedin","search","email_finder","aiark","fundable","input","x"]},"PersonSignal":{"type":"object","properties":{"source":{"type":"string","enum":["x"]},"text":{"type":"string"},"at":{"type":"string"},"url":{"type":"string"}},"required":["source","text","at","url"],"additionalProperties":false},"GrowthTeam":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]*$","description":"A team whose headcount grew, or \"overall\" for the whole company. Allowed values: `GET /enrichment/leads/limits`."},"DocumentContentDto":{"type":"object","properties":{"blocks":{"type":"array","items":{"type":"object","additionalProperties":true}},"settings":{"type":"object"},"pdf":{"type":"object"}},"required":["blocks"]},"DocumentPageDto":{"type":"object","properties":{"size":{"allOf":[{"$ref":"#/components/schemas/PaperSize"}]},"landscape":{"type":"boolean"},"margin":{"$ref":"#/components/schemas/DocumentMarginDto"},"header":{"type":"string"},"footer":{"type":"string"},"pageNumbers":{"type":"boolean"}}},"DocumentStatus":{"type":"string","enum":["queued","done","failed"]},"SigningFieldKindDto":{"type":"object","properties":{"kind":{"allOf":[{"$ref":"#/components/schemas/SigningFieldKind"}]},"w":{"type":"number","description":"Starting width in points"},"h":{"type":"number","description":"Starting height in points"},"auto":{"type":"boolean","description":"Filled in by the server when the person signs, never typed"},"mark":{"type":"boolean","description":"Drawn as the person's adopted signature or initials"}},"required":["kind","w","h","auto","mark"]},"FileItemKind":{"type":"string","enum":["folder","upload","document"]},"FileItemState":{"type":"string","enum":["draft","final","sending","signed","declined","voided","expired"]},"SharedFromDto":{"type":"object","properties":{"recordId":{"type":"string","description":"The record the file is kept on"},"tableId":{"type":"string","description":"That record's object"}},"required":["recordId","tableId"]},"UploadedFileDto":{"type":"object","properties":{"path":{"type":"string"},"fileName":{"type":"string"},"fileSize":{"type":"number"},"mime":{"type":"string"},"id":{"type":"string"},"url":{"type":"string"},"uploadedAt":{"type":"string"},"uploadedBy":{"type":"string"},"workspaceId":{"type":"string"}},"required":["path","fileName","fileSize","mime"]},"SigningFieldDto":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","description":"Who fills it: a party role, \"Sender\" or \"Record\""},"kind":{"allOf":[{"$ref":"#/components/schemas/SigningFieldKind"}]},"page":{"type":"number","description":"0-based page index"},"x":{"type":"number"},"y":{"type":"number"},"w":{"type":"number"},"h":{"type":"number"},"required":{"type":"boolean"},"label":{"type":"string"},"fontSize":{"type":"number"},"options":{"description":"Choices of a select","type":"array","items":{"type":"string"}},"whenSigned":{"type":"boolean","description":"A date the server fills with the day this party signs, instead of one they pick"},"value":{"type":"string","description":"What a field filled from the record prints, as Liquid"}},"required":["id","role","kind","page","x","y","w","h","required"]},"PartyInputDto":{"type":"object","properties":{"role":{"type":"string","description":"The role in the document this person fills, e.g. \"Customer\""},"name":{"type":"string"},"email":{"type":"string"},"kind":{"allOf":[{"$ref":"#/components/schemas/PartyKind"}]},"step":{"type":"number","description":"Routing step: the same number signs at the same time, higher numbers wait","minimum":1,"maximum":20},"contactId":{"type":"string","description":"A contact record this person is"}},"required":["role","name","email","kind","step"]},"EnvelopeStatus":{"type":"string","enum":["sent","completed","declined","voided","expired"]},"PartyDto":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"kind":{"allOf":[{"$ref":"#/components/schemas/PartyKind"}]},"step":{"type":"number"},"status":{"allOf":[{"$ref":"#/components/schemas/PartyStatus"}]},"contactId":{"type":"string"},"lastSentAt":{"type":"string"},"viewedAt":{"type":"string"},"signedAt":{"type":"string"},"declineReason":{"type":"string"}},"required":["id","role","name","email","kind","step","status"]},"SigningPageDto":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"]},"SigningEventDto":{"type":"object","properties":{"id":{"type":"string"},"type":{"allOf":[{"$ref":"#/components/schemas/SigningEventType"}]},"partyId":{"type":"string"},"at":{"type":"string"},"ip":{"type":"string"},"userAgent":{"type":"string"},"detail":{"type":"string"},"hash":{"type":"string"}},"required":["id","type","at","hash"]},"PortalBrandDisplay":{"type":"string","enum":["workspace","custom","hidden"]},"PortalBrand":{"type":"object","properties":{"display":{"$ref":"#/components/schemas/PortalBrandDisplay"},"name":{"type":"string","maxLength":120},"logo":{"type":"string","maxLength":500}},"required":["display"],"additionalProperties":false},"PortalPage":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,39}$"},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":1000},"kind":{"$ref":"#/components/schemas/PortalPageKind"},"tableId":{"type":"string","minLength":1,"maxLength":64},"path":{"maxItems":4,"type":"array","items":{"$ref":"#/components/schemas/PortalStep"}},"where":{"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/PortalFilter"}},"groupIds":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"fieldIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"editFieldIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"uploadFieldIds":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"documentTemplateIds":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"layout":{"allOf":[{"$ref":"#/components/schemas/PortalPageLayout"}]},"topicFieldId":{"type":"string","minLength":1,"maxLength":64},"sort":{"type":"object","properties":{"fieldId":{"type":"string","minLength":1,"maxLength":64},"direction":{"$ref":"#/components/schemas/PortalSortDirection"}},"required":["fieldId","direction"],"additionalProperties":false},"imageFieldId":{"type":"string","minLength":1,"maxLength":64},"search":{"type":"boolean"},"resourceId":{"type":"string","minLength":1,"maxLength":64},"action":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PortalAction"}]}},"required":["key","title","kind"],"additionalProperties":false},"PortalPageKind":{"type":"string","enum":["records","form","booking"]},"RegistryFeatureKey":{"type":"string","enum":["client-organizations","meetings","portals","web-agents","forms","cms","documents","signing","mcp","desktop-app","chrome-extension","shared-mailboxes","api","downloads","tutorial-videos","videos","calls","agent-factory","gtm","integrations","integrations-catalog","records","data-model","messages","inbox","mailbox","calendar","notes","reminders","files","timers","dashboards","workflows","assistant","enrichment","leads","importer","templates","workspace","business-profile","meeting-summaries","billing","partners"],"description":"With reason 'requires': the required feature that is off"},"McpSkillReferenceDto":{"type":"object","properties":{"name":{"type":"string","description":"Reference name, used to load it"},"summary":{"type":"string","description":"When to read this reference"}},"required":["name","summary"]},"SavedSearchKind":{"type":"string","enum":["records","notes"]},"SavedSearchFieldFilter":{"type":"object","properties":{"fieldId":{"type":"string","minLength":1},"operator":{"type":"string","minLength":1},"value":{},"condition":{"type":"string","enum":["and","or","AND","OR"]},"groupId":{"type":"string"}},"required":["fieldId","operator","value"],"additionalProperties":false},"WorkspaceRole":{"type":"string","enum":["ADMIN","EDITOR","VIEWER","GUEST"],"description":"Roles that see it besides its managers"},"CalendarMode":{"type":"string","enum":["day","week","month"],"description":"Calendar mode for calendar views"},"FieldKind":{"type":"string","enum":["text","number","date","select","multi_select","relation","user","file"]},"NumberFieldOptions":{"type":"object","properties":{"isHidden":{"type":"boolean"},"visibleTo":{"description":"Makes the field private: only these people see its value (admins always do). Formulas that read it are private the same way.","allOf":[{"$ref":"#/components/schemas/FieldVisibilityDto"}]},"source":{"$ref":"#/components/schemas/FieldValueSource"},"prompt":{"type":"string","description":"AI record filling prompt for the field"},"aiType":{"description":"Type of AI generation for the field, by default is AUTO if undefined","allOf":[{"$ref":"#/components/schemas/AIFieldType"}]},"format":{"allOf":[{"$ref":"#/components/schemas/NumberFormat"}]},"currency":{"type":"string"},"decimals":{"type":"number"},"primaryValue":{"type":"boolean"}}},"TextFieldOptions":{"type":"object","properties":{"isHidden":{"type":"boolean"},"visibleTo":{"description":"Makes the field private: only these people see its value (admins always do). Formulas that read it are private the same way.","allOf":[{"$ref":"#/components/schemas/FieldVisibilityDto"}]},"source":{"$ref":"#/components/schemas/FieldValueSource"},"prompt":{"type":"string","description":"AI record filling prompt for the field"},"aiType":{"description":"Type of AI generation for the field, by default is AUTO if undefined","allOf":[{"$ref":"#/components/schemas/AIFieldType"}]},"inputType":{"allOf":[{"$ref":"#/components/schemas/TextFormat"}]},"checkDuplicates":{"type":"boolean","description":"Check for duplicates (for frontend usage)"},"isMany":{"type":"boolean"},"templateVariable":{"type":"boolean","description":"Offer this field as a variable in email templates"}}},"DateFieldOptions":{"type":"object","properties":{"isHidden":{"type":"boolean"},"visibleTo":{"description":"Makes the field private: only these people see its value (admins always do). Formulas that read it are private the same way.","allOf":[{"$ref":"#/components/schemas/FieldVisibilityDto"}]},"source":{"$ref":"#/components/schemas/FieldValueSource"},"prompt":{"type":"string","description":"AI record filling prompt for the field"},"aiType":{"description":"Type of AI generation for the field, by default is AUTO if undefined","allOf":[{"$ref":"#/components/schemas/AIFieldType"}]},"format":{"allOf":[{"$ref":"#/components/schemas/DateFormat"}]},"includeTime":{"type":"boolean"},"disableFuture":{"type":"boolean"},"disablePast":{"type":"boolean"}}},"SelectFieldOptions":{"type":"object","properties":{"isHidden":{"type":"boolean"},"visibleTo":{"description":"Makes the field private: only these people see its value (admins always do). Formulas that read it are private the same way.","allOf":[{"$ref":"#/components/schemas/FieldVisibilityDto"}]},"source":{"$ref":"#/components/schemas/FieldValueSource"},"prompt":{"type":"string","description":"AI record filling prompt for the field"},"aiType":{"description":"Type of AI generation for the field, by default is AUTO if undefined","allOf":[{"$ref":"#/components/schemas/AIFieldType"}]},"choices":{"type":"array","items":{"$ref":"#/components/schemas/FieldOptionChoice"}},"defaultValue":{"type":"string"},"allowCustom":{"type":"boolean"},"aliasName":{"type":"string"}}},"RelationFieldOptions":{"type":"object","properties":{"isHidden":{"type":"boolean"},"visibleTo":{"description":"Makes the field private: only these people see its value (admins always do). Formulas that read it are private the same way.","allOf":[{"$ref":"#/components/schemas/FieldVisibilityDto"}]},"source":{"$ref":"#/components/schemas/FieldValueSource"},"targetTable":{"type":"string"},"tableId":{"type":"string"},"isMany":{"type":"boolean"},"anyTable":{"type":"boolean","description":"Links a record of any object instead of one target table (feature objects only; see core/record/any-relation)."}},"required":["targetTable"]},"UserFieldOptions":{"type":"object","properties":{"isHidden":{"type":"boolean"},"visibleTo":{"description":"Makes the field private: only these people see its value (admins always do). Formulas that read it are private the same way.","allOf":[{"$ref":"#/components/schemas/FieldVisibilityDto"}]},"source":{"$ref":"#/components/schemas/FieldValueSource"},"isMany":{"type":"boolean"},"restrictToWorkspace":{"type":"boolean"}}},"FileFieldOptions":{"type":"object","properties":{"isHidden":{"type":"boolean"},"visibleTo":{"description":"Makes the field private: only these people see its value (admins always do). Formulas that read it are private the same way.","allOf":[{"$ref":"#/components/schemas/FieldVisibilityDto"}]},"source":{"$ref":"#/components/schemas/FieldValueSource"},"isMany":{"type":"boolean"},"maxSize":{"type":"number"},"allowedMimeTypes":{"type":"array","items":{"type":"string"}},"fileType":{"allOf":[{"$ref":"#/components/schemas/FileType"}]}}},"RuleType":{"type":"string","enum":["required","unique","validate","lock","transition","visible","acyclic","no_overlap"],"description":"required: fields must be filled. unique: no two records share the value. validate: `when` must be true after the save. lock: while `when` is true for the record before the save, its fields can't change. transition: only the moves in `allow` may change the status `field`. visible: only the people in `who` (and admins) see the object's records. acyclic: the one link field in `fields` points at this same object and may never lead back to the record (a page under its own child, a task that waits on itself). no_overlap: records with the same `fields` values (e.g. the same room) may not have overlapping time spans; `period` names the start and end date fields, and an empty end never ends. A `when` limits it to records it holds for, e.g. not cancelled."},"LockOperation":{"type":"string","enum":["update","delete","restore","groups"],"description":"Lock only: what is refused while locked. Default update and delete."},"TransitionStepDto":{"type":"object","properties":{"from":{"description":"Statuses the move starts from. \"\" means no status yet.","type":"array","items":{"type":"string"}},"to":{"description":"Statuses the move ends in.","type":"array","items":{"type":"string"}},"when":{"type":"string","description":"A formula that must hold for the record after the move."},"who":{"description":"Who may make the move: `{Field}` (a person field on the record), `role:admin|editor|viewer`, `user:<id>` or `origin:<where the save comes from>`. Omitted means anyone who can edit.","type":"array","items":{"type":"string"}},"never":{"description":"Who may never make the move, even when `who` (a role included) lets them: same entries as `who`. E.g. `{Person}` so nobody approves their own timesheet.","type":"array","items":{"type":"string"}},"requireComment":{"type":"boolean","description":"The move needs a comment (e.g. why it was rejected)."},"stamp":{"type":"object","description":"Fields written in the same save: field API name → formula, e.g. {\"approved_by\": \"ACTOR()\", \"approved_at\": \"NOW()\"}."}},"required":["from","to"]},"TableTimerDto":{"type":"object","properties":{"startField":{"type":"string","description":"API name of the date-and-time field the timer starts."},"endField":{"type":"string","description":"API name of the date-and-time field the timer stops."},"personField":{"type":"string","description":"API name of the person field: whose time it is."}},"required":["startField","endField","personField"]},"TableRelationCardDto":{"type":"object","properties":{"subtitle":{"description":"API names of fields shown on one line under the record name, at most 3.","type":"array","items":{"type":"string"}},"primary":{"type":"string","description":"API name of the field highlighted on the right, e.g. a line total, a status or a due date."},"fields":{"description":"API names of fields listed with their labels below the name, at most 6.","type":"array","items":{"type":"string"}}}},"TableRelationTabsDto":{"type":"object","properties":{"order":{"description":"Tabs first-to-last, each `<direction>-<tableId>-<fieldId>`; tabs not listed follow in the default order.","type":"array","items":{"type":"string"}},"noThrough":{"description":"Tabs that leave out records linked through one record in between.","type":"array","items":{"type":"string"}}}},"TableDiagnosticSeverity":{"type":"string","enum":["error","warning","info"]},"TextRange":{"type":"object","properties":{"from":{"type":"number"},"to":{"type":"number"}},"required":["from","to"]},"JsonGroup":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"visibility":{"allOf":[{"$ref":"#/components/schemas/GroupVisibility"}]},"charts":{"type":"array","items":{"$ref":"#/components/schemas/ChartConfig"}},"metadata":{"type":"object"},"order":{"type":"number"},"views":{"type":"array","items":{"$ref":"#/components/schemas/JsonView"}},"members":{"type":"array","items":{"$ref":"#/components/schemas/JsonGroupMember"}}},"required":["title","views","members"]},"JsonDashboard":{"type":"object","properties":{"groupId":{"type":"string","description":"The group the dashboard shows in"},"config":{"$ref":"#/components/schemas/ChartConfig"}},"required":["groupId","config"]},"JsonWorkspaceMember":{"type":"object","properties":{"userId":{"type":"string"},"role":{"allOf":[{"$ref":"#/components/schemas/WorkspaceRole"}]},"joinedAt":{"type":"string"},"lastLoginAt":{"type":"string"},"acceptedAt":{"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["userId","role","email"]},"RecordDataBasicDto":{"type":"object","properties":{"id":{"type":"string"},"data":{"type":"object","description":"Raw data keyed by field ID"},"metadata":{"$ref":"#/components/schemas/RecordMetadata"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"lastInteractionAt":{"type":"object","nullable":true},"lastSentAt":{"type":"object","nullable":true,"description":"When we last wrote to them, on any channel"},"lastReceivedAt":{"type":"object","nullable":true,"description":"When they last wrote to us, on any channel"},"isDeleted":{"type":"boolean","default":false},"table":{"type":"string"},"workspace":{"type":"string"},"createdBy":{"type":"string"}},"required":["id","data","createdAt","updatedAt","table","workspace"]},"ActivityActor":{"type":"string","enum":["user","system"]},"ActivityScope":{"type":"string","enum":["record","table","workspace"]},"SystemField":{"type":"string","enum":["__system_created_at","__system_updated_at","__system_created_by","__system_last_interaction_at","__system_last_sent_at","__system_last_received_at"]},"FilterOperator":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","in","is_empty","is_not_empty"],"description":"Filter operator: eq (equals), ne (not equals), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal), contains (substring match), in (value exists in array), is_empty (field has no value), is_not_empty (field has value)"},"FilterCondition":{"type":"string","enum":["and","or"],"description":"Logical condition to chain with the previous filter or group (AND/OR). Defaults to AND if not specified. The first filter in the array ignores this field. For grouped filters, this determines how the group connects to the previous filter/group."},"SortDirection":{"type":"string","enum":["asc","desc"],"description":"Sort direction: asc or desc"},"LeftOutConditionDto":{"type":"object","properties":{"fieldId":{"type":"string","description":"The field it was on"},"field":{"type":"string","description":"The field it was on, by its name"},"values":{"description":"The value or values it asked for (choice labels)","type":"array","items":{"type":"string"}}},"required":["fieldId","field","values"]},"DuplicateMatchMode":{"type":"string","enum":["exact","fuzzy"]},"ChartMetadata":{"type":"object","properties":{"categoryOrder":{"allOf":[{"$ref":"#/components/schemas/ChartCategoryOrder"}]},"presentation":{"allOf":[{"$ref":"#/components/schemas/ChartPresentation"}]},"target":{"type":"number"},"topN":{"type":"number","minimum":3,"maximum":50},"useViewByAlias":{"type":"boolean"},"useGroupByAlias":{"type":"boolean"},"timeBucket":{"allOf":[{"$ref":"#/components/schemas/TimeBucket"}]},"bucketOrder":{"allOf":[{"$ref":"#/components/schemas/BucketOrder"}]},"valueMode":{"allOf":[{"$ref":"#/components/schemas/ValueMode"}]},"period":{"$ref":"#/components/schemas/ChartPeriod"},"compareTo":{"allOf":[{"$ref":"#/components/schemas/CompareTo"}]},"forecast":{"$ref":"#/components/schemas/ChartForecast"},"trend":{"$ref":"#/components/schemas/ChartTrend"},"asOf":{"$ref":"#/components/schemas/ChartMoment"},"from":{"$ref":"#/components/schemas/ChartMoment"},"stacked":{"type":"boolean"}}},"ChartType":{"type":"string","enum":["bar","grouped_bar","stacked_bar","pie","metric","combo","bridge"]},"MeasureType":{"type":"string","enum":["count","sum","average","ratio","min","max","median","distinct_count","days_in_value","reached"]},"ChartSeriesDto":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"tableId":{"type":"string"},"groupId":{"type":"string"},"measure":{"allOf":[{"$ref":"#/components/schemas/MeasureType"}]},"measureField":{"type":"string"},"dateField":{"type":"string"},"snapshot":{"type":"boolean"},"render":{"allOf":[{"$ref":"#/components/schemas/SeriesRender"}]},"color":{"type":"string"},"valueMode":{"allOf":[{"$ref":"#/components/schemas/ValueMode"}]},"forecast":{"$ref":"#/components/schemas/ChartForecast"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FieldQueryFilter"}}},"required":["id","label","tableId","measure"]},"MetricDataDto":{"type":"object","properties":{"value":{"type":"number"},"previousValue":{"type":"number"},"changePercent":{"type":"number"},"periodStart":{"type":"string"},"trend":{"type":"array","items":{"$ref":"#/components/schemas/MetricTrendPoint"}},"periodEnd":{"type":"string"},"previousStart":{"type":"string"},"previousEnd":{"type":"string"}},"required":["value"]},"ChartDataPointDto":{"type":"object","properties":{"label":{"type":"string","description":"Choice's label"},"name":{"type":"string","description":"Choice's name"},"value":{"type":"number","description":"Value of the choice"},"color":{"type":"string"},"series":{"type":"string"},"seriesName":{"type":"string"},"seriesColor":{"type":"string"},"bucketKey":{"type":"string","description":"Bucket key for date-bucketed data points"},"bucketLabel":{"type":"string","description":"Bucket label for date-bucketed data points"},"bucketStart":{"type":"string","description":"First instant of the bucket (ISO), for date buckets"},"bucketEnd":{"type":"string","description":"First instant after the bucket (ISO), for date buckets"},"isForecast":{"type":"boolean","description":"A projected value"},"lower":{"type":"number","description":"Low end of the 80% range"},"upper":{"type":"number","description":"High end of the 80% range"},"step":{"description":"Bridge charts: which step this bar is","allOf":[{"$ref":"#/components/schemas/BridgeStep"}]}},"required":["label","name","value"]},"RecordInfoDto":{"type":"object","properties":{"id":{"type":"string"},"table":{"type":"string"},"groups":{"type":"array","items":{"type":"string"}},"data":{"type":"object","description":"Raw data keyed by field ID"},"metadata":{"$ref":"#/components/schemas/RecordMetadata"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"createdBy":{"type":"string"}},"required":["id","table","data","createdAt","updatedAt"]},"LinkedMessageDto":{"type":"object","properties":{"id":{"type":"string"},"integrationId":{"type":"string"},"integrationType":{"type":"string"},"content":{"type":"object"},"files":{"type":"array","items":{"$ref":"#/components/schemas/FileAttachment"}},"metadata":{"type":"object"},"searchableText":{"type":"string"},"timestamp":{"format":"date-time","type":"string"},"workspaceId":{"type":"string","description":"The organization the message is in. Set only when reading across organizations."},"createdAt":{"format":"date-time","type":"string"},"recordLinks":{"type":"array","items":{"$ref":"#/components/schemas/MessageRecordLinkDto"}},"userLinks":{"type":"array","items":{"$ref":"#/components/schemas/MessageUserLinkDto"}}},"required":["id","integrationId","integrationType","content","files","timestamp","createdAt","recordLinks","userLinks"]},"TemplatePreviewView":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"table":{"type":"string","description":"The object the view shows."},"viewType":{"type":"string"},"groupBy":{"$ref":"#/components/schemas/TemplatePreviewField"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePreviewField"}},"rows":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Example records, keyed by field apiName."}},"required":["name","group","table","viewType","fields","rows"]},"TemplatePreviewChart":{"type":"object","properties":{"chartType":{"type":"string"},"measure":{"type":"string"},"table":{"type":"string"},"by":{"type":"string","description":"Field the chart splits by."},"of":{"type":"string","description":"Field the chart adds up."}},"required":["chartType","measure","table"]},"TemplatePlanField":{"type":"object","properties":{"apiName":{"type":"string"},"displayName":{"type":"string"},"kind":{"type":"string"}},"required":["apiName","displayName","kind"]},"TemplatePlanView":{"type":"object","properties":{"name":{"type":"string"},"table":{"type":"string"},"isNew":{"type":"boolean"}},"required":["name","table","isNew"]},"WorkspaceSegmentationDto":{"type":"object","properties":{"role":{"type":"string"},"teamSize":{"type":"string"},"industry":{"type":"string"},"usedSystem":{"type":"string"},"usedSystemDetail":{"type":"string"},"acquisitionSource":{"type":"string"},"acquisitionSourceDetail":{"type":"string"},"referralCode":{"type":"string"}}},"WorkspaceOnboardingDto":{"type":"object","properties":{"version":{"type":"number","example":1},"status":{"type":"string","enum":["in_progress","completed"]},"currentStep":{"type":"string","enum":["intro","welcome","role","team","source","acquisition-source","loading","payment","story","connection-flow","contacts-import","email-integration","ready"]},"connectionFlowConnectorKey":{"type":"string"},"connectionFlowKey":{"type":"string"},"connectionFlowImportWorkflowName":{"type":"string"},"pendingInviteEmails":{"type":"array","items":{"type":"string"}},"startedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time"}},"required":["version","status"]},"WorkspacePartnerStackDto":{"type":"object","properties":{"xid":{"type":"string"},"partnerKey":{"type":"string"}}},"FormDestinationDto":{"type":"object","properties":{"path":{"type":"string"},"groupId":{"type":"string"}},"required":["path","groupId"]},"FormFieldDto":{"type":"object","properties":{"key":{"type":"string"},"fieldId":{"type":"string"},"label":{"type":"string"},"required":{"type":"boolean"},"where":{"description":"Link questions only: visitors pick from the linked records that match every condition.","type":"array","items":{"$ref":"#/components/schemas/FormPickFilterDto"}},"fromLink":{"type":"boolean","description":"Link questions only: no list is shown; the record comes from the form's link (e.g. a portal button), so visitors never see the others."},"consent":{"description":"Date questions only: shown as an unticked \"text me\" box with the disclosure and these links. Ticking it saves the moment the visitor agreed.","allOf":[{"$ref":"#/components/schemas/FormConsentDto"}]}},"required":["fieldId"]},"FormAutomaticDto":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"fieldId":{"type":"string"},"mode":{"type":"string","enum":["fixed","template","submitted_at","booked_at"]},"value":{"type":"string"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/FormValuePartDto"}}},"required":["fieldId","mode"]},"PublicFormChoiceDto":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]},"PublicFormConsentDto":{"type":"object","properties":{"business":{"type":"string","description":"The business that sends the texts"},"termsUrl":{"type":"string"},"privacyUrl":{"type":"string"}},"required":["business","termsUrl","privacyUrl"]},"MeetingAvailabilityIntervalDto":{"type":"object","properties":{"startMinute":{"type":"number","description":"Start, as minutes after midnight in the host's time zone (0 to 1439). 540 is 09:00."},"endMinute":{"type":"number","description":"End, as minutes after midnight in the host's time zone (1 to 1440), later than the start. 1020 is 17:00."}},"required":["startMinute","endMinute"]},"MeetingPublicFormFieldDto":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","description":"What kind of answer it takes, e.g. text, date or select"},"required":{"type":"boolean"},"inputType":{"type":"string"},"isMany":{"type":"boolean","description":"Several answers can be given"},"choices":{"type":"array","items":{"$ref":"#/components/schemas/MeetingPublicFormChoiceDto"}},"accept":{"description":"File questions: the file types allowed","type":"array","items":{"type":"string"}},"maxBytes":{"type":"number","description":"File questions: the largest file allowed, in bytes"},"consent":{"description":"An agreement to receive text messages","allOf":[{"$ref":"#/components/schemas/MeetingPublicFormConsentDto"}]}},"required":["id","label","kind","required"]},"EnrichPersonFields":{"type":"object","properties":{"name":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"title":{"type":"string"},"headline":{"type":"string"},"photo":{"type":"string"},"location":{"type":"string"},"email":{"type":"string"},"emailType":{"type":"string","enum":["work","personal","shared"]},"workEmail":{"type":"string"},"workEmailStatus":{"type":"string"},"phone":{"type":"string"},"linkedinUrl":{"type":"string"},"xUrl":{"type":"string"},"currentCompany":{"type":"string"},"currentCompanyHandle":{"type":"string"},"summary":{"type":"string"},"skills":{"type":"array","items":{"type":"string"}},"education":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"EnrichFundingRound":{"type":"object","properties":{"type":{"nullable":true,"type":"string"},"amount":{"type":"number"},"date":{"nullable":true,"type":"string"}},"required":["type","amount","date"],"additionalProperties":false},"PaperSize":{"type":"string","enum":["a4","a5","us-letter","us-legal"]},"DocumentMarginDto":{"type":"object","properties":{"top":{"type":"number"},"right":{"type":"number"},"bottom":{"type":"number"},"left":{"type":"number"}}},"SigningFieldKind":{"type":"string","enum":["signature","initials","date","full_name","email","text","number","checkbox","select"]},"PartyKind":{"type":"string","enum":["signer","copy"]},"PartyStatus":{"type":"string","enum":["waiting","sent","viewed","signed","declined"]},"SigningEventType":{"type":"string","enum":["sent","delivered","code_sent","verified","viewed","consented","signed","declined","reminded","link_copied","corrected","voided","expired","completed","stalled","undelivered"]},"PortalStep":{"type":"object","properties":{"fieldId":{"type":"string","minLength":1,"maxLength":64},"reverse":{"type":"boolean"},"tableId":{"type":"string","minLength":1,"maxLength":64}},"required":["fieldId"],"additionalProperties":false},"PortalFilter":{"type":"object","properties":{"fieldId":{"type":"string","minLength":1,"maxLength":64},"equals":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"}]}},"required":["fieldId","equals"],"additionalProperties":false},"PortalPageLayout":{"type":"string","enum":["list","articles"]},"PortalSortDirection":{"type":"string","enum":["asc","desc"]},"PortalAction":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":60},"pageKey":{"type":"string","maxLength":40},"answer":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,40}$"}},"required":["label","pageKey","answer"],"additionalProperties":false},"FieldVisibilityDto":{"type":"object","properties":{"roles":{"type":"array","description":"Workspace roles that see the field.","items":{"type":"string","enum":["editor","viewer","guest"]}},"users":{"description":"Ids of people who see the field.","type":"array","items":{"type":"string"}},"userFields":{"description":"User fields of the same object (API name or id): the person in them sees the field on that record, e.g. an employee their own salary.","type":"array","items":{"type":"string"}},"groupRoles":{"type":"array","description":"Roles in one of the record's groups that see the field.","items":{"type":"string","enum":["owner","admin","editor","viewer"]}}}},"FieldValueSource":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/FieldValueSourceType"}]},"format":{"type":"string","description":"Sequence format on text fields, e.g. \"INV-{YYYY}-{#####}\". Tokens: {YYYY} {YY} {MM} and one {#…} for the zero-padded counter."},"resetEvery":{"allOf":[{"$ref":"#/components/schemas/SequenceReset"}]},"start":{"type":"number","description":"First number of each period"},"expression":{"type":"string","description":"Formula, with fields in braces: \"{Qty} * {Unit price}\". Saved with field ids ({fld:<id>}) so renames never break it."},"version":{"type":"number","description":"Bumped by the server whenever the formula changes."},"deps":{"type":"object","additionalProperties":true,"description":"What the formula reads, worked out by the server on save. Anything sent is ignored."},"volatile":{"type":"boolean","description":"True when the formula uses TODAY() or NOW(), worked out by the server on save."}},"required":["type"]},"AIFieldType":{"type":"string","enum":["none","prompt","auto"],"description":"Type of AI generation for the field, by default is AUTO if undefined"},"NumberFormat":{"type":"string","enum":["number","currency","percent"]},"TextFormat":{"type":"string","enum":["text","email","phone","url","country","textarea","messenger","instagram","telegram"]},"DateFormat":{"type":"string","enum":["date","datetime","time"]},"FieldOptionChoice":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"alias":{"type":"string"},"color":{"type":"string"}},"required":["value","label"]},"FileType":{"type":"string","enum":["image","video","audio","document","any"]},"JsonView":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"tableId":{"type":"string"},"viewType":{"allOf":[{"$ref":"#/components/schemas/ViewType"}]},"config":{"$ref":"#/components/schemas/ViewConfigDto"},"order":{"type":"number"},"isDefault":{"type":"boolean"}},"required":["name","tableId","viewType"]},"JsonGroupMember":{"type":"object","properties":{"userId":{"type":"string"},"role":{"allOf":[{"$ref":"#/components/schemas/GroupRole"}]},"joinedAt":{"type":"string"},"lastActiveAt":{"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["userId","role","email"]},"ChartCategoryOrder":{"type":"string","enum":["field_asc","field_desc","value_asc","value_desc"]},"ChartPresentation":{"type":"string","enum":["bar","horizontal_bar","line","area","pie","donut","funnel","table","gauge","leaderboard","heatmap","treemap","segmented_bar","radar","radial_bar","pareto","nested_donut","stacked_area"]},"TimeBucket":{"type":"string","enum":["day","week","month","quarter","year"]},"BucketOrder":{"type":"string","enum":["asc","desc"]},"ValueMode":{"type":"string","enum":["value","cumulative","percent_of_total"]},"ChartPeriod":{"type":"object","properties":{"preset":{"allOf":[{"$ref":"#/components/schemas/PeriodPreset"}]},"unit":{"allOf":[{"$ref":"#/components/schemas/TimeBucket"}]},"n":{"type":"number"},"from":{"type":"string"},"to":{"type":"string"},"field":{"type":"string"}},"required":["preset"]},"CompareTo":{"type":"string","enum":["previous_period","previous_year"]},"ChartForecast":{"type":"object","properties":{"method":{"allOf":[{"$ref":"#/components/schemas/ForecastMethod"}]},"periods":{"type":"number"}},"required":["method","periods"]},"ChartTrend":{"type":"object","properties":{"unit":{"allOf":[{"$ref":"#/components/schemas/TimeBucket"}]},"n":{"type":"number","minimum":3,"maximum":24}},"required":["unit","n"]},"ChartMoment":{"type":"object","properties":{"mode":{"allOf":[{"$ref":"#/components/schemas/MomentMode"}]},"unit":{"allOf":[{"$ref":"#/components/schemas/TimeBucket"}]},"n":{"type":"number"},"date":{"type":"string"}},"required":["mode"]},"SeriesRender":{"type":"string","enum":["bar","line","area"]},"MetricTrendPoint":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"number"}},"required":["label","value"]},"BridgeStep":{"type":"string","enum":["start","added","changed","removed","end"],"description":"Bridge charts: which step this bar is"},"TemplatePreviewField":{"type":"object","properties":{"apiName":{"type":"string"},"displayName":{"type":"string"},"kind":{"type":"string"},"options":{"type":"object","additionalProperties":true}},"required":["apiName","displayName","kind","options"]},"FormPickFilterDto":{"type":"object","properties":{"fieldId":{"type":"string"},"equals":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"required":["fieldId","equals"]},"FormConsentDto":{"type":"object","properties":{"termsUrl":{"type":"string"},"privacyUrl":{"type":"string"}},"required":["termsUrl","privacyUrl"]},"FormValuePartDto":{"type":"object","properties":{"type":{"type":"string","enum":["text","answer","date","time","datetime"]},"value":{"type":"string"}},"required":["type"]},"MeetingPublicFormChoiceDto":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]},"MeetingPublicFormConsentDto":{"type":"object","properties":{"business":{"type":"string","description":"Who sends the text messages"},"termsUrl":{"type":"string"},"privacyUrl":{"type":"string"}},"required":["business","termsUrl","privacyUrl"]},"FieldValueSourceType":{"type":"string","enum":["manual","sequence","formula","formula-default"]},"SequenceReset":{"type":"string","enum":["never","year","month"]},"PeriodPreset":{"type":"string","enum":["this","last","next","to_date","last_n","next_n","custom"]},"ForecastMethod":{"type":"string","enum":["linear","moving_average","seasonal"]},"MomentMode":{"type":"string","enum":["now","start_of","ago","date"]}}},"security":[{"x-api-key":[]}]}