Skip to content
Version: Current

POST /v1/ops/agents/import

Part of the API reference; this page is generated from the OpenAPI document that the gateway builds from its own route tables.

  • Contract version: 1.10.0
  • Contract title: acumen gateway API
  • Source: acumen:docs/openapi/acumen-v1.openapi.json

Import (register) an agent seat

Registers an api_key agent seat from a credential the server reads out of a 0400/0600 file (mode:path) or round-trips through a 0600 temp file (mode:token, deleted in defer). The body carries kind/provider/account plus exactly one intake mode; a raw credential in any other member is refused 400 secrets_not_accepted. A new row lands state=disabled (imported, awaiting its own-200 proof); re-importing re-credentials the row and preserves its state. The response carries key_fp, never the value or the path. Operator (admin) scope.

  • Operation id: postV1OpsAgentsImport
  • Scope: admin
  • Exposure: operator
  • Mutating: yes
  • Auth: bearerAuth, operatorSession

Request

  • Request body (application/json, required): AgentImportRequest: AgentImportRequest (object)
Field Type Required Notes
account string yes
kind string yes
mode string yes
path string no
provider string yes
token string no

Responses

  • 200: OK
    • application/json: AgentImported: AgentImported (object)
  • 400: schema_invalid — the request body or parameter failed validation
    • application/problem+json: Problem: Problem (object)
  • 401: auth_missing — no virtual key or operator session
    • application/problem+json: Problem: Problem (object)
  • 403: auth_scope — the credential lacks the route’s scope
    • application/problem+json: Problem: Problem (object)
  • 404: resource_not_found — the addressed object does not exist
    • application/problem+json: Problem: Problem (object)
  • 405: method_not_allowed — the path exists for another verb
    • application/problem+json: Problem: Problem (object)
  • 429: rate_limited — the per-key or per-IP bucket is exhausted
    • application/problem+json: Problem: Problem (object)
  • 500: internal — the store or process failed
    • application/problem+json: Problem: Problem (object)
  • 501: not_implemented — the route is declared but not wired in this build
    • application/problem+json: Problem: Problem (object)
  • 503: store_unavailable — the dependency is down; retryable
    • application/problem+json: Problem: Problem (object)