OneOS Docs
Genesis 0.3.1 Console

API reference

Zaps

Managed key-value stores: create, list and delete them, run commands and pipelines, and read statistics, usage and the audit log.

Operations
12
Base path
https://os.one.ml/api/v1/zaps
Scopes
zaps:read zaps:write
API keys
12 tested with an API key
SDK
genesis.call('zaps_searchAudit', …) · helpers under genesis.zaps
CLI
genesis zaps
MCP
12 tools

Operations

OperationEndpointAPI key
Search the audit logPOST/audit/searchTested with an API key
Audit log statisticsGET/audit/statsTested with an API key
Run a key-value commandPOST/commandTested with an API key
Usage metrics for this tenantGET/metricsTested with an API key
Run a pipeline of key-value commandsPOST/pipelineTested with an API key
Key-value statisticsGET/statsTested with an API key
List ZapsGET/zapsTested with an API key
Create a ZapPOST/zapsTested with an API key
Get a ZapGET/zaps/{name}Tested with an API key
Delete a ZapDELETE/zaps/{name}Tested with an API key
Run a command in one ZapPOST/zaps/{name}/commandTested with an API key
List Zap purposesGET/zaps/purposesTested with an API key

Audit

Search the audit log

POST/v1/zaps/audit/search

zaps:writeTested with an API keyzaps_searchAudit

Needs zaps:read (or zaps:write) on an org API key; Sandbox. Read-only search.

Request body application/json

  • principal_idstring | null
  • categorystring | null
  • from_msinteger | null

    min 0

  • to_msinteger | null

    min 0

  • limitinteger | null

    min 0

  • cursorstring | null

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Invalid body, a command outside the admitted set, or a write without an Idempotency-Key
  • 401Missing or invalid org API key
  • 403The key lacks zaps:read (SCOPE_MISSING), or its selection is missing or expired
  • 409The key's selected environment is not Sandbox (ENVIRONMENT_NOT_AVAILABLE)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/zaps/audit/search" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Audit log statistics

GET/v1/zaps/audit/stats

zaps:readTested with an API keyzaps_getAuditStats

Needs zaps:read (or zaps:write) on an org API key; Sandbox.

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Invalid body, a command outside the admitted set, or a write without an Idempotency-Key
  • 401Missing or invalid org API key
  • 403The key lacks zaps:read (SCOPE_MISSING), or its selection is missing or expired
  • 409The key's selected environment is not Sandbox (ENVIRONMENT_NOT_AVAILABLE)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/zaps/audit/stats" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Command

Run a key-value command

POST/v1/zaps/command

zaps:writeTested with an API keyIdempotency-Key optionalzaps_command

Read commands (PING, GET, EXISTS, TTL, SCAN) need zaps:read; write commands (SET, DELETE, EXPIRE) need zaps:write and an Idempotency-Key.

Parameters

  • Idempotency-Keyheader · string

    Required for write commands; reuse it to replay instead of acting twice

Request body application/json

  • cmd"PING" | "GET" | "EXISTS" | "TTL" | "DELETE" | "SET" | "EXPIRE" | "SCAN"required
  • keystring
  • valueany
  • keyspacestring | null
  • ttlinteger | null

    min 0

  • prefixstring | null
  • cursorstring | null
  • countinteger | null

    min 0

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Invalid body, a command outside the admitted set, or a write without an Idempotency-Key
  • 401Missing or invalid org API key
  • 403The key lacks zaps:read (SCOPE_MISSING), or its selection is missing or expired
  • 409The key's selected environment is not Sandbox (ENVIRONMENT_NOT_AVAILABLE)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/zaps/command" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cmd": "PING"
  }'

Run a command in one Zap

POST/v1/zaps/zaps/{name}/command

zaps:writeTested with an API keyIdempotency-Key optionalzaps_zapCommand

Read commands (PING, GET, EXISTS, TTL, SCAN) need zaps:read; write commands (SET, DELETE, EXPIRE) need zaps:write and an Idempotency-Key. Purpose commands INCR, LPUSH, RPOP, LLEN, REMEMBER and RECALL run only here.

Parameters

  • namepath · stringrequired

    Zap name

  • Idempotency-Keyheader · string

    Required for write commands; reuse it to replay instead of acting twice

Request body application/json

  • cmd"PING" | "GET" | "EXISTS" | "TTL" | "DELETE" | "SET" | "EXPIRE" | "SCAN" | "INCR" | "LPUSH" | "RPOP" | "LLEN" | "REMEMBER" | "RECALL"required
  • keystring
  • valueany
  • keyspacestring | null
  • ttlinteger | null

    min 0

  • prefixstring | null
  • cursorstring | null
  • countinteger | null

    min 0

  • deltainteger
  • fieldsobject
  • field_namesarray | null

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Invalid body, a command outside the admitted set, or a write without an Idempotency-Key
  • 401Missing or invalid org API key
  • 403The key lacks zaps:read (SCOPE_MISSING), or its selection is missing or expired
  • 409The key's selected environment is not Sandbox (ENVIRONMENT_NOT_AVAILABLE)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/zaps/zaps/$NAME/command" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cmd": "PING"
  }'

Metrics

Usage metrics for this tenant

GET/v1/zaps/metrics

zaps:readTested with an API keyzaps_getMetrics

Needs zaps:read (or zaps:write) on an org API key; Sandbox.

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Invalid body, a command outside the admitted set, or a write without an Idempotency-Key
  • 401Missing or invalid org API key
  • 403The key lacks zaps:read (SCOPE_MISSING), or its selection is missing or expired
  • 409The key's selected environment is not Sandbox (ENVIRONMENT_NOT_AVAILABLE)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/zaps/metrics" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Pipeline

Run a pipeline of key-value commands

POST/v1/zaps/pipeline

zaps:writeTested with an API keyIdempotency-Key optionalzaps_pipeline

Up to 1000 commands that are all reads or all writes. Read commands (PING, GET, EXISTS, TTL, SCAN) need zaps:read; write commands (SET, DELETE, EXPIRE) need zaps:write and an Idempotency-Key.

Parameters

  • Idempotency-Keyheader · string

    Required for write commands; reuse it to replay instead of acting twice

Request body application/json

  • commandsobject[]required
  • commands[].[].cmd"PING" | "GET" | "EXISTS" | "TTL" | "DELETE" | "SET" | "EXPIRE" | "SCAN"required
  • commands[].[].keystring
  • commands[].[].valueany
  • commands[].[].keyspacestring | null
  • commands[].[].ttlinteger | null

    min 0

  • commands[].[].prefixstring | null
  • commands[].[].cursorstring | null
  • commands[].[].countinteger | null

    min 0

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Invalid body, a command outside the admitted set, or a write without an Idempotency-Key
  • 401Missing or invalid org API key
  • 403The key lacks zaps:read (SCOPE_MISSING), or its selection is missing or expired
  • 409The key's selected environment is not Sandbox (ENVIRONMENT_NOT_AVAILABLE)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/zaps/pipeline" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "commands": [
      {
        "cmd": "PING"
      }
    ]
  }'

Stats

Key-value statistics

GET/v1/zaps/stats

zaps:readTested with an API keyzaps_getStats

Needs zaps:read (or zaps:write) on an org API key; Sandbox.

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Invalid body, a command outside the admitted set, or a write without an Idempotency-Key
  • 401Missing or invalid org API key
  • 403The key lacks zaps:read (SCOPE_MISSING), or its selection is missing or expired
  • 409The key's selected environment is not Sandbox (ENVIRONMENT_NOT_AVAILABLE)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/zaps/stats" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Zaps

List Zaps

GET/v1/zaps/zaps

zaps:readTested with an API keyzaps_listZaps

Needs zaps:read (or zaps:write) on an org API key; Sandbox.

Responses

  • 200OK
    Response fields
    • statusstringrequired
    • zapsobject[]required
    • zaps[].[].namestringrequired
    • zaps[].[].purpose"cache" | "session" | "agent_memory" | "rate_limiter" | "queue" | "feature_flag" | "audit_log"required
    • zaps[].[].enginestringrequired
    • zaps[].[].statusstringrequired
    • zaps[].[].created_atstringrequired
    • zaps[].[].featuresstring[]required
    • countintegerrequired
  • 400Invalid body, a command outside the admitted set, or a write without an Idempotency-Key
  • 401Missing or invalid org API key
  • 403The key lacks zaps:read (SCOPE_MISSING), or its selection is missing or expired
  • 409The key's selected environment is not Sandbox (ENVIRONMENT_NOT_AVAILABLE)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/zaps/zaps" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a Zap

POST/v1/zaps/zaps

zaps:writeTested with an API keyIdempotency-Key requiredzaps_createZap

Needs zaps:write on an org API key and an Idempotency-Key; Sandbox.

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Request body application/json

  • namestringrequired

    pattern ^[a-z0-9][a-z0-9-]{0,62}$

  • purposestring | null

    cache (default), session, agent_memory, rate_limiter, queue, feature_flag or audit_log

Responses

  • 201OK
    Response fields
    • statusstringrequired
    • zapobjectrequired
    • zap.namestringrequired
    • zap.purpose"cache" | "session" | "agent_memory" | "rate_limiter" | "queue" | "feature_flag" | "audit_log"required
    • zap.enginestringrequired
    • zap.statusstringrequired
    • zap.created_atstringrequired
    • zap.featuresstring[]required
  • 400Invalid body, a command outside the admitted set, or a write without an Idempotency-Key
  • 401Missing or invalid org API key
  • 403The key lacks zaps:write (SCOPE_MISSING), or its selection is missing or expired
  • 409The key's selected environment is not Sandbox (ENVIRONMENT_NOT_AVAILABLE)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/zaps/zaps" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string"
  }'

Get a Zap

GET/v1/zaps/zaps/{name}

zaps:readTested with an API keyzaps_getZap

Needs zaps:read (or zaps:write) on an org API key; Sandbox.

Parameters

  • namepath · stringrequired

    Zap name

Responses

  • 200OK
    Response fields
    • statusstringrequired
    • zapobjectrequired
    • zap.namestringrequired
    • zap.purpose"cache" | "session" | "agent_memory" | "rate_limiter" | "queue" | "feature_flag" | "audit_log"required
    • zap.enginestringrequired
    • zap.statusstringrequired
    • zap.created_atstringrequired
    • zap.featuresstring[]required
  • 400Invalid body, a command outside the admitted set, or a write without an Idempotency-Key
  • 401Missing or invalid org API key
  • 403The key lacks zaps:read (SCOPE_MISSING), or its selection is missing or expired
  • 409The key's selected environment is not Sandbox (ENVIRONMENT_NOT_AVAILABLE)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/zaps/zaps/$NAME" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete a Zap

DELETE/v1/zaps/zaps/{name}

zaps:writeTested with an API keyIdempotency-Key requiredzaps_deleteZap

Needs zaps:write on an org API key and an Idempotency-Key; Sandbox.

Parameters

  • namepath · stringrequired

    Zap name

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay instead of acting twice

Responses

  • 200OK
    Response fields
    • statusstring
    • messagestring
  • 400Invalid body, a command outside the admitted set, or a write without an Idempotency-Key
  • 401Missing or invalid org API key
  • 403The key lacks zaps:write (SCOPE_MISSING), or its selection is missing or expired
  • 409The key's selected environment is not Sandbox (ENVIRONMENT_NOT_AVAILABLE)
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/zaps/zaps/$NAME" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

List Zap purposes

GET/v1/zaps/zaps/purposes

zaps:readTested with an API keyzaps_listZapPurposes

Needs zaps:read (or zaps:write) on an org API key; Sandbox.

Responses

  • 200OK
    Response fields

    A JSON object.

  • 400Invalid body, a command outside the admitted set, or a write without an Idempotency-Key
  • 401Missing or invalid org API key
  • 403The key lacks zaps:read (SCOPE_MISSING), or its selection is missing or expired
  • 409The key's selected environment is not Sandbox (ENVIRONMENT_NOT_AVAILABLE)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/zaps/zaps/purposes" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support