SeqBench Sequence API
Reverse complement, GC content, formatting and core sequence utilities.
Reverse complement, GC content, formatting and core sequence utilities.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/seqbench-com:seqbench-com-sequence-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Seqbench Com Sequence API
version: 1.1.0
contact:
name: SeqBench
url: https://seqbench.com
email: team@seqbench.com
license:
name: Free to use
url: https://seqbench.com/terms
description: 'Operations tagged Sequence across 2 of this provider''s published API definitions: seqbench-com-openapi.json, seqbench-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://seqbench.com/api/v1
description: Production
security:
- {}
tags:
- name: Sequence
description: Reverse complement, GC content, formatting and core sequence utilities.
paths:
/reverse_complement:
post:
tags:
- Sequence
operationId: reverse_complement
summary: Reverse Complement
description: 'Reverse, complement and reverse complement of a DNA or RNA sequence.
Batchable via `POST /batch`.
Chainable in workflows (passes its `reverseComplement` field to the next step).'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
sequence:
type: string
residues: nt
description: Nucleotide sequence (raw or FASTA; IUPAC accepted).
type:
type: string
enum:
- dna
- rna
default: dna
required:
- sequence
additionalProperties: false
example:
sequence: ATGGCCTGA
type: dna
responses:
'200':
description: Tool ran successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
'400':
description: Invalid argument or the tool could not run.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Unknown tool.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited (metered tools only). Body carries code `rate_limited` and retryable `true`; honor the Retry-After header.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: A metered tool is momentarily at capacity. The identical request should succeed after Retry-After; body carries code `upstream_unavailable`.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
servers:
- url: https://seqbench.com/api/v1
description: Production
/gc_content:
post:
tags:
- Sequence
operationId: gc_content
summary: GC Content
description: 'GC content, AT content and per-base composition of a sequence.
Batchable via `POST /batch`.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
sequence:
type: string
residues: nt
description: Nucleotide sequence (raw or FASTA; IUPAC accepted).
required:
- sequence
additionalProperties: false
example:
sequence: ATGGCGCGCTAA
responses:
'200':
description: Tool ran successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
'400':
description: Invalid argument or the tool could not run.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Unknown tool.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited (metered tools only). Body carries code `rate_limited` and retryable `true`; honor the Retry-After header.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: A metered tool is momentarily at capacity. The identical request should succeed after Retry-After; body carries code `upstream_unavailable`.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
servers:
- url: https://seqbench.com/api/v1
description: Production
/format_sequence:
post:
tags:
- Sequence
operationId: format_sequence
summary: Format Sequence
description: 'Clean, case-fold, DNA↔RNA convert, reverse and line-wrap a sequence.
Batchable via `POST /batch`.
Chainable in workflows (passes its `sequence` field to the next step).'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
sequence:
type: string
residues: nt
description: Nucleotide sequence (raw or FASTA; IUPAC accepted).
stripNonLetters:
type: boolean
default: true
description: Remove digits, spaces and gaps (keep letters only).
caseMode:
type: string
enum:
- keep
- upper
- lower
default: keep
convert:
type: string
enum:
- none
- toRna
- toDna
default: none
description: DNA→RNA (T→U) or RNA→DNA (U→T).
reverse:
type: boolean
default: false
description: Reverse the sequence (no complement).
width:
type: integer
default: 60
description: Line-wrap width; 0 = single line.
required:
- sequence
additionalProperties: false
responses:
'200':
description: Tool ran successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
'400':
description: Invalid argument or the tool could not run.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Unknown tool.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited (metered tools only). Body carries code `rate_limited` and retryable `true`; honor the Retry-After header.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: A metered tool is momentarily at capacity. The identical request should succeed after Retry-After; body carries code `upstream_unavailable`.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
servers:
- url: https://seqbench.com/api/v1
description: Production
/motif_discover:
post:
tags:
- Sequence
operationId: motif_discover
summary: Motif Discovery
description: 'Find a motif NOBODY TYPED: given a set of sequences (multi-record FASTA), report the short pattern they share, as a consensus, a position-weight matrix and one site per sequence. This is the opposite question from motif_finder, which searches for a pattern you already have. Gibbs site sampler (Lawrence et al., Science 1993), one occurrence per sequence, both strands by default. ⚠️ READ `found` BEFORE THE CONSENSUS: a Gibbs sampler returns a motif from ANY input, including pure noise, because its objective has a maximum whether or not anything is there — so every run is scored against shuffled copies of the same sequences, which hold the same length and base composition and no arrangement. `found` is true only when the real alignment beats every shuffle outright AND clears the control mean by the margin in `control.zScore`; when it is false the consensus and sites are still returned, so you can see what was rejected. Measured: 0 of 20 pure-noise sets were reported as found, and a 10-mer planted in all 12 sequences was recovered exactly on 5 of 5 seeds. The sampler is deterministic — the same input gives the same answer, so a saved or shared result reproduces; pass a different `seed` to see whether the motif survives a different starting point, because one that does not is weak.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
sequences:
type: string
residues: nt
description: Two or more sequences as multi-record FASTA. Records shorter than the motif width are left out and named in notes. At most 500 sequences and 100,000 residues in total.
width:
type: integer
default: 10
minimum: 4
maximum: 30
description: 'Motif length in bases (4-30). The width is given rather than searched for: trying every width and keeping the best score would select on the same quantity the control measures, and a wider motif scores higher for free.'
bothStrands:
type: boolean
default: true
description: Allow a site on either strand. A motif has no canonical orientation, so the consensus may come back as the reverse complement of the one you expect.
seed:
type: integer
description: Sampler seed. Fixed by default so one input gives one answer; change it to test whether the motif is stable.
required:
- sequences
additionalProperties: false
responses:
'200':
description: Tool ran successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
'400':
description: Invalid argument or the tool could not run.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Unknown tool.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited (metered tools only). Body carries code `rate_limited` and retryable `true`; honor the Retry-After header.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: A metered tool is momentarily at capacity. The identical request should succeed after Retry-After; body carries code `upstream_unavailable`.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
servers:
- url: https://seqbench.com/api/v1
description: Production
/motif_finder:
post:
tags:
- Sequence
operationId: motif_finder
summary: Motif Finder
description: 'Find (overlapping) occurrences of an IUPAC motif on either strand, allowing mismatches.
Batchable via `POST /batch`.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
sequence:
type: string
residues: nt
description: Nucleotide sequence (raw or FASTA; IUPAC accepted).
motif:
type: string
residues: nt
description: Query motif; IUPAC ambiguity codes (R Y S W K M B D H V N) allowed.
searchReverseStrand:
type: boolean
default: true
description: Also search the reverse strand.
maxMismatches:
type: integer
default: 0
description: Maximum allowed mismatches per match.
limit:
type: integer
default: 500
minimum: 1
maximum: 20000
description: How many matches to return. `count` always reports every hit found and `truncated` says whether the list was cut.
required:
- sequence
- motif
additionalProperties: false
responses:
'200':
description: Tool ran successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
'400':
description: Invalid argument or the tool could not run.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Unknown tool.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited (metered tools only). Body carries code `rate_limited` and retryable `true`; honor the Retry-After header.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: A metered tool is momentarily at capacity. The identical request should succeed after Retry-After; body carries code `upstream_unavailable`.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
servers:
- url: https://seqbench.com/api/v1
description: Production
/random_sequence:
post:
tags:
- Sequence
operationId: random_sequence
summary: Random Sequence
description: 'Generate a random DNA, RNA or protein sequence, optionally with a target GC content.
Not a workflow step (it does not take a single sequence argument), but its `sequence` field is the sequence to carry into the next call yourself.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
kind:
type: string
enum:
- dna
- rna
- protein
default: dna
length:
type: integer
default: 100
description: Number of residues to generate.
gcContent:
type: number
description: Target GC percentage 0..100 (dna/rna only); omit for uniform.
required:
- length
additionalProperties: false
responses:
'200':
description: Tool ran successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessResponse'
'400':
description: Invalid argument or the tool could not run.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Unknown tool.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited (metered tools only). Body carries code `rate_limited` and retryable `true`; honor the Retry-After header.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: A metered tool is momentarily at capacity. The identical request should succeed after Retry-After; body carries code `upstream_unavailable`.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
servers:
- url: https://seqbench.com/api/v1
description: Production
components:
schemas:
SuccessResponse:
type: object
description: Standard success envelope returned by every single-tool call.
properties:
ok:
const: true
tool:
type: string
description: The tool slug that ran.
result:
type: object
additionalProperties: true
description: Tool-specific output object. Its shape depends on the tool — call `GET /{tool}` or see the docs for each tool's fields.
gate:
oneOf:
- $ref: '#/components/schemas/GateResult'
- type: 'null'
description: Typed QC verdict, or null when the tool defines no gate or the call lacked gating inputs (e.g. no targetTm).
provenance:
$ref: '#/components/schemas/Provenance'
required:
- ok
- tool
- result
- provenance
GateCheck:
type: object
properties:
id:
type: string
label:
type: string
severity:
type: string
enum:
- hard
- soft
pass:
type: boolean
message:
type: string
value:
type: number
threshold:
type: string
required:
- id
- label
- severity
- pass
- message
ErrorResponse:
type: object
description: Standard error envelope for single-tool calls.
properties:
ok:
const: false
tool:
type: string
error:
type: string
description: Human-readable error message.
code:
type: string
enum:
- invalid_argument
- unsupported
- upstream_unavailable
- upstream_timeout
- rate_limited
- internal_error
retryable:
type: boolean
suggestedAction:
type: string
required:
- ok
- error
Provenance:
type: object
properties:
apiVersion:
type: string
example: 1.1.0
tool:
oneOf:
- type: string
- type: array
items:
type: string
description: Tool slug, or an array of slugs (one per step) for a workflow.
generatedAt:
type: string
format: date-time
description: ISO 8601 timestamp of when the result was generated.
required:
- apiVersion
- tool
- generatedAt
GateResult:
type: object
properties:
pass:
type: boolean
description: True if and only if every hard check passed.
checks:
type: array
items:
$ref: '#/components/schemas/GateCheck'
notChecked:
type: array
items:
type: string
description: Honest list of what this gate does NOT verify.
required:
- pass
- checks
- notChecked
externalDocs:
description: SeqBench API & MCP documentation
url: https://seqbench.com/mcp
x-refined-from:
- seqbench-com-openapi.json
- seqbench-com-openapi.json