# Affinda

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

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**Affinda** authenticates with an API key. Generate the credential in your Affinda account, then paste it into FlyMyAI the first time an agent uses an Affinda action.

[Get your Affinda credential →](https://docs.affinda.com/docs/authentication)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `Affinda API Key` | The API key used for authenticating requests to the Affinda API. _(required)_ |
| `Workspace ID` | The identifier of the workspace within which the API operations are performed. _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `AFFINDA_BATCH_UPDATE_ANNOTATIONS` | Tool to update multiple annotations in one request. use when you need to modify parsed values or other fields across many annotations at once. | `annotations` |
| `AFFINDA_CREATE_COLLECTION` | 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. | `name`, `workspace`, `extractor` |
| `AFFINDA_CREATE_DOCUMENT` | 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. | - |
| `AFFINDA_CREATE_ORGANIZATION` | Tool to create a new organization. use when you have a unique organization name and want to group resources under it. | `name` |
| `AFFINDA_CREATE_RESTHOOK_SUBSCRIPTION` | Tool to create a new resthook subscription. use after confirming your webhook endpoint is ready to receive document event notifications. | `targetUrl`, `event`, `organization` |
| `AFFINDA_CREATE_TAG` | Tool to create a new tag. use when you need to label documents in a specific workspace. | `name`, `workspace` |
| `AFFINDA_CREATE_VALIDATION_RESULT` | Tool to create a validation result. use when recording validation outcomes for a document after parsing. | `annotations`, `ruleSlug`, `message`, `document` |
| `AFFINDA_CREATE_WORKSPACE` | Tool to create a new workspace. use when you need to programmatically create a workspace container within an organization. | `organization`, `name` |
| `AFFINDA_DELETE_COLLECTION` | Tool to delete a specific collection by its id. use when you need to remove an unused collection. use after verifying the collection id. | `collection_id` |
| `AFFINDA_DELETE_DOCUMENT` | 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. | `identifier` |
| `AFFINDA_DELETE_ORGANIZATION` | Tool to delete a specific organization by its id. use when you need to remove an organization after confirming its identifier. | `identifier` |
| `AFFINDA_DELETE_RESTHOOK_SUBSCRIPTION` | Tool to delete a specific resthook subscription by id. use after confirming the subscription identifier when the webhook is no longer needed. | `identifier` |
| `AFFINDA_DELETE_WORKSPACE` | Tool to delete a specific workspace by its id. use when you need to remove an unused workspace after confirming the workspace id. | `workspace_id` |
| `AFFINDA_DELETE_WORKSPACE_MEMBERSHIP` | Tool to remove a user from a workspace by membership id. use after confirming the workspace membership id to revoke access. | `identifier` |
| `AFFINDA_GET_ALL_TAGS` | Tool to list all tags. use after confirming authentication to fetch tags across workspaces. | - |
| `AFFINDA_GET_ALL_VALIDATION_RESULTS` | Tool to list validation results for documents. use after processing documents to inspect validation outcomes. | `document` |
| `AFFINDA_GET_ALL_WORKSPACE_MEMBERSHIPS` | Tool to list all workspace memberships for the authenticated user. use when you need to see roles and access across all workspaces. | - |
| `AFFINDA_GET_ANNOTATIONS` | Tool to retrieve a list of all annotations. use after parsing documents to list their annotations. | - |
| `AFFINDA_GET_COLLECTION` | Tool to retrieve details of a specific collection by its id. use when you need full metadata about a collection after confirming its identifier. | `collection_id` |
| `AFFINDA_GET_COLLECTIONS` | Tool to retrieve a list of all collections. use when you need to list collections in your affinda workspace after authentication. | `workspace` |
| `AFFINDA_GET_DOCUMENT` | 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. | `identifier` |
| `AFFINDA_GET_DOCUMENTS` | Tool to retrieve a list of all documents. use when you need to list documents in your affinda workspace after authentication. | - |
| `AFFINDA_GET_DOCUMENT_TYPE` | 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. | `identifier` |
| `AFFINDA_GET_DOCUMENT_TYPES` | Tool to retrieve a list of all document types. use when you need to display or filter documents by type before processing. | - |
| `AFFINDA_GET_EXTRACTORS` | Tool to retrieve a list of all extractors. use when you need to paginate through available extractors. | `organization` |
| `AFFINDA_GET_ORGANIZATION` | 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. | `identifier` |
| `AFFINDA_GET_ORGANIZATIONS` | Tool to retrieve a list of all organizations. use after authenticating to list all organizations available to the api key. | - |
| `AFFINDA_GET_RESTHOOK_SUBSCRIPTION` | Tool to retrieve details of a specific resthook subscription by its id. use after confirming its creation to verify its settings. | `identifier` |
| `AFFINDA_GET_RESTHOOK_SUBSCRIPTIONS` | Tool to retrieve a list of all resthook subscriptions. use after authenticating to list all webhook subscriptions associated with your account. | - |
| `AFFINDA_GET_USAGE_BY_WORKSPACE` | Tool to retrieve monthly credits consumption for a workspace. use when tracking usage over a specific period before reporting. | `workspace_id` |
| `AFFINDA_GET_WORKSPACE` | Tool to retrieve details of a specific workspace by its id. use when you need full workspace metadata after confirming its identifier. | `identifier` |
| `AFFINDA_GET_WORKSPACES` | Tool to retrieve a list of all workspaces. use when you need to list workspaces filtered by organization and optional name. | `organization` |
| `AFFINDA_GET_WORKSPACE_MEMBERSHIP` | 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. | `identifier` |
| `AFFINDA_UPDATE_COLLECTION` | Tool to update specific fields of a collection. use when you need to rename or reassign a collection after creation. | `identifier` |
| `AFFINDA_UPDATE_DOCUMENT` | Tool to update specific fields of a document. use when you need to rename, reassign, or adjust expiry and storage settings after document creation. | `identifier` |
| `AFFINDA_UPDATE_DOCUMENT_DATA` | 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. | `identifier`, `data` |
| `AFFINDA_UPDATE_ORGANIZATION` | 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. | `identifier` |
| `AFFINDA_UPDATE_RESTHOOK_SUBSCRIPTION` | Tool to update an existing resthook subscription. use after confirming the subscription identifier to modify its url, event, or activation status. | `identifier` |
| `AFFINDA_UPDATE_WORKSPACE` | 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. | `workspace_id` |

## Links

- [Affinda website](https://www.affinda.com/)
- [Get API key / credential](https://docs.affinda.com/docs/authentication)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
