> ## Documentation Index
> Fetch the complete documentation index at: https://docs.labelbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get one agent

> Returns one agent resolved to its latest immutable version, including its system prompt, toolsets, and default credential grants. A soft-deleted or unknown id is a 404.



## OpenAPI

````yaml /managed-agents/openapi.yaml get /managed-agents/v1/agents/{agent_id}
openapi: 3.1.0
info:
  title: Managed Agents API
  version: 0.14.0
  description: >-
    The Recursion Managed Agents REST API. Authenticate with a Recursion API key
    as a bearer token. An organization-scoped key acts in its own organization
    and needs nothing else; a tenant-scoped key must also send
    `x-organization-id` with an organization id or `default`. Field names follow
    each operation's published schema.
servers:
  - url: https://api.recursion.labelbox.com
security:
  - bearerAuth: []
paths:
  /managed-agents/v1/agents/{agent_id}:
    get:
      tags:
        - Agents
      summary: Get one agent
      description: >-
        Returns one agent resolved to its latest immutable version, including
        its system prompt, toolsets, and default credential grants. A
        soft-deleted or unknown id is a 404.
      operationId: managedAgentsGetAgent
      parameters:
        - description: Agent id (UUID) as returned by createAgent or listAgents.
          in: path
          name: agent_id
          required: true
          schema:
            description: Agent id (UUID) as returned by createAgent or listAgents.
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsAgent'
          description: >-
            A configured agent: its versioned execution definition plus current
            mutable classification tags. Publishing the execution definition
            mints a new immutable AgentVersion; applying tags does not. A
            session records the version it ran and never snapshots tags.
        '400':
          description: The request was rejected by schema or semantic validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorInvalidRequest'
        '401':
          description: The caller is unauthenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorUnauthorized'
        '403':
          description: The caller lacks a required permission or capability.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorForbidden'
        '404':
          description: No such resource is reachable for this caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorNotFound'
        '429':
          headers:
            Retry-After:
              description: When to retry, as delay seconds or an HTTP date.
              schema:
                type: string
          description: A rate limit is exhausted. Honor `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorRateLimitExceeded'
        '500':
          description: An unexpected server-side failure.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ManagedAgentsApiErrorInternalError'
                  - $ref: >-
                      #/components/schemas/ManagedAgentsApiErrorInvariantViolation
                discriminator:
                  propertyName: code
                  mapping:
                    internal_error:
                      $ref: '#/components/schemas/ManagedAgentsApiErrorInternalError'
                    invariant_violation:
                      $ref: >-
                        #/components/schemas/ManagedAgentsApiErrorInvariantViolation
        '502':
          description: The service returned an invalid response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorBadGateway'
        '503':
          description: >-
            A dependency is unavailable. Consult details.retryable and
            Retry-After when present before retrying.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: >-
                      #/components/schemas/ManagedAgentsApiErrorManagedAgentsUnavailable
                  - $ref: >-
                      #/components/schemas/ManagedAgentsApiErrorServiceUnavailable
                discriminator:
                  propertyName: code
                  mapping:
                    managed_agents_unavailable:
                      $ref: >-
                        #/components/schemas/ManagedAgentsApiErrorManagedAgentsUnavailable
                    service_unavailable:
                      $ref: >-
                        #/components/schemas/ManagedAgentsApiErrorServiceUnavailable
        '504':
          description: The service did not respond before the timeout.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAgentsApiErrorGatewayTimeout'
components:
  schemas:
    ManagedAgentsAgent:
      description: >-
        A configured agent: its versioned execution definition plus current
        mutable classification tags. Publishing the execution definition mints a
        new immutable AgentVersion; applying tags does not. A session records
        the version it ran and never snapshots tags.
      properties:
        agent_id:
          description: >-
            Server-assigned id of the agent, used in the agent, agent-version,
            and session routes.
          type: string
        built_in_integrations:
          description: >-
            Built-in integrations this agent may use, each naming an active
            organization connection an admin added on the Integrations page.
            Sessions receive short-lived access restricted to exactly those apps
            and each connection's tool allow-list. Not a vault grant: nothing
            about these appears under credential access. A version write carries
            the list in full: omitting it publishes a version with none.
          items:
            $ref: '#/components/schemas/ManagedAgentsBuiltInIntegration'
          type: array
        created_at:
          description: Server-assigned RFC 3339 timestamp of when the agent was created.
          format: date-time
          type: string
        default_credential_refs:
          description: >-
            Narrows the default vaults to individual credentials. Every
            credential is selected when a vault is first added, and may then be
            unchecked.
          items:
            $ref: '#/components/schemas/ManagedAgentsVaultCredentialRef'
          type:
            - array
            - 'null'
        default_rubric:
          description: >-
            Markdown rubric that sessions started from this agent are graded
            against when their create request omits an outcome. A session that
            supplies its own outcome ignores this entirely. Carried in full on
            every version write: omitting it publishes a version with no rubric.
          type: string
        default_vault_ids:
          description: >-
            Vaults whose credentials are copied into a new session when its
            create request omits vault_ids. Sending an explicit empty list on
            the session still overrides these.
          items:
            type: string
          type:
            - array
            - 'null'
        description:
          description: Free-text note about what this agent is for.
          type: string
        disabled_integration_mcp_providers:
          description: >-
            Native integration providers whose MCP tools new sessions of this
            agent do not receive, even though the grant is present. The grant
            still authenticates the provider's sandbox tools where it has any
            (git and gh for GitHub). Suppresses integration-derived servers
            only, never the agent's own mcp_servers. New agents decline github
            by default when the field is omitted on create (JSON null counts as
            omitted); send an explicit [] on create to receive every provider's
            MCP tools. A version write carries the list in full: omitting it
            publishes a version with none.
          items:
            type: string
          type:
            - array
            - 'null'
        latest_agent_version_id:
          description: >-
            Server-maintained id of the newest version of this agent; sessions
            started without an explicit version use it.
          type: string
        max_concurrent_sessions:
          description: >-
            Maximum number of this agent's root sessions that may run or wait on
            compute at once. Omit for unlimited. Sessions beyond the cap are
            accepted with execution_state=queued and wait until a slot frees;
            child/subagent sessions do not count. Carried in full on every
            version write: omitting it publishes a version with no cap.
          maximum: 10000
          minimum: 1
          type: integer
        mcp_servers:
          description: >-
            Remote MCP servers to attach. Each entry is an object with name (the
            label the server's tools are grouped under) and url (its http/https
            endpoint); any further keys are passed to the runtime unchanged.
            Credentials come from the vaults granted to the session, not from
            this entry. Tools are discovered and snapshotted at session start.
          items:
            additionalProperties: {}
            type: object
          type:
            - array
            - 'null'
        metadata:
          additionalProperties: {}
          description: >-
            Caller-owned key/value data stored with the agent and returned
            unchanged.
          type: object
        model:
          description: >-
            Model the agent runs on. Pass a model id exactly as the models
            catalog (GET /v1/models) lists it, e.g. anthropic/claude-sonnet-4-5;
            reads return the stored form, which adds a provider prefix before
            that id. An explicitly provider-qualified string such as
            anthropic:claude-sonnet-4-5 selects that provider directly and is
            left as written. An id the catalog does not list is rejected here,
            not at the session's first turn.
          type: string
        model_config:
          $ref: '#/components/schemas/ManagedAgentsInferenceConfig'
          description: >-
            Default inference settings applied to every turn unless a session
            overrides them.
        multiagent:
          additionalProperties: {}
          description: >-
            Multi-agent orchestration settings, such as subagent definitions and
            delegation limits.
          type: object
        name:
          description: >-
            Human-readable label shown wherever agents are listed. Not required
            to be unique.
          type: string
        nativeIntegrations:
          description: >-
            Native connections this agent may use, with provider-enforced
            permission and resource restrictions. Omit or send [] for none.
            Stored in full on each agent version; secrets remain on the
            connection.
          items:
            $ref: '#/components/schemas/ManagedAgentsNativeIntegration'
          maxItems: 25
          type: array
        organization_id:
          description: >-
            Organization that owns the agent. Server-assigned from the caller's
            credentials; a value sent in a request body is ignored.
          type: string
        skills:
          description: >-
            Skill packages loaded into the agent's runtime, each an entry with
            the skill reference and its metadata.
          items:
            additionalProperties: {}
            type: object
          type:
            - array
            - 'null'
        system:
          description: System prompt prepended to every conversation this agent runs.
          type: string
        tags:
          description: >-
            Current organization-scoped classification tags applied to this
            agent. Always an array. Tags are mutable catalog metadata and are
            deliberately absent from AgentVersion and session runtime snapshots.
          items:
            $ref: '#/components/schemas/ManagedAgentsTag'
          type: array
        toolsets:
          description: >-
            The bare evaluation marker, when this is an evaluator agent.
            Historical stored agents may contain ignored declarations, omitted
            from current API responses. Built-in sandbox tools need no marker.
          items:
            additionalProperties: false
            properties:
              type:
                description: The evaluation marker is the only supported toolset type.
                enum:
                  - evaluation
                type: string
            required:
              - type
            type: object
          maxItems: 1
          type:
            - array
            - 'null'
        updated_at:
          description: >-
            Server-assigned RFC 3339 timestamp of the most recent update to the
            agent.
          format: date-time
          type: string
        web_search_enabled:
          default: true
          description: >-
            Whether new sessions may use the native web_search tool. Omitted on
            legacy agents and interpreted as enabled.
          type: boolean
      required:
        - organization_id
        - agent_id
        - name
        - model
        - model_config
        - system
        - toolsets
        - mcp_servers
        - default_vault_ids
        - default_credential_refs
        - disabled_integration_mcp_providers
        - skills
        - tags
        - created_at
        - updated_at
      type: object
      example:
        agent_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
        built_in_integrations:
          - connection_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
            tools: []
        created_at: '2026-02-18T09:30:00.000Z'
        default_credential_refs:
          - credential_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
            vault_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
        default_rubric: example
        default_vault_ids:
          - example
        description: example
        disabled_integration_mcp_providers:
          - example
        latest_agent_version_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
        max_concurrent_sessions: 1
        mcp_servers:
          - key: example
        metadata:
          key: example
        model: example
        model_config:
          max_tokens: 1
          provider_params:
            key: example
          reasoning_effort: example
          temperature: 1.5
          top_p: 1.5
        multiagent:
          key: example
        name: example-name
        nativeIntegrations:
          - connectionId: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
            permission: example
            resources:
              - example
        organization_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
        skills:
          - key: example
        system: example
        tags:
          - color: '#14b8a6'
            created_at: '2026-02-18T09:30:00.000Z'
            description: example
            label: example
            organization_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
            tag_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
            updated_at: '2026-02-18T09:30:00.000Z'
        toolsets:
          - type: evaluation
        updated_at: '2026-02-18T09:30:00.000Z'
        web_search_enabled: true
    ManagedAgentsApiErrorInvalidRequest:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - invalid_request
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorUnauthorized:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - unauthorized
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorForbidden:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - forbidden
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorNotFound:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - not_found
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorRateLimitExceeded:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - rate_limit_exceeded
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorInternalError:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - internal_error
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorInvariantViolation:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - invariant_violation
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorBadGateway:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - bad_gateway
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorManagedAgentsUnavailable:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - managed_agents_unavailable
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorServiceUnavailable:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - service_unavailable
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsApiErrorGatewayTimeout:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: Stable machine-readable error code.
          enum:
            - gateway_timeout
        message:
          type: string
          minLength: 1
          description: Human-readable error message.
        details:
          $ref: '#/components/schemas/ManagedAgentsApiErrorDetails'
          description: >-
            Optional structured error details. Reserved transport fields are
            typed; code-specific fields remain forward compatible.
      required:
        - code
        - message
      additionalProperties: false
      description: Standard flat error response.
    ManagedAgentsBuiltInIntegration:
      description: >-
        One built-in integration an agent may use, named by its organization
        connection. The connection carries the app and the tools its agents may
        call; the agent inherits both.
      properties:
        connection_id:
          description: >-
            Organization integration connection (UUID) the agent may use. Must
            belong to the caller's organization, be a built-in integration
            connection, and be active.
          type: string
        tools:
          description: >-
            Reserved for per-agent narrowing below the connection's admin
            allow-list. Must be omitted or empty today; the agent inherits the
            connection's full allow-list.
          items:
            type: string
          maxItems: 0
          type: array
      required:
        - connection_id
      type: object
      example:
        connection_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
        tools: []
    ManagedAgentsVaultCredentialRef:
      description: >-
        A pointer to one credential inside one vault. Used to grant a session
        specific credentials rather than every credential in a vault.
      properties:
        credential_id:
          description: Credential to select inside vault_id.
          type: string
        vault_id:
          description: >-
            Vault holding the credential. Required, because credential ids are
            unique only within a vault.
          type: string
      required:
        - vault_id
        - credential_id
      type: object
      example:
        credential_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
        vault_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
    ManagedAgentsInferenceConfig:
      description: >-
        Sampling and generation settings for a model call, mirroring the
        provider's own request parameters. Set it on an agent or a session to
        govern every turn, and read it back on a model event to see what the
        call actually used.
      properties:
        max_tokens:
          description: >-
            Upper bound on tokens the model may generate for one assistant turn
            (the provider's max_tokens). Omit or 0 to use the model reference's
            default.
          format: int64
          type: integer
        provider_params:
          additionalProperties: {}
          description: >-
            Extra provider request parameters merged into the inference call for
            options this schema does not model. Keys are provider-specific and
            are passed through unvalidated.
          type: object
        reasoning_effort:
          description: >-
            Provider-native reasoning depth value. For a model from the models
            catalog, use one of its supportedReasoningEfforts; omit it to follow
            the provider's current default.
          type: string
        temperature:
          description: >-
            Sampling temperature passed through to the provider, typically
            0.0-2.0. Lower values are more deterministic. Omit to use the
            provider default.
          type: number
        top_p:
          description: >-
            Nucleus-sampling probability mass (0.0-1.0) passed through to the
            provider. Prefer setting either this or temperature, not both. Omit
            to use the provider default.
          type: number
      type: object
      example:
        max_tokens: 1
        provider_params:
          key: example
        reasoning_effort: example
        temperature: 1.5
        top_p: 1.5
    ManagedAgentsNativeIntegration:
      description: >-
        A native connection and its agent-owned runtime permission and resource
        policy.
      properties:
        connectionId:
          description: Active native connection in this organization.
          format: uuid
          type: string
        permission:
          description: >-
            Provider permission preset, bounded by the connection's
            authorization.
          type: string
        resources:
          description: >-
            Optional resource subset. Omit to inherit all resources available
            through the connection. An explicit empty list is rejected.
          items:
            type: string
          maxItems: 500
          minItems: 1
          type: array
          uniqueItems: true
      required:
        - connectionId
        - permission
      type: object
      example:
        connectionId: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
        permission: example
        resources:
          - example
    ManagedAgentsTag:
      description: >-
        An organization-scoped classification definition. Applying or removing
        it changes only catalog membership: it does not update the agent, mint
        an AgentVersion, or affect running sessions.
      properties:
        color:
          description: 'Display color in #RRGGBB form.'
          examples:
            - '#14b8a6'
          maxLength: 7
          minLength: 7
          pattern: ^#[0-9A-Fa-f]{6}$
          type: string
        created_at:
          description: Server-assigned RFC 3339 timestamp of when the tag was created.
          format: date-time
          type: string
        description:
          description: >-
            Optional operator-facing explanation of the classification, up to
            280 characters.
          maxLength: 280
          type: string
        label:
          description: >-
            Display label, trimmed by the service. Unique case-insensitively
            among live tags in this organization.
          maxLength: 32
          minLength: 1
          type: string
        organization_id:
          description: >-
            Organization that owns the tag. Server-assigned from the
            authenticated principal and never accepted as authority from the
            request body.
          type: string
        tag_id:
          description: Server-assigned tag id (UUID).
          format: uuid
          type: string
        updated_at:
          description: >-
            Server-assigned RFC 3339 timestamp of the most recent definition
            update.
          format: date-time
          type: string
      required:
        - organization_id
        - tag_id
        - label
        - color
        - created_at
        - updated_at
      type: object
      example:
        color: '#14b8a6'
        created_at: '2026-02-18T09:30:00.000Z'
        description: example
        label: example
        organization_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
        tag_id: 9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d
        updated_at: '2026-02-18T09:30:00.000Z'
    ManagedAgentsApiErrorDetails:
      type: object
      properties:
        field:
          description: >-
            Request field or header responsible for the error, when one can be
            identified.
          type: string
        issues:
          description: >-
            Boundary-validation failures as path-prefixed human-readable
            messages.
          type: array
          items:
            type: string
        requestId:
          description: Request correlation identifier for support and log lookup.
          type: string
        retryable:
          description: >-
            Server advice about failure transience. `true` means transient,
            `false` means non-transient, and absence gives no advice. Automatic
            replay is allowed only when this field is not `false` and the
            operation-specific retry and idempotency contract permits replay.
          type: boolean
      additionalProperties: {}
      description: >-
        Optional structured error details. Reserved transport fields are typed;
        code-specific fields remain forward compatible.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A Recursion API key, created in the console under API keys.

````