---
title: "Find matching regions for AA sequences"
method: POST
path: "/aa-sequences:find-matching-regions"
tags: ["aaSequences"]
---

# Find matching regions for AA sequences

`POST /aa-sequences:find-matching-regions`

## Request

- Base URL: `https://{tenant_name}.benchling.com/api/v2`
- URL: `https://{tenant_name}.benchling.com/api/v2/aa-sequences:find-matching-regions`
- Auth: HTTP bearer

Find matching regions for AA sequences

## Request body

- AaSequencesFindMatchingRegion
  - `registryId` string: An optional Registry ID to restrict the region search to
  - `schemaId` string, required: Schema ID for the type of AA to match to the source sequence
  - `targetAASequenceIds` string[], required: API IDs of the AA sequences which matching regions will be found for

## Response `202`

This endpoint launches a [long-running task](https://docs.benchling.com/docs/api/v2/benchling-api/tasks/get-task) and returns the Task ID of the launched task.
It is used to search for AA sequences that are either subsequences or exact matches of the provided target sequences.
Each returned item represents the group of sequences that partially or fully match the target sequence."

- AsyncTaskLink
  - `taskId` string

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/benchling/apis/benchling-api-2.md) - [All operations](https://skmtc.dev/benchling/apis/benchling-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/benchling/apis/benchling-api-2/revisions/01d2fa8523cd?raw)
