Create an access
Shares the assistants you list with people outside the workspace. public (default): anyone with its address may call it. keys: every call needs one of its access keys (create them with POST /v1/accesses/{id}/keys; Pro plan). modes and passages say what callers may do; daily_credits and monthly_credits cap what the whole access spends. Give callers urls.mcp (an MCP server) or urls.help (the HTTP API and its help). Costs nothing until it is called.
POST/v1/accesses
Authorizations
Authorizationbearerin headerrequiredHeader parameters
Idempotency-Keystringlength: 1–255 charsA unique key for this request, such as a UUID, 1 to 255 visible ASCII characters. Send the same key when you retry: the first response is returned (with Idempotent-Replayed: true) instead of running the request again, for 24 hours, per credential. The same key on a different request is a 409 conflict. A streamed answer is not recorded.
Body
application/jsonrequirednamestringrequiredlength: 1–120 charsWhat callers see as its name, in their MCP client and on its help page. 1 to 120 characters.
descriptionstringlength: ≤ 2000 charsWhat callers read about the access as a whole. Up to 2,000 characters.
assistantsobject[]requireditems: 1–20 itemsThe assistants it offers, in order (1 to 20). Their names are shown as they are.
protectionenum<string>one of: public, keysDefault public. keys is on the Pro plan.
statusenum<string>one of: live, pausedlive (default) answers; paused refuses every call until set live again.
modesenum<string>[]The query modes callers may use, at their usual prices. Default ["flash"]; empty turns answers off (passages must then be on).
passagesbooleanDefault false.
daily_creditsinteger | nullCredits the whole access, per UTC day, may spend; null is no ceiling. A call whose price does not fit is refused with rate_limited until the window resets.
monthly_creditsinteger | nullCredits the whole access, per UTC month, may spend; null is no ceiling. A call whose price does not fit is refused with rate_limited until the window resets.
Response
Create an access
dataobjectrequiredrequest_idstringrequiredPossible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked, invalid_access_key
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required, permission_denied
errorobjectrequiredrequest_idstringrequiredPossible codes: resource_not_found
errorobjectrequiredrequest_idstringrequiredPossible codes: conflict, assistant_has_no_resources
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequired