Affinda

Learn how to use Affinda with Composio

Overview

Enum

AFFINDA

Description

Affinda provides an AI-powered document processing platform that automates data extraction from various document types.

Authentication Details

api_key
stringRequired
workspace_id
stringRequired

Actions

Tool to create a new collection. use after you have a valid workspace id and want to group documents by a specific extractor within that workspace.

Action Parameters

extractor
stringRequired
name
stringRequired
workspace
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to upload a new document for parsing. use when you have the document file or a public url and need to extract structured data immediately.

Action Parameters

additionalExtractions
object
collection
string
expiryTime
string
file
string
fileName
string
identifier
string
url
string
workspace
string

Action Response

data
object
error
string
successful
boolean
Tool to create a new organization. use when you have a unique organization name and want to group resources under it.

Action Parameters

name
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to create a new workspace. use when you need to programmatically create a workspace container within an organization.

Action Parameters

name
stringRequired
organization
stringRequired
reject_invalid_documents
boolean
visibility
string

Action Response

data
object
error
string
successful
boolean
Tool to delete a specific collection by its id. use when you need to remove an unused collection. use after verifying the collection id.

Action Parameters

collection_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool 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.

Action Parameters

identifier
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to delete a specific organization by its id. use when you need to remove an organization after confirming its identifier.

Action Parameters

identifier
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to delete a specific workspace by its id. use when you need to remove an unused workspace after confirming the workspace id.

Action Parameters

workspace_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to remove a user from a workspace by membership id. use after confirming the workspace membership id to revoke access.

Action Parameters

identifier
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to list all workspace memberships for the authenticated user. use when you need to see roles and access across all workspaces.

Action Parameters

limit
integer
offset
integer
user
string
workspace
string

Action Response

data
object
error
string
successful
boolean
Tool to retrieve details of a specific collection by its id. use when you need full metadata about a collection after confirming its identifier.

Action Parameters

collection_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to retrieve a list of all collections. use when you need to list collections in your affinda workspace after authentication.

Action Parameters

limit
integer
offset
integer
workspace
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to retrieve details of a specific document by its id. use when you need full metadata and parsing results for a document after upload.

Action Parameters

identifier
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to retrieve a list of all documents. use when you need to list documents in your affinda workspace after authentication.

Action Parameters

collection
string
limit
integer
offset
integer
workspace
string

Action Response

data
object
error
string
successful
boolean
Tool to retrieve details of a specific organization by its id. use when you need to fetch an organization's metadata after confirming its identifier.

Action Parameters

identifier
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to retrieve a list of all organizations. use after authenticating to list all organizations available to the api key.

Action Parameters

limit
integer
offset
integer

Action Response

data
object
error
string
successful
boolean
Tool to retrieve details of a specific workspace by its id. use when you need full workspace metadata after confirming its identifier.

Action Parameters

identifier
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to retrieve a list of all workspaces. use when you need to list workspaces filtered by organization and optional name.

Action Parameters

name
string
organization
stringRequired

Action Response

data
array
error
string
successful
boolean
Tool to retrieve details of a specific workspace membership by its id. use when you need to confirm a user's role and details within a workspace after obtaining the membership identifier.

Action Parameters

identifier
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to update specific fields of a collection. use when you need to rename or reassign a collection after creation.

Action Parameters

custom_fields
array
documents
array
identifier
stringRequired
name
string
workspace
string

Action Response

data
object
error
string
successful
boolean
Tool to update specific fields of a document. use when you need to rename, reassign, or adjust expiry and storage settings after document creation.

Action Parameters

collection
string
customIdentifier
string
deleteAfterParse
boolean
enableValidationTool
boolean
expiryTime
string
fileName
string
identifier
stringRequired
language
string
regionBias
object
workspace
string

Action Response

data
object
error
string
successful
boolean
Tool to update specific fields of a workspace. use when you need to modify a workspace’s name, visibility, or document rejection policy after creation.

Action Parameters

name
string
reject_invalid_documents
boolean
visibility
string
workspace_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to update multiple annotations in one request. use when you need to modify parsed values or other fields across many annotations at once.

Action Parameters

annotations
arrayRequired

Action Response

data
object
error
string
successful
boolean
Tool to create a new resthook subscription. use after confirming your webhook endpoint is ready to receive document event notifications.

Action Parameters

event
stringRequired
organization
stringRequired
targetUrl
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to create a new tag. use when you need to label documents in a specific workspace.

Action Parameters

name
stringRequired
workspace
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to create a validation result. use when recording validation outcomes for a document after parsing.

Action Parameters

annotations
arrayRequired
document
stringRequired
message
stringRequired
passed
boolean
ruleSlug
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to delete a specific resthook subscription by id. use after confirming the subscription identifier when the webhook is no longer needed.

Action Parameters

identifier
integerRequired

Action Response

data
object
error
string
successful
boolean
Tool to list all tags. use after confirming authentication to fetch tags across workspaces.

Action Parameters

limit
integer
name
string
offset
integer
workspace
string

Action Response

data
array
error
string
successful
boolean
Tool to list validation results for documents. use after processing documents to inspect validation outcomes.

Action Parameters

document
stringRequired
limit
integer
offset
integer
ordering
string
workspace
string

Action Response

data
object
error
string
successful
boolean
Tool to retrieve a list of all annotations. use after parsing documents to list their annotations.

Action Parameters

after
string
before
string
document
string
limit
integer
offset
integer
workspace
string

Action Response

data
object
error
string
successful
boolean
Tool to retrieve details of a specific document type by its id. use when you need to confirm the configuration or metadata of a document type before processing documents.

Action Parameters

identifier
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to retrieve a list of all document types. use when you need to display or filter documents by type before processing.

Action Parameters

limit
integer
offset
integer
ordering
string

Action Response

data
object
error
string
successful
boolean
Tool to retrieve a list of all extractors. use when you need to paginate through available extractors.

Action Parameters

limit
integer
offset
integer
organization
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to retrieve details of a specific resthook subscription by its id. use after confirming its creation to verify its settings.

Action Parameters

identifier
integerRequired

Action Response

data
object
error
string
successful
boolean
Tool to retrieve a list of all resthook subscriptions. use after authenticating to list all webhook subscriptions associated with your account.

Action Parameters

Action Response

data
object
error
string
successful
boolean
Tool to retrieve monthly credits consumption for a workspace. use when tracking usage over a specific period before reporting.

Action Parameters

end
string
start
string
workspace_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to update parsed data for a resume or job description document. use after retrieving the document when you want to correct or add parsed fields.

Action Parameters

data
objectRequired
identifier
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to update specific fields of an organization. use when you need to modify an organization's name, avatar, or webhook and validation settings after creation.

Action Parameters

avatar
string
identifier
stringRequired
name
string
resthook_signature_key
string
validation_tool_config
object

Action Response

data
object
error
string
successful
boolean
Tool to update an existing resthook subscription. use after confirming the subscription identifier to modify its url, event, or activation status.

Action Parameters

active
boolean
event
string
identifier
integerRequired
targetUrl
string

Action Response

data
object
error
string
successful
boolean