{
"code": "INVALID_PARAMETER",
"message": "scope is required"
}
{
"code": "INVALID_TOKEN",
"message": "Unknown agent API key"
}
{
"code": "AGENT_KEYS_DISABLED",
"message": "Agent keys are not enabled for this partner"
}
Agent APIs
Create an agent session
Issues a 15-minute access token (type=agent) with no refresh token.
Create one per operation.
Identify the agent with exactly one of the x-agent-api-key header or
the body signedMessage. API-key-only agents must use the header.
signedMessage requires a public key stored at bind time.
The requested scope must be a subset of the bound key’s scopes; omit it
to receive the full bound set. Tokens issued before a key rotation fail.
POST
/
v2
/
auth
/
agent
/
session
Error
A valid request URL is required to generate request examples
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AIR Kit","description":"AIR Kit — portable credentials, cross-platform loyalty, and privacy-preserving identity for enterprise partners and developers. Build on Moca Chain.","colors":{"primary":"#002536","light":"#9BD5EA","dark":"#000000"},"logo":{"light":"https://mintcdn.com/mocanetwork/u502VcMoQ3MqsIUB/images/air-logo.svg?fit=max\u0026auto=format\u0026n=u502VcMoQ3MqsIUB\u0026q=85\u0026s=0040bb2872ea1c6524c04e68bcd69da9","dark":"https://mintcdn.com/mocanetwork/u502VcMoQ3MqsIUB/images/air-logo.svg?fit=max\u0026auto=format\u0026n=u502VcMoQ3MqsIUB\u0026q=85\u0026s=0040bb2872ea1c6524c04e68bcd69da9","href":"https://docs.air3.com"},"favicon":"https://mintcdn.com/mocanetwork/A7O8YBP7ecQMKF6C/images/icon.png?fit=max\u0026auto=format\u0026n=A7O8YBP7ecQMKF6C\u0026q=85\u0026s=b187f10750407d4113b7e36b2e0f8509","api":{"playground":{"proxy":false}},"appearance":{"default":"light","strict":true},"background":{"color":{"light":"#FAFAFA","dark":"#000000"}},"navbar":{"links":[{"icon":"up-right-from-square","href":"https://air3.com/partner-with-us","label":"Partner with us"}],"primary":{"type":"button","label":"Dashboard","href":"https://developers.sandbox.air3.com/dashboard"}},"seo":{"metatags":{"og:image":"/images/preview.png?v=2","twitter:image":"/images/preview.png?v=2"},"indexing":"all"},"fonts":{"heading":{"family":"Poppins","weight":500},"body":{"family":"DM Sans","weight":500}},"integrations":{"amplitude":{"apiKey":"36efccffd2a5c5d4236e8b03daa7ad1e"}},"contextual":{"options":["copy","chatgpt","claude","perplexity","grok","add-mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mocanetwork","hasAudioNarration":false,"actualSubdomain":"mocanetwork","customDomains":["docs.air3.com"],"gitSource":{"type":"github","owner":"mocanetwork","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae33e38344aa043c132ed37","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"Products","count":48},{"language":"default","tag":"Technicals","count":38},{"language":"default","tag":"Get Started","count":35},{"language":"default","tag":"Overview","count":26},{"language":"default","tag":"Architecture","count":21},{"language":"default","tag":"AIR Identity","count":17},{"language":"default","tag":"Moca Chain","count":17},{"language":"default","tag":"API References","count":15},{"language":"default","tag":"Solutions","count":15},{"language":"default","tag":"How it works","count":15}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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}],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","href":"/_mintlify/custom/mocanetwork/d259a00153a13659/custom.css"}],"page":{"pagePath":"api-reference/agents/create-agent-session","slug":"/api-reference/agents/create-agent-session","pageMetadata":{"title":"Create an agent session","openapi":"api-reference/agent-openapi.json POST /v2/auth/agent/session","description":"Issues a **15-minute** access token (`type=agent`) with no refresh token.\nCreate one per operation.\n\nIdentify the agent with **exactly one** of the `x-agent-api-key` header or\nthe body `signedMessage`. API-key-only agents must use the header.\n`signedMessage` requires a public key stored at bind time.\n\nThe requested `scope` must be a subset of the bound key's scopes; omit it\nto receive the full bound set. Tokens issued before a key rotation fail.\n","href":"/api-reference/agents/create-agent-session"},"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 code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Issues a \", _jsx(_components.strong, {\n children: \"15-minute\"\n }), \" access token (\", _jsx(_components.code, {\n children: \"type=agent\"\n }), \") with no refresh token.\\nCreate one per operation.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Identify the agent with \", _jsx(_components.strong, {\n children: \"exactly one\"\n }), \" of the \", _jsx(_components.code, {\n children: \"x-agent-api-key\"\n }), \" header or\\nthe body \", _jsx(_components.code, {\n children: \"signedMessage\"\n }), \". API-key-only agents must use the header.\\n\", _jsx(_components.code, {\n children: \"signedMessage\"\n }), \" requires a public key stored at bind time.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The requested \", _jsx(_components.code, {\n children: \"scope\"\n }), \" must be a subset of the bound key’s scopes; omit it\\nto receive the full bound set. Tokens issued before a key rotation fail.\"]\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":"Create an agent session","openapi":"api-reference/agent-openapi.json POST /v2/auth/agent/session","description":"Issues a **15-minute** access token (`type=agent`) with no refresh token.\nCreate one per operation.\n\nIdentify the agent with **exactly one** of the `x-agent-api-key` header or\nthe body `signedMessage`. API-key-only agents must use the header.\n`signedMessage` requires a public key stored at bind time.\n\nThe requested `scope` must be a subset of the bound key's scopes; omit it\nto receive the full bound set. Tokens issued before a key rotation fail.\n","href":"/api-reference/agents/create-agent-session"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/mocanetwork/52d6902d6e78de15/landing-tabs.js"],"openApiReferenceData":{"operation":{"tags":["Agent session"],"operationId":"createAgentSession","summary":"Create an agent session","description":"Issues a **15-minute** access token (`type=agent`) with no refresh token.\nCreate one per operation.\n\nIdentify the agent with **exactly one** of the `x-agent-api-key` header or\nthe body `signedMessage`. API-key-only agents must use the header.\n`signedMessage` requires a public key stored at bind time.\n\nThe requested `scope` must be a subset of the bound key's scopes; omit it\nto receive the full bound set. Tokens issued before a key rotation fail.\n","parameters":["03df1a3e-7dfe-488b-ae11-a8d44da33719","f952c033-0700-442f-bf3f-e96e6b9e798a"],"requestBody":"edc0cc13-8509-4c21-bee4-af1edf3f4ee6","responses":{"200":"36bb4e99-1705-4139-a70a-cf60e76a001f","400":"7f1f194b-5282-4fd9-a0dd-7d0823526f07","401":"f66aeaf0-2fef-46e0-b3cd-8aad291df3e6","403":"c33420c3-9eec-4b6f-856b-ead999c6244a"},"method":"post","type":"path","servers":["f76204f0-2787-42f3-ae79-3ff55407524b"],"security":[],"path":"/v2/auth/agent/session","baseUrlOptions":["{AIR_API}"],"title":"Create an agent session","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"03df1a3e-7dfe-488b-ae11-a8d44da33719":{"name":"x-partner-id","in":"header","required":true,"description":"Your Partner ID (UUID) from the Developer Dashboard.","schema":{"type":"string","format":"uuid","isRequired":true,"description":"Your Partner ID (UUID) from the Developer Dashboard.","uniqueKey":"","typeLabel":"string\u003cuuid>"}},"f952c033-0700-442f-bf3f-e96e6b9e798a":{"name":"x-agent-api-key","in":"header","required":false,"description":"Opaque API key returned once at bind or rotate. Mutually exclusive with body\n`signedMessage`. Required for API-key-only agents.\n","schema":{"type":"string","example":"air_ag_…","isRequired":false,"description":"Opaque API key returned once at bind or rotate. Mutually exclusive with body\n`signedMessage`. Required for API-key-only agents.\n","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"scope":{"type":"string","description":"Space-delimited scopes for the agent JWT. Must be a subset of the bound\nkey's scopes. Omit to use the full bound set.\n","example":"openid credentials.read credentials.verify","uniqueKey":"scope","typeLabel":"string"},"signedMessage":{"type":"object","description":"Mutually exclusive with `x-agent-api-key`. The bound key must have a\nstored public key.\n","required":["message","signature","publicKey"],"properties":{"message":{"type":"string","description":"Canonical proof `agent_pubkey:userId:unixEpochTime`, with the time in seconds.","isRequired":true,"uniqueKey":"signedMessage.message","typeLabel":"string"},"signature":{"type":"string","description":"ECDSA P-256 signature over `message` (standard base64 or base64url; DER or IEEE P1363 / ES256).","isRequired":true,"uniqueKey":"signedMessage.signature","typeLabel":"string"},"publicKey":{"type":"string","description":"secp256r1 public key (PEM or base64 DER) that signed `message`.","isRequired":true,"uniqueKey":"signedMessage.publicKey","typeLabel":"string"}},"uniqueKey":"signedMessage","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"scope":"openid credentials.read credentials.verify"},"examples":{"Example":{"title":"Example","value":{"scope":"openid credentials.read credentials.verify"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"36bb4e99-1705-4139-a70a-cf60e76a001f":{"description":"Agent JWT issued","content":{"application/json":{"schema":{"type":"object","required":["accessToken","user"],"properties":{"accessToken":{"type":"string","description":"Agent JWT (`type=agent`), valid for 15 minutes. Send as `Authorization: Bearer`.","isRequired":true,"uniqueKey":"accessToken","typeLabel":"string"},"user":{"type":"object","required":["id"],"properties":{"id":{"type":"string","format":"uuid","description":"AIR user ID.","isRequired":true,"uniqueKey":"user.id","typeLabel":"string\u003cuuid>"},"abstractAccountAddress":{"oneOf":[{"type":"string","description":"The holder's AIR Account (smart account) address.","example":"0x…","uniqueKey":"user.abstractAccountAddress.oneOf.0","typeLabel":"string"},{"type":"null","description":"The holder's AIR Account (smart account) address.","example":"0x…","uniqueKey":"user.abstractAccountAddress.oneOf.1","typeLabel":"null"}],"uniqueKey":"user.abstractAccountAddress","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"user","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"accessToken":"\u003cjwt>","user":{"id":"018f9a2b-7c3d-7e10-9a4b-2c1d5e6f7a8b","abstractAccountAddress":"0x…"}},"examples":{"Example":{"title":"Example","value":{"accessToken":"\u003cjwt>","user":{"id":"018f9a2b-7c3d-7e10-9a4b-2c1d5e6f7a8b","abstractAccountAddress":"0x…"}}}},"exampleType":"examples"}},"exampleType":"examples"},"7f1f194b-5282-4fd9-a0dd-7d0823526f07":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable AIR API error code.","enum":["INVALID_PARAMETER","UNAUTHORIZED","INVALID_TOKEN","AGENT_KEYS_DISABLED","AGENT_SCOPE_DENIED","AGENT_SCOPED_SESSION_DISABLED","CONFLICT_REQUEST","NOT_FOUND","INTERNAL_SERVER_ERROR"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"INVALID_PARAMETER","message":"scope is required"},"examples":{"Example":{"title":"Example","value":{"code":"INVALID_PARAMETER","message":"scope is required"}}},"exampleType":"examples"}},"exampleType":"examples"},"f66aeaf0-2fef-46e0-b3cd-8aad291df3e6":{"description":"Missing or invalid partner session, partner JWT, or agent identity","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable AIR API error code.","enum":["INVALID_PARAMETER","UNAUTHORIZED","INVALID_TOKEN","AGENT_KEYS_DISABLED","AGENT_SCOPE_DENIED","AGENT_SCOPED_SESSION_DISABLED","CONFLICT_REQUEST","NOT_FOUND","INTERNAL_SERVER_ERROR"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"INVALID_TOKEN","message":"Unknown agent API key"},"examples":{"Example":{"title":"Example","value":{"code":"INVALID_TOKEN","message":"Unknown agent API key"}}},"exampleType":"examples"}},"exampleType":"examples"},"c33420c3-9eec-4b6f-856b-ead999c6244a":{"description":"Agent keys disabled for the partner, scope not a subset of the bound key, or `wallet.sign` on a partner route","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable AIR API error code.","enum":["INVALID_PARAMETER","UNAUTHORIZED","INVALID_TOKEN","AGENT_KEYS_DISABLED","AGENT_SCOPE_DENIED","AGENT_SCOPED_SESSION_DISABLED","CONFLICT_REQUEST","NOT_FOUND","INTERNAL_SERVER_ERROR"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"AGENT_KEYS_DISABLED","message":"Agent keys are not enabled for this partner"},"examples":{"Example":{"title":"Example","value":{"code":"AGENT_KEYS_DISABLED","message":"Agent keys are not enabled for this partner"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{},"servers":{"f76204f0-2787-42f3-ae79-3ff55407524b":{"url":"{AIR_API}","description":"AIR API","variables":{"AIR_API":{"description":"Sandbox or Production","default":"https://air.api.sandbox.air3.com","enum":["https://air.api.sandbox.air3.com","https://air.api.air3.com"]}}}}},"originalFileLocation":"api-reference/agent-openapi.json"},"subdomain":"mocanetwork","siteName":"AIR Kit","title":"Create an agent session - AIR Kit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-05T14:00:46.506Z","originalFileLocation":"api-reference/agents/create-agent-session.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Issues a 15-minute access token (type=agent) with no refresh token. Create one per operation. Identify the agent with exactly one of the x-agent-api-key header or the body signedMessage. API-key-only agents must use the header. signedMessage requires a public key stored at bind time. The requested scope must be a subset of the bound key\u0026#x27;s scopes; omit it to receive the full bound set. Tokens issued before a key rotation fail.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AIR Kit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mocanetwork/MQNfB-RPmk1KurqW/_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/mocanetwork/MQNfB-RPmk1KurqW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mocanetwork/MQNfB-RPmk1KurqW/_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/mocanetwork/MQNfB-RPmk1KurqW/_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/mocanetwork/MQNfB-RPmk1KurqW/_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/mocanetwork/MQNfB-RPmk1KurqW/_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/mocanetwork/MQNfB-RPmk1KurqW/_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/mocanetwork/MQNfB-RPmk1KurqW/_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/mocanetwork/MQNfB-RPmk1KurqW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create an agent session - AIR Kit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Issues a 15-minute access token (type=agent) with no refresh token. Create one per operation. Identify the agent with exactly one of the x-agent-api-key header or the body signedMessage. API-key-only agents must use the header. signedMessage requires a public key stored at bind time. The requested scope must be a subset of the bound key\u0026#x27;s scopes; omit it to receive the full bound set. Tokens issued before a key rotation fail.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AIR Kit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.air3.com/api-reference/agents/create-agent-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mocanetwork.mintlify.site/images/preview.png?v=2\">\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=\"Create an agent session - AIR Kit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Issues a 15-minute access token (type=agent) with no refresh token. Create one per operation. Identify the agent with exactly one of the x-agent-api-key header or the body signedMessage. API-key-only agents must use the header. signedMessage requires a public key stored at bind time. The requested scope must be a subset of the bound key\u0026#x27;s scopes; omit it to receive the full bound set. Tokens issued before a key rotation fail.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mocanetwork.mintlify.site/images/preview.png?v=2\">\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/mocanetwork/MQNfB-RPmk1KurqW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AIR Kit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#002536\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.air3.com/api-reference/agents/create-agent-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/agents/create-agent-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.air3.com/#organization\",\"name\":\"AIR Kit\",\"url\":\"https://docs.air3.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mocanetwork/u502VcMoQ3MqsIUB/images/air-logo.svg?fit=max\u0026auto=format\u0026n=u502VcMoQ3MqsIUB\u0026q=85\u0026s=0040bb2872ea1c6524c04e68bcd69da9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.air3.com#website\",\"name\":\"AIR Kit\",\"url\":\"https://docs.air3.com\",\"publisher\":{\"@id\":\"https://docs.air3.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.air3.com/api-reference/agents/create-agent-session#webpage\",\"url\":\"https://docs.air3.com/api-reference/agents/create-agent-session\",\"name\":\"Create an agent session\",\"description\":\"Issues a 15-minute access token (type=agent) with no refresh token. Create one per operation. Identify the agent with exactly one of the x-agent-api-key header or the body signedMessage. API-key-only agents must use the header. signedMessage requires a public key stored at bind time. The requested scope must be a subset of the bound key's scopes; omit it to receive the full bound set. Tokens issued before a key rotation fail.\",\"dateModified\":\"2026-10-05T14:00:46.506Z\",\"isPartOf\":{\"@id\":\"https://docs.air3.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.air3.com/api-reference/agents/create-agent-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.air3.com/api-reference/agents/create-agent-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agent APIs\",\"item\":\"https://docs.air3.com/api-reference/agents/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create an agent session\",\"item\":\"https://docs.air3.com/api-reference/agents/create-agent-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.air3.com/api-reference/agents/create-agent-session#apireference\",\"headline\":\"Create an agent session\",\"name\":\"Create an agent session\",\"description\":\"Issues a 15-minute access token (type=agent) with no refresh token. Create one per operation. Identify the agent with exactly one of the x-agent-api-key header or the body signedMessage. API-key-only agents must use the header. signedMessage requires a public key stored at bind time. The requested scope must be a subset of the bound key's scopes; omit it to receive the full bound set. Tokens issued before a key rotation fail.\",\"url\":\"https://docs.air3.com/api-reference/agents/create-agent-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.air3.com/api-reference/agents/create-agent-session#webpage\"},\"image\":\"https://docs.air3.com/images/preview.png?v=2\",\"dateModified\":\"2026-10-05T14:00:46.506Z\",\"publisher\":{\"@id\":\"https://docs.air3.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.air3.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AIR Kit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AIR Kit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/agents/create-agent-session.md","siteName":"AIR Kit","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":""}]},{"tab":"Get Started","pages":[{"title":"Get Started","href":"/get-started/build-with-your-agent"}]},{"tab":"Products","menu":[{"item":"AIR Identity","icon":"id-card","pages":[{"title":"AIR Identity","href":"/products/identity/integrating-using-ai"}]},{"item":"AIR Agent","icon":"robot","pages":[{"title":"AIR Agent","href":"/products/agents/integrating-using-ai"}]},{"item":"AIR Money","icon":"wallet","pages":[{"title":"AIR Money","href":"/products/money/integrating-using-ai"}]},{"item":"AIR Loyalty","icon":"gift","pages":[{"title":"AIR Loyalty","href":"/products/loyalty/integrating-using-ai"}]}],"pages":[{"title":"Products","href":"/products/identity/integrating-using-ai"}]},{"tab":"Solutions","pages":[{"title":"Solutions","href":"/solutions/integrating-using-ai"}]},{"tab":"Technicals","menu":[{"item":"Architecture","icon":"diagram-project","pages":[{"title":"Architecture","href":"/technicals/architecture"}]},{"item":"Moca Chain","icon":"link","pages":[{"title":"Moca Chain","href":"/technicals/mocachain"}]}],"pages":[{"title":"Technicals","href":"/technicals/architecture"}]},{"tab":"Demo","icon":"up-right-from-square","href":"https://demo.air3.com"},{"tab":"API References","groups":[{"group":"REST API","pages":[{"title":"REST API overview: base URLs and authentication","sidebarTitle":"API Reference","href":"/api-reference/introduction"},{"title":"Issuance API Reference","href":"/api-reference/issuance-api"}]},{"group":"Agent APIs","pages":[{"title":"Agent APIs overview: authentication, scopes, and errors","sidebarTitle":"Overview","href":"/api-reference/agents/introduction"},{"title":"Bind an agent","openapi":"api-reference/agent-openapi.json POST /v2/auth/agent/keys/partner","href":"/api-reference/agents/bind-agent-key"},{"title":"List bound agents","openapi":"api-reference/agent-openapi.json GET /v2/auth/agent/keys/partner","href":"/api-reference/agents/list-agent-keys"},{"title":"Update an agent nickname","openapi":"api-reference/agent-openapi.json PATCH /v2/auth/agent/keys/partner/{id}","href":"/api-reference/agents/update-agent-key-nickname"},{"title":"Rotate an agent API key","openapi":"api-reference/agent-openapi.json POST /v2/auth/agent/keys/partner/{id}/rotate","href":"/api-reference/agents/rotate-agent-key"},{"title":"Revoke an agent key","openapi":"api-reference/agent-openapi.json DELETE /v2/auth/agent/keys/partner/{id}","description":"Removes the agent key. After revocation, session requests with that API key\n(or its public key) fail. `wallet.sign` keys cannot be revoked on this path.\n","href":"/api-reference/agents/revoke-agent-key"},{"title":"Create an agent session","openapi":"api-reference/agent-openapi.json POST /v2/auth/agent/session","href":"/api-reference/agents/create-agent-session"},{"title":"Create a checkout session","openapi":"api-reference/agent-openapi.json POST /v2/auth/agent/checkout-session","description":"Issues a short-lived access token (`type=agent`) for a merchant checkout.\nNo refresh token. The bound key must include `commerce.checkout`.\n\nIdentify the agent with **exactly one** of the `x-agent-api-key` header or\nthe body `signedMessage`.\n\nThe request `scope` names the merchant checkout target, not an agent\nscope. `pivota.checkout` is currently the only supported value. The JWT's\n`scope` equals the requested value, and its `aud` is the merchant mapped to\nthat target. The JWT includes the holder's abstract account address.\n\nAIR and Credential APIs reject this token because of the audience. The\nmerchant must verify `aud`.\n","href":"/api-reference/agents/create-checkout-session"},{"title":"List credentials","openapi":"api-reference/agent-openapi.json GET /v2/credentials","href":"/api-reference/agents/list-credentials"},{"title":"Verify a credential","openapi":"api-reference/agent-openapi.json POST /v2/credentials/verify-by-agent","href":"/api-reference/agents/verify-credential-by-agent"}]},{"group":"Web SDK","pages":[{"title":"Web SDK reference","href":"/api-reference/sdk-reference"}]},{"group":"Releases","pages":[{"title":"Release Notes","href":"/api-reference/release-notes"},{"title":"Migration \u0026 Compatibility","href":"/api-reference/migration-compatibility"}]}]},{"tab":"Help","pages":[{"title":"Help","href":"/help/error-codes"}]}]},"basePath":"","title":"Create an agent session - AIR Kit","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","Page-D6S0Yh6q.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}