curl --request POST \
--url https://devs.adaptyvbio.com/api/v1/sequences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"experiment_code": "PROJ-001",
"sequences": [
{
"aa_string": "EVQLVESGGGLVQPGGSLRLSCAAS",
"control": true,
"metadata": "<unknown>",
"name": "mAb1"
}
]
}
'import requests
url = "https://devs.adaptyvbio.com/api/v1/sequences"
payload = {
"experiment_code": "PROJ-001",
"sequences": [
{
"aa_string": "EVQLVESGGGLVQPGGSLRLSCAAS",
"control": True,
"metadata": "<unknown>",
"name": "mAb1"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
experiment_code: 'PROJ-001',
sequences: [
{
aa_string: 'EVQLVESGGGLVQPGGSLRLSCAAS',
control: true,
metadata: '<unknown>',
name: 'mAb1'
}
]
})
};
fetch('https://devs.adaptyvbio.com/api/v1/sequences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://devs.adaptyvbio.com/api/v1/sequences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'experiment_code' => 'PROJ-001',
'sequences' => [
[
'aa_string' => 'EVQLVESGGGLVQPGGSLRLSCAAS',
'control' => true,
'metadata' => '<unknown>',
'name' => 'mAb1'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://devs.adaptyvbio.com/api/v1/sequences"
payload := strings.NewReader("{\n \"experiment_code\": \"PROJ-001\",\n \"sequences\": [\n {\n \"aa_string\": \"EVQLVESGGGLVQPGGSLRLSCAAS\",\n \"control\": true,\n \"metadata\": \"<unknown>\",\n \"name\": \"mAb1\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://devs.adaptyvbio.com/api/v1/sequences")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"experiment_code\": \"PROJ-001\",\n \"sequences\": [\n {\n \"aa_string\": \"EVQLVESGGGLVQPGGSLRLSCAAS\",\n \"control\": true,\n \"metadata\": \"<unknown>\",\n \"name\": \"mAb1\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://devs.adaptyvbio.com/api/v1/sequences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"experiment_code\": \"PROJ-001\",\n \"sequences\": [\n {\n \"aa_string\": \"EVQLVESGGGLVQPGGSLRLSCAAS\",\n \"control\": true,\n \"metadata\": \"<unknown>\",\n \"name\": \"mAb1\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"added_count": 1,
"experiment_code": "<string>",
"experiment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequence_ids": [
"<string>"
]
}{
"error": "experiment not found",
"request_id": "req_019462a4-b1c2-7def-8901-23456789abcd"
}{
"error": "experiment not found",
"request_id": "req_019462a4-b1c2-7def-8901-23456789abcd"
}{
"error": "experiment not found",
"request_id": "req_019462a4-b1c2-7def-8901-23456789abcd"
}{
"error": "experiment not found",
"request_id": "req_019462a4-b1c2-7def-8901-23456789abcd"
}Add sequences to experiment
Appends sequences to a draft experiment identified by its human-readable code (e.g., “PROJ-001”). The experiment must be in Draft status; confirmed or later-stage experiments cannot accept new sequences. Create a new experiment to submit additional sequences if the original has progressed past draft.
curl --request POST \
--url https://devs.adaptyvbio.com/api/v1/sequences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"experiment_code": "PROJ-001",
"sequences": [
{
"aa_string": "EVQLVESGGGLVQPGGSLRLSCAAS",
"control": true,
"metadata": "<unknown>",
"name": "mAb1"
}
]
}
'import requests
url = "https://devs.adaptyvbio.com/api/v1/sequences"
payload = {
"experiment_code": "PROJ-001",
"sequences": [
{
"aa_string": "EVQLVESGGGLVQPGGSLRLSCAAS",
"control": True,
"metadata": "<unknown>",
"name": "mAb1"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
experiment_code: 'PROJ-001',
sequences: [
{
aa_string: 'EVQLVESGGGLVQPGGSLRLSCAAS',
control: true,
metadata: '<unknown>',
name: 'mAb1'
}
]
})
};
fetch('https://devs.adaptyvbio.com/api/v1/sequences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://devs.adaptyvbio.com/api/v1/sequences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'experiment_code' => 'PROJ-001',
'sequences' => [
[
'aa_string' => 'EVQLVESGGGLVQPGGSLRLSCAAS',
'control' => true,
'metadata' => '<unknown>',
'name' => 'mAb1'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://devs.adaptyvbio.com/api/v1/sequences"
payload := strings.NewReader("{\n \"experiment_code\": \"PROJ-001\",\n \"sequences\": [\n {\n \"aa_string\": \"EVQLVESGGGLVQPGGSLRLSCAAS\",\n \"control\": true,\n \"metadata\": \"<unknown>\",\n \"name\": \"mAb1\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://devs.adaptyvbio.com/api/v1/sequences")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"experiment_code\": \"PROJ-001\",\n \"sequences\": [\n {\n \"aa_string\": \"EVQLVESGGGLVQPGGSLRLSCAAS\",\n \"control\": true,\n \"metadata\": \"<unknown>\",\n \"name\": \"mAb1\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://devs.adaptyvbio.com/api/v1/sequences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"experiment_code\": \"PROJ-001\",\n \"sequences\": [\n {\n \"aa_string\": \"EVQLVESGGGLVQPGGSLRLSCAAS\",\n \"control\": true,\n \"metadata\": \"<unknown>\",\n \"name\": \"mAb1\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"added_count": 1,
"experiment_code": "<string>",
"experiment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequence_ids": [
"<string>"
]
}{
"error": "experiment not found",
"request_id": "req_019462a4-b1c2-7def-8901-23456789abcd"
}{
"error": "experiment not found",
"request_id": "req_019462a4-b1c2-7def-8901-23456789abcd"
}{
"error": "experiment not found",
"request_id": "req_019462a4-b1c2-7def-8901-23456789abcd"
}{
"error": "experiment not found",
"request_id": "req_019462a4-b1c2-7def-8901-23456789abcd"
}Authorizations
Biscuit-based bearer token. Obtain tokens from the Adaptyv Portal or via the /tokens endpoint. Tokens encode organization membership and role-based capabilities; the API verifies the token's cryptographic signature and authorization claims before processing requests. Use /tokens/attenuate to create restricted tokens for delegation.
Body
Request body for adding sequences to a draft experiment.
Identifies the target experiment by its human-readable code (e.g., "PROJ-001") rather than UUID. The experiment must be in Draft status; appending sequences to confirmed experiments returns 409 Conflict.
Response
Sequences added
Response after successfully adding sequences to an experiment.
Was this page helpful?