Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Create Tag
AFFINDA_CREATE_TAGCreates a new tag in the specified workspace. Tags can be used to categorize and label documents for organization and filtering. Each tag name must be unique within its workspace. Returns the created tag with its ID and metadata.
Create Validation Result
AFFINDA_CREATE_VALIDATION_RESULTCreate a validation result for document annotations in Affinda. Use this tool to record validation outcomes after parsing a document. Validation results track whether specific annotations (extracted data fields) pass or fail business rules. Prerequisites: 1. Get a document identifier from Get Documents or Create Document 2. Get annotation IDs from Get Annotations for that document 3. Define a kebab-case rule slug that identifies your validation rule Example use cases: - Recording that an invoice total matches the sum of line items - Marking that a required field is present and valid - Logging validation failures for review workflows
Batch Create Validation Results
AFFINDA_CREATE_VALIDATION_RESULTS_BATCHBatch create multiple validation results for document annotations in a single API call. Use this action to efficiently record validation outcomes for multiple documents or rules at once, rather than making individual create requests for each validation result. This is particularly useful for bulk validation workflows or when validating multiple rules across many documents. Prerequisites: - Obtain document identifiers from Get Documents or Create Document actions - Get annotation IDs from Get Annotations for those documents - Define kebab-case rule slugs that identify your validation rules Common use cases: - Bulk recording of validation results across multiple documents - Validating multiple business rules on the same document - Automated validation workflows for large document batches
Create Workspace
AFFINDA_CREATE_WORKSPACETool to create a new workspace. Use when you need to programmatically create a workspace container within an organization.
Create Workspace Membership
AFFINDA_CREATE_WORKSPACE_MEMBERSHIPTool to add a user to a workspace by creating a membership. Use when you need to grant a user access to a specific workspace.
Batch Delete Annotations
AFFINDA_DELETE_ANNOTATIONS_BATCHBatch delete multiple document annotations in a single API call. Use this action to efficiently remove multiple annotations at once rather than making individual delete requests for each annotation. Prerequisites: - Obtain annotation IDs using the 'Get Annotations' action with a document filter - Annotations must exist in documents that have been processed by Affinda Common use cases: - Removing incorrect or unwanted annotations in bulk - Cleaning up annotations after document reprocessing - Deleting specific extracted data fields programmatically
Delete Collection
AFFINDA_DELETE_COLLECTIONPermanently delete a collection from Affinda by its identifier. This is a destructive operation that cannot be undone. Use Get Collections first to verify the collection ID before deletion. Note: Documents in the collection may also be affected.
Delete Data Source
AFFINDA_DELETE_DATA_SOURCEPermanently delete a mapping data source from the database by its identifier. This is a destructive operation that cannot be undone. Use when you need to remove a data source that is no longer needed or was created in error.
Delete Data Source Value
AFFINDA_DELETE_DATA_SOURCE_VALUETool to delete a specific value from a mapping data source. Use when you need to remove an incorrect or outdated value from a data source mapping.
Delete Document
AFFINDA_DELETE_DOCUMENTTool to delete a specific document by its ID. Use when you need to remove a document that is incorrect or no longer needed, after confirming the document ID.
Delete Document Type
AFFINDA_DELETE_DOCUMENT_TYPETool to permanently delete a document type by its identifier. Use when you need to remove a document type that is no longer needed. This is a destructive operation that cannot be undone.
Delete Index
AFFINDA_DELETE_INDEXTool to permanently delete an index from Affinda by its name. Use when you need to remove an index that is no longer needed. This is a destructive operation that cannot be undone.
Delete Invitation
AFFINDA_DELETE_INVITATIONTool to delete an invitation by its identifier. Use when you need to remove or revoke an invitation after confirming the invitation identifier.
Delete Organization
AFFINDA_DELETE_ORGANIZATIONPermanently deletes an organization from Affinda. This action is destructive and cannot be undone. All workspaces, collections, and documents associated with the organization will also be deleted. Use the get_organizations action first to confirm the organization identifier before deletion.
Delete Resthook Subscription
AFFINDA_DELETE_RESTHOOK_SUBSCRIPTIONTool to delete a specific resthook subscription by ID. Use after confirming the subscription identifier when the webhook is no longer needed.
Delete Tag
AFFINDA_DELETE_TAGPermanently delete a tag from Affinda by its ID. This is a destructive operation that cannot be undone. Use Get Tags first to verify the tag ID before deletion.
Delete Validation Results
AFFINDA_DELETE_VALIDATION_RESULTSDelete multiple validation results in a single API call. Use this action to efficiently remove multiple validation results at once rather than making individual delete requests for each validation result. Prerequisites: - Obtain validation result IDs using the 'Get All Validation Results' action Common use cases: - Removing obsolete validation results in bulk - Cleaning up validation results after reprocessing documents - Deleting validation results for specific documents programmatically
Delete Workspace
AFFINDA_DELETE_WORKSPACETool to delete a specific workspace by its ID. Use when you need to remove an unused workspace after confirming the workspace ID.
Delete Workspace Membership
AFFINDA_DELETE_WORKSPACE_MEMBERSHIPTool to remove a user from a workspace by membership ID. Use after confirming the workspace membership ID to revoke access.
Get All API Users
AFFINDA_GET_ALL_API_USERSTool to retrieve a list of all API users. Use when you need to list API users, optionally filtered by organization.