Read and reply
Use scoped workspace keys to page through conversations or send a text reply from your server.
- Cursor-paginated reads
- Async, idempotent text replies
Developer portal · API v1
Connect Sajama One to your own tools with a workspace-scoped API, signed event webhooks, and a Node.js SDK preview. Start with the surface that fits the job.
List conversations
curl "https://sajamaone.com/api/v1/conversations?limit=50" \
-H "X-API-Key: YOUR_READ_KEY"Integration surfaces
Use the API for deliberate reads and replies, webhooks for changes as they happen, or the Node.js preview to get started with less boilerplate.
Use scoped workspace keys to page through conversations or send a text reply from your server.
Receive conversation and message events at your HTTPS endpoint, with signatures you can verify.
Use the repository client for API reads, text replies, and webhook signature verification.
Conversations API
Keys belong to one workspace and carry only the scopes you grant. Reads use stable cursor pagination; text replies enter a durable, asynchronous delivery queue.
Use conversations:read and messages:write only where needed.
Conversation access is checked against the workspace that issued the key.
curl "https://sajamaone.com/api/v1/conversations?limit=50" \
-H "X-API-Key: YOUR_READ_KEY"nextCursor as cursorcurl -X POST "https://sajamaone.com/api/v1/conversations/CONVERSATION_ID/messages" \
-H "X-API-Key: YOUR_WRITE_KEY" \
-H "Idempotency-Key: YOUR_UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{"text":"Thanks for getting in touch."}'202 Accepted while delivery runs. Reuse the same idempotency key to check the request; do not blindly retry an uncertain channel result.Outbound webhooks
Subscribe from workspace settings and receive supported events over HTTPS. Verify each signature against the exact raw request body before processing it.
See the Node.js verification helperconversation.createdJSON event with a stable delivery ID and timestamp.
message.createdJSON event with a stable delivery ID and timestamp.
Signature
HMAC-SHA256 over timestamp and raw body.
Delivery model
Retries with backoff; at-least-once, so deduplicate by delivery ID.
Node.js SDK preview
The source package covers conversation reads, idempotent text replies, and timestamp-bound webhook verification. It is available in the repository, but is not yet published to npm.
Know the current scope
Start building
Create a scoped key in your workspace, then make your first server-side request.