API Reference

Local API.

Zap exposes a local REST API on localhost:7432 for integrations, scripting, and automation.

Base URL: http://localhost:7432
GET
/api/v1/status

Check if the Zap daemon is running and return current session info.

POST
/api/v1/query

Submit a natural language query against your local knowledge base. Returns ranked context chunks.

POST
/api/v1/transcribe

Start a transcription session. Accepts audio stream configuration and returns a session ID.

GET
/api/v1/transcribe/:id

Retrieve the current transcript for a given session ID.

POST
/api/v1/documents

Index a new document into the local knowledge base.

GET
/api/v1/peers

List currently discovered peers on the local network.

DELETE
/api/v1/documents/:id

Remove a document from the knowledge base by its ID.

Authentication

The local API is only accessible from localhost and does not require authentication by default. For production integrations, you can enable token-based auth in Zap's settings under Developer → API Access.