{
"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"
}
tokens
Attenuate token
Add restrictions to an existing token without needing the private key.
Attenuation is a Biscuit cryptographic feature that allows anyone holding
a token to add restriction blocks. The resulting token can only do a
subset of what the original token could do—restrictions cannot be removed.
Security Model
This endpoint requires the token:read capability.
Cryptographic guarantee: Attenuation can only reduce permissions,
never expand them. The Biscuit format ensures restriction blocks are
append-only and cannot be removed without invalidating the signature.
Self-service by design: Users can only attenuate tokens they already
possess. If you have a token, you can create a weaker version of it—this
is analogous to being able to share read-only access to something you own.
No privilege escalation: The attenuated token inherits all existing
restrictions from the source token, plus any new ones added. A read-only
token cannot be attenuated into a read-write token.
Use Cases
Create a read-only version of your token for delegation
Restrict a token to specific resources or actions
Generate time-limited tokens for external services
Scope a broad token down to a single organization or project
Timezone
All timestamps use UTC in ISO 8601 / RFC 3339 format.
Further Reading
For the cryptographic properties of token attenuation, see the
Biscuit documentation.
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
application/json
Request to attenuate (restrict) an existing token.
Attenuation is a Biscuit cryptographic feature that adds restriction blocks
without needing the private signing key. Any authenticated user can attenuate
their tokens to create limited-scope versions for delegation.
If attenuating an already-attenuated token (chained attenuation),
provide the id of the parent attenuated token record. Omit when
attenuating a root token directly.
The attenuated token string. Format: abs0_{slug}{biscuit_base64}.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Adaptyv Bio Docs","colors":{"primary":"#5db0dd","light":"#5db0dd","dark":"#5db0dd"},"logo":{"light":"https://mintcdn.com/adaptyv-a4917ef6/3kX9xKvyzUlLV3Dj/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=3kX9xKvyzUlLV3Dj\u0026q=85\u0026s=28a1e3df60674482d4bac1fc9d190568","dark":"https://mintcdn.com/adaptyv-a4917ef6/3kX9xKvyzUlLV3Dj/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=3kX9xKvyzUlLV3Dj\u0026q=85\u0026s=9af068e2ee0cfcd18651c6d5de78183b"},"favicon":"https://mintcdn.com/adaptyv-a4917ef6/3kX9xKvyzUlLV3Dj/favicon.svg?fit=max\u0026auto=format\u0026n=3kX9xKvyzUlLV3Dj\u0026q=85\u0026s=3c844e90e21e045d7ed937e532aa2bdf","background":{"decoration":"gradient"},"navbar":{"links":[{"href":"mailto:support@adaptyvbio.com","label":"Support"}],"primary":{"type":"button","label":"Test Your Proteins","href":"https://start.adaptyvbio.com"}},"footer":{"socials":{"x":"https://twitter.com/adaptyvbio","linkedin":"https://www.linkedin.com/company/adaptyvbio"}},"integrations":{"posthog":{"apiKey":"phc_BakxHKWkh2YgICIAQeQJuGpagepWpTNHGzWmf6dGAsU"}},"contextual":{"options":["copy","view","claude","chatgpt"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Careers","icon":"users","href":"https://www.adaptyvbio.com/careers"},{"anchor":"Blog","icon":"newspaper","href":"https://www.adaptyvbio.com/blog"},{"anchor":"Experiment Configurator","icon":"flask","href":"https://start.adaptyvbio.com"},{"anchor":"Foundry Portal","icon":"desktop","href":"https://foundry.adaptyvbio.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"adaptyv-a4917ef6","hasAudioNarration":false,"actualSubdomain":"adaptyv-a4917ef6","customDomains":["docs.adaptyvbio.com"],"gitSource":{"type":"github","owner":"adaptyvbio","repo":"monorepo","deployBranch":"master","contentDirectory":"apps/docs-public","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af08f401d63cdd7f63d7d99","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API","count":50},{"language":"default","tag":"API Endpoints","count":43},{"language":"default","tag":"Wiki","count":26},{"language":"default","tag":"Documentation","count":14},{"language":"default","tag":"experiments","count":13},{"language":"default","tag":"Technologies","count":10},{"language":"default","tag":"Proteins","count":9},{"language":"default","tag":"Getting Started","count":5},{"language":"default","tag":"Experiment Setup","count":5},{"language":"default","tag":"Experiment Types","count":5}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":false,"enableAskAiSearchBar":false,"deflection":{"enabled":true,"email":"support@adaptyvbio.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".shape-grid{margin:1rem 0 1.5rem}.sg-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}@media (max-width:640px){.sg-cards{grid-template-columns:repeat(2,1fr)}}.sg-card{position:relative;display:block;border:2px solid #e6e8ec;border-radius:10px;padding:7px 7px 5px;background:#fff;cursor:pointer;transition:border-color .12s,box-shadow .12s,background .12s,transform .12s}.sg-radio{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;margin:0}.sg-card img{width:100%;height:auto;display:block;margin:0}.sg-card span{display:block;font-size:11.5px;font-weight:600;text-align:center;margin-top:5px;line-height:1.25;color:#5b6472}.sg-card:hover,.shape-grid:not(:has(.sg-card:hover)) .sg-card:has(.sg-radio:checked){border-color:#3b6cf0;background:#eef3ff;box-shadow:0 0 0 3px #3b6cf0;transform:translateY(-2px)}.sg-card:hover span,.shape-grid:not(:has(.sg-card:hover)) .sg-card:has(.sg-radio:checked) span{color:#2b56c8}.sg-card:has(.sg-radio:focus-visible){outline:2px solid #3b6cf0;outline-offset:2px}.sg-caption{margin-top:16px;border:1px solid #e6e8ec;border-left:3px solid #3b6cf0;border-radius:8px;padding:14px 16px;min-height:72px}.sg-cap{display:none}.sg-sugg{display:block;margin-top:9px;padding-top:9px;border-top:1px solid #e6e8ec;font-size:.93em}.sg-sugg strong{color:#2b56c8}.shape-grid:not(:has(.sg-card:hover)):has(.sg-card[data-k=\"ideal\"] .sg-radio:checked) .sg-cap[data-k=\"ideal\"]{display:block}.shape-grid:not(:has(.sg-card:hover)):has(.sg-card[data-k=\"no-plateau\"] .sg-radio:checked) .sg-cap[data-k=\"no-plateau\"]{display:block}.shape-grid:not(:has(.sg-card:hover)):has(.sg-card[data-k=\"flat-dissoc\"] .sg-radio:checked) .sg-cap[data-k=\"flat-dissoc\"]{display:block}.shape-grid:not(:has(.sg-card:hover)):has(.sg-card[data-k=\"square-wave\"] .sg-radio:checked) .sg-cap[data-k=\"square-wave\"]{display:block}.shape-grid:not(:has(.sg-card:hover)):has(.sg-card[data-k=\"mass-transport\"] .sg-radio:checked) .sg-cap[data-k=\"mass-transport\"]{display:block}.shape-grid:not(:has(.sg-card:hover)):has(.sg-card[data-k=\"biphasic\"] .sg-radio:checked) .sg-cap[data-k=\"biphasic\"]{display:block}.shape-grid:not(:has(.sg-card:hover)):has(.sg-card[data-k=\"drift\"] .sg-radio:checked) .sg-cap[data-k=\"drift\"]{display:block}.shape-grid:not(:has(.sg-card:hover)):has(.sg-card[data-k=\"super-stoich\"] .sg-radio:checked) .sg-cap[data-k=\"super-stoich\"]{display:block}.shape-grid:has(.sg-card[data-k=\"ideal\"]:hover) .sg-cap[data-k=\"ideal\"]{display:block}.shape-grid:has(.sg-card[data-k=\"no-plateau\"]:hover) .sg-cap[data-k=\"no-plateau\"]{display:block}.shape-grid:has(.sg-card[data-k=\"flat-dissoc\"]:hover) .sg-cap[data-k=\"flat-dissoc\"]{display:block}.shape-grid:has(.sg-card[data-k=\"square-wave\"]:hover) .sg-cap[data-k=\"square-wave\"]{display:block}.shape-grid:has(.sg-card[data-k=\"mass-transport\"]:hover) .sg-cap[data-k=\"mass-transport\"]{display:block}.shape-grid:has(.sg-card[data-k=\"biphasic\"]:hover) .sg-cap[data-k=\"biphasic\"]{display:block}.shape-grid:has(.sg-card[data-k=\"drift\"]:hover) .sg-cap[data-k=\"drift\"]{display:block}.shape-grid:has(.sg-card[data-k=\"super-stoich\"]:hover) .sg-cap[data-k=\"super-stoich\"]{display:block}.dark .sg-card{background:#111827;border-color:#243040}.dark .sg-card span{color:#9aa4b2}.dark .sg-caption{border-color:#243040}.dark .sg-sugg{border-top-color:#243040}.dark .sg-sugg strong{color:#9db8ff}.dark .sg-card:hover,.dark .shape-grid:not(:has(.sg-card:hover)) .sg-card:has(.sg-radio:checked){border-color:#6c95ff;background:#17233d;box-shadow:0 0 0 3px #6c95ff}.dark .sg-card:hover span,.dark .shape-grid:not(:has(.sg-card:hover)) .sg-card:has(.sg-radio:checked) span{color:#9db8ff}"}],"page":{"pagePath":"api-reference/tokens/attenuate-token","slug":"/api-reference/tokens/attenuate-token","pageMetadata":{"title":"Attenuate token","description":"Add restrictions to an existing token without needing the private key.\n\nAttenuation is a Biscuit cryptographic feature that allows anyone holding\na token to add restriction blocks. The resulting token can only do a\nsubset of what the original token could do—restrictions cannot be removed.\n\n# Security Model\n\nThis endpoint requires the `token:read` capability.\n\n1. **Cryptographic guarantee**: Attenuation can only *reduce* permissions,\n never expand them. The Biscuit format ensures restriction blocks are\n append-only and cannot be removed without invalidating the signature.\n\n2. **Self-service by design**: Users can only attenuate tokens they already\n possess. If you have a token, you can create a weaker version of it—this\n is analogous to being able to share read-only access to something you own.\n\n3. **No privilege escalation**: The attenuated token inherits all existing\n restrictions from the source token, plus any new ones added. A read-only\n token cannot be attenuated into a read-write token.\n\n# Use Cases\n\n- Create a read-only version of your token for delegation\n- Restrict a token to specific resources or actions\n- Generate time-limited tokens for external services\n- Scope a broad token down to a single organization or project\n\n# Timezone\n\nAll timestamps use UTC in ISO 8601 / RFC 3339 format.\n\n# Further Reading\n\nFor the cryptographic properties of token attenuation, see the\n[Biscuit documentation](https://doc.biscuitsec.org/).","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/tokens/attenuate","href":"/api-reference/tokens/attenuate-token","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n em: \"em\",\n h1: \"h1\",\n li: \"li\",\n ol: \"ol\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Add restrictions to an existing token without needing the private key.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Attenuation is a Biscuit cryptographic feature that allows anyone holding\\na token to add restriction blocks. The resulting token can only do a\\nsubset of what the original token could do—restrictions cannot be removed.\"\n }), \"\\n\", _jsx(_components.h1, {\n children: \"Security Model\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"This endpoint requires the \", _jsx(_components.code, {\n children: \"token:read\"\n }), \" capability.\"]\n }), \"\\n\", _jsxs(_components.ol, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Cryptographic guarantee\"\n }), \": Attenuation can only \", _jsx(_components.em, {\n children: \"reduce\"\n }), \" permissions,\\nnever expand them. The Biscuit format ensures restriction blocks are\\nappend-only and cannot be removed without invalidating the signature.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Self-service by design\"\n }), \": Users can only attenuate tokens they already\\npossess. If you have a token, you can create a weaker version of it—this\\nis analogous to being able to share read-only access to something you own.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"No privilege escalation\"\n }), \": The attenuated token inherits all existing\\nrestrictions from the source token, plus any new ones added. A read-only\\ntoken cannot be attenuated into a read-write token.\"]\n }), \"\\n\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.h1, {\n children: \"Use Cases\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Create a read-only version of your token for delegation\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Restrict a token to specific resources or actions\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Generate time-limited tokens for external services\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Scope a broad token down to a single organization or project\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.h1, {\n children: \"Timezone\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"All timestamps use UTC in ISO 8601 / RFC 3339 format.\"\n }), \"\\n\", _jsx(_components.h1, {\n children: \"Further Reading\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"For the cryptographic properties of token attenuation, see the\\n\", _jsx(_components.a, {\n href: \"https://doc.biscuitsec.org/\",\n children: \"Biscuit documentation\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Attenuate token","description":"Add restrictions to an existing token without needing the private key.\n\nAttenuation is a Biscuit cryptographic feature that allows anyone holding\na token to add restriction blocks. The resulting token can only do a\nsubset of what the original token could do—restrictions cannot be removed.\n\n# Security Model\n\nThis endpoint requires the `token:read` capability.\n\n1. **Cryptographic guarantee**: Attenuation can only *reduce* permissions,\n never expand them. The Biscuit format ensures restriction blocks are\n append-only and cannot be removed without invalidating the signature.\n\n2. **Self-service by design**: Users can only attenuate tokens they already\n possess. If you have a token, you can create a weaker version of it—this\n is analogous to being able to share read-only access to something you own.\n\n3. **No privilege escalation**: The attenuated token inherits all existing\n restrictions from the source token, plus any new ones added. A read-only\n token cannot be attenuated into a read-write token.\n\n# Use Cases\n\n- Create a read-only version of your token for delegation\n- Restrict a token to specific resources or actions\n- Generate time-limited tokens for external services\n- Scope a broad token down to a single organization or project\n\n# Timezone\n\nAll timestamps use UTC in ISO 8601 / RFC 3339 format.\n\n# Further Reading\n\nFor the cryptographic properties of token attenuation, see the\n[Biscuit documentation](https://doc.biscuitsec.org/).","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/tokens/attenuate","href":"/api-reference/tokens/attenuate-token","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["tokens"],"summary":"Attenuate token","description":"Add restrictions to an existing token without needing the private key.\n\nAttenuation is a Biscuit cryptographic feature that allows anyone holding\na token to add restriction blocks. The resulting token can only do a\nsubset of what the original token could do—restrictions cannot be removed.\n\n# Security Model\n\nThis endpoint requires the `token:read` capability.\n\n1. **Cryptographic guarantee**: Attenuation can only *reduce* permissions,\n never expand them. The Biscuit format ensures restriction blocks are\n append-only and cannot be removed without invalidating the signature.\n\n2. **Self-service by design**: Users can only attenuate tokens they already\n possess. If you have a token, you can create a weaker version of it—this\n is analogous to being able to share read-only access to something you own.\n\n3. **No privilege escalation**: The attenuated token inherits all existing\n restrictions from the source token, plus any new ones added. A read-only\n token cannot be attenuated into a read-write token.\n\n# Use Cases\n\n- Create a read-only version of your token for delegation\n- Restrict a token to specific resources or actions\n- Generate time-limited tokens for external services\n- Scope a broad token down to a single organization or project\n\n# Timezone\n\nAll timestamps use UTC in ISO 8601 / RFC 3339 format.\n\n# Further Reading\n\nFor the cryptographic properties of token attenuation, see the\n[Biscuit documentation](https://doc.biscuitsec.org/).","operationId":"attenuate_token","requestBody":"73abc925-3af3-470d-9875-079a2c0e1904","responses":{"201":"c38d635a-382a-4ccb-8293-f66a4856c179","400":"378d3ead-c0b2-49a0-b964-c0e353495ca6","401":"4609c4f0-f52d-4038-9ea7-9786137acc51","403":"d4be6fa1-f461-454c-b9fd-eade370fdad3"},"x-required-action":"Read","method":"post","type":"path","servers":["3ae1549d-def4-4e64-a719-6d8a9091873d"],"security":["706b04f2-06cf-4e51-9a6d-81edb857c377"],"path":"/api/v1/tokens/attenuate","baseUrlOptions":["https://devs.adaptyvbio.com/"],"title":"Attenuate token","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Request to attenuate (restrict) an existing token.\n\nAttenuation is a Biscuit cryptographic feature that adds restriction blocks\nwithout needing the private signing key. Any authenticated user can attenuate\ntheir tokens to create limited-scope versions for delegation.","required":["token","attenuation","name"],"properties":{"attenuation":{"type":"object","description":"Restrictions to apply to the token.","properties":{"allowed_actions":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"attenuation.allowed_actions.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Explicit list of permitted operations.\n\nValues: `list`, `read`, `create`, `update`, `delete`, `issue`, `revoke`, `mint_token`\n\nIf specified, only these operations are allowed. Applied alongside `read_only` and\n`non_destructive`; effective permissions are the intersection of all constraints.","uniqueKey":"attenuation.allowed_actions.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Explicit list of permitted operations.\n\nValues: `list`, `read`, `create`, `update`, `delete`, `issue`, `revoke`, `mint_token`\n\nIf specified, only these operations are allowed. Applied alongside `read_only` and\n`non_destructive`; effective permissions are the intersection of all constraints.","uniqueKey":"attenuation.allowed_actions.oneOf.1","typeLabel":"null"}],"uniqueKey":"attenuation.allowed_actions","typeLabel":"string[] | null"},"allowed_org_ids":{"oneOf":[{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"attenuation.allowed_org_ids.oneOf.0.items.[INDEX]","typeLabel":"string\u003cuuid>"},"description":"Restrict token to only these organization IDs.\n\nThe token must already have access to these orgs; attenuation cannot expand\naccess. The token's append-only property enforces this cryptographically.","uniqueKey":"attenuation.allowed_org_ids.oneOf.0","typeLabel":"string\u003cuuid>[]"},{"type":"null","items":{"type":"string","format":"uuid"},"description":"Restrict token to only these organization IDs.\n\nThe token must already have access to these orgs; attenuation cannot expand\naccess. The token's append-only property enforces this cryptographically.","uniqueKey":"attenuation.allowed_org_ids.oneOf.1","typeLabel":"null"}],"uniqueKey":"attenuation.allowed_org_ids","typeLabel":"string\u003cuuid>[] | null"},"allowed_resources":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"attenuation.allowed_resources.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Explicit list of permitted resource types.\n\nCommon values: `experiment`, `sequence`, `target`, `result`, `project`, `organization`, `user`, `token`, `webhook`, `update`, `quote`, `invoice`, `billing`, `feedback`, `partner`, `credit`, `usage`, `product`, `info`, `admin`, `policy`\n\nIf specified, the token can only access these resource types.","uniqueKey":"attenuation.allowed_resources.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Explicit list of permitted resource types.\n\nCommon values: `experiment`, `sequence`, `target`, `result`, `project`, `organization`, `user`, `token`, `webhook`, `update`, `quote`, `invoice`, `billing`, `feedback`, `partner`, `credit`, `usage`, `product`, `info`, `admin`, `policy`\n\nIf specified, the token can only access these resource types.","uniqueKey":"attenuation.allowed_resources.oneOf.1","typeLabel":"null"}],"uniqueKey":"attenuation.allowed_resources","typeLabel":"string[] | null"},"expires_at":{"oneOf":[{"type":"string","format":"date-time","description":"Shorten token expiration to this timestamp (cannot extend past original expiry).\n\nFormat: ISO 8601 / RFC 3339 (e.g., \"2026-01-20T00:00:00Z\")","uniqueKey":"attenuation.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Shorten token expiration to this timestamp (cannot extend past original expiry).\n\nFormat: ISO 8601 / RFC 3339 (e.g., \"2026-01-20T00:00:00Z\")","uniqueKey":"attenuation.expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"attenuation.expires_at","typeLabel":"string\u003cdate-time> | null"},"non_destructive":{"type":"boolean","description":"Allow all operations except destructive ones (delete).\n\nWhen enabled, the token can list, read, create, and update but not delete.","uniqueKey":"attenuation.non_destructive","typeLabel":"boolean"},"payment_policy":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"attenuation.payment_policy.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Restrict which payment rails the token may be offered.\n\nValues: `invoice`, `machine`, `both` — each naming a rail set the\nattenuation permits. Multiple entries are the sets `query_all` unions\nacross the block; the extractor intersects their bounds, so the\neffective policy is the authority block's rail set intersected with what\nthese permit.\n\nLike every other field here this only narrows. A token issued for the\nlegacy invoice flow cannot attenuate itself into machine payment: the\ncapability lives in the token's sealed authority block, and an appended\nblock can only intersect with it. Restricting a `machine` or `both`\ntoken to `invoice` is the useful direction — it hands a delegate a token\nthat can read and act but never open a machine-payment session.","uniqueKey":"attenuation.payment_policy.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Restrict which payment rails the token may be offered.\n\nValues: `invoice`, `machine`, `both` — each naming a rail set the\nattenuation permits. Multiple entries are the sets `query_all` unions\nacross the block; the extractor intersects their bounds, so the\neffective policy is the authority block's rail set intersected with what\nthese permit.\n\nLike every other field here this only narrows. A token issued for the\nlegacy invoice flow cannot attenuate itself into machine payment: the\ncapability lives in the token's sealed authority block, and an appended\nblock can only intersect with it. Restricting a `machine` or `both`\ntoken to `invoice` is the useful direction — it hands a delegate a token\nthat can read and act but never open a machine-payment session.","uniqueKey":"attenuation.payment_policy.oneOf.1","typeLabel":"null"}],"uniqueKey":"attenuation.payment_policy","typeLabel":"string[] | null"},"read_only":{"type":"boolean","description":"Restrict to list and read operations only.\n\nWhen enabled, the token cannot create, update, or delete resources.","uniqueKey":"attenuation.read_only","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"attenuation","typeLabel":"object"},"name":{"type":"string","description":"Human-readable label for this attenuated token.\n\nNames are not unique — they are purely for display purposes.","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"token":{"type":"string","description":"Existing token string (format: `abs0_{slug}{biscuit_base64}`) to attenuate.","isRequired":true,"uniqueKey":"token","typeLabel":"string"},"attenuated_parent_token_id":{"oneOf":[{"type":"string","format":"uuid","description":"If attenuating an already-attenuated token (chained attenuation),\nprovide the `id` of the parent attenuated token record. Omit when\nattenuating a root token directly.","uniqueKey":"attenuated_parent_token_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"If attenuating an already-attenuated token (chained attenuation),\nprovide the `id` of the parent attenuated token record. Omit when\nattenuating a root token directly.","uniqueKey":"attenuated_parent_token_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"attenuated_parent_token_id","typeLabel":"string\u003cuuid> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"attenuation":{"allowed_actions":["\u003cstring>"],"allowed_org_ids":["3c90c3cc-0d44-4b50-8888-8dd25736052a"],"allowed_resources":["\u003cstring>"],"expires_at":"2023-11-07T05:31:56Z","non_destructive":true,"payment_policy":["\u003cstring>"],"read_only":true},"name":"\u003cstring>","token":"\u003cstring>","attenuated_parent_token_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"c38d635a-382a-4ccb-8293-f66a4856c179":{"description":"Token attenuated and persisted","content":{"application/json":{"schema":{"type":"object","description":"Response after attenuating a token.","required":["token","id"],"properties":{"id":{"type":"string","description":"Database ID of the attenuated token record (for revocation/management).","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"token":{"type":"string","description":"The attenuated token string. Format: `abs0_{slug}{biscuit_base64}`.","isRequired":true,"uniqueKey":"token","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","token":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"378d3ead-c0b2-49a0-b964-c0e353495ca6":{"description":"Invalid token format or attenuation spec","content":{"application/json":{"schema":{"type":"object","description":"Error response body returned by all endpoints on 4xx/5xx failures.\n\nEvery error response contains a human-readable message and the request ID\nfor support correlation. The `request_id` is also returned in the\n`x-request-id` response header.","required":["error","request_id"],"properties":{"error":{"type":"string","description":"Human-readable error description.","example":"experiment not found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"request_id":{"type":"string","description":"Request identifier for support correlation (also in `x-request-id` header).","example":"req_019462a4-b1c2-7def-8901-23456789abcd","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"experiment not found","request_id":"req_019462a4-b1c2-7def-8901-23456789abcd"}}},"exampleType":"generated"}},"exampleType":"generated"},"4609c4f0-f52d-4038-9ea7-9786137acc51":{"description":"Invalid or missing authentication token","content":{"application/json":{"schema":{"type":"object","description":"Error response body returned by all endpoints on 4xx/5xx failures.\n\nEvery error response contains a human-readable message and the request ID\nfor support correlation. The `request_id` is also returned in the\n`x-request-id` response header.","required":["error","request_id"],"properties":{"error":{"type":"string","description":"Human-readable error description.","example":"experiment not found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"request_id":{"type":"string","description":"Request identifier for support correlation (also in `x-request-id` header).","example":"req_019462a4-b1c2-7def-8901-23456789abcd","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"experiment not found","request_id":"req_019462a4-b1c2-7def-8901-23456789abcd"}}},"exampleType":"generated"}},"exampleType":"generated"},"d4be6fa1-f461-454c-b9fd-eade370fdad3":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"type":"object","description":"Error response body returned by all endpoints on 4xx/5xx failures.\n\nEvery error response contains a human-readable message and the request ID\nfor support correlation. The `request_id` is also returned in the\n`x-request-id` response header.","required":["error","request_id"],"properties":{"error":{"type":"string","description":"Human-readable error description.","example":"experiment not found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"request_id":{"type":"string","description":"Request identifier for support correlation (also in `x-request-id` header).","example":"req_019462a4-b1c2-7def-8901-23456789abcd","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"experiment not found","request_id":"req_019462a4-b1c2-7def-8901-23456789abcd"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"706b04f2-06cf-4e51-9a6d-81edb857c377":{"adaptyv_biscuits_v0":{"type":"http","scheme":"bearer","bearerFormat":"Adaptyv Biscuits v0","description":"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.","scopes":[],"schemeName":"adaptyv_biscuits_v0"}}},"servers":{"3ae1549d-def4-4e64-a719-6d8a9091873d":{"url":"https://devs.adaptyvbio.com/","description":"Production API (Public)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"Adaptyv Biscuits v0","description":"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.","scopes":[],"schemeName":"adaptyv_biscuits_v0"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"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.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"adaptyv_biscuits_v0","name":"Authorization"}],"title":"adaptyv_biscuits_v0"}]},"originalFileLocation":"https://devs.adaptyvbio.com/api/v1/openapi.json"},"subdomain":"adaptyv-a4917ef6","siteName":"Adaptyv Bio Docs","title":"Attenuate token - Adaptyv Bio Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-08T15:03:33.968Z","originalFileLocation":"api-reference/tokens/attenuate-token.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Add restrictions to an existing token without needing the private key. Attenuation is a Biscuit cryptographic feature that allows anyone holding a token to add restriction blocks. The resulting token can only do a subset of what the original token could do—restrictions cannot be removed. # Security Model This endpoint requires the token:read capability. 1. Cryptographic guarantee: Attenuation can only reduce permissions, never expand them. The Biscuit format ensures restriction blocks are append-only and cannot be removed without invalidating the signature. 2. Self-service by design: Users can only attenuate tokens they already possess. If you have a token, you can create a weaker version of it—this is analogous to being able to share read-only access to something you own. 3. No privilege escalation: The attenuated token inherits all existing restrictions from the source token, plus any new ones added. A read-only token cannot be attenuated into a read-write token. # Use Cases - Create a read-only version of your token for delegation - Restrict a token to specific resources or actions - Generate time-limited tokens for external services - Scope a broad token down to a single organization or project # Timezone All timestamps use UTC in ISO 8601 / RFC 3339 format. # Further Reading For the cryptographic properties of token attenuation, see the Biscuit documentation.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Adaptyv Bio Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/adaptyv-a4917ef6/zzyucPz0fZkqpoJX/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/adaptyv-a4917ef6/zzyucPz0fZkqpoJX/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/adaptyv-a4917ef6/zzyucPz0fZkqpoJX/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/adaptyv-a4917ef6/zzyucPz0fZkqpoJX/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/adaptyv-a4917ef6/zzyucPz0fZkqpoJX/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/adaptyv-a4917ef6/zzyucPz0fZkqpoJX/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/adaptyv-a4917ef6/zzyucPz0fZkqpoJX/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/adaptyv-a4917ef6/zzyucPz0fZkqpoJX/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/adaptyv-a4917ef6/zzyucPz0fZkqpoJX/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Attenuate token - Adaptyv Bio Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add restrictions to an existing token without needing the private key. Attenuation is a Biscuit cryptographic feature that allows anyone holding a token to add restriction blocks. The resulting token can only do a subset of what the original token could do—restrictions cannot be removed. # Security Model This endpoint requires the token:read capability. 1. Cryptographic guarantee: Attenuation can only reduce permissions, never expand them. The Biscuit format ensures restriction blocks are append-only and cannot be removed without invalidating the signature. 2. Self-service by design: Users can only attenuate tokens they already possess. If you have a token, you can create a weaker version of it—this is analogous to being able to share read-only access to something you own. 3. No privilege escalation: The attenuated token inherits all existing restrictions from the source token, plus any new ones added. A read-only token cannot be attenuated into a read-write token. # Use Cases - Create a read-only version of your token for delegation - Restrict a token to specific resources or actions - Generate time-limited tokens for external services - Scope a broad token down to a single organization or project # Timezone All timestamps use UTC in ISO 8601 / RFC 3339 format. # Further Reading For the cryptographic properties of token attenuation, see the Biscuit documentation.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Adaptyv Bio Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.adaptyvbio.com/api-reference/tokens/attenuate-token\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://adaptyv-a4917ef6.mintlify.site/_mintlify/api/og/v2?division=tokens\u0026amp;title=Attenuate+token\u0026amp;description=Add+restrictions+to+an+existing+token+without+needing+the+private+key.%0A%0AAttenuation+is+a+Biscuit+cryptographic+feature+that+allows+anyone+holding%0Aa+token+to+add\u0026amp;theme=43e189271cead89711960f8b\u0026amp;signature=cfa6842bd7be7e0a1979c22b3bdd649e4deabeed661c610031ab2e3c666720b1\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Attenuate token - Adaptyv Bio Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add restrictions to an existing token without needing the private key. Attenuation is a Biscuit cryptographic feature that allows anyone holding a token to add restriction blocks. The resulting token can only do a subset of what the original token could do—restrictions cannot be removed. # Security Model This endpoint requires the token:read capability. 1. Cryptographic guarantee: Attenuation can only reduce permissions, never expand them. The Biscuit format ensures restriction blocks are append-only and cannot be removed without invalidating the signature. 2. Self-service by design: Users can only attenuate tokens they already possess. If you have a token, you can create a weaker version of it—this is analogous to being able to share read-only access to something you own. 3. No privilege escalation: The attenuated token inherits all existing restrictions from the source token, plus any new ones added. A read-only token cannot be attenuated into a read-write token. # Use Cases - Create a read-only version of your token for delegation - Restrict a token to specific resources or actions - Generate time-limited tokens for external services - Scope a broad token down to a single organization or project # Timezone All timestamps use UTC in ISO 8601 / RFC 3339 format. # Further Reading For the cryptographic properties of token attenuation, see the Biscuit documentation.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://adaptyv-a4917ef6.mintlify.site/_mintlify/api/og/v2?division=tokens\u0026amp;title=Attenuate+token\u0026amp;description=Add+restrictions+to+an+existing+token+without+needing+the+private+key.%0A%0AAttenuation+is+a+Biscuit+cryptographic+feature+that+allows+anyone+holding%0Aa+token+to+add\u0026amp;theme=43e189271cead89711960f8b\u0026amp;signature=cfa6842bd7be7e0a1979c22b3bdd649e4deabeed661c610031ab2e3c666720b1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/adaptyv-a4917ef6/zzyucPz0fZkqpoJX/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Adaptyv Bio Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5db0dd\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.adaptyvbio.com/api-reference/tokens/attenuate-token\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/tokens/attenuate-token.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.adaptyvbio.com/#organization\",\"name\":\"Adaptyv Bio Docs\",\"url\":\"https://docs.adaptyvbio.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/adaptyv-a4917ef6/3kX9xKvyzUlLV3Dj/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=3kX9xKvyzUlLV3Dj\u0026q=85\u0026s=28a1e3df60674482d4bac1fc9d190568\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.adaptyvbio.com#website\",\"name\":\"Adaptyv Bio Docs\",\"url\":\"https://docs.adaptyvbio.com\",\"publisher\":{\"@id\":\"https://docs.adaptyvbio.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.adaptyvbio.com/api-reference/tokens/attenuate-token#webpage\",\"url\":\"https://docs.adaptyvbio.com/api-reference/tokens/attenuate-token\",\"name\":\"Attenuate token\",\"description\":\"Add restrictions to an existing token without needing the private key. Attenuation is a Biscuit cryptographic feature that allows anyone holding a token to add restriction blocks. The resulting token can only do a subset of what the original token could do—restrictions cannot be removed. # Security Model This endpoint requires the token:read capability. 1. Cryptographic guarantee: Attenuation can only reduce permissions, never expand them. The Biscuit format ensures restriction blocks are append-only and cannot be removed without invalidating the signature. 2. Self-service by design: Users can only attenuate tokens they already possess. If you have a token, you can create a weaker version of it—this is analogous to being able to share read-only access to something you own. 3. No privilege escalation: The attenuated token inherits all existing restrictions from the source token, plus any new ones added. A read-only token cannot be attenuated into a read-write token. # Use Cases - Create a read-only version of your token for delegation - Restrict a token to specific resources or actions - Generate time-limited tokens for external services - Scope a broad token down to a single organization or project # Timezone All timestamps use UTC in ISO 8601 / RFC 3339 format. # Further Reading For the cryptographic properties of token attenuation, see the Biscuit documentation.\",\"dateModified\":\"2026-11-08T15:03:33.968Z\",\"isPartOf\":{\"@id\":\"https://docs.adaptyvbio.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.adaptyvbio.com/api-reference/tokens/attenuate-token#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.adaptyvbio.com/api-reference/tokens/attenuate-token#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Endpoints\",\"item\":\"https://docs.adaptyvbio.com/api-reference/experiments/list-experiments\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"tokens\",\"item\":\"https://docs.adaptyvbio.com/api-reference/tokens/list-tokens\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Attenuate token\",\"item\":\"https://docs.adaptyvbio.com/api-reference/tokens/attenuate-token\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.adaptyvbio.com/api-reference/tokens/attenuate-token#apireference\",\"headline\":\"Attenuate token\",\"name\":\"Attenuate token\",\"description\":\"Add restrictions to an existing token without needing the private key. Attenuation is a Biscuit cryptographic feature that allows anyone holding a token to add restriction blocks. The resulting token can only do a subset of what the original token could do—restrictions cannot be removed. # Security Model This endpoint requires the token:read capability. 1. Cryptographic guarantee: Attenuation can only reduce permissions, never expand them. The Biscuit format ensures restriction blocks are append-only and cannot be removed without invalidating the signature. 2. Self-service by design: Users can only attenuate tokens they already possess. If you have a token, you can create a weaker version of it—this is analogous to being able to share read-only access to something you own. 3. No privilege escalation: The attenuated token inherits all existing restrictions from the source token, plus any new ones added. A read-only token cannot be attenuated into a read-write token. # Use Cases - Create a read-only version of your token for delegation - Restrict a token to specific resources or actions - Generate time-limited tokens for external services - Scope a broad token down to a single organization or project # Timezone All timestamps use UTC in ISO 8601 / RFC 3339 format. # Further Reading For the cryptographic properties of token attenuation, see the Biscuit documentation.\",\"url\":\"https://docs.adaptyvbio.com/api-reference/tokens/attenuate-token\",\"mainEntityOfPage\":{\"@id\":\"https://docs.adaptyvbio.com/api-reference/tokens/attenuate-token#webpage\"},\"dateModified\":\"2026-11-08T15:03:33.968Z\",\"publisher\":{\"@id\":\"https://docs.adaptyvbio.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.adaptyvbio.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Adaptyv Bio Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Adaptyv Bio Docs","nav":{"global":{"anchors":[{"anchor":"Careers","icon":"users","href":"https://www.adaptyvbio.com/careers"},{"anchor":"Blog","icon":"newspaper","href":"https://www.adaptyvbio.com/blog"},{"anchor":"Experiment Configurator","icon":"flask","href":"https://start.adaptyvbio.com"},{"anchor":"Foundry Portal","icon":"desktop","href":"https://foundry.adaptyvbio.com"}]},"tabs":[{"tab":"Documentation","icon":"file-lines","pages":[{"title":"Documentation","href":"/docs/getting-started/introduction"}]},{"tab":"Wiki","icon":"book","pages":[{"title":"Wiki","href":"/wiki/technologies/cell-free-protein-expression"}]},{"tab":"Guides","icon":"lightbulb","pages":[{"title":"Guides","href":"/guides/improve-protein-expression"}]},{"tab":"API","icon":"code","groups":[{"group":"Getting Started","pages":[{"title":"Foundry API","href":"/api-reference/api-introduction"},{"title":"MCP Server","href":"/api-reference/mcp-server"},{"title":"Integrator \u0026 Partner Guide","href":"/api-reference/integrator-partner-guide"}]},{"group":"Payments","pages":[{"title":"Payments Overview","href":"/api-reference/payments/overview"},{"title":"Pay by hosted invoice","href":"/api-reference/payments/pay-hosted-invoice"},{"title":"Pay with x402 (exact)","href":"/api-reference/payments/pay-x402-exact"},{"title":"Pay with a Shared Payment Token (MPP-SPT)","href":"/api-reference/payments/pay-mpp-spt"}]},{"group":"API Endpoints","pages":[{"group":"experiments","pages":[{"title":"List experiments","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/experiments","href":"/api-reference/experiments/list-experiments"},{"title":"Create experiment","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/experiments","href":"/api-reference/experiments/create-experiment"},{"title":"Estimate experiment cost","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/experiments/cost-estimate","href":"/api-reference/experiments/estimate-experiment-cost"},{"title":"Get experiment","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/experiments/{experiment_id}","href":"/api-reference/experiments/get-experiment"},{"title":"Update experiment","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json patch /api/v1/experiments/{experiment_id}","href":"/api-reference/experiments/update-experiment"},{"title":"Get experiment invoice","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/experiments/{experiment_id}/invoice","href":"/api-reference/experiments/get-experiment-invoice"},{"title":"Get experiment quote","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/experiments/{experiment_id}/quote","href":"/api-reference/experiments/get-experiment-quote"},{"title":"Accept an experiment's quote and create an invoice","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/experiments/{experiment_id}/quote/confirm","href":"/api-reference/experiments/accept-an-experiments-quote-and-create-an-invoice"},{"title":"Get experiment quote PDF","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/experiments/{experiment_id}/quote/pdf","href":"/api-reference/experiments/get-experiment-quote-pdf"},{"title":"List results for an experiment","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/experiments/{experiment_id}/results","href":"/api-reference/experiments/list-results-for-an-experiment"},{"title":"List sequences for an experiment","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/experiments/{experiment_id}/sequences","href":"/api-reference/experiments/list-sequences-for-an-experiment"},{"title":"Submit experiment","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/experiments/{experiment_id}/submit","href":"/api-reference/experiments/submit-experiment"},{"title":"List experiment updates","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/experiments/{experiment_id}/updates","href":"/api-reference/experiments/list-experiment-updates"}]},{"group":"feedback","pages":[{"title":"Submit feedback, bug reports, or feature requests","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/feedback/submit","href":"/api-reference/feedback/submit-feedback-bug-reports-or-feature-requests"}]},{"group":"info","pages":[{"title":"Liveness probe","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/info/health","href":"/api-reference/info/liveness-probe"},{"title":"Database connectivity probe","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/info/health-db","href":"/api-reference/info/database-connectivity-probe"}]},{"group":"invoices","pages":[{"title":"List invoices","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/invoices","href":"/api-reference/invoices/list-invoices"},{"title":"Get invoice","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/invoices/{invoice_id}","href":"/api-reference/invoices/get-invoice"},{"title":"Pay invoice","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/invoices/{invoice_id}/pay","href":"/api-reference/invoices/pay-invoice"},{"title":"Get invoice PDF","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/invoices/{invoice_id}/pdf","href":"/api-reference/invoices/get-invoice-pdf"}]},{"group":"quotes","pages":[{"title":"List quotes","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/quotes","href":"/api-reference/quotes/list-quotes"},{"title":"Get quote","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/quotes/{quote_id}","href":"/api-reference/quotes/get-quote"},{"title":"Accept quote","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/quotes/{quote_id}/confirm","href":"/api-reference/quotes/accept-quote"},{"title":"Reject quote","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/quotes/{quote_id}/reject","href":"/api-reference/quotes/reject-quote"}]},{"group":"results","pages":[{"title":"List results","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/results","href":"/api-reference/results/list-results"},{"title":"Get result","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/results/{result_id}","href":"/api-reference/results/get-result"}]},{"group":"sequences","pages":[{"title":"List sequences","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/sequences","href":"/api-reference/sequences/list-sequences"},{"title":"Add sequences to experiment","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/sequences","href":"/api-reference/sequences/add-sequences-to-experiment"},{"title":"Get sequence","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/sequences/{sequence_id}","href":"/api-reference/sequences/get-sequence"}]},{"group":"targets","pages":[{"title":"List targets","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/targets","href":"/api-reference/targets/list-targets"},{"title":"List custom target requests","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/targets/request-custom","href":"/api-reference/targets/list-custom-target-requests"},{"title":"Submit custom target request","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/targets/request-custom","href":"/api-reference/targets/submit-custom-target-request"},{"title":"Get custom target request","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/targets/request-custom/{request_id}","href":"/api-reference/targets/get-custom-target-request"},{"title":"Get target","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/targets/{target_id}","href":"/api-reference/targets/get-target"}]},{"group":"tokens","pages":[{"title":"List tokens","description":"Returns a flat, paginated list of all tokens (root and attenuated) the\ncaller owns. Each item carries lineage fields (`parent_token_id`,\n`root_token_id`, `kind`) so callers can reconstruct the derivation tree.\nAdmins with global scope see all tokens across all users.","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/tokens","href":"/api-reference/tokens/list-tokens"},{"title":"Attenuate token","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/tokens/attenuate","href":"/api-reference/tokens/attenuate-token"},{"title":"Revoke the calling token and its entire lineage","description":"Revokes the root token used to authenticate this request and all of its\nattenuated descendants, making the entire token family invalid for future\nAPI calls.\n\n**Idempotent**: If the token family is already revoked, returns the\noriginal revocation timestamp and `children_revoked: 0`.\n\n**Requires token:revoke capability.**","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/tokens/revoke","href":"/api-reference/tokens/revoke-the-calling-token-and-its-entire-lineage"}]},{"group":"updates","pages":[{"title":"List updates","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/updates","href":"/api-reference/updates/list-updates"}]},{"group":"webhooks","pages":[{"title":"List the organization's webhook registrations.","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/webhooks","href":"/api-reference/webhooks/list-the-organizations-webhook-registrations"},{"title":"Register a webhook for the organization.","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json post /api/v1/webhooks","href":"/api-reference/webhooks/register-a-webhook-for-the-organization"},{"title":"Remove a webhook registration.","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json delete /api/v1/webhooks/{webhook_id}","href":"/api-reference/webhooks/remove-a-webhook-registration"},{"title":"Modify a webhook registration, including rotating or clearing its secret.","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json patch /api/v1/webhooks/{webhook_id}","href":"/api-reference/webhooks/modify-a-webhook-registration-including-rotating-or-clearing-its-secret"}]},{"group":"whoami","pages":[{"title":"Who am I","deprecated":null,"version":null,"openapi":"https://devs.adaptyvbio.com/api/v1/openapi.json get /api/v1/whoami","href":"/api-reference/whoami/who-am-i"}]}]}]},{"tab":"Changelog","icon":"newspaper","pages":[{"title":"Changelog","href":"/changelog/changelog"}]}]},"basePath":"","title":"Attenuate token - Adaptyv Bio Docs","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}