Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict.
Idempotency-Key
string
Replays the first result of a create; the same key with another body is 400 idempotency_key_reused, one while the first still runs 409 idempotency_key_in_use.
Required string length: 1 - 255
请求体
application/json
The native create body plus the machine the session runs on.
machine_id
string
必填
agent_id
string
The id /v1/agents uses.
read_only
boolean
默认值:false
lease_seconds
integer<int32>
必填范围: 1 <= x <= 900
keepalive_seconds
integer<int32>
默认值:300
Screen capture keepalive duration, applied from the open on (also while the capture is starting).
必填范围: 60 <= x <= 3600
capabilities
object
Show child attributes
ticket
object
Also mint the session's first ticket (as POST /v1/desktop_sessions/{desktop_session_id}/tickets with this body) and return it in the response's ticket, saving the viewer a second round trip. A retry with the same Idempotency-Key answers the same session with a newly minted ticket.
Show child attributes
响应
Success.
type
string
必填
Always desktop_session.
Allowed value: "desktop_session"
id
string
必填
Desktop session ID (dsn_...).
Pattern: ^dsn_[a-z2-7]{26}$
org_id
string
必填
Pattern: ^org_[a-z2-7]{26}$
project_id
string
必填
Project ID (proj_...).
Pattern: ^proj_[a-z2-7]{26}$
machine_id
string
必填
Machine ID (mch_...).
Pattern: ^mch_[a-z2-7]{26}$
owner_id
string
必填
Opaque authenticated principal that created the session, such as a user UUID or organization API key ID.
read_only
boolean
必填
closed
boolean
必填
state
enum<string>
必填
A screen capture answers starting until the machine confirms it publishes (then live); tickets are issued and viewers connect meanwhile and receive the track once published. A start the machine does not confirm closes the session.
可用选项:
open,
starting,
live,
closing,
closed
created_at
string<date-time>
必填
capabilities
object
必填
Show child attributes
control
object
必填
Show child attributes
agent_id
string
The id /v1/agents uses (never the native agt_ id).
expires_at
string<date-time>
Screen capture keepalive deadline; ticket issuance does not extend it.
ticket
object
The first ticket, only in the answer of a create request that asked for one (ticket).
Show child attributes
close_reason
enum<string>
Why the session ended, present once it is closed. capture_refused - the machine refused to publish its screen (opening again gets the same answer until something changes on the machine); capture_unconfirmed - the machine did not confirm the start in time; capture_lost - the machine stopped renewing a running capture; expired - the keepalive passed; closed_by_user - closed through POST /v1/desktop_sessions/{desktop_session_id}/close.
可用选项:
closed_by_user,
expired,
capture_refused,
capture_unconfirmed,
capture_lost
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"BMA Developer Docs","description":"BMA (BeeOS Managed Agents): an open-source agent runtime. Any brain × any hands, computer use, remote desktop, terminal, a replaceable scheduler and a durable event log, with the Anthropic Managed Agents API under /v1, the official SDKs and the Executor Protocol.","colors":{"primary":"#F97316","light":"#FB923C","dark":"#C2410C"},"logo":{"light":"/logo/light.svg","dark":"/logo/dark.svg","href":"/"},"favicon":"/favicon.svg","api":{"playground":{"display":"simple"},"examples":{"languages":["curl","python","javascript","go"]}},"appearance":{"default":"system"},"navbar":{"links":[{"href":"https://github.com/beeos-ai/bma-sdk","label":"bma-sdk"},{"href":"https://github.com/beeos-ai/bma-executor-sdk","label":"bma-executor-sdk"}]},"footer":{"socials":{"github":"https://github.com/beeos-ai"}},"fonts":{"heading":{"family":"Inter","weight":600},"body":{"family":"Inter","weight":400}},"integrations":{"telemetry":{"enabled":false}},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"zh","href":"zh"},{"language":"zh-Hant","href":"zh-Hant"},{"language":"ja","href":"ja"},{"language":"ko","href":"ko"}]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4291"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false,"isLoggedInCli":false,"mintExport":{}},"customCss":[]}
{"page":{"pagePath":"zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session","slug":"/zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session","pageMetadata":{"openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions","description":"","href":"/zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session","title":"Create a desktop session"},"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":{"openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions","description":"","href":"/zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session","title":"Create a desktop session"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createDesktopSession","tags":["Desktop sessions"],"summary":"Create a desktop session","parameters":["5ff3b210-00e7-4f0a-b10f-199472adee56","8c0dbd94-de3c-4b06-ad36-2ee00f04a735"],"requestBody":"3275b134-eb45-4ae6-834d-2ffd953d9611","responses":{"200":"5524ab2e-a802-42b9-bf34-e3f83c124cc3","4XX":"c970e4b7-dc88-4356-8623-50b0ddf94044","5XX":"c65b48a8-026d-4940-bd44-b4b490aaa357"},"x-bma-extension":true,"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -sS -X POST \"$BMA_BASE_URL/v1/desktop_sessions\" \\\n -H \"x-api-key: $BMA_API_KEY\" \\\n -H \"bma-workspace-id: $BMA_PROJECT_ID\" \\\n -H \"Idempotency-Key: $(uuidgen)\" \\\n -H \"content-type: application/json\" \\\n -d '{}'"},{"lang":"python","label":"Python","source":"from bma_sdk import Bma\n\nclient = Bma() # BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nresult = client.beta.desktop_sessions.create()\nprint(result)\n"},{"lang":"typescript","label":"TypeScript","source":"import { BmaClient } from \"@beeos-ai/bma-sdk\";\n\nconst client = new BmaClient(); // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nconst result = await client.beta.desktopSessions.create();\nconsole.log(result);\n"},{"lang":"go","label":"Go","source":"import (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\tbmasdk \"github.com/beeos-ai/bma-sdk/v4\"\n)\n\nclient := bmasdk.NewClient() // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\nvar res map[string]any\nerr := client.Execute(context.TODO(), http.MethodPost, \"v1/desktop_sessions\",\n\tmap[string]any{}, \u0026res)\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Println(res)\n"},{"lang":"bash","label":"CLI","source":"bma desktop-sessions create"}],"method":"post","type":"path","servers":["3e522fc8-a903-42cc-a27e-399bf105f073","cf778fef-821a-4466-b6df-c830bdb3a991"],"security":["35a509a8-c988-4d95-81ab-343ffefc8de2","a0940cc2-d177-46f3-9b14-99df7cd9caf5"],"path":"/v1/desktop_sessions","baseUrlOptions":["https://api.beeos.ai","http://127.0.0.1:58080"],"title":"Create a desktop session","description":"","codeSamples":[{"label":"curl","lang":"bash","source":"curl -sS -X POST \"$BMA_BASE_URL/v1/desktop_sessions\" \\\n -H \"x-api-key: $BMA_API_KEY\" \\\n -H \"bma-workspace-id: $BMA_PROJECT_ID\" \\\n -H \"Idempotency-Key: $(uuidgen)\" \\\n -H \"content-type: application/json\" \\\n -d '{}'"},{"label":"Python","lang":"python","source":"from bma_sdk import Bma\n\nclient = Bma() # BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nresult = client.beta.desktop_sessions.create()\nprint(result)\n"},{"label":"TypeScript","lang":"typescript","source":"import { BmaClient } from \"@beeos-ai/bma-sdk\";\n\nconst client = new BmaClient(); // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nconst result = await client.beta.desktopSessions.create();\nconsole.log(result);\n"},{"label":"Go","lang":"go","source":"import (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\tbmasdk \"github.com/beeos-ai/bma-sdk/v4\"\n)\n\nclient := bmasdk.NewClient() // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\nvar res map[string]any\nerr := client.Execute(context.TODO(), http.MethodPost, \"v1/desktop_sessions\",\n\tmap[string]any{}, \u0026res)\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Println(res)\n"},{"label":"CLI","lang":"bash","source":"bma desktop-sessions create"}],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"5ff3b210-00e7-4f0a-b10f-199472adee56":{"name":"bma-workspace-id","in":"header","required":false,"schema":{"type":"string","isRequired":false,"description":"Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict.","uniqueKey":"","typeLabel":"string"},"description":"Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict."},"8c0dbd94-de3c-4b06-ad36-2ee00f04a735":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"isRequired":false,"description":"Replays the first result of a create; the same key with another body is 400 `idempotency_key_reused`, one while the first still runs 409 `idempotency_key_in_use`.","uniqueKey":"","typeLabel":"string"},"description":"Replays the first result of a create; the same key with another body is 400 `idempotency_key_reused`, one while the first still runs 409 `idempotency_key_in_use`."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"The native create body plus the machine the session runs on.","required":["machine_id"],"properties":{"machine_id":{"type":"string","isRequired":true,"uniqueKey":"machine_id","typeLabel":"string"},"agent_id":{"type":"string","description":"The id /v1/agents uses.","uniqueKey":"agent_id","typeLabel":"string"},"read_only":{"type":"boolean","default":false,"uniqueKey":"read_only","typeLabel":"boolean"},"lease_seconds":{"type":"integer","format":"int32","minimum":1,"maximum":900,"uniqueKey":"lease_seconds","typeLabel":"integer\u003cint32>"},"keepalive_seconds":{"type":"integer","format":"int32","minimum":60,"maximum":3600,"default":300,"description":"Screen capture keepalive duration, applied from the open on (also while the capture is starting).","uniqueKey":"keepalive_seconds","typeLabel":"integer\u003cint32>"},"capabilities":{"type":"object","additionalProperties":false,"properties":{"width":{"type":"integer","format":"int32","minimum":640,"maximum":1920,"description":"Framebuffer width in pixels. Set together with height; 1280x800 when both are omitted. Values outside 640..1920 are rejected at create time.","uniqueKey":"capabilities.width","typeLabel":"integer\u003cint32>"},"height":{"type":"integer","format":"int32","minimum":480,"maximum":1080,"description":"Framebuffer height in pixels. Set together with width; 800 when both are omitted. Values outside 480..1080 are rejected at create time.","uniqueKey":"capabilities.height","typeLabel":"integer\u003cint32>"},"screenshot":{"type":"boolean","uniqueKey":"capabilities.screenshot","typeLabel":"boolean"},"pointer":{"type":"boolean","uniqueKey":"capabilities.pointer","typeLabel":"boolean"},"keyboard":{"type":"boolean","uniqueKey":"capabilities.keyboard","typeLabel":"boolean"},"text":{"type":"boolean","uniqueKey":"capabilities.text","typeLabel":"boolean"},"webrtc":{"type":"boolean","uniqueKey":"capabilities.webrtc","typeLabel":"boolean"},"rfb_fallback":{"type":"boolean","uniqueKey":"capabilities.rfb_fallback","typeLabel":"boolean"},"takeover":{"type":"boolean","uniqueKey":"capabilities.takeover","typeLabel":"boolean"}},"uniqueKey":"capabilities","typeLabel":"object"},"ticket":{"description":"Also mint the session's first ticket (as POST /v1/desktop_sessions/{desktop_session_id}/tickets with this body) and return it in the response's `ticket`, saving the viewer a second round trip. A retry with the same Idempotency-Key answers the same session with a newly minted ticket.","type":"object","additionalProperties":false,"properties":{"purpose":{"type":"string","enum":["watch"],"uniqueKey":"ticket.purpose","typeLabel":"enum\u003cstring>"},"origin":{"type":"string","uniqueKey":"ticket.origin","typeLabel":"string"},"viewer":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]{1,128}$","description":"Opaque viewer identifier owned by the tenant, distinct from the SFU participant identity.","uniqueKey":"ticket.viewer","typeLabel":"string"},"transport":{"type":"string","enum":["rfb"],"description":"Request the supported RFB fallback of the existing capture; viewer remains required for screen-live sessions. Omit for the default transport.","uniqueKey":"ticket.transport","typeLabel":"enum\u003cstring>"},"ttl_seconds":{"type":"integer","minimum":15,"maximum":120,"uniqueKey":"ticket.ttl_seconds","typeLabel":"integer"}},"uniqueKey":"ticket","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"machine_id":"\u003cstring>","agent_id":"\u003cstring>","read_only":false,"lease_seconds":450,"keepalive_seconds":300,"capabilities":{"width":1280,"height":780,"screenshot":true,"pointer":true,"keyboard":true,"text":true,"webrtc":true,"rfb_fallback":true,"takeover":true},"ticket":{"purpose":"watch","origin":"\u003cstring>","viewer":"\u003cstring>","transport":"rfb","ttl_seconds":67}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"5524ab2e-a802-42b9-bf34-e3f83c124cc3":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","required":["type","id","org_id","project_id","machine_id","owner_id","read_only","closed","state","created_at","capabilities","control"],"properties":{"type":{"type":"string","const":"desktop_session","description":"Always `desktop_session`.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"id":{"description":"Desktop session ID (dsn_...).","type":"string","pattern":"^dsn_[a-z2-7]{26}$","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"org_id":{"type":"string","pattern":"^org_[a-z2-7]{26}$","isRequired":true,"uniqueKey":"org_id","typeLabel":"string"},"project_id":{"description":"Project ID (proj_...).","type":"string","pattern":"^proj_[a-z2-7]{26}$","isRequired":true,"uniqueKey":"project_id","typeLabel":"string"},"machine_id":{"description":"Machine ID (mch_...).","type":"string","pattern":"^mch_[a-z2-7]{26}$","isRequired":true,"uniqueKey":"machine_id","typeLabel":"string"},"owner_id":{"type":"string","description":"Opaque authenticated principal that created the session, such as a user UUID or organization API key ID.","isRequired":true,"uniqueKey":"owner_id","typeLabel":"string"},"read_only":{"type":"boolean","isRequired":true,"uniqueKey":"read_only","typeLabel":"boolean"},"closed":{"type":"boolean","isRequired":true,"uniqueKey":"closed","typeLabel":"boolean"},"state":{"type":"string","enum":["open","starting","live","closing","closed"],"description":"A screen capture answers `starting` until the machine confirms it publishes (then `live`); tickets are issued and viewers connect meanwhile and receive the track once published. A start the machine does not confirm closes the session.","isRequired":true,"uniqueKey":"state","typeLabel":"enum\u003cstring>"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"capabilities":{"type":"object","additionalProperties":false,"required":["width","height","screenshot","pointer","keyboard","text","webrtc","rfb_fallback","takeover","max_actions_per_second","protocol_version","control_version","transport_fallback_generation"],"properties":{"width":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"capabilities.width","typeLabel":"integer\u003cint32>"},"height":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"capabilities.height","typeLabel":"integer\u003cint32>"},"screenshot":{"type":"boolean","isRequired":true,"uniqueKey":"capabilities.screenshot","typeLabel":"boolean"},"pointer":{"type":"boolean","isRequired":true,"uniqueKey":"capabilities.pointer","typeLabel":"boolean"},"keyboard":{"type":"boolean","isRequired":true,"uniqueKey":"capabilities.keyboard","typeLabel":"boolean"},"text":{"type":"boolean","isRequired":true,"uniqueKey":"capabilities.text","typeLabel":"boolean"},"webrtc":{"type":"boolean","isRequired":true,"uniqueKey":"capabilities.webrtc","typeLabel":"boolean"},"rfb_fallback":{"type":"boolean","isRequired":true,"uniqueKey":"capabilities.rfb_fallback","typeLabel":"boolean"},"takeover":{"type":"boolean","isRequired":true,"uniqueKey":"capabilities.takeover","typeLabel":"boolean"},"max_actions_per_second":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"capabilities.max_actions_per_second","typeLabel":"integer\u003cint32>"},"protocol_version":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"capabilities.protocol_version","typeLabel":"integer\u003cint32>"},"control_version":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"capabilities.control_version","typeLabel":"integer\u003cint32>"},"transport_fallback_generation":{"type":"integer","format":"int64","isRequired":true,"uniqueKey":"capabilities.transport_fallback_generation","typeLabel":"integer\u003cint64>"},"native_webrtc":{"type":"boolean","description":"The session uses the native WebRTC producer, including phone sessions.","uniqueKey":"capabilities.native_webrtc","typeLabel":"boolean"},"screen_live":{"type":"boolean","description":"The executor publishes this screen capture through the shared media service.","uniqueKey":"capabilities.screen_live","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"capabilities","typeLabel":"object"},"control":{"type":"object","additionalProperties":false,"required":["mode","epoch","generation","holder","agent_state"],"properties":{"mode":{"type":"string","enum":["paused","agent","human"],"isRequired":true,"uniqueKey":"control.mode","typeLabel":"enum\u003cstring>"},"epoch":{"type":"integer","format":"int64","isRequired":true,"uniqueKey":"control.epoch","typeLabel":"integer\u003cint64>"},"generation":{"type":"integer","format":"int64","isRequired":true,"uniqueKey":"control.generation","typeLabel":"integer\u003cint64>"},"holder":{"type":"string","isRequired":true,"uniqueKey":"control.holder","typeLabel":"string"},"agent_state":{"type":"string","isRequired":true,"uniqueKey":"control.agent_state","typeLabel":"string"},"lease_id":{"type":"string","uniqueKey":"control.lease_id","typeLabel":"string"},"lease_expires_at":{"type":"string","format":"date-time","uniqueKey":"control.lease_expires_at","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"control","typeLabel":"object"},"agent_id":{"type":"string","description":"The id /v1/agents uses (never the native agt_ id).","uniqueKey":"agent_id","typeLabel":"string"},"expires_at":{"type":"string","format":"date-time","description":"Screen capture keepalive deadline; ticket issuance does not extend it.","uniqueKey":"expires_at","typeLabel":"string\u003cdate-time>"},"ticket":{"type":"object","description":"The first ticket, only in the answer of a create request that asked for one (`ticket`).","required":["type","purpose","ticket","ws_url"],"properties":{"ticket":{"type":"string","description":"Opaque credential, never logged. BMA-owned WebSocket tickets are single-use. LiveKit access tokens support SDK reconnect and refresh; each connection rechecks the current session, viewer and control lease.","isRequired":true,"uniqueKey":"ticket.ticket","typeLabel":"string"},"ws_url":{"type":"string","description":"WebSocket URL without the ticket.","isRequired":true,"uniqueKey":"ticket.ws_url","typeLabel":"string"},"type":{"const":"ticket","description":"Always `ticket`.","isRequired":true,"uniqueKey":"ticket.type","typeLabel":"any"},"purpose":{"type":"string","enum":["watch","connect","control"],"isRequired":true,"uniqueKey":"ticket.purpose","typeLabel":"enum\u003cstring>"},"id":{"type":"string","uniqueKey":"ticket.id","typeLabel":"string"},"expires_at":{"type":"string","format":"date-time","uniqueKey":"ticket.expires_at","typeLabel":"string\u003cdate-time>"},"subprotocol":{"type":"string","uniqueKey":"ticket.subprotocol","typeLabel":"string"},"permissions":{"type":"array","items":{"type":"string","uniqueKey":"ticket.permissions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"ticket.permissions","typeLabel":"string[]"},"machine_id":{"type":"string","uniqueKey":"ticket.machine_id","typeLabel":"string"},"desktop_session_id":{"type":"string","uniqueKey":"ticket.desktop_session_id","typeLabel":"string"},"viewer":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]{1,128}$","description":"Opaque viewer identifier owned by the tenant, distinct from the SFU participant identity.","uniqueKey":"ticket.viewer","typeLabel":"string"},"transport":{"type":"string","enum":["livekit","rfb"],"uniqueKey":"ticket.transport","typeLabel":"enum\u003cstring>"},"room":{"type":"string","uniqueKey":"ticket.room","typeLabel":"string"},"publisher_identity":{"type":"string","uniqueKey":"ticket.publisher_identity","typeLabel":"string"},"viewer_identity":{"type":"string","description":"The platform-derived SFU participant identity of this ticket, distinct from viewer.","uniqueKey":"ticket.viewer_identity","typeLabel":"string"},"input_identity":{"type":"string","description":"Response-only trusted RFB input identity derived by the platform from the admitted capture and viewer. It must match an RFB control grant's holder and cannot authenticate as an SFU participant.","uniqueKey":"ticket.input_identity","typeLabel":"string"},"control_available":{"type":"boolean","description":"Whether the screen-live machine supports a separately acquired input lease.","uniqueKey":"ticket.control_available","typeLabel":"boolean"}},"uniqueKey":"ticket","typeLabel":"object"},"close_reason":{"type":"string","enum":["closed_by_user","expired","capture_refused","capture_unconfirmed","capture_lost"],"description":"Why the session ended, present once it is closed. `capture_refused` - the machine refused to publish its screen (opening again gets the same answer until something changes on the machine); `capture_unconfirmed` - the machine did not confirm the start in time; `capture_lost` - the machine stopped renewing a running capture; `expired` - the keepalive passed; `closed_by_user` - closed through `POST /v1/desktop_sessions/{desktop_session_id}/close`.","uniqueKey":"close_reason","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"desktop_session","id":"\u003cstring>","org_id":"\u003cstring>","project_id":"\u003cstring>","machine_id":"\u003cstring>","owner_id":"\u003cstring>","read_only":true,"closed":true,"state":"open","created_at":"2023-11-07T05:31:56Z","capabilities":{"width":123,"height":123,"screenshot":true,"pointer":true,"keyboard":true,"text":true,"webrtc":true,"rfb_fallback":true,"takeover":true,"max_actions_per_second":123,"protocol_version":123,"control_version":123,"transport_fallback_generation":123,"native_webrtc":true,"screen_live":true},"control":{"mode":"paused","epoch":123,"generation":123,"holder":"\u003cstring>","agent_state":"\u003cstring>","lease_id":"\u003cstring>","lease_expires_at":"2023-11-07T05:31:56Z"},"agent_id":"\u003cstring>","expires_at":"2023-11-07T05:31:56Z","ticket":{"ticket":"\u003cstring>","ws_url":"\u003cstring>","type":"ticket","purpose":"watch","id":"\u003cstring>","expires_at":"2023-11-07T05:31:56Z","subprotocol":"\u003cstring>","permissions":["\u003cstring>"],"machine_id":"\u003cstring>","desktop_session_id":"\u003cstring>","viewer":"\u003cstring>","transport":"livekit","room":"\u003cstring>","publisher_identity":"\u003cstring>","viewer_identity":"\u003cstring>","input_identity":"\u003cstring>","control_available":true},"close_reason":"closed_by_user"}}},"exampleType":"generated"}},"exampleType":"generated"},"c970e4b7-dc88-4356-8623-50b0ddf94044":{"description":"Anthropic error envelope.","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error","description":"Always `error`.","isRequired":true,"uniqueKey":"type","typeLabel":"any"},"error":{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","conflict_error","rate_limit_error","api_error","timeout_error","overloaded_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"BMA reason, kept as the native code.","uniqueKey":"error.code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"c65b48a8-026d-4940-bd44-b4b490aaa357":{"description":"Anthropic error envelope.","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error","description":"Always `error`.","isRequired":true,"uniqueKey":"type","typeLabel":"any"},"error":{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","conflict_error","rate_limit_error","api_error","timeout_error","overloaded_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"BMA reason, kept as the native code.","uniqueKey":"error.code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"35a509a8-c988-4d95-81ab-343ffefc8de2":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKey"}},"a0940cc2-d177-46f3-9b14-99df7cd9caf5":{"bearer":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer"}}},"servers":{"3e522fc8-a903-42cc-a27e-399bf105f073":{"url":"https://api.beeos.ai","description":"Production"},"cf778fef-821a-4466-b6df-c830bdb3a991":{"url":"http://127.0.0.1:58080","description":"Self-hosted (docker compose quickstart)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-api-key"}],"title":"apiKey"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"api-reference/bma.openapi.yaml"},"subdomain":"localhost","siteName":"BMA Developer Docs","title":"Create a desktop session - BMA Developer Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoints/desktop-sessions/create-a-desktop-session","matchLevel":1},"zh":{"href":"/zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session","matchLevel":0},"zh-Hant":{"href":"/zh-hant/api-reference/endpoints/desktop-sessions/create-a-desktop-session","matchLevel":1},"ja":{"href":"/ja/api-reference/endpoints/desktop-sessions/create-a-desktop-session","matchLevel":1},"ko":{"href":"/ko/api-reference/endpoints/desktop-sessions/create-a-desktop-session","matchLevel":1}}},"originalFileLocation":"zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session.mdx","locale":"zh"},"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=\"application-name\" content=\"BMA Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a desktop session - BMA Developer Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"BMA Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a desktop session - BMA Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"BMA Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F97316\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://local./zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://local./api-reference/endpoints/desktop-sessions/create-a-desktop-session\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://local./zh-hant/api-reference/endpoints/desktop-sessions/create-a-desktop-session\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://local./ja/api-reference/endpoints/desktop-sessions/create-a-desktop-session\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://local./ko/api-reference/endpoints/desktop-sessions/create-a-desktop-session\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://local./api-reference/endpoints/desktop-sessions/create-a-desktop-session\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"BMA Developer Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"BMA Developer Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session.md","siteName":"BMA Developer Docs","nav":{"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/api-reference/endpoints/desktop-sessions/create-a-desktop-session"}]},{"language":"zh","tabs":[{"tab":"文档","pages":[{"title":"文档","href":"/zh"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/zh/sdks/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/zh/cli/getting-started"}]},{"tab":"API 参考","groups":[{"group":"API 参考","pages":[{"title":"API reference","icon":"book","href":"/zh/api-reference/introduction"},{"title":"错误","href":"/zh/api-reference/errors"},{"title":"使用 Anthropic 官方 SDK 接入","sidebarTitle":"Anthropic SDK","icon":"scale-balanced","href":"/zh/compatibility"}]},{"group":"接口","pages":[{"group":"agents","pages":[{"title":"List Agents","openapi":"/api-reference/bma.openapi.yaml get /v1/agents","href":"/zh/api-reference/endpoints/agents/list-agents"},{"title":"Create Agent","openapi":"/api-reference/bma.openapi.yaml post /v1/agents","href":"/zh/api-reference/endpoints/agents/create-agent"},{"title":"Get Agent","openapi":"/api-reference/bma.openapi.yaml get /v1/agents/{agent_id}","href":"/zh/api-reference/endpoints/agents/get-agent"},{"title":"Update Agent","openapi":"/api-reference/bma.openapi.yaml post /v1/agents/{agent_id}","href":"/zh/api-reference/endpoints/agents/update-agent"},{"title":"Archive Agent","openapi":"/api-reference/bma.openapi.yaml post /v1/agents/{agent_id}/archive","href":"/zh/api-reference/endpoints/agents/archive-agent"}]},{"group":"Agents","pages":[{"title":"List agent versions","description":"Newest first; each item is the agent as it was at that version.","openapi":"/api-reference/bma.openapi.yaml get /v1/agents/{agent_id}/versions","href":"/zh/api-reference/endpoints/agents/list-agent-versions"}]},{"group":"Desktop sessions","pages":[{"title":"Create a desktop session","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions","href":"/zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session"},{"title":"Retrieve a desktop session (control state in `control`)","openapi":"/api-reference/bma.openapi.yaml get /v1/desktop_sessions/{desktop_session_id}","href":"/zh/api-reference/endpoints/desktop-sessions/retrieve-a-desktop-session-control-state-in-`control`"},{"title":"Take input control","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/acquire_control","href":"/zh/api-reference/endpoints/desktop-sessions/take-input-control"},{"title":"Send input actions","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/actions","href":"/zh/api-reference/endpoints/desktop-sessions/send-input-actions"},{"title":"Close a desktop session","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/close","href":"/zh/api-reference/endpoints/desktop-sessions/close-a-desktop-session"},{"title":"Hand control back to the agent","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/handback_control","href":"/zh/api-reference/endpoints/desktop-sessions/hand-control-back-to-the-agent"},{"title":"Extend the running screen capture's keepalive deadline","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/keepalive","href":"/zh/api-reference/endpoints/desktop-sessions/extend-the-running-screen-captures-keepalive-deadline"},{"title":"Release control","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/release_control","href":"/zh/api-reference/endpoints/desktop-sessions/release-control"},{"title":"Renew the control lease","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/renew_control","href":"/zh/api-reference/endpoints/desktop-sessions/renew-the-control-lease"},{"title":"Capture a screenshot","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/screenshot","href":"/zh/api-reference/endpoints/desktop-sessions/capture-a-screenshot"},{"title":"Mint a desktop watch credential","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/tickets","href":"/zh/api-reference/endpoints/desktop-sessions/mint-a-desktop-watch-credential"},{"title":"Revoke a screen capture viewer and confirm its connections are closed","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/viewers/{viewer}/revoke","href":"/zh/api-reference/endpoints/desktop-sessions/revoke-a-screen-capture-viewer-and-confirm-its-connections-are-closed"}]},{"group":"environments","pages":[{"title":"List environments with pagination support.","openapi":"/api-reference/bma.openapi.yaml get /v1/environments","href":"/zh/api-reference/endpoints/environments/list-environments-with-pagination-support"},{"title":"Create a new environment with the specified configuration.","openapi":"/api-reference/bma.openapi.yaml post /v1/environments","href":"/zh/api-reference/endpoints/environments/create-a-new-environment-with-the-specified-configuration"},{"title":"Retrieve a specific environment by ID.","openapi":"/api-reference/bma.openapi.yaml get /v1/environments/{environment_id}","href":"/zh/api-reference/endpoints/environments/retrieve-a-specific-environment-by-id"},{"title":"Update an existing environment's configuration.","openapi":"/api-reference/bma.openapi.yaml post /v1/environments/{environment_id}","href":"/zh/api-reference/endpoints/environments/update-an-existing-environments-configuration"},{"title":"Delete an environment by ID. Returns a confirmation of the deletion.","openapi":"/api-reference/bma.openapi.yaml delete /v1/environments/{environment_id}","href":"/zh/api-reference/endpoints/environments/delete-an-environment-by-id-returns-a-confirmation-of-the-deletion"},{"title":"Archive an environment by ID. Archived environments cannot be used to create new","openapi":"/api-reference/bma.openapi.yaml post /v1/environments/{environment_id}/archive","href":"/zh/api-reference/endpoints/environments/archive-an-environment-by-id-archived-environments-cannot-be-used-to-create-new"}]},{"group":"files","pages":[{"title":"List Files","openapi":"/api-reference/bma.openapi.yaml get /v1/files","href":"/zh/api-reference/endpoints/files/list-files"},{"title":"Upload File","openapi":"/api-reference/bma.openapi.yaml post /v1/files","href":"/zh/api-reference/endpoints/files/upload-file"},{"title":"Get File Metadata","openapi":"/api-reference/bma.openapi.yaml get /v1/files/{file_id}","href":"/zh/api-reference/endpoints/files/get-file-metadata"},{"title":"Delete File","openapi":"/api-reference/bma.openapi.yaml delete /v1/files/{file_id}","href":"/zh/api-reference/endpoints/files/delete-file"},{"title":"Download File","openapi":"/api-reference/bma.openapi.yaml get /v1/files/{file_id}/content","href":"/zh/api-reference/endpoints/files/download-file"}]},{"group":"Machine pools","pages":[{"title":"List machine pools","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools","href":"/zh/api-reference/endpoints/machine-pools/list-machine-pools"},{"title":"Create a machine pool","openapi":"/api-reference/bma.openapi.yaml post /v1/machine_pools","href":"/zh/api-reference/endpoints/machine-pools/create-a-machine-pool"},{"title":"Retrieve a machine pool","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools/{pool_id}","href":"/zh/api-reference/endpoints/machine-pools/retrieve-a-machine-pool"},{"title":"Update a machine pool","openapi":"/api-reference/bma.openapi.yaml post /v1/machine_pools/{pool_id}","href":"/zh/api-reference/endpoints/machine-pools/update-a-machine-pool"},{"title":"Delete a machine pool","openapi":"/api-reference/bma.openapi.yaml delete /v1/machine_pools/{pool_id}","href":"/zh/api-reference/endpoints/machine-pools/delete-a-machine-pool"},{"title":"List the pool grants of a project","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools/{pool_id}/grants","href":"/zh/api-reference/endpoints/machine-pools/list-the-pool-grants-of-a-project"},{"title":"Retrieve a pool grant","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools/{pool_id}/grants/{grant_id}","href":"/zh/api-reference/endpoints/machine-pools/retrieve-a-pool-grant"}]},{"group":"Machines","pages":[{"title":"List machines","openapi":"/api-reference/bma.openapi.yaml get /v1/machines","href":"/zh/api-reference/endpoints/machines/list-machines"},{"title":"Create a machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines","href":"/zh/api-reference/endpoints/machines/create-a-machine"},{"title":"Retrieve a machine","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}","href":"/zh/api-reference/endpoints/machines/retrieve-a-machine"},{"title":"Update a machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}","href":"/zh/api-reference/endpoints/machines/update-a-machine"},{"title":"Delete a machine","openapi":"/api-reference/bma.openapi.yaml delete /v1/machines/{machine_id}","href":"/zh/api-reference/endpoints/machines/delete-a-machine"},{"title":"Bind an agent to a machine","openapi":"/api-reference/bma.openapi.yaml put /v1/machines/{machine_id}/agents/{agent_id}","href":"/zh/api-reference/endpoints/machines/bind-an-agent-to-a-machine"},{"title":"Unbind an agent from a machine","openapi":"/api-reference/bma.openapi.yaml delete /v1/machines/{machine_id}/agents/{agent_id}","href":"/zh/api-reference/endpoints/machines/unbind-an-agent-from-a-machine"},{"title":"Machine interaction capabilities","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}/capabilities","href":"/zh/api-reference/endpoints/machines/machine-interaction-capabilities"},{"title":"List executor tokens","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}/executor_tokens","href":"/zh/api-reference/endpoints/machines/list-executor-tokens"},{"title":"Create an executor token","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/executor_tokens","href":"/zh/api-reference/endpoints/machines/create-an-executor-token"},{"title":"Revoke an executor token","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/executor_tokens/{token_id}/revoke","href":"/zh/api-reference/endpoints/machines/revoke-an-executor-token"},{"title":"Pause a running machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/pause","href":"/zh/api-reference/endpoints/machines/pause-a-running-machine"},{"title":"Resume a paused machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/resume","href":"/zh/api-reference/endpoints/machines/resume-a-paused-machine"}]},{"group":"Machine backups","pages":[{"title":"List a machine's backups","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}/backups","href":"/zh/api-reference/endpoints/machine-backups/list-a-machines-backups"},{"title":"Rebuild a machine from a backup","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/restore","href":"/zh/api-reference/endpoints/machine-backups/rebuild-a-machine-from-a-backup"}]},{"group":"MCP OAuth","pages":[{"title":"Start an MCP OAuth authorization","openapi":"/api-reference/bma.openapi.yaml post /v1/mcp_oauth_authorizations","href":"/zh/api-reference/endpoints/mcp-oauth/start-an-mcp-oauth-authorization"},{"title":"Get an MCP OAuth authorization","openapi":"/api-reference/bma.openapi.yaml get /v1/mcp_oauth_authorizations/{authorization_id}","href":"/zh/api-reference/endpoints/mcp-oauth/get-an-mcp-oauth-authorization"},{"title":"Complete an MCP OAuth authorization","openapi":"/api-reference/bma.openapi.yaml post /v1/mcp_oauth/callback","href":"/zh/api-reference/endpoints/mcp-oauth/complete-an-mcp-oauth-authorization"}]},{"group":"Me","pages":[{"title":"List the invites sent to me","openapi":"/api-reference/bma.openapi.yaml get /v1/me/invites","href":"/zh/api-reference/endpoints/me/list-the-invites-sent-to-me"},{"title":"Accept an invite","openapi":"/api-reference/bma.openapi.yaml post /v1/me/invites/{invite_id}/accept","href":"/zh/api-reference/endpoints/me/accept-an-invite"},{"title":"Decline an invite","openapi":"/api-reference/bma.openapi.yaml post /v1/me/invites/{invite_id}/decline","href":"/zh/api-reference/endpoints/me/decline-an-invite"},{"title":"List my personal access tokens","openapi":"/api-reference/bma.openapi.yaml get /v1/me/personal_access_tokens","href":"/zh/api-reference/endpoints/me/list-my-personal-access-tokens"},{"title":"Create a personal access token","openapi":"/api-reference/bma.openapi.yaml post /v1/me/personal_access_tokens","href":"/zh/api-reference/endpoints/me/create-a-personal-access-token"},{"title":"Revoke a personal access token","openapi":"/api-reference/bma.openapi.yaml post /v1/me/personal_access_tokens/{token_id}/revoke","href":"/zh/api-reference/endpoints/me/revoke-a-personal-access-token"}]},{"group":"memory_stores","pages":[{"title":"List Memory Stores","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores","href":"/zh/api-reference/endpoints/memory_stores/list-memory-stores"},{"title":"Create a Memory Store","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores","href":"/zh/api-reference/endpoints/memory_stores/create-a-memory-store"},{"title":"Retrieve a Memory Store","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}","href":"/zh/api-reference/endpoints/memory_stores/retrieve-a-memory-store"},{"title":"Update a Memory Store","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}","href":"/zh/api-reference/endpoints/memory_stores/update-a-memory-store"},{"title":"Delete a Memory Store","openapi":"/api-reference/bma.openapi.yaml delete /v1/memory_stores/{memory_store_id}","href":"/zh/api-reference/endpoints/memory_stores/delete-a-memory-store"}]},{"group":"Memory Stores","pages":[{"title":"Archive a memory store","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/archive","href":"/zh/api-reference/endpoints/memory-stores/archive-a-memory-store"},{"title":"List memory versions","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memory_versions","href":"/zh/api-reference/endpoints/memory-stores/list-memory-versions"},{"title":"Retrieve a memory version","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}","href":"/zh/api-reference/endpoints/memory-stores/retrieve-a-memory-version"},{"title":"Redact a memory version","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact","href":"/zh/api-reference/endpoints/memory-stores/redact-a-memory-version"}]},{"group":"memory_stores.memories","pages":[{"title":"List Memories","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memories","href":"/zh/api-reference/endpoints/memory_storesmemories/list-memories"},{"title":"Create a Memory","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/memories","href":"/zh/api-reference/endpoints/memory_storesmemories/create-a-memory"},{"title":"Retrieve a Memory","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/zh/api-reference/endpoints/memory_storesmemories/retrieve-a-memory"},{"title":"Update a Memory","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/zh/api-reference/endpoints/memory_storesmemories/update-a-memory"},{"title":"Delete a Memory","openapi":"/api-reference/bma.openapi.yaml delete /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/zh/api-reference/endpoints/memory_storesmemories/delete-a-memory"}]},{"group":"Model providers","pages":[{"title":"List model providers","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers","href":"/zh/api-reference/endpoints/model-providers/list-model-providers"},{"title":"Create a model provider","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers","href":"/zh/api-reference/endpoints/model-providers/create-a-model-provider"},{"title":"Get a model provider","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers/{provider_id}","href":"/zh/api-reference/endpoints/model-providers/get-a-model-provider"},{"title":"Update a model provider","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers/{provider_id}","href":"/zh/api-reference/endpoints/model-providers/update-a-model-provider"},{"title":"Delete a model provider","openapi":"/api-reference/bma.openapi.yaml delete /v1/model_providers/{provider_id}","href":"/zh/api-reference/endpoints/model-providers/delete-a-model-provider"},{"title":"List a provider's models","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers/{provider_id}/models","href":"/zh/api-reference/endpoints/model-providers/list-a-providers-models"},{"title":"Create a model","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers/{provider_id}/models","href":"/zh/api-reference/endpoints/model-providers/create-a-model"},{"title":"Get a model","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers/{provider_id}/models/{model_id}","href":"/zh/api-reference/endpoints/model-providers/get-a-model"},{"title":"Update a model","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers/{provider_id}/models/{model_id}","href":"/zh/api-reference/endpoints/model-providers/update-a-model"},{"title":"Delete a model","openapi":"/api-reference/bma.openapi.yaml delete /v1/model_providers/{provider_id}/models/{model_id}","href":"/zh/api-reference/endpoints/model-providers/delete-a-model"},{"title":"List a model's grants","openapi":"/api-reference/bma.openapi.yaml get /v1/models/{model_id}/grants","href":"/zh/api-reference/endpoints/model-providers/list-a-models-grants"},{"title":"Grant a model to a workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/models/{model_id}/grants","href":"/zh/api-reference/endpoints/model-providers/grant-a-model-to-a-workspace"},{"title":"Revoke a model grant","openapi":"/api-reference/bma.openapi.yaml delete /v1/models/{model_id}/grants/{workspace_id}","href":"/zh/api-reference/endpoints/model-providers/revoke-a-model-grant"}]},{"group":"models","pages":[{"title":"List available models.","openapi":"/api-reference/bma.openapi.yaml get /v1/models","href":"/zh/api-reference/endpoints/models/list-available-models"},{"title":"Get a specific model.","openapi":"/api-reference/bma.openapi.yaml get /v1/models/{model_id}","href":"/zh/api-reference/endpoints/models/get-a-specific-model"}]},{"group":"organization.api_keys","pages":[{"title":"List API Keys","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/api_keys","href":"/zh/api-reference/endpoints/organizationapi_keys/list-api-keys"},{"title":"Create an API key","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/api_keys","href":"/zh/api-reference/endpoints/organizationapi_keys/create-an-api-key"},{"title":"Get API Key","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/api_keys/{api_key_id}","href":"/zh/api-reference/endpoints/organizationapi_keys/get-api-key"},{"title":"Update API Key","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/api_keys/{api_key_id}","href":"/zh/api-reference/endpoints/organizationapi_keys/update-api-key"}]},{"group":"Organization reports","pages":[{"title":"Get the cost report","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/cost_report","href":"/zh/api-reference/endpoints/organization-reports/get-the-cost-report"},{"title":"Get the messages usage report","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/usage_report/messages","href":"/zh/api-reference/endpoints/organization-reports/get-the-messages-usage-report"}]},{"group":"organization.invites","pages":[{"title":"List the organization's invites.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/invites","href":"/zh/api-reference/endpoints/organizationinvites/list-the-organizations-invites"},{"title":"Invite a user to join the organization by email.","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/invites","href":"/zh/api-reference/endpoints/organizationinvites/invite-a-user-to-join-the-organization-by-email"},{"title":"Retrieve an invite by ID.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/invites/{invite_id}","href":"/zh/api-reference/endpoints/organizationinvites/retrieve-an-invite-by-id"},{"title":"Delete a pending invite.","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/invites/{invite_id}","href":"/zh/api-reference/endpoints/organizationinvites/delete-a-pending-invite"}]},{"group":"organization","pages":[{"title":"Retrieve information about the organization associated with the authenticated","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/me","href":"/zh/api-reference/endpoints/organization/retrieve-information-about-the-organization-associated-with-the-authenticated"}]},{"group":"organization.users","pages":[{"title":"List the organization's members.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/users","href":"/zh/api-reference/endpoints/organizationusers/list-the-organizations-members"},{"title":"Retrieve a member of the organization by user ID.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/users/{user_id}","href":"/zh/api-reference/endpoints/organizationusers/retrieve-a-member-of-the-organization-by-user-id"},{"title":"Update a member's organization role.","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/users/{user_id}","href":"/zh/api-reference/endpoints/organizationusers/update-a-members-organization-role"},{"title":"Remove a member from the organization.","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/users/{user_id}","href":"/zh/api-reference/endpoints/organizationusers/remove-a-member-from-the-organization"}]},{"group":"Webhooks","pages":[{"title":"List webhook endpoints","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/webhooks","href":"/zh/api-reference/endpoints/webhooks/list-webhook-endpoints"},{"title":"Create a webhook endpoint (the response carries the signing secret once)","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/webhooks","href":"/zh/api-reference/endpoints/webhooks/create-a-webhook-endpoint-the-response-carries-the-signing-secret-once"},{"title":"Retrieve a webhook endpoint","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/webhooks/{webhook_endpoint_id}","href":"/zh/api-reference/endpoints/webhooks/retrieve-a-webhook-endpoint"},{"title":"Update a webhook endpoint","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/webhooks/{webhook_endpoint_id}","href":"/zh/api-reference/endpoints/webhooks/update-a-webhook-endpoint"},{"title":"Delete a webhook endpoint","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/webhooks/{webhook_endpoint_id}","href":"/zh/api-reference/endpoints/webhooks/delete-a-webhook-endpoint"},{"title":"Replace the signing secret (the response carries it once)","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/webhooks/{webhook_endpoint_id}/regenerate_signing_secret","href":"/zh/api-reference/endpoints/webhooks/replace-the-signing-secret-the-response-carries-it-once"}]},{"group":"organization.workspaces","pages":[{"title":"List Workspaces","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces","href":"/zh/api-reference/endpoints/organizationworkspaces/list-workspaces"},{"title":"Create Workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces","href":"/zh/api-reference/endpoints/organizationworkspaces/create-workspace"},{"title":"Get Workspace","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces/{workspace_id}","href":"/zh/api-reference/endpoints/organizationworkspaces/get-workspace"},{"title":"Update Workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}","href":"/zh/api-reference/endpoints/organizationworkspaces/update-workspace"},{"title":"Archive Workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}/archive","href":"/zh/api-reference/endpoints/organizationworkspaces/archive-workspace"}]},{"group":"organization.workspaces.members","pages":[{"title":"List Workspace Members","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces/{workspace_id}/members","href":"/zh/api-reference/endpoints/organizationworkspacesmembers/list-workspace-members"},{"title":"Create Workspace Member","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}/members","href":"/zh/api-reference/endpoints/organizationworkspacesmembers/create-workspace-member"},{"title":"Get Workspace Member","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces/{workspace_id}/members/{user_id}","href":"/zh/api-reference/endpoints/organizationworkspacesmembers/get-workspace-member"},{"title":"Update Workspace Member","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}/members/{user_id}","href":"/zh/api-reference/endpoints/organizationworkspacesmembers/update-workspace-member"},{"title":"Delete Workspace Member","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/workspaces/{workspace_id}/members/{user_id}","href":"/zh/api-reference/endpoints/organizationworkspacesmembers/delete-workspace-member"}]},{"group":"sessions","pages":[{"title":"List Sessions","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions","href":"/zh/api-reference/endpoints/sessions/list-sessions"},{"title":"Create Session","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions","href":"/zh/api-reference/endpoints/sessions/create-session"},{"title":"Get Session","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}","href":"/zh/api-reference/endpoints/sessions/get-session"},{"title":"Update Session","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}","href":"/zh/api-reference/endpoints/sessions/update-session"},{"title":"Delete Session","openapi":"/api-reference/bma.openapi.yaml delete /v1/sessions/{session_id}","href":"/zh/api-reference/endpoints/sessions/delete-session"},{"title":"Archive Session","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/archive","href":"/zh/api-reference/endpoints/sessions/archive-session"},{"title":"Revoke an archived session's executor","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/bma_executor_revocation","href":"/zh/api-reference/endpoints/sessions/revoke-an-archived-sessions-executor"},{"title":"Fork a session (copies the conversation only, not files)","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/fork","href":"/zh/api-reference/endpoints/sessions/fork-a-session-copies-the-conversation-only-not-files"}]},{"group":"sessions.events","pages":[{"title":"List Events","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/events","href":"/zh/api-reference/endpoints/sessionsevents/list-events"},{"title":"Send Events","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/events","href":"/zh/api-reference/endpoints/sessionsevents/send-events"},{"title":"Stream Events","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/events/stream","href":"/zh/api-reference/endpoints/sessionsevents/stream-events"}]},{"group":"sessions.resources","pages":[{"title":"List Session Resources","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/resources","href":"/zh/api-reference/endpoints/sessionsresources/list-session-resources"},{"title":"Add Session Resource","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/resources","href":"/zh/api-reference/endpoints/sessionsresources/add-session-resource"},{"title":"Get Session Resource","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/resources/{resource_id}","href":"/zh/api-reference/endpoints/sessionsresources/get-session-resource"},{"title":"Update Session Resource","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/resources/{resource_id}","href":"/zh/api-reference/endpoints/sessionsresources/update-session-resource"},{"title":"Delete Session Resource","openapi":"/api-reference/bma.openapi.yaml delete /v1/sessions/{session_id}/resources/{resource_id}","href":"/zh/api-reference/endpoints/sessionsresources/delete-session-resource"}]},{"group":"Session tool grants","pages":[{"title":"List a session's tool grants","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/tool_grants","href":"/zh/api-reference/endpoints/session-tool-grants/list-a-sessions-tool-grants"},{"title":"Revoke a session's tool grant","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/tool_grants/{grant_id}/revoke","href":"/zh/api-reference/endpoints/session-tool-grants/revoke-a-sessions-tool-grant"}]},{"group":"Skills","pages":[{"title":"List skills","openapi":"/api-reference/bma.openapi.yaml get /v1/skills","href":"/zh/api-reference/endpoints/skills/list-skills"},{"title":"Create a skill","openapi":"/api-reference/bma.openapi.yaml post /v1/skills","href":"/zh/api-reference/endpoints/skills/create-a-skill"},{"title":"Retrieve a skill","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}","href":"/zh/api-reference/endpoints/skills/retrieve-a-skill"},{"title":"Delete a skill","openapi":"/api-reference/bma.openapi.yaml delete /v1/skills/{skill_id}","href":"/zh/api-reference/endpoints/skills/delete-a-skill"},{"title":"List skill versions","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}/versions","href":"/zh/api-reference/endpoints/skills/list-skill-versions"},{"title":"Create a skill version","openapi":"/api-reference/bma.openapi.yaml post /v1/skills/{skill_id}/versions","href":"/zh/api-reference/endpoints/skills/create-a-skill-version"},{"title":"Retrieve a skill version","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}/versions/{version}","href":"/zh/api-reference/endpoints/skills/retrieve-a-skill-version"},{"title":"Delete a skill version","openapi":"/api-reference/bma.openapi.yaml delete /v1/skills/{skill_id}/versions/{version}","href":"/zh/api-reference/endpoints/skills/delete-a-skill-version"},{"title":"Download a skill version","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}/versions/{version}/content","href":"/zh/api-reference/endpoints/skills/download-a-skill-version"}]},{"group":"Terminal sessions","pages":[{"title":"List the terminal sessions of a machine","openapi":"/api-reference/bma.openapi.yaml get /v1/terminal_sessions","href":"/zh/api-reference/endpoints/terminal-sessions/list-the-terminal-sessions-of-a-machine"},{"title":"Open a terminal session (body machine_id)","openapi":"/api-reference/bma.openapi.yaml post /v1/terminal_sessions","href":"/zh/api-reference/endpoints/terminal-sessions/open-a-terminal-session-body-machine_id"},{"title":"Retrieve a terminal session","openapi":"/api-reference/bma.openapi.yaml get /v1/terminal_sessions/{terminal_session_id}","href":"/zh/api-reference/endpoints/terminal-sessions/retrieve-a-terminal-session"},{"title":"Close a terminal session","openapi":"/api-reference/bma.openapi.yaml post /v1/terminal_sessions/{terminal_session_id}/close","href":"/zh/api-reference/endpoints/terminal-sessions/close-a-terminal-session"},{"title":"Mint a single-use ticket (purpose connect)","openapi":"/api-reference/bma.openapi.yaml post /v1/terminal_sessions/{terminal_session_id}/tickets","href":"/zh/api-reference/endpoints/terminal-sessions/mint-a-single-use-ticket-purpose-connect"}]},{"group":"User Profiles","pages":[{"title":"List user profiles","openapi":"/api-reference/bma.openapi.yaml get /v1/user_profiles","href":"/zh/api-reference/endpoints/user-profiles/list-user-profiles"},{"title":"Create a user profile","openapi":"/api-reference/bma.openapi.yaml post /v1/user_profiles","href":"/zh/api-reference/endpoints/user-profiles/create-a-user-profile"},{"title":"Retrieve a user profile","openapi":"/api-reference/bma.openapi.yaml get /v1/user_profiles/{user_profile_id}","href":"/zh/api-reference/endpoints/user-profiles/retrieve-a-user-profile"},{"title":"Update a user profile","openapi":"/api-reference/bma.openapi.yaml post /v1/user_profiles/{user_profile_id}","href":"/zh/api-reference/endpoints/user-profiles/update-a-user-profile"},{"title":"Delete a user profile","openapi":"/api-reference/bma.openapi.yaml delete /v1/user_profiles/{user_profile_id}","href":"/zh/api-reference/endpoints/user-profiles/delete-a-user-profile"}]},{"group":"Vaults","pages":[{"title":"List vaults","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults","href":"/zh/api-reference/endpoints/vaults/list-vaults"},{"title":"Create a vault","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults","href":"/zh/api-reference/endpoints/vaults/create-a-vault"},{"title":"Retrieve a vault","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults/{vault_id}","href":"/zh/api-reference/endpoints/vaults/retrieve-a-vault"},{"title":"Update a vault","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}","href":"/zh/api-reference/endpoints/vaults/update-a-vault"},{"title":"Delete a vault","openapi":"/api-reference/bma.openapi.yaml delete /v1/vaults/{vault_id}","href":"/zh/api-reference/endpoints/vaults/delete-a-vault"},{"title":"Archive a vault","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/archive","href":"/zh/api-reference/endpoints/vaults/archive-a-vault"},{"title":"List credentials","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults/{vault_id}/credentials","href":"/zh/api-reference/endpoints/vaults/list-credentials"},{"title":"Create a credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials","href":"/zh/api-reference/endpoints/vaults/create-a-credential"},{"title":"Retrieve a credential","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/zh/api-reference/endpoints/vaults/retrieve-a-credential"},{"title":"Update or rotate a credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/zh/api-reference/endpoints/vaults/update-or-rotate-a-credential"},{"title":"Delete a credential","openapi":"/api-reference/bma.openapi.yaml delete /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/zh/api-reference/endpoints/vaults/delete-a-credential"},{"title":"Archive a credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials/{credential_id}/archive","href":"/zh/api-reference/endpoints/vaults/archive-a-credential"},{"title":"Validate an MCP OAuth credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials/{credential_id}/mcp_oauth_validate","href":"/zh/api-reference/endpoints/vaults/validate-an-mcp-oauth-credential"}]}]}]},{"tab":"自托管","pages":[{"title":"自托管","href":"/zh/self-hosting/overview"}]},{"tab":"更新日志与路线图","pages":[{"title":"更新日志与路线图","href":"/zh/changelog"}]}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-hant/api-reference/endpoints/desktop-sessions/create-a-desktop-session"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/endpoints/desktop-sessions/create-a-desktop-session"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/endpoints/desktop-sessions/create-a-desktop-session"}]}]},"basePath":"","title":"Create a desktop session - BMA Developer Docs","buildId":"467f09c1d15f","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-D3zq8_H1.js","snippetPresets-BxQ21E0F.js","utils-BCl_2N0Z.js","style-to-object-BY3JEAdk.js","utils-C2M6pTR9.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-hpCx1oX4.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DI6Imbcs.js","_Uint8Array-B1w0qMTA.js","isObject-FP1Yky1u.js","ApiExamples-C0JO5nDy.js","usePlaygroundInputsStore-BbvIAdMs.js","shallow-DUW2i2qm.js","isEqual-CAgRPPTj.js","CodeSnippets-z27RXAlz.js","CodeSnippet-CjPdxhrr.js","getApiPlaygroundDisplay-DyNzEC4A.js","Page-CMgUcQ5g.js","DynamicMarkdown-DYO7TkoS.js","SectionHeading-bhNWaVe-.js","icon-BHNujPGU.js","MethodPill-D6X6nTgT.js","getPastedJson-6nUvCk5_.js","Check2Icon-CN83-KZF.js","axios-CsQoIw0U.js","Markdown-Ztb7Q798.js","AssistantPageLink-Dvkz0EpA.js","dist-CjHMc-SQ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}